summaryrefslogtreecommitdiff
path: root/sw/source/filter/rtf
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/filter/rtf')
-rw-r--r--sw/source/filter/rtf/rtffld.cxx158
-rw-r--r--sw/source/filter/rtf/rtffly.cxx136
-rw-r--r--sw/source/filter/rtf/rtfnum.cxx74
-rw-r--r--sw/source/filter/rtf/rtftbl.cxx28
-rw-r--r--sw/source/filter/rtf/swparrtf.cxx18
-rw-r--r--sw/source/filter/rtf/swparrtf.hxx64
6 files changed, 239 insertions, 239 deletions
diff --git a/sw/source/filter/rtf/rtffld.cxx b/sw/source/filter/rtf/rtffld.cxx
index d6c4e41a74dc..bee4b8bbc889 100644
--- a/sw/source/filter/rtf/rtffld.cxx
+++ b/sw/source/filter/rtf/rtffld.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -65,10 +65,10 @@
// bestimme, ob es sich um ein IMPORT/TOC - Feld handelt.
-// return: 0 - weder noch,
-// 1 - TOC
-// 2 - IMPORT
-// 3 - INDEX
+// return: 0 - weder noch,
+// 1 - TOC
+// 2 - IMPORT
+// 3 - INDEX
enum RTF_FLD_TYPES {
RTFFLD_UNKNOWN = 0,
RTFFLD_TOC,
@@ -92,21 +92,21 @@ static RTF_FLD_TYPES _WhichFld( String& rName, String& rNext )
{
// Strings sind PascalStrings; Laenge steht an 1. Stellen, dadurch wird
// sich der Aufruf von strlen erspart!!!
- sal_Char __READONLY_DATA sTOC[]= "\x03""toc";
- sal_Char __READONLY_DATA sIMPORT[]= "\x06""import";
- sal_Char __READONLY_DATA sINDEX[]= "\x05""index";
- sal_Char __READONLY_DATA sSYMBOL[]= "\x06""symbol";
- sal_Char __READONLY_DATA sPAGE[]= "\x04""page";
+ sal_Char __READONLY_DATA sTOC[]= "\x03""toc";
+ sal_Char __READONLY_DATA sIMPORT[]= "\x06""import";
+ sal_Char __READONLY_DATA sINDEX[]= "\x05""index";
+ sal_Char __READONLY_DATA sSYMBOL[]= "\x06""symbol";
+ sal_Char __READONLY_DATA sPAGE[]= "\x04""page";
sal_Char __READONLY_DATA sNUMPAGES[]= "\x08""numpages";
- sal_Char __READONLY_DATA sDATE[]= "\x04""date";
- sal_Char __READONLY_DATA sTIME[]= "\x04""time";
- sal_Char __READONLY_DATA sDATA[]= "\x04""data";
- sal_Char __READONLY_DATA sMERGEFLD[]= "\x0A""mergefield";
- sal_Char __READONLY_DATA sIMPORT2[]= "\x0E""includepicture";
- sal_Char __READONLY_DATA sHYPERLINK[]= "\x09""hyperlink";
- sal_Char __READONLY_DATA sREF[]= "\x03""ref";
- sal_Char __READONLY_DATA sPAGEREF[]= "\x07""pageref";
- sal_Char __READONLY_DATA sEQ[]= "\x02""eq";
+ sal_Char __READONLY_DATA sDATE[]= "\x04""date";
+ sal_Char __READONLY_DATA sTIME[]= "\x04""time";
+ sal_Char __READONLY_DATA sDATA[]= "\x04""data";
+ sal_Char __READONLY_DATA sMERGEFLD[]= "\x0A""mergefield";
+ sal_Char __READONLY_DATA sIMPORT2[]= "\x0E""includepicture";
+ sal_Char __READONLY_DATA sHYPERLINK[]= "\x09""hyperlink";
+ sal_Char __READONLY_DATA sREF[]= "\x03""ref";
+ sal_Char __READONLY_DATA sPAGEREF[]= "\x07""pageref";
+ sal_Char __READONLY_DATA sEQ[]= "\x02""eq";
sal_Char __READONLY_DATA sINCLUDETEXT[]="\x0B""includetext";
struct _Dummy_RTF_FLD_TYPES
@@ -126,10 +126,10 @@ static RTF_FLD_TYPES _WhichFld( String& rName, String& rNext )
{RTFFLD_DATA, sDATA},
{RTFFLD_MERGEFLD, sMERGEFLD},
{RTFFLD_IMPORT, sIMPORT2},
- {RTFFLD_HYPERLINK, sHYPERLINK},
- {RTFFLD_REF, sREF},
- {RTFFLD_PAGEREF, sPAGEREF},
- {RTFFLD_EQ, sEQ},
+ {RTFFLD_HYPERLINK, sHYPERLINK},
+ {RTFFLD_REF, sREF},
+ {RTFFLD_PAGEREF, sPAGEREF},
+ {RTFFLD_EQ, sEQ},
{RTFFLD_INCLUDETEXT, sINCLUDETEXT}
};
@@ -155,7 +155,7 @@ static RTF_FLD_TYPES _WhichFld( String& rName, String& rNext )
( !nFndPos || !isalpha(sNm.GetChar( static_cast< xub_StrLen >(nFndPos-1) )) ) &&
( nFndPos+nLen == sNm.Len() || !isalpha(sNm.GetChar( static_cast< xub_StrLen >(nFndPos+nLen) ) ) ) )
{
-// rName = sNm.Copy( nFndPos, nLen );
+// rName = sNm.Copy( nFndPos, nLen );
rName = rName.Copy( nFndPos, static_cast< xub_StrLen >(nLen) );
nFndPos += nTokenStt + static_cast< xub_StrLen >(nLen);
while( rNext.GetChar( nFndPos ) == ' ' ) ++nFndPos;
@@ -164,7 +164,7 @@ static RTF_FLD_TYPES _WhichFld( String& rName, String& rNext )
return aFldNmArr[n].eFldType;
}
}
- return RTFFLD_UNKNOWN; // nichts gefunden.
+ return RTFFLD_UNKNOWN; // nichts gefunden.
}
static USHORT CheckNumberFmtStr( const String& rNStr )
@@ -191,7 +191,7 @@ static USHORT CheckNumberFmtStr( const String& rNStr )
if( rNStr.EqualsAscii( pCmp, 0, static_cast< xub_StrLen >(nLen) ))
return static_cast< USHORT >(2 <= n ? n : (n + SVX_NUM_CHARS_UPPER_LETTER_N));
}
- return SVX_NUM_PAGEDESC; // default-Wert
+ return SVX_NUM_PAGEDESC; // default-Wert
}
class RtfFieldSwitch
@@ -202,11 +202,11 @@ public:
RtfFieldSwitch( const String& rParam );
sal_Unicode GetSwitch( String& rParam );
- BOOL IsAtEnd() const { return nCurPos >= sParam.Len(); }
- xub_StrLen GetCurPos() const { return nCurPos; }
- void Erase( xub_StrLen nEndPos ) { sParam.Erase( 0, nEndPos ); }
- void Insert( const String& rIns ) { sParam.Insert( rIns, 0 ); }
- const String& GetStr() const { return sParam; }
+ BOOL IsAtEnd() const { return nCurPos >= sParam.Len(); }
+ xub_StrLen GetCurPos() const { return nCurPos; }
+ void Erase( xub_StrLen nEndPos ) { sParam.Erase( 0, nEndPos ); }
+ void Insert( const String& rIns ) { sParam.Insert( rIns, 0 ); }
+ const String& GetStr() const { return sParam; }
};
RtfFieldSwitch::RtfFieldSwitch( const String& rParam )
@@ -297,9 +297,9 @@ void lcl_ScanEquationField( const String& rStr, RTF_EquationData& rData,
case 0:
switch( nSttKey )
{
- case 'u': rData.sUp += sParam; break;
- case 'd': rData.sDown += sParam; break;
- default: rData.sText += sParam; break;
+ case 'u': rData.sUp += sParam; break;
+ case 'd': rData.sDown += sParam; break;
+ default: rData.sText += sParam; break;
}
break;
@@ -408,8 +408,8 @@ int SwRTFParser::MakeFieldInst( String& rFieldStr )
case RTFFLD_IMPORT:
{
//JP 11.03.96: vertraegt sich nicht so ganz mit Internet!
-// if( STRING_NOTFOUND != ( nPos = aSaveStr.Search( '.' )))
-// aSaveStr.Erase( nPos+4 );
+// if( STRING_NOTFOUND != ( nPos = aSaveStr.Search( '.' )))
+// aSaveStr.Erase( nPos+4 );
aSaveStr.EraseLeadingAndTrailingChars();
if( aSaveStr.Len() )
@@ -425,7 +425,7 @@ int SwRTFParser::MakeFieldInst( String& rFieldStr )
INetURLObject(GetBaseURL()), aSaveStr,
URIHelper::GetMaybeFileHdl() );
}
-// SkipGroup(); // ueberlese den Rest
+// SkipGroup(); // ueberlese den Rest
}
break;
@@ -462,7 +462,7 @@ int SwRTFParser::MakeFieldInst( String& rFieldStr )
aPF.ChangeFormat( CheckNumberFmtStr( aSaveStr ));
}
pDoc->InsertPoolItem( *pPam, SwFmtFld( aPF ), 0 );
- SkipGroup(); // ueberlese den Rest
+ SkipGroup(); // ueberlese den Rest
}
break;
case RTFFLD_DATE:
@@ -520,7 +520,7 @@ int SwRTFParser::MakeFieldInst( String& rFieldStr )
delete pFld;
}
}
- SkipGroup(); // ueberlese den Rest
+ SkipGroup(); // ueberlese den Rest
}
break;
@@ -533,8 +533,8 @@ int SwRTFParser::MakeFieldInst( String& rFieldStr )
// im SWG geben die DATA Felder den Namen der Datenbank
// an. Dieser kann als Field oder als DBInfo interpretiert
// werden:
- // \\data -> Datenbank-Name als Field
- // DATA -> Datenbank-Info
+ // \\data -> Datenbank-Name als Field
+ // DATA -> Datenbank-Info
BOOL bField = rFieldStr.GetChar( 0 ) != 'D';
// nur der Name interressiert
@@ -549,20 +549,20 @@ int SwRTFParser::MakeFieldInst( String& rFieldStr )
static_cast<SwDBNameFieldType*>(pFldType), SwDBData())), 0);
}
else
- pDoc->ChgDBData( aData ); // MS: Keine DBInfo verwenden
- SkipGroup(); // ueberlese den Rest
+ pDoc->ChgDBData( aData ); // MS: Keine DBInfo verwenden
+ SkipGroup(); // ueberlese den Rest
}
break;
case RTFFLD_MERGEFLD:
{
// ein Datenbank - Feld: nur der Name interressiert
// bis zum Ende vom String ist das der Feldname
- SwDBFieldType aTmp( pDoc, aSaveStr, SwDBData() ); //
+ SwDBFieldType aTmp( pDoc, aSaveStr, SwDBData() ); //
SwDBField aDBFld( (SwDBFieldType*)pDoc->InsertFldType( aTmp ));
aDBFld.ChangeFormat( UF_STRING );
pDoc->InsertPoolItem(*pPam, SwFmtFld( aDBFld ), 0);
- SkipGroup(); // ueberlese den Rest
+ SkipGroup(); // ueberlese den Rest
}
break;
@@ -632,7 +632,7 @@ int SwRTFParser::MakeFieldInst( String& rFieldStr )
if( !IsNewGroup() ) AttrGroupEnd();
SetNewGroup( FALSE );
- SkipGroup(); // ueberlese den Rest
+ SkipGroup(); // ueberlese den Rest
}
break;
@@ -657,8 +657,8 @@ int SwRTFParser::MakeFieldInst( String& rFieldStr )
URIHelper::GetMaybeFileHdl() );
break;
- case 'l': case 'L': sMark = sParam; break;
- case 't': case 'T': sFrame = sParam; break;
+ case 'l': case 'L': sMark = sParam; break;
+ case 't': case 'T': sFrame = sParam; break;
}
}
@@ -683,12 +683,12 @@ int SwRTFParser::MakeFieldInst( String& rFieldStr )
//Translate and apply
switch( aData.nJustificationCode )
{
- case 0: aData.nJustificationCode = 1; break;
- case 1: aData.nJustificationCode = 3; break;
- case 2: aData.nJustificationCode = 4; break;
- case 4: aData.nJustificationCode = 2; break;
-// case 3:
- default: aData.nJustificationCode = 0; break;
+ case 0: aData.nJustificationCode = 1; break;
+ case 1: aData.nJustificationCode = 3; break;
+ case 2: aData.nJustificationCode = 4; break;
+ case 4: aData.nJustificationCode = 2; break;
+// case 3:
+ default: aData.nJustificationCode = 0; break;
}
SwFmtRuby aRuby( aData.sUp );
@@ -774,7 +774,7 @@ int SwRTFParser::MakeFieldInst( String& rFieldStr )
pDoc->InsertPoolItem( *pPam, SwFmtFld( aFld ), 0);
}
- SkipGroup(); // ueberlese den Rest
+ SkipGroup(); // ueberlese den Rest
}
break;
@@ -953,16 +953,16 @@ void SwRTFParser::ReadXEField()
}
break;
- case RTF_LINE: cCh = '\n'; goto INSINGLECHAR;
- case RTF_TAB: cCh = '\t'; goto INSINGLECHAR;
- case RTF_SUBENTRYINDEX: cCh = ':'; goto INSINGLECHAR;
- case RTF_EMDASH: cCh = 151; goto INSINGLECHAR;
- case RTF_ENDASH: cCh = 150; goto INSINGLECHAR;
- case RTF_BULLET: cCh = 149; goto INSINGLECHAR;
- case RTF_LQUOTE: cCh = 145; goto INSINGLECHAR;
- case RTF_RQUOTE: cCh = 146; goto INSINGLECHAR;
- case RTF_LDBLQUOTE: cCh = 147; goto INSINGLECHAR;
- case RTF_RDBLQUOTE: cCh = 148; goto INSINGLECHAR;
+ case RTF_LINE: cCh = '\n'; goto INSINGLECHAR;
+ case RTF_TAB: cCh = '\t'; goto INSINGLECHAR;
+ case RTF_SUBENTRYINDEX: cCh = ':'; goto INSINGLECHAR;
+ case RTF_EMDASH: cCh = 151; goto INSINGLECHAR;
+ case RTF_ENDASH: cCh = 150; goto INSINGLECHAR;
+ case RTF_BULLET: cCh = 149; goto INSINGLECHAR;
+ case RTF_LQUOTE: cCh = 145; goto INSINGLECHAR;
+ case RTF_RQUOTE: cCh = 146; goto INSINGLECHAR;
+ case RTF_LDBLQUOTE: cCh = 147; goto INSINGLECHAR;
+ case RTF_RDBLQUOTE: cCh = 148; goto INSINGLECHAR;
INSINGLECHAR:
sFieldStr += ByteString::ConvertToUnicode( cCh,
RTL_TEXTENCODING_MS_1252 );
@@ -990,7 +990,7 @@ INSINGLECHAR:
}
}
- SkipToken( -1 ); // die schliesende Klammer wird "oben" ausgewertet
+ SkipToken( -1 ); // die schliesende Klammer wird "oben" ausgewertet
}
@@ -998,7 +998,7 @@ void SwRTFParser::ReadField()
{
bReadSwFly = false; //#it may be that any uses of this need to be removed and replaced
int nRet = 0;
- int nNumOpenBrakets = 1; // die erste wurde schon vorher erkannt !!
+ int nNumOpenBrakets = 1; // die erste wurde schon vorher erkannt !!
int bFldInst = FALSE, bFldRslt = FALSE;
String sFieldStr, sFieldNm;
BYTE cCh;
@@ -1149,16 +1149,16 @@ void SwRTFParser::ReadField()
}
break;
- case RTF_LINE: cCh = '\n'; goto INSINGLECHAR;
- case RTF_TAB: cCh = '\t'; goto INSINGLECHAR;
- case RTF_SUBENTRYINDEX: cCh = ':'; goto INSINGLECHAR;
- case RTF_EMDASH: cCh = 151; goto INSINGLECHAR;
- case RTF_ENDASH: cCh = 150; goto INSINGLECHAR;
- case RTF_BULLET: cCh = 149; goto INSINGLECHAR;
- case RTF_LQUOTE: cCh = 145; goto INSINGLECHAR;
- case RTF_RQUOTE: cCh = 146; goto INSINGLECHAR;
- case RTF_LDBLQUOTE: cCh = 147; goto INSINGLECHAR;
- case RTF_RDBLQUOTE: cCh = 148; goto INSINGLECHAR;
+ case RTF_LINE: cCh = '\n'; goto INSINGLECHAR;
+ case RTF_TAB: cCh = '\t'; goto INSINGLECHAR;
+ case RTF_SUBENTRYINDEX: cCh = ':'; goto INSINGLECHAR;
+ case RTF_EMDASH: cCh = 151; goto INSINGLECHAR;
+ case RTF_ENDASH: cCh = 150; goto INSINGLECHAR;
+ case RTF_BULLET: cCh = 149; goto INSINGLECHAR;
+ case RTF_LQUOTE: cCh = 145; goto INSINGLECHAR;
+ case RTF_RQUOTE: cCh = 146; goto INSINGLECHAR;
+ case RTF_LDBLQUOTE: cCh = 147; goto INSINGLECHAR;
+ case RTF_RDBLQUOTE: cCh = 148; goto INSINGLECHAR;
INSINGLECHAR:
sFieldStr += ByteString::ConvertToUnicode( cCh,
RTL_TEXTENCODING_MS_1252 );
@@ -1169,7 +1169,7 @@ INSINGLECHAR:
sFieldStr += aToken;
break;
- case RTF_PICT: // Pic-Daten einlesen!
+ case RTF_PICT: // Pic-Daten einlesen!
if( RTFFLD_IMPORT == nRet )
{
Graphic aGrf;
@@ -1220,7 +1220,7 @@ INSINGLECHAR:
if (RTFFLD_IMPORT == nRet && sFieldNm.Len())
InsPicture( sFieldNm );
- SkipToken( -1 ); // die schliesende Klammer wird "oben" ausgewertet
+ SkipToken( -1 ); // die schliesende Klammer wird "oben" ausgewertet
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/filter/rtf/rtffly.cxx b/sw/source/filter/rtf/rtffly.cxx
index 3b30757ffb37..26a2c05176ac 100644
--- a/sw/source/filter/rtf/rtffly.cxx
+++ b/sw/source/filter/rtf/rtffly.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -77,7 +77,7 @@
using namespace ::com::sun::star;
-#define ANCHOR(p) ((SwFmtAnchor*)p)
+#define ANCHOR(p) ((SwFmtAnchor*)p)
// steht in shellio.hxx
extern SwCntntNode* GoNextNds( SwNodeIndex * pIdx, BOOL bChk );
@@ -245,9 +245,9 @@ void SwRTFParser::SetFlysInDoc()
//JP 21.09.98: wenn ein DropCap ist, dann Text im Node belassen, am
- // Absatz das Absatz Attribut setzen. Ggfs noch die
- // FontSize zuruecksetzen, damit das DropCap nicht zu
- // gro? wird.
+ // Absatz das Absatz Attribut setzen. Ggfs noch die
+ // FontSize zuruecksetzen, damit das DropCap nicht zu
+ // gro? wird.
if( pFlySave->nDropAnchor )
{
SwTxtNode* pSttNd = pFlySave->nSttNd.GetNode().GetTxtNode();
@@ -311,7 +311,7 @@ void SwRTFParser::SetFlysInDoc()
if( pNd->IsNoTxtNode() )
{
// die Size muss noch korrigiert werden!
- nAktPageDesc = 0; // Standart PageDesc
+ nAktPageDesc = 0; // Standart PageDesc
if( SFX_ITEM_SET != pFlySave->aFlySet.GetItemState(
RES_FRM_SIZE, FALSE ) )
_SetPictureSize( *(SwNoTxtNode*)pNd, aRg.aStart,
@@ -459,9 +459,9 @@ void SwRTFParser::SetFlysInDoc()
//JP 02.08.99: that is wrong. The anchor is ever the NEXT!
//JP 05.08.99: there are an Bug in the ExportFilter which will
- // be fixed in the Version 517 - by SWG-Export
- // the fly will be after the paragraph - but in RTF
- // the flys will be before the paragraph.
+ // be fixed in the Version 517 - by SWG-Export
+ // the fly will be after the paragraph - but in RTF
+ // the flys will be before the paragraph.
if( !bSwPageDesc || 5430 < GetVersionNo() )
pFlySave->nSttNd++;
@@ -610,7 +610,7 @@ void SwRTFParser::ReadFly( int nToken, SfxItemSet* pSet )
aSz.SetHeightSizeType( ((SwFmtFrmSize*)pItem)->GetHeightSizeType() );
aSz.SetHeight( ((SwFmtFrmSize*)pItem)->GetHeight() );
}
- if( MINFLY > nTokenValue ) nTokenValue = MINFLY;
+ if( MINFLY > nTokenValue ) nTokenValue = MINFLY;
aSet.Put( aSz );
}
break;
@@ -629,7 +629,7 @@ void SwRTFParser::ReadFly( int nToken, SfxItemSet* pSet )
nTokenValue = -nTokenValue;
aSz.SetHeightSizeType( ATT_FIX_SIZE );
}
- if( MINFLY > nTokenValue ) nTokenValue = MINFLY;
+ if( MINFLY > nTokenValue ) nTokenValue = MINFLY;
aSz.SetHeight( nTokenValue );
aSet.Put( aSz );
}
@@ -644,8 +644,8 @@ void SwRTFParser::ReadFly( int nToken, SfxItemSet* pSet )
{
SvxULSpaceItem aUL( RES_UL_SPACE );
SvxLRSpaceItem aLR( RES_LR_SPACE );
- aUL.SetUpper( nVal ); aUL.SetLower( nVal );
- aLR.SetLeft( nVal ); aLR.SetRight( nVal );
+ aUL.SetUpper( nVal ); aUL.SetLower( nVal );
+ aLR.SetLeft( nVal ); aLR.SetRight( nVal );
pSet->Put( aUL );
pSet->Put( aLR );
}
@@ -654,14 +654,14 @@ void SwRTFParser::ReadFly( int nToken, SfxItemSet* pSet )
case RTF_DFRMTXTX:
{
SvxLRSpaceItem aLR( RES_LR_SPACE );
- aLR.SetLeft( nVal ); aLR.SetRight( nVal );
+ aLR.SetLeft( nVal ); aLR.SetRight( nVal );
pSet->Put( aLR );
}
break;
case RTF_DFRMTXTY:
{
SvxULSpaceItem aUL( RES_UL_SPACE );
- aUL.SetUpper( nVal ); aUL.SetLower( nVal );
+ aUL.SetUpper( nVal ); aUL.SetLower( nVal );
pSet->Put( aUL );
}
break;
@@ -718,7 +718,7 @@ void SwRTFParser::ReadFly( int nToken, SfxItemSet* pSet )
aFrmDir.SetValue( FRMDIR_VERT_TOP_RIGHT );
break;
- case RTF_DROPCAPLI: // Dropcaps !!
+ case RTF_DROPCAPLI: // Dropcaps !!
if( bChkDropCap )
{
nDropCapLines = USHORT( nTokenValue );
@@ -738,8 +738,8 @@ void SwRTFParser::ReadFly( int nToken, SfxItemSet* pSet )
// fuer die "alten" Writer - haben die Spaltigkeit falsch heraus-
// geschrieben
- case RTF_COLS: nCols = USHORT( nTokenValue ); break;
- case RTF_COLSX: nColSpace = USHORT( nTokenValue ); break;
+ case RTF_COLS: nCols = USHORT( nTokenValue ); break;
+ case RTF_COLSX: nColSpace = USHORT( nTokenValue ); break;
case RTF_COLNO:
nAktCol = USHORT( nTokenValue );
if( RTF_COLW == GetNextToken() )
@@ -748,7 +748,7 @@ void SwRTFParser::ReadFly( int nToken, SfxItemSet* pSet )
if( RTF_COLSR == GetNextToken() )
nSpace = USHORT( nTokenValue );
else
- SkipToken( -1 ); // wieder zurueck
+ SkipToken( -1 ); // wieder zurueck
if( --nAktCol == ( aColumns.Count() / 2 ) )
{
@@ -766,7 +766,7 @@ void SwRTFParser::ReadFly( int nToken, SfxItemSet* pSet )
if( RTF_SHADINGDEF == (nToken & ~0xff) )
{
ReadBackgroundAttr( nToken, aSet );
- GetNextToken(); // Klammer ueberlesen
+ GetNextToken(); // Klammer ueberlesen
}
else
nSkip = -1;
@@ -777,7 +777,7 @@ void SwRTFParser::ReadFly( int nToken, SfxItemSet* pSet )
bReadSwFly = true; // alles kommt in den akt. Fly
SvxLRSpaceItem aLR( RES_LR_SPACE );
SvxULSpaceItem aUL( RES_UL_SPACE );
- nCols = USHRT_MAX; // neu aufsetzen
+ nCols = USHRT_MAX; // neu aufsetzen
nColSpace = USHRT_MAX;
do {
nVal = USHORT(nTokenValue);
@@ -829,10 +829,10 @@ void SwRTFParser::ReadFly( int nToken, SfxItemSet* pSet )
aHori.SetRelationOrient( aHO.GetRelation() );
}
break;
- case RTF_FLYOUTLEFT: aLR.SetLeft( nVal ); break;
- case RTF_FLYOUTRIGHT: aLR.SetRight( nVal ); break;
- case RTF_FLYOUTUPPER: aUL.SetUpper( nVal ); break;
- case RTF_FLYOUTLOWER: aUL.SetLower( nVal ); break;
+ case RTF_FLYOUTLEFT: aLR.SetLeft( nVal ); break;
+ case RTF_FLYOUTRIGHT: aLR.SetRight( nVal ); break;
+ case RTF_FLYOUTUPPER: aUL.SetUpper( nVal ); break;
+ case RTF_FLYOUTLOWER: aUL.SetLower( nVal ); break;
case RTF_FLYANCHOR:
switch( GetNextToken() )
{
@@ -853,11 +853,11 @@ void SwRTFParser::ReadFly( int nToken, SfxItemSet* pSet )
break;
// JP 26.09.94: die Bindung an die Spalte gibt es nicht mehr !!
-// case RTF_FLY_COLUMN:
+// case RTF_FLY_COLUMN:
}
break;
- case RTF_COLS: nCols = USHORT( nTokenValue ); break;
- case RTF_COLSX: nColSpace = USHORT( nTokenValue ); break;
+ case RTF_COLS: nCols = USHORT( nTokenValue ); break;
+ case RTF_COLSX: nColSpace = USHORT( nTokenValue ); break;
case RTF_COLNO:
nAktCol = USHORT( nTokenValue );
if( RTF_COLW == GetNextToken() )
@@ -866,7 +866,7 @@ void SwRTFParser::ReadFly( int nToken, SfxItemSet* pSet )
if( RTF_COLSR == GetNextToken() )
nSpace = USHORT( nTokenValue );
else
- SkipToken( -1 ); // wieder zurueck
+ SkipToken( -1 ); // wieder zurueck
if( --nAktCol == ( aColumns.Count() / 2 ) )
{
@@ -909,7 +909,7 @@ void SwRTFParser::ReadFly( int nToken, SfxItemSet* pSet )
}
else
SkipGroup();
- GetNextToken(); // Klammer ueberlesen
+ GetNextToken(); // Klammer ueberlesen
break;
}
} while( IsParserWorking() &&
@@ -996,7 +996,7 @@ void SwRTFParser::ReadFly( int nToken, SfxItemSet* pSet )
pSet->Put( aCol );
}
- if( pSet != &aSet ) // wurde der Set uebergeben, dann wars das
+ if( pSet != &aSet ) // wurde der Set uebergeben, dann wars das
return ;
// ein neues FlyFormat anlegen oder das alte benutzen ?
@@ -1062,8 +1062,8 @@ void SwRTFParser::ReadFly( int nToken, SfxItemSet* pSet )
nToken = GetNextToken();
// BUG 22036: kommt zwischen Fly-Attributen ein unbekanntes,
- // dann erzeuge nie 2 FlyFrames, sondern fasse
- // beide zusammen !!!
+ // dann erzeuge nie 2 FlyFrames, sondern fasse
+ // beide zusammen !!!
while( RTF_APOCTL == ( nToken & ~(0xff | RTF_SWGDEFS) ))
{
if( RTF_FLY_INPARA == nToken )
@@ -1113,8 +1113,8 @@ void SwRTFParser::ReadFly( int nToken, SfxItemSet* pSet )
pPam->GetPoint()->nNode == pFlySave->nSttNd &&
!pPam->GetPoint()->nContent.GetIndex() )
{
-// // dann erzeuge mindestens einen leeren TextNode
-// pDoc->AppendTxtNode(*pPam);
+// // dann erzeuge mindestens einen leeren TextNode
+// pDoc->AppendTxtNode(*pPam);
// dann zerstoere den FlySave wieder.
aFlyArr.DeleteAndDestroy( --nFlyArrCnt );
@@ -1295,10 +1295,10 @@ void SwRTFParser::InsPicture( const String& rGrfNm, const Graphic* pGrf,
}
SwFlyFrmFmt* pFlyFmt = pDoc->Insert( *pPam,
- rGrfNm, aEmptyStr, // Name der Graphic !!
+ rGrfNm, aEmptyStr, // Name der Graphic !!
pGrf,
- &aFlySet, // Attribute fuer den FlyFrm
- pGrfAttrSet, NULL ); // Attribute fuer die Grafik
+ &aFlySet, // Attribute fuer den FlyFrm
+ pGrfAttrSet, NULL ); // Attribute fuer die Grafik
pGrfNd = pDoc->GetNodes()[ pFlyFmt->GetCntnt().GetCntntIdx()->
GetIndex()+1 ]->GetGrfNode();
@@ -1321,11 +1321,11 @@ void SwRTFParser::InsPicture( const String& rGrfNm, const Graphic* pGrf,
{
SwXFrame::GetOrCreateSdrObject( pFlyFmt );
pDoc->SetFlyFrmTitle( *(pFlyFmt), aIt->second );
- }
+ }
++aIt;
}
- }
-
+ }
+
}
if( pGrfAttrSet )
@@ -1391,7 +1391,7 @@ void SwRTFParser::_SetPictureSize( const SwNoTxtNode& rNd,
}
//JP 8.11.2001: bug 94450 - if no size exist, then the size is set by
- // the swapin of the graphic.
+ // the swapin of the graphic.
SwGrfNode* pGrfNd;
if( !aSize.Width() && !aSize.Height() &&
0 != (pGrfNd = (SwGrfNode*)rNd.GetGrfNode() ) && pGrfNd->IsGrfLink() )
@@ -1504,7 +1504,7 @@ void SwRTFParser::ReadOLEData()
SvxRTFPictureType aPicType, aOleType;
int nToken, bValidOle = TRUE, bWeiter = TRUE;
- int nOpenBrakets = 1; // die erste wurde schon vorher erkannt !!
+ int nOpenBrakets = 1; // die erste wurde schon vorher erkannt !!
String* pStr = 0;
String sObjClass, sObjName, sObjData;
@@ -1515,7 +1515,7 @@ void SwRTFParser::ReadOLEData()
USHORT nVal = USHORT( nTokenValue );
switch( nToken )
{
- case '}': --nOpenBrakets; pStr = 0; break;
+ case '}': --nOpenBrakets; pStr = 0; break;
case '{':
{
if( RTF_IGNOREFLAG != GetNextToken() )
@@ -1536,19 +1536,19 @@ void SwRTFParser::ReadOLEData()
break;
case RTF_OBJECT:
- case RTF_OBJEMB: // default ist embedded
- case RTF_LINKSELF: // ??
- case RTF_OBJLOCK: // ??
- case RTF_OBJUPDATE: // ??
- case RTF_OBJTIME: // ??
+ case RTF_OBJEMB: // default ist embedded
+ case RTF_LINKSELF: // ??
+ case RTF_OBJLOCK: // ??
+ case RTF_OBJUPDATE: // ??
+ case RTF_OBJTIME: // ??
case RTF_OBJSETSIZE:
case RTF_OBJALIGN:
case RTF_OBJTRANSY:
case RTF_OBJATTPH:
break;
- case RTF_OBJLINK: // ?? welche Daten sind das ??
- case RTF_OBJAUTLINK: // ?? -""- ??
+ case RTF_OBJLINK: // ?? welche Daten sind das ??
+ case RTF_OBJAUTLINK: // ?? -""- ??
case RTF_OBJSUB:
case RTF_OBJPUB:
case RTF_OBJICEMB:
@@ -1556,7 +1556,7 @@ void SwRTFParser::ReadOLEData()
case RTF_OBJHTML:
case RTF_OBJALIAS:
case RTF_OBJSECT:
- bValidOle = FALSE; // diese Typen koennen wir nicht
+ bValidOle = FALSE; // diese Typen koennen wir nicht
break;
case RTF_OBJCLASS:
@@ -1579,21 +1579,21 @@ void SwRTFParser::ReadOLEData()
bWeiter = FALSE;
}
break;
- case RTF_RSLTBMP: // diese sollten wir ignorieren
+ case RTF_RSLTBMP: // diese sollten wir ignorieren
case RTF_RSLTMERGE:
case RTF_RSLTPICT:
case RTF_RSLTRTF:
case RTF_RSLTTXT:
break;
- case RTF_OBJW: aOleType.nWidth = nVal; break;
- case RTF_OBJH: aOleType.nHeight = nVal; break;
- case RTF_OBJCROPT: aOleType.nCropT = (short)nTokenValue; break;
- case RTF_OBJCROPB: aOleType.nCropB = (short)nTokenValue; break;
- case RTF_OBJCROPL: aOleType.nCropL = (short)nTokenValue; break;
- case RTF_OBJCROPR: aOleType.nCropR = (short)nTokenValue; break;
- case RTF_OBJSCALEX: aOleType.nScalX = nVal; break;
- case RTF_OBJSCALEY: aOleType.nScalY = nVal; break;
+ case RTF_OBJW: aOleType.nWidth = nVal; break;
+ case RTF_OBJH: aOleType.nHeight = nVal; break;
+ case RTF_OBJCROPT: aOleType.nCropT = (short)nTokenValue; break;
+ case RTF_OBJCROPB: aOleType.nCropB = (short)nTokenValue; break;
+ case RTF_OBJCROPL: aOleType.nCropL = (short)nTokenValue; break;
+ case RTF_OBJCROPR: aOleType.nCropR = (short)nTokenValue; break;
+ case RTF_OBJSCALEX: aOleType.nScalX = nVal; break;
+ case RTF_OBJSCALEY: aOleType.nScalY = nVal; break;
case RTF_TEXTTOKEN:
if( 1 < nOpenBrakets && pStr )
@@ -1618,24 +1618,24 @@ void SwRTFParser::ReadOLEData()
if( bValidOle )
{
- bValidOle = FALSE; // erstmal
+ bValidOle = FALSE; // erstmal
}
- if( !bWeiter ) // dann stehen wir noch im Result
+ if( !bWeiter ) // dann stehen wir noch im Result
{
// ist das Ole-Object Ok?
// -> dann solange SkipGroup rufen, bis zur letzten
- // schliessenden Klammer
+ // schliessenden Klammer
// ansonsten alle Token verarbeiten, bis zur letzten
- // schliessenden Klammer
+ // schliessenden Klammer
bWeiter = TRUE;
while( nOpenBrakets && IsParserWorking() && bWeiter )
{
switch( nToken = GetNextToken() )
{
- case '}': --nOpenBrakets; break;
- case '{': ++nOpenBrakets; break;
+ case '}': --nOpenBrakets; break;
+ case '{': ++nOpenBrakets; break;
}
if( nOpenBrakets && !bValidOle )
NextToken( nToken );
@@ -1645,7 +1645,7 @@ void SwRTFParser::ReadOLEData()
if( !bValidOle && '}' != nToken )
SkipGroup();
- SkipToken( -1 ); // die schliesende Klammer wird "oben" ausgewertet
+ SkipToken( -1 ); // die schliesende Klammer wird "oben" ausgewertet
}
#endif
diff --git a/sw/source/filter/rtf/rtfnum.cxx b/sw/source/filter/rtf/rtfnum.cxx
index 2504997518f4..e00c1df65eb3 100644
--- a/sw/source/filter/rtf/rtfnum.cxx
+++ b/sw/source/filter/rtf/rtfnum.cxx
@@ -68,7 +68,7 @@ SfxItemSet& GetNumChrFmt( SwDoc& rDoc, SwNumRule& rRule, BYTE nNumLvl )
void SwRTFParser::ReadListLevel( SwNumRule& rRule, BYTE nNumLvl )
{
int nToken;
- int nNumOpenBrakets = 1; // die erste wurde schon vorher erkannt !!
+ int nNumOpenBrakets = 1; // die erste wurde schon vorher erkannt !!
int nLvlTxtLevel = 0, nLvlNumberLevel = 0;
String sLvlText, sLvlNumber;
SwNumFmt* pCurNumFmt;
@@ -114,9 +114,9 @@ void SwRTFParser::ReadListLevel( SwNumRule& rRule, BYTE nNumLvl )
// Unknown und alle bekannten nicht ausgewerteten Gruppen
// sofort ueberspringen
else if( RTF_UNKNOWNCONTROL != ( nToken = GetNextToken() ))
-// RTF_PANOSE != nToken && RTF_FALT != nToken &&
-// RTF_FALT != nToken && RTF_FNAME != nToken &&
-// RTF_FONTEMB != nToken && RTF_FONTFILE != nToken )
+// RTF_PANOSE != nToken && RTF_FALT != nToken &&
+// RTF_FALT != nToken && RTF_FNAME != nToken &&
+// RTF_FONTEMB != nToken && RTF_FONTFILE != nToken )
nToken = SkipToken( -2 );
else
{
@@ -136,12 +136,12 @@ void SwRTFParser::ReadListLevel( SwNumRule& rRule, BYTE nNumLvl )
sal_Int16 eType = SVX_NUM_ARABIC;
switch( nTokenValue )
{
- case 1: eType = SVX_NUM_ROMAN_UPPER; break;
- case 2: eType = SVX_NUM_ROMAN_LOWER; break;
- case 3: eType = SVX_NUM_CHARS_UPPER_LETTER_N; break;
- case 4: eType = SVX_NUM_CHARS_LOWER_LETTER_N; break;
+ case 1: eType = SVX_NUM_ROMAN_UPPER; break;
+ case 2: eType = SVX_NUM_ROMAN_LOWER; break;
+ case 3: eType = SVX_NUM_CHARS_UPPER_LETTER_N; break;
+ case 4: eType = SVX_NUM_CHARS_LOWER_LETTER_N; break;
case 255:
- case 23: eType = SVX_NUM_CHAR_SPECIAL; break;
+ case 23: eType = SVX_NUM_CHAR_SPECIAL; break;
}
if( pCurNumFmt )
pCurNumFmt->SetNumberingType(eType);
@@ -153,8 +153,8 @@ void SwRTFParser::ReadListLevel( SwNumRule& rRule, BYTE nNumLvl )
SvxAdjust eAdj = SVX_ADJUST_LEFT;
switch( nTokenValue )
{
- case 1: eAdj = SVX_ADJUST_CENTER; break;
- case 2: eAdj = SVX_ADJUST_RIGHT; break;
+ case 1: eAdj = SVX_ADJUST_CENTER; break;
+ case 2: eAdj = SVX_ADJUST_RIGHT; break;
}
if( pCurNumFmt )
pCurNumFmt->SetNumAdjust( eAdj );
@@ -294,7 +294,7 @@ void SwRTFParser::ReadListLevel( SwNumRule& rRule, BYTE nNumLvl )
void SwRTFParser::ReadListTable()
{
int nToken;
- int nNumOpenBrakets = 1; // die erste wurde schon vorher erkannt !!
+ int nNumOpenBrakets = 1; // die erste wurde schon vorher erkannt !!
bNewNumList = TRUE;
BYTE nNumLvl = 0;
@@ -305,7 +305,7 @@ void SwRTFParser::ReadListTable()
{
switch( ( nToken = GetNextToken() ))
{
- case '}': if( --nNumOpenBrakets && IsParserWorking() )
+ case '}': if( --nNumOpenBrakets && IsParserWorking() )
{
// Style konnte vollstaendig gelesen werden,
// also ist das noch ein stabiler Status
@@ -326,9 +326,9 @@ void SwRTFParser::ReadListTable()
// Unknown und alle bekannten nicht ausgewerteten Gruppen
// sofort ueberspringen
else if( RTF_UNKNOWNCONTROL != ( nToken = GetNextToken() ))
-// RTF_PANOSE != nToken && RTF_FALT != nToken &&
-// RTF_FALT != nToken && RTF_FNAME != nToken &&
-// RTF_FONTEMB != nToken && RTF_FONTFILE != nToken )
+// RTF_PANOSE != nToken && RTF_FALT != nToken &&
+// RTF_FALT != nToken && RTF_FNAME != nToken &&
+// RTF_FONTEMB != nToken && RTF_FONTFILE != nToken )
nToken = SkipToken( -2 );
else
{
@@ -361,8 +361,8 @@ void SwRTFParser::ReadListTable()
}
break;
- case RTF_LISTID: aEntry.nListId = nTokenValue; break;
- case RTF_LISTTEMPLATEID: aEntry.nListTemplateId = nTokenValue; break;
+ case RTF_LISTID: aEntry.nListId = nTokenValue; break;
+ case RTF_LISTTEMPLATEID: aEntry.nListTemplateId = nTokenValue; break;
case RTF_LISTRESTARTHDN:
break;
@@ -398,7 +398,7 @@ void SwRTFParser::ReadListTable()
if( pCurRule && pCurRule->IsContinusNum() )
lcl_ExpandNumFmts( *pCurRule );
- SkipToken( -1 ); // die schliesende Klammer wird "oben" ausgewertet
+ SkipToken( -1 ); // die schliesende Klammer wird "oben" ausgewertet
}
BOOL lcl_IsEqual( SwNumRule* pOrigRule, SwNumRule* pRule )
@@ -413,7 +413,7 @@ BOOL lcl_IsEqual( SwNumRule* pOrigRule, SwNumRule* pRule )
for( BYTE n = 0; bRet && n < MAXLEVEL; ++n )
{
const SwNumFmt* pOFmt = pOrigRule->GetNumFmt( n ),
- * pFmt = pRule->GetNumFmt( n );
+ * pFmt = pRule->GetNumFmt( n );
if( pFmt && pOFmt )
{
SwCharFmt* pOCFmt = pOFmt->GetCharFmt(),
@@ -443,7 +443,7 @@ BOOL lcl_IsEqual( SwNumRule* pOrigRule, SwNumRule* pRule )
void SwRTFParser::ReadListOverrideTable()
{
int nToken;
- int nNumOpenBrakets = 1; // die erste wurde schon vorher erkannt !!
+ int nNumOpenBrakets = 1; // die erste wurde schon vorher erkannt !!
SwListEntry aEntry;
SwNumRule* pRule = 0, *pOrigRule = 0;
BYTE nNumLvl = 0;
@@ -533,9 +533,9 @@ void SwRTFParser::ReadListOverrideTable()
}
break;
- case RTF_LISTOVERRIDE: aEntry.Clear(); break;
- case RTF_LISTID: aEntry.nListId = nTokenValue; break;
- case RTF_LS: aEntry.nListNo = nTokenValue; break;
+ case RTF_LISTOVERRIDE: aEntry.Clear(); break;
+ case RTF_LISTID: aEntry.nListId = nTokenValue; break;
+ case RTF_LS: aEntry.nListNo = nTokenValue; break;
case RTF_LISTOVERRIDECOUNT:
if( nTokenValue )
{
@@ -662,7 +662,7 @@ void SwRTFParser::ReadListOverrideTable()
} while( 0 != (pStyle = GetStyleTbl().Next()) );
}
- SkipToken( -1 ); // die schliesende Klammer wird "oben" ausgewertet
+ SkipToken( -1 ); // die schliesende Klammer wird "oben" ausgewertet
}
SwNumRule* SwRTFParser::GetNumRuleOfListNo( long nListNo, BOOL bRemoveFromList )
@@ -783,7 +783,7 @@ SwNumRule *SwRTFParser::ReadNumSecLevel( int nToken )
{
switch( nToken = GetNextToken() )
{
- case RTF_PNLVL: nListNo = 3;
+ case RTF_PNLVL: nListNo = 3;
bContinus = FALSE;
nLevel = MAXLEVEL <= (unsigned long) nTokenValue
? MAXLEVEL - 1
@@ -847,7 +847,7 @@ SwNumRule *SwRTFParser::ReadNumSecLevel( int nToken )
}
FontUnderline eUnderline;
- int nNumOpenBrakets = 1; // die erste wurde schon vorher erkannt !!
+ int nNumOpenBrakets = 1; // die erste wurde schon vorher erkannt !!
while( nNumOpenBrakets && IsParserWorking() )
{
switch( ( nToken = GetNextToken() ))
@@ -885,11 +885,11 @@ SwNumRule *SwRTFParser::ReadNumSecLevel( int nToken )
case RTF_PNCARD:
case RTF_PNORD:
case RTF_PNORDT:
- case RTF_PNDEC: pCurNumFmt->SetNumberingType(SVX_NUM_ARABIC); break;
- case RTF_PNUCLTR: pCurNumFmt->SetNumberingType(SVX_NUM_CHARS_UPPER_LETTER_N); break;
- case RTF_PNUCRM: pCurNumFmt->SetNumberingType(SVX_NUM_ROMAN_UPPER); break;
- case RTF_PNLCLTR: pCurNumFmt->SetNumberingType(SVX_NUM_CHARS_LOWER_LETTER_N); break;
- case RTF_PNLCRM: pCurNumFmt->SetNumberingType(SVX_NUM_ROMAN_LOWER); break;
+ case RTF_PNDEC: pCurNumFmt->SetNumberingType(SVX_NUM_ARABIC); break;
+ case RTF_PNUCLTR: pCurNumFmt->SetNumberingType(SVX_NUM_CHARS_UPPER_LETTER_N); break;
+ case RTF_PNUCRM: pCurNumFmt->SetNumberingType(SVX_NUM_ROMAN_UPPER); break;
+ case RTF_PNLCLTR: pCurNumFmt->SetNumberingType(SVX_NUM_CHARS_LOWER_LETTER_N); break;
+ case RTF_PNLCRM: pCurNumFmt->SetNumberingType(SVX_NUM_ROMAN_LOWER); break;
case RTF_PNF:
{
@@ -998,9 +998,9 @@ NUMATTR_SETUNDERLINE:
}
break;
- case RTF_PNQC: pCurNumFmt->SetNumAdjust( SVX_ADJUST_CENTER ); break;
- case RTF_PNQL: pCurNumFmt->SetNumAdjust( SVX_ADJUST_LEFT ); break;
- case RTF_PNQR: pCurNumFmt->SetNumAdjust( SVX_ADJUST_RIGHT ); break;
+ case RTF_PNQC: pCurNumFmt->SetNumAdjust( SVX_ADJUST_CENTER ); break;
+ case RTF_PNQL: pCurNumFmt->SetNumAdjust( SVX_ADJUST_LEFT ); break;
+ case RTF_PNQR: pCurNumFmt->SetNumAdjust( SVX_ADJUST_RIGHT ); break;
case RTF_PNSTART:
pCurNumFmt->SetStart( USHORT( nTokenValue ));
@@ -1009,7 +1009,7 @@ NUMATTR_SETUNDERLINE:
case RTF_PNNUMONCE:
case RTF_PNACROSS:
case RTF_PNHANG:
- case RTF_PNRESTART: break;
+ case RTF_PNRESTART: break;
case RTF_PNTXTA:
{
@@ -1070,7 +1070,7 @@ NUMATTR_SETUNDERLINE:
}
}
- SkipToken( -1 ); // die schliesende Klammer wird "oben" ausgewertet
+ SkipToken( -1 ); // die schliesende Klammer wird "oben" ausgewertet
return pCurRule;
}
diff --git a/sw/source/filter/rtf/rtftbl.cxx b/sw/source/filter/rtf/rtftbl.cxx
index d2fa7f37368e..e3b1e644edbb 100644
--- a/sw/source/filter/rtf/rtftbl.cxx
+++ b/sw/source/filter/rtf/rtftbl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -145,7 +145,7 @@ void SwRTFParser::ReadTable( int nToken )
if (CantUseTables())
{
// alle Tabellen-Tokens ueberlesen
- nToken = GetNextToken(); // RTF_TROWD ueberlesen
+ nToken = GetNextToken(); // RTF_TROWD ueberlesen
do {
if( RTF_TABLEDEF != (nToken & ~(0xff | RTF_SWGDEFS)) &&
RTF_UNKNOWNCONTROL != nToken )
@@ -175,7 +175,7 @@ void SwRTFParser::ReadTable( int nToken )
if( RTF_TROWD == nToken || !pTableNode )
{
if( RTF_TROWD == nToken )
- nToken = GetNextToken(); // RTF_TROWD ueberlesen
+ nToken = GetNextToken(); // RTF_TROWD ueberlesen
// Flags fuer die gemergten Boxen loeschen
aMergeBoxes.Remove( 0, aMergeBoxes.Count() );
@@ -458,7 +458,7 @@ void SwRTFParser::ReadTable( int nToken )
case RTF_CLTXLRTB:
case RTF_CLTXTBRL:
- case RTF_INTBL: // das wissen wir !
+ case RTF_INTBL: // das wissen wir !
case RTF_CLMGF:
case RTF_CLVMGF:
case RTF_CLVMRG:
@@ -529,7 +529,7 @@ void SwRTFParser::ReadTable( int nToken )
int nC = aMergeBackup.Count();
for (USHORT i = 0; i < nC; ++i)
aMergeBoxes.Insert(aMergeBackup[i], i);
- SkipToken( -1 ); // zum Letzen gueltigen zurueck
+ SkipToken( -1 ); // zum Letzen gueltigen zurueck
return;
}
@@ -635,9 +635,9 @@ void SwRTFParser::ReadTable( int nToken )
}
aBoxFmts.Remove( 0, n );
- if( aBoxFmts.Count() ) // es muessen noch neue zugefuegt werden
+ if( aBoxFmts.Count() ) // es muessen noch neue zugefuegt werden
nAktBox = n;
- else // es mussen noch Boxen geloescht werden
+ else // es mussen noch Boxen geloescht werden
{
// remove ContentIndex of other Bound
pPam->SetMark(); pPam->DeleteMark();
@@ -727,7 +727,7 @@ void SwRTFParser::ReadTable( int nToken )
}
else
{
- SkipToken( -1 ); // zum Letzen gueltigen zurueck
+ SkipToken( -1 ); // zum Letzen gueltigen zurueck
return;
}
@@ -832,7 +832,7 @@ void SwRTFParser::ReadTable( int nToken )
OSL_ENSURE(!bFailure, "RTF Table failure");
if (bFailure)
{
- SkipToken( -1 ); // zum Letzen gueltigen zurueck
+ SkipToken( -1 ); // zum Letzen gueltigen zurueck
return;
}
@@ -867,7 +867,7 @@ void SwRTFParser::ReadTable( int nToken )
pStk->MoveFullNode(aOldPos, aNewPos);
}
}
- SkipToken( -1 ); // zum Letzen gueltigen zurueck
+ SkipToken( -1 ); // zum Letzen gueltigen zurueck
}
// in die naechste Box dieser Line (opt.: falls es nicht die letzte ist)
@@ -945,7 +945,7 @@ void SwRTFParser::NewTblLine()
if( !bMakeCopy &&
64000 < pTableNode->GetTable().GetTabSortBoxes().Count() )
{
- bMakeCopy = TRUE; // spaetestens jetzt eine neue anfangen!
+ bMakeCopy = TRUE; // spaetestens jetzt eine neue anfangen!
}
if( bMakeCopy )
@@ -964,7 +964,7 @@ void SwRTFParser::NewTblLine()
pLns = &pTableNode->GetTable().GetTabLines();
}
else
-// pDoc->InsertRow( aBoxes );
+// pDoc->InsertRow( aBoxes );
pTableNode->GetTable().AppendRow( pDoc );
pBox = (*pLns)[ pLns->Count()-1 ]->GetTabBoxes()[0];
@@ -1018,8 +1018,8 @@ void SwRTFParser::CheckInsNewTblLine()
{
if( nInsTblRow > GetOpenBrakets() || IsPardTokenRead() )
nInsTblRow = USHRT_MAX;
- else if( !pTableNode ) // Tabelle nicht mehr vorhanden ?
- NewTblLine(); // evt. Line copieren
+ else if( !pTableNode ) // Tabelle nicht mehr vorhanden ?
+ NewTblLine(); // evt. Line copieren
}
}
diff --git a/sw/source/filter/rtf/swparrtf.cxx b/sw/source/filter/rtf/swparrtf.cxx
index e0aeb4e45594..63e7e1be2011 100644
--- a/sw/source/filter/rtf/swparrtf.cxx
+++ b/sw/source/filter/rtf/swparrtf.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -1881,7 +1881,7 @@ void SwRTFParser::NextToken( int nToken )
case RTF_REVDTTM:
if (pRedlineInsert != NULL)
pRedlineInsert->aStamp = sw::ms::DTTM2DateTime(nTokenValue);
-
+
break;
case RTF_REVDTTMDEL:
@@ -2737,7 +2737,7 @@ void SwRTFParser::MakeStyleTab()
const SwTxtFmtColls& rColls = *pDoc->GetTxtFmtColls();
for( USHORT n = rColls.Count(); n; )
//if( MAXLEVEL > (nLvl = rColls[ --n ]->GetOutlineLevel() ))//#outline level,zhaojianwei
- // nValidOutlineLevels |= 1 << nLvl;
+ // nValidOutlineLevels |= 1 << nLvl;
if( rColls[ --n ]->IsAssignedToListLevelOfOutlineStyle())
nValidOutlineLevels |= 1 << rColls[ n ]->GetAssignedOutlineStyleLevel();//<-end,zhaojianwei
}
@@ -3918,11 +3918,11 @@ SwTxtFmtColl* SwRTFParser::MakeColl(const String& rName, USHORT nPos,
if( !nPos )
{
pColl = pDoc->GetTxtCollFromPool( RES_POOLCOLL_STANDARD, false );
- //pColl->SetOutlineLevel( nOutlineLevel ); //#outline level,removed by zhaojianwei
- if(nOutlineLevel < MAXLEVEL ) //->add by zhaojianwei
+ //pColl->SetOutlineLevel( nOutlineLevel ); //#outline level,removed by zhaojianwei
+ if(nOutlineLevel < MAXLEVEL ) //->add by zhaojianwei
pColl->AssignToListLevelOfOutlineStyle( nOutlineLevel );
else
- pColl->DeleteAssignmentToListLevelOfOutlineStyle(); //<-end,zhaojianwei
+ pColl->DeleteAssignmentToListLevelOfOutlineStyle(); //<-end,zhaojianwei
return pColl;
}
@@ -3946,11 +3946,11 @@ SwTxtFmtColl* SwRTFParser::MakeColl(const String& rName, USHORT nPos,
if (!rbCollExist)
{
- //pColl->SetOutlineLevel( nOutlineLevel ); //#outline level,removed by zhaojianwei
- if(nOutlineLevel < MAXLEVEL) //->add by zhaojianwei
+ //pColl->SetOutlineLevel( nOutlineLevel ); //#outline level,removed by zhaojianwei
+ if(nOutlineLevel < MAXLEVEL) //->add by zhaojianwei
pColl->AssignToListLevelOfOutlineStyle( nOutlineLevel );
else
- pColl->DeleteAssignmentToListLevelOfOutlineStyle(); //<-end,zhaojianwei
+ pColl->DeleteAssignmentToListLevelOfOutlineStyle(); //<-end,zhaojianwei
}
return pColl;
diff --git a/sw/source/filter/rtf/swparrtf.hxx b/sw/source/filter/rtf/swparrtf.hxx
index c6bd7bdbc44c..b995d4dedbbd 100644
--- a/sw/source/filter/rtf/swparrtf.hxx
+++ b/sw/source/filter/rtf/swparrtf.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -90,7 +90,7 @@ class SwNodeIdx : public SvxNodeIdx
SwNodeIndex aIdx;
public:
SwNodeIdx( const SwNodeIndex& rIdx ) : aIdx( rIdx ) {}
- virtual ULONG GetIdx() const;
+ virtual ULONG GetIdx() const;
virtual SvxNodeIdx* Clone() const;
};
@@ -113,9 +113,9 @@ class SwxPosition : public SvxPosition
{
SwPaM* pPam;
public:
- SwxPosition( SwPaM* pCrsr ) : pPam( pCrsr ) {}
+ SwxPosition( SwPaM* pCrsr ) : pPam( pCrsr ) {}
- virtual ULONG GetNodeIdx() const;
+ virtual ULONG GetNodeIdx() const;
virtual xub_StrLen GetCntIdx() const;
// erzeuge von sich selbst eine Kopie
@@ -128,11 +128,11 @@ public:
// zum zwischenspeichern der Flys:
struct SwFlySave
{
- SfxItemSet aFlySet;
- SwNodeIndex nSttNd, nEndNd;
- xub_StrLen nEndCnt;
- SwTwips nPageWidth;
- USHORT nDropLines, nDropAnchor;
+ SfxItemSet aFlySet;
+ SwNodeIndex nSttNd, nEndNd;
+ xub_StrLen nEndCnt;
+ SwTwips nPageWidth;
+ USHORT nDropLines, nDropAnchor;
SwFlySave( const SwPaM& rPam, SfxItemSet& rSet );
int IsEqualFly( const SwPaM& rPos, SfxItemSet& rSet );
@@ -301,8 +301,8 @@ class SwRTFParser : public SvxRTFParser
sw::util::InsertedTablesManager maInsertedTables;
SwRTFStyleTbl aTxtCollTbl;
SwRTFCharStyleTbl aCharFmtTbl;
- SwFlySaveArr aFlyArr; // Flys als Letzes im Doc setzen
- SvBools aMergeBoxes; // Flags fuer gemergte Zellen
+ SwFlySaveArr aFlyArr; // Flys als Letzes im Doc setzen
+ SvBools aMergeBoxes; // Flags fuer gemergte Zellen
SwListArr aListArr;
SvPtrarr aTblFmts;
SvPtrarr aRubyCharFmts;
@@ -314,9 +314,9 @@ class SwRTFParser : public SvxRTFParser
SwTableNode* pTableNode, *pOldTblNd; // fuers Lesen von Tabellen: akt. Tab
SwNodeIndex* pSttNdIdx;
SwNodeIndex* pRegionEndIdx;
- SwDoc* pDoc;
- SwPaM* pPam; // SwPosition duerfte doch reichen, oder ??
- SwRelNumRuleSpaces* pRelNumRule; // Liste aller benannten NumRules
+ SwDoc* pDoc;
+ SwPaM* pPam; // SwPosition duerfte doch reichen, oder ??
+ SwRelNumRuleSpaces* pRelNumRule; // Liste aller benannten NumRules
String sNestedFieldStr;
SwFltRedline *pRedlineInsert;
@@ -325,29 +325,29 @@ class SwRTFParser : public SvxRTFParser
String sBaseURL;
USHORT nAktPageDesc, nAktFirstPageDesc;
- USHORT nAktBox; // akt. Box
- USHORT nInsTblRow; // beim nach \row kein \pard -> neue Line anlegen
- USHORT nNewNumSectDef; // jeder SectionWechsel kann neue Rules definieren
+ USHORT nAktBox; // akt. Box
+ USHORT nInsTblRow; // beim nach \row kein \pard -> neue Line anlegen
+ USHORT nNewNumSectDef; // jeder SectionWechsel kann neue Rules definieren
USHORT nRowsToRepeat;
bool bSwPageDesc;
- bool bReadSwFly; // lese Swg-Fly (wichtig fuer Bitmaps!)
+ bool bReadSwFly; // lese Swg-Fly (wichtig fuer Bitmaps!)
// --> OD 2008-12-22 #i83368#
bool mbReadCellWhileReadSwFly;
// <--
- bool mbReadNoTbl; // verhinder Tabelle in Tabelle/FootNote
+ bool mbReadNoTbl; // verhinder Tabelle in Tabelle/FootNote
bool mbIsFootnote;
- bool bFootnoteAutoNum; // automatische Numerierung ?
- bool bStyleTabValid; // Styles schon erzeugt ?
- bool bInPgDscTbl; // beim PageDescTbl lesen
- bool bNewNumList; // Word 7.0 NumList gelesen, 6.0 ueberspringen
- bool bFirstContinue; // 1.Call ins Continue
+ bool bFootnoteAutoNum; // automatische Numerierung ?
+ bool bStyleTabValid; // Styles schon erzeugt ?
+ bool bInPgDscTbl; // beim PageDescTbl lesen
+ bool bNewNumList; // Word 7.0 NumList gelesen, 6.0 ueberspringen
+ bool bFirstContinue; // 1.Call ins Continue
bool bContainsPara; // If there is no paragraph in the section
bool bContainsTablePara; // If there is an table in this section
bool bForceNewTable; // Forces a beginning of a new table
bool bNestedField;
bool bTrowdRead; // True, iff an \trowd definition was read after the last \row
-
+
int nReadFlyDepth;
int nZOrder;
@@ -412,13 +412,13 @@ class SwRTFParser : public SvxRTFParser
SfxItemSet& rSet, const SvxRTFPictureType* = 0 );
void SetFlysInDoc();
- void GetPageSize( Size& rSize ); // Groesse der PagePrintArea
+ void GetPageSize( Size& rSize ); // Groesse der PagePrintArea
// fuers Einlesen von Tabellen
void GotoNextBox();
void NewTblLine();
- void DelLastNode(); // loesche den letzten Node (Tabelle/Fly/Ftn/..)
+ void DelLastNode(); // loesche den letzten Node (Tabelle/Fly/Ftn/..)
void AddNumRule( SwNumRule* pRule );
void SetNumRelSpaces();
@@ -432,12 +432,12 @@ protected:
// wird fuer jedes Token gerufen, das in CallParser erkannt wird
virtual void NextToken( int nToken );
-// virtual void ReadUnknownData();
+// virtual void ReadUnknownData();
virtual void ReadBitmapData();
#ifdef READ_OLE_OBJECT
virtual void ReadOLEData();
#endif
- virtual void SetAttrInDoc( SvxRTFItemStackType &rSet );
+ virtual void SetAttrInDoc( SvxRTFItemStackType &rSet );
virtual bool UncompressableStackEntry(const SvxRTFItemStackType &rSet) const;
// fuer Tokens, die im ReadAttr nicht ausgewertet werden
virtual void UnknownAttrToken( int nToken, SfxItemSet* pSet );
@@ -468,12 +468,12 @@ public:
const String& rBaseURL,
int bReadNewDoc = TRUE );
- virtual SvParserState CallParser(); // Aufruf des Parsers
+ virtual SvParserState CallParser(); // Aufruf des Parsers
virtual int IsEndPara( SvxNodeIdx* pNd, xub_StrLen nCnt ) const;
// fuers asynchrone lesen aus dem SvStream
-// virtual void SaveState( int nToken );
-// virtual void RestoreState();
+// virtual void SaveState( int nToken );
+// virtual void RestoreState();
virtual void Continue( int nToken );
};