diff options
Diffstat (limited to 'sw/source/filter/ascii')
-rw-r--r-- | sw/source/filter/ascii/ascatr.cxx | 12 | ||||
-rw-r--r-- | sw/source/filter/ascii/parasc.cxx | 26 | ||||
-rw-r--r-- | sw/source/filter/ascii/wrtasc.cxx | 30 | ||||
-rw-r--r-- | sw/source/filter/ascii/wrtasc.hxx | 4 |
4 files changed, 36 insertions, 36 deletions
diff --git a/sw/source/filter/ascii/ascatr.cxx b/sw/source/filter/ascii/ascatr.cxx index 0c1601abcd28..8073ec4552e7 100644 --- a/sw/source/filter/ascii/ascatr.cxx +++ b/sw/source/filter/ascii/ascatr.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,9 +65,9 @@ class SwASC_AttrIter public: SwASC_AttrIter( SwASCWriter& rWrt, const SwTxtNode& rNd, xub_StrLen nStt ); - void NextPos() { nAktSwPos = SearchNext( nAktSwPos + 1 ); } + void NextPos() { nAktSwPos = SearchNext( nAktSwPos + 1 ); } - xub_StrLen WhereNext() const { return nAktSwPos; } + xub_StrLen WhereNext() const { return nAktSwPos; } BOOL OutAttr( xub_StrLen nSwPos ); }; @@ -221,9 +221,9 @@ static Writer& OutASC_SwTxtNode( Writer& rWrt, SwCntntNode& rNode ) */ SwNodeFnTab aASCNodeFnTab = { -/* RES_TXTNODE */ OutASC_SwTxtNode, -/* RES_GRFNODE */ 0, -/* RES_OLENODE */ 0 +/* RES_TXTNODE */ OutASC_SwTxtNode, +/* RES_GRFNODE */ 0, +/* RES_OLENODE */ 0 }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/filter/ascii/parasc.cxx b/sw/source/filter/ascii/parasc.cxx index d304102ccfce..47cbe0a72638 100644 --- a/sw/source/filter/ascii/parasc.cxx +++ b/sw/source/filter/ascii/parasc.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 @@ -110,9 +110,9 @@ SwASCIIParser::SwASCIIParser(SwDoc* pD, const SwPaM& rCrsr, SvStream& rIn, pArr = new sal_Char [ ASC_BUFFLEN + 2 ]; pItemSet = new SfxItemSet( pDoc->GetAttrPool(), - RES_CHRATR_FONT, RES_CHRATR_LANGUAGE, - RES_CHRATR_CJK_FONT, RES_CHRATR_CJK_LANGUAGE, - RES_CHRATR_CTL_FONT, RES_CHRATR_CTL_LANGUAGE, + RES_CHRATR_FONT, RES_CHRATR_LANGUAGE, + RES_CHRATR_CJK_FONT, RES_CHRATR_CJK_LANGUAGE, + RES_CHRATR_CTL_FONT, RES_CHRATR_CTL_LANGUAGE, 0 ); // set defaults from the options @@ -333,7 +333,7 @@ ULONG SwASCIIParser::ReadChars() if( SVSTREAM_OK != rInput.GetError() || 0 == (lGCount = rInput.Read( pArr + nArrOffset, ASC_BUFFLEN - nArrOffset ))) - break; // aus der WHILE-Schleife heraus + break; // aus der WHILE-Schleife heraus /* #98380# @@ -406,13 +406,13 @@ ULONG SwASCIIParser::ReadChars() switch( *pStt ) { //JP 12.11.2001: task 94636 - don't ignore all behind the zero character, -// change it to the default "control character" -// case 0: -// pEnd = pStt; -// bIns = false ; -// break; +// change it to the default "control character" +// case 0: +// pEnd = pStt; +// bIns = false ; +// break; - case 0x0a: if( LINEEND_LF == pUseMe->GetParaFlags() ) + case 0x0a: if( LINEEND_LF == pUseMe->GetParaFlags() ) { bIns = false; *pStt = 0; @@ -424,7 +424,7 @@ ULONG SwASCIIParser::ReadChars() } break; - case 0x0d: if( LINEEND_LF != pUseMe->GetParaFlags() ) + case 0x0d: if( LINEEND_LF != pUseMe->GetParaFlags() ) { bIns = false; *pStt = 0; @@ -476,7 +476,7 @@ ULONG SwASCIIParser::ReadChars() *pStt = '#'; // Ersatzdarstellung break; - case '\t': break; + case '\t': break; default: if( ' ' > *pStt ) diff --git a/sw/source/filter/ascii/wrtasc.cxx b/sw/source/filter/ascii/wrtasc.cxx index a2403bf4ae19..bb8c2eb570c2 100644 --- a/sw/source/filter/ascii/wrtasc.cxx +++ b/sw/source/filter/ascii/wrtasc.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 @@ -34,13 +34,13 @@ #include <pam.hxx> #include <doc.hxx> #include <ndtxt.hxx> -#include <mdiexp.hxx> // ...Percent() +#include <mdiexp.hxx> // ...Percent() #include <docary.hxx> #include <fmtcntnt.hxx> #include <frmfmt.hxx> #include <wrtasc.hxx> -#include <statstr.hrc> // ResId fuer Statusleiste +#include <statstr.hrc> // ResId fuer Statusleiste //----------------------------------------------------------------- @@ -58,12 +58,12 @@ SwASCWriter::SwASCWriter( const String& rFltNm ) if( 5 < rFltNm.Len() ) switch( rFltNm.Copy( 5 ).ToInt32() ) { - case 437: aNewOpts.SetCharSet( RTL_TEXTENCODING_IBM_437 ); break; - case 850: aNewOpts.SetCharSet( RTL_TEXTENCODING_IBM_850 ); break; - case 860: aNewOpts.SetCharSet( RTL_TEXTENCODING_IBM_860 ); break; - case 861: aNewOpts.SetCharSet( RTL_TEXTENCODING_IBM_861 ); break; - case 863: aNewOpts.SetCharSet( RTL_TEXTENCODING_IBM_863 ); break; - case 865: aNewOpts.SetCharSet( RTL_TEXTENCODING_IBM_865 ); break; + case 437: aNewOpts.SetCharSet( RTL_TEXTENCODING_IBM_437 ); break; + case 850: aNewOpts.SetCharSet( RTL_TEXTENCODING_IBM_850 ); break; + case 860: aNewOpts.SetCharSet( RTL_TEXTENCODING_IBM_860 ); break; + case 861: aNewOpts.SetCharSet( RTL_TEXTENCODING_IBM_861 ); break; + case 863: aNewOpts.SetCharSet( RTL_TEXTENCODING_IBM_863 ); break; + case 865: aNewOpts.SetCharSet( RTL_TEXTENCODING_IBM_865 ); break; } break; @@ -102,7 +102,7 @@ ULONG SwASCWriter::WriteStream() { sal_Char cLineEnd[ 3 ]; sal_Char* pCEnd = cLineEnd; - if( bASCII_ParaAsCR ) // falls vorgegeben ist. + if( bASCII_ParaAsCR ) // falls vorgegeben ist. *pCEnd++ = '\015'; else if( bASCII_ParaAsBlanc ) *pCEnd++ = ' '; @@ -110,8 +110,8 @@ ULONG SwASCWriter::WriteStream() switch( GetAsciiOptions().GetParaFlags() ) { case LINEEND_CR: *pCEnd++ = '\015'; break; - case LINEEND_LF: *pCEnd++ = '\012'; break; - case LINEEND_CRLF: *pCEnd++ = '\015', *pCEnd++ = '\012'; break; + case LINEEND_LF: *pCEnd++ = '\012'; break; + case LINEEND_CRLF: *pCEnd++ = '\015', *pCEnd++ = '\012'; break; } *pCEnd = 0; @@ -166,7 +166,7 @@ ULONG SwASCWriter::WriteStream() pCurPam = NewSwPaM( *pDoc, pIdx->GetIndex(), pIdx->GetNode().EndOfSectionIndex() ); pCurPam->Exchange(); - continue; // while-Schleife neu aufsetzen !! + continue; // while-Schleife neu aufsetzen !! } } else @@ -194,7 +194,7 @@ ULONG SwASCWriter::WriteStream() } Out( aASCNodeFnTab, *pNd, *this ); } - bTstFly = FALSE; // eimal Testen reicht + bTstFly = FALSE; // eimal Testen reicht } if( !pCurPam->Move( fnMoveForward, fnGoNode ) ) @@ -205,7 +205,7 @@ ULONG SwASCWriter::WriteStream() pDoc->GetDocShell() ); // Wie weit ? } - } while( CopyNextPam( &pPam ) ); // bis alle Pam bearbeitet + } while( CopyNextPam( &pPam ) ); // bis alle Pam bearbeitet Strm().SetStreamCharSet( eOld ); diff --git a/sw/source/filter/ascii/wrtasc.hxx b/sw/source/filter/ascii/wrtasc.hxx index e260f9546c81..3942fa7cd6c0 100644 --- a/sw/source/filter/ascii/wrtasc.hxx +++ b/sw/source/filter/ascii/wrtasc.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 @@ -50,6 +50,6 @@ public: }; -#endif // _WRTASC_HXX +#endif // _WRTASC_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |