summaryrefslogtreecommitdiff
path: root/sc/source/filter/html
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-01-24 12:11:35 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-01-24 15:43:22 +0100
commit5ff49e8ce958deb8217880b2aaf2bd41a567e8a1 (patch)
tree223ec5c4dd7af29b7e52a3c5098f966708e6dba2 /sc/source/filter/html
parenta8dc584486827aa0b681302864df6886a180377c (diff)
Remove erDEBUG directive.
Diffstat (limited to 'sc/source/filter/html')
-rw-r--r--sc/source/filter/html/htmlpars.cxx99
1 files changed, 0 insertions, 99 deletions
diff --git a/sc/source/filter/html/htmlpars.cxx b/sc/source/filter/html/htmlpars.cxx
index b6aac9b67b22..3085aee80366 100644
--- a/sc/source/filter/html/htmlpars.cxx
+++ b/sc/source/filter/html/htmlpars.cxx
@@ -767,105 +767,6 @@ void ScHTMLLayoutParser::CloseEntry( ImportInfo* pInfo )
IMPL_LINK( ScHTMLLayoutParser, HTMLImportHdl, ImportInfo*, pInfo )
{
-#if defined(erDEBUG) //|| 1
- static ESelection aDebugSel;
- static String aDebugStr;
- static SvFileStream* pDebugStrm = NULL;
- static ULONG nDebugStrmPos = 0;
- static ULONG nDebugCount = 0;
- static ULONG nDebugCountAll = 0;
- static const sal_Char* sDebugState[15] = {
- "RTFIMP_START", "RTFIMP_END",
- "RTFIMP_NEXTTOKEN", "RTFIMP_UNKNOWNATTR",
- "RTFIMP_SETATTR",
- "RTFIMP_INSERTTEXT",
- "RTFIMP_INSERTPARA",
- "HTMLIMP_START", "HTMLIMP_END",
- "HTMLIMP_NEXTTOKEN", "HTMLIMP_UNKNOWNATTR",
- "HTMLIMP_SETATTR",
- "HTMLIMP_INSERTTEXT",
- "HTMLIMP_INSERTPARA", "HTMLIMP_INSERTFIELD"
- };
-
- nDebugCountAll++;
- if ( pInfo->eState != HTMLIMP_NEXTTOKEN // not too much
- || pInfo->nToken == HTML_TABLE_ON
- || pInfo->nToken == HTML_TABLE_OFF
- || pInfo->nToken == HTML_TABLEROW_ON
- || pInfo->nToken == HTML_TABLEROW_OFF
- || pInfo->nToken == HTML_TABLEHEADER_ON
- || pInfo->nToken == HTML_TABLEHEADER_OFF
- || pInfo->nToken == HTML_TABLEDATA_ON
- || pInfo->nToken == HTML_TABLEDATA_OFF
- || !aDebugSel.IsEqual( pInfo->aSelection )
- || pInfo->aText.Len() || aDebugStr != pInfo->aText
- )
- {
- aDebugSel = pInfo->aSelection;
- aDebugStr = pInfo->aText;
- nDebugCount++;
- if ( !pDebugStrm )
- {
- pDebugStrm = new SvFileStream( "d:\\erdbghtm.log",
- STREAM_WRITE | STREAM_TRUNC );
- }
- else
- {
- pDebugStrm->ReOpen();
- pDebugStrm->Seek( nDebugStrmPos );
- }
- SvFileStream& rS = *pDebugStrm;
- rS.WriteNumber( nDebugCountAll ); rS << ".: ";
- rS.WriteNumber( nDebugCount ); rS << ". State: ";
- rS.WriteNumber( (USHORT) pInfo->eState );
- rS << ' ' << sDebugState[pInfo->eState] << endl;
- rS << "SPar,SPos EPar,EPos: ";
- rS.WriteNumber( aDebugSel.nStartPara ); rS << ',';
- rS.WriteNumber( aDebugSel.nStartPos ); rS << ' ';
- rS.WriteNumber( aDebugSel.nEndPara ); rS << ',';
- rS.WriteNumber( aDebugSel.nEndPos ); rS << endl;
- if ( aDebugStr.Len() )
- {
- rS << "Text: \"" << aDebugStr << '\"' << endl;
- }
- else
- {
- rS << "Text:" << endl;
- }
- rS << "Token: "; rS.WriteNumber( pInfo->nToken );
- switch ( pInfo->nToken )
- {
- case HTML_TABLE_ON:
- rS << " HTML_TABLE_ON";
- break;
- case HTML_TABLE_OFF:
- rS << " HTML_TABLE_OFF";
- break;
- case HTML_TABLEROW_ON:
- rS << " HTML_TABLEROW_ON";
- break;
- case HTML_TABLEROW_OFF:
- rS << " HTML_TABLEROW_OFF";
- break;
- case HTML_TABLEHEADER_ON:
- rS << " HTML_TABLEHEADER_ON";
- break;
- case HTML_TABLEHEADER_OFF:
- rS << " HTML_TABLEHEADER_OFF";
- break;
- case HTML_TABLEDATA_ON:
- rS << " HTML_TABLEDATA_ON";
- break;
- case HTML_TABLEDATA_OFF:
- rS << " HTML_TABLEDATA_OFF";
- break;
- }
- rS << " Value: "; rS.WriteNumber( pInfo->nTokenValue );
- rS << endl << endl;
- nDebugStrmPos = pDebugStrm->Tell();
- pDebugStrm->Close();
- }
-#endif
switch ( pInfo->eState )
{
case HTMLIMP_NEXTTOKEN: