summaryrefslogtreecommitdiff
path: root/sw/source/core/doc
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/doc')
-rw-r--r--sw/source/core/doc/SwStyleNameMapper.cxx50
-rw-r--r--sw/source/core/doc/acmplwrd.cxx2
-rw-r--r--sw/source/core/doc/dbgoutsw.cxx28
-rw-r--r--sw/source/core/doc/doc.cxx194
-rw-r--r--sw/source/core/doc/docbasic.cxx10
-rw-r--r--sw/source/core/doc/docbm.cxx58
-rw-r--r--sw/source/core/doc/docchart.cxx4
-rw-r--r--sw/source/core/doc/doccomp.cxx34
-rw-r--r--sw/source/core/doc/doccorr.cxx10
-rw-r--r--sw/source/core/doc/docdde.cxx54
-rw-r--r--sw/source/core/doc/docdesc.cxx52
-rw-r--r--sw/source/core/doc/docdraw.cxx36
-rw-r--r--sw/source/core/doc/docedt.cxx80
-rw-r--r--sw/source/core/doc/docfld.cxx116
-rw-r--r--sw/source/core/doc/docfly.cxx34
-rw-r--r--sw/source/core/doc/docfmt.cxx70
-rw-r--r--sw/source/core/doc/docftn.cxx8
-rw-r--r--sw/source/core/doc/docglbl.cxx44
-rw-r--r--sw/source/core/doc/docglos.cxx4
-rw-r--r--sw/source/core/doc/doclay.cxx136
-rw-r--r--sw/source/core/doc/docnew.cxx40
-rw-r--r--sw/source/core/doc/docnum.cxx66
-rw-r--r--sw/source/core/doc/docredln.cxx98
-rw-r--r--sw/source/core/doc/docruby.cxx48
-rw-r--r--sw/source/core/doc/docsort.cxx62
-rw-r--r--sw/source/core/doc/docstat.cxx16
-rw-r--r--sw/source/core/doc/doctxm.cxx114
-rw-r--r--sw/source/core/doc/docxforms.cxx6
-rw-r--r--sw/source/core/doc/extinput.cxx2
-rw-r--r--sw/source/core/doc/fmtcol.cxx20
-rw-r--r--sw/source/core/doc/ftnidx.cxx22
-rw-r--r--sw/source/core/doc/gctable.cxx10
-rw-r--r--sw/source/core/doc/htmltbl.cxx54
-rw-r--r--sw/source/core/doc/lineinfo.cxx2
-rw-r--r--sw/source/core/doc/list.cxx2
-rw-r--r--sw/source/core/doc/notxtfrm.cxx96
-rw-r--r--sw/source/core/doc/number.cxx16
-rw-r--r--sw/source/core/doc/poolfmt.cxx290
-rw-r--r--sw/source/core/doc/sortopt.cxx4
-rw-r--r--sw/source/core/doc/swserv.cxx4
-rw-r--r--sw/source/core/doc/swstylemanager.cxx2
-rw-r--r--sw/source/core/doc/swstylemanager.hxx4
-rw-r--r--sw/source/core/doc/tblafmt.cxx94
-rw-r--r--sw/source/core/doc/tblcpy.cxx46
-rw-r--r--sw/source/core/doc/tblrwcl.cxx198
-rw-r--r--sw/source/core/doc/visiturl.cxx2
46 files changed, 1171 insertions, 1171 deletions
diff --git a/sw/source/core/doc/SwStyleNameMapper.cxx b/sw/source/core/doc/SwStyleNameMapper.cxx
index 79bddf6e5a61..d9698e5b817c 100644
--- a/sw/source/core/doc/SwStyleNameMapper.cxx
+++ b/sw/source/core/doc/SwStyleNameMapper.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
@@ -39,7 +39,7 @@
#include <tools/debug.hxx>
extern ResMgr* pSwResMgr;
// Initialise UI names to 0
-SvStringsDtor *SwStyleNameMapper::pTextUINameArray = 0,
+SvStringsDtor *SwStyleNameMapper::pTextUINameArray = 0,
*SwStyleNameMapper::pListsUINameArray = 0,
*SwStyleNameMapper::pExtraUINameArray = 0,
*SwStyleNameMapper::pRegisterUINameArray = 0,
@@ -64,7 +64,7 @@ SvStringsDtor *SwStyleNameMapper::pTextUINameArray = 0,
*SwStyleNameMapper::pPageDescProgNameArray = 0,
*SwStyleNameMapper::pNumRuleProgNameArray = 0;
-NameToIdHash *SwStyleNameMapper::pParaUIMap = 0,
+NameToIdHash *SwStyleNameMapper::pParaUIMap = 0,
*SwStyleNameMapper::pCharUIMap = 0,
*SwStyleNameMapper::pPageUIMap = 0,
*SwStyleNameMapper::pFrameUIMap = 0,
@@ -1009,77 +1009,77 @@ SvStringsDtor* SwStyleNameMapper::NewProgNameArray( SvStringsDtor*& pProgNameArr
const SvStringsDtor& SwStyleNameMapper::GetTextProgNameArray()
{
return pTextProgNameArray ? *pTextProgNameArray :
- *NewProgNameArray( pTextProgNameArray, TextProgNameTable,
- sizeof ( TextProgNameTable ) / sizeof ( SwTableEntry ) );
+ *NewProgNameArray( pTextProgNameArray, TextProgNameTable,
+ sizeof ( TextProgNameTable ) / sizeof ( SwTableEntry ) );
}
const SvStringsDtor& SwStyleNameMapper::GetListsProgNameArray()
{
- return pListsProgNameArray ? *pListsProgNameArray :
- *NewProgNameArray( pListsProgNameArray, ListsProgNameTable,
+ return pListsProgNameArray ? *pListsProgNameArray :
+ *NewProgNameArray( pListsProgNameArray, ListsProgNameTable,
sizeof ( ListsProgNameTable ) / sizeof ( SwTableEntry ) );
}
const SvStringsDtor& SwStyleNameMapper::GetExtraProgNameArray()
{
- return pExtraProgNameArray ? *pExtraProgNameArray :
- *NewProgNameArray( pExtraProgNameArray, ExtraProgNameTable,
+ return pExtraProgNameArray ? *pExtraProgNameArray :
+ *NewProgNameArray( pExtraProgNameArray, ExtraProgNameTable,
sizeof ( ExtraProgNameTable ) / sizeof ( SwTableEntry ) );
}
const SvStringsDtor& SwStyleNameMapper::GetRegisterProgNameArray()
{
- return pRegisterProgNameArray ? *pRegisterProgNameArray :
- *NewProgNameArray( pRegisterProgNameArray, RegisterProgNameTable,
+ return pRegisterProgNameArray ? *pRegisterProgNameArray :
+ *NewProgNameArray( pRegisterProgNameArray, RegisterProgNameTable,
sizeof ( RegisterProgNameTable ) / sizeof ( SwTableEntry ) );
}
const SvStringsDtor& SwStyleNameMapper::GetDocProgNameArray()
{
- return pDocProgNameArray ? *pDocProgNameArray :
- *NewProgNameArray( pDocProgNameArray, DocProgNameTable,
+ return pDocProgNameArray ? *pDocProgNameArray :
+ *NewProgNameArray( pDocProgNameArray, DocProgNameTable,
sizeof ( DocProgNameTable ) / sizeof ( SwTableEntry ) );
}
const SvStringsDtor& SwStyleNameMapper::GetHTMLProgNameArray()
{
- return pHTMLProgNameArray ? *pHTMLProgNameArray :
- *NewProgNameArray( pHTMLProgNameArray, HTMLProgNameTable,
+ return pHTMLProgNameArray ? *pHTMLProgNameArray :
+ *NewProgNameArray( pHTMLProgNameArray, HTMLProgNameTable,
sizeof ( HTMLProgNameTable ) / sizeof ( SwTableEntry ) );
}
const SvStringsDtor& SwStyleNameMapper::GetFrmFmtProgNameArray()
{
- return pFrmFmtProgNameArray ? *pFrmFmtProgNameArray :
- *NewProgNameArray( pFrmFmtProgNameArray, FrmFmtProgNameTable,
+ return pFrmFmtProgNameArray ? *pFrmFmtProgNameArray :
+ *NewProgNameArray( pFrmFmtProgNameArray, FrmFmtProgNameTable,
sizeof ( FrmFmtProgNameTable ) / sizeof ( SwTableEntry ) );
}
const SvStringsDtor& SwStyleNameMapper::GetChrFmtProgNameArray()
{
- return pChrFmtProgNameArray ? *pChrFmtProgNameArray :
- *NewProgNameArray( pChrFmtProgNameArray, ChrFmtProgNameTable,
+ return pChrFmtProgNameArray ? *pChrFmtProgNameArray :
+ *NewProgNameArray( pChrFmtProgNameArray, ChrFmtProgNameTable,
sizeof ( ChrFmtProgNameTable ) / sizeof ( SwTableEntry ) );
}
const SvStringsDtor& SwStyleNameMapper::GetHTMLChrFmtProgNameArray()
{
- return pHTMLChrFmtProgNameArray ? *pHTMLChrFmtProgNameArray :
- *NewProgNameArray( pHTMLChrFmtProgNameArray, HTMLChrFmtProgNameTable,
+ return pHTMLChrFmtProgNameArray ? *pHTMLChrFmtProgNameArray :
+ *NewProgNameArray( pHTMLChrFmtProgNameArray, HTMLChrFmtProgNameTable,
sizeof ( HTMLChrFmtProgNameTable ) / sizeof ( SwTableEntry ) );
}
const SvStringsDtor& SwStyleNameMapper::GetPageDescProgNameArray()
{
- return pPageDescProgNameArray ? *pPageDescProgNameArray :
- *NewProgNameArray( pPageDescProgNameArray, PageDescProgNameTable,
+ return pPageDescProgNameArray ? *pPageDescProgNameArray :
+ *NewProgNameArray( pPageDescProgNameArray, PageDescProgNameTable,
sizeof ( PageDescProgNameTable ) / sizeof ( SwTableEntry ) );
}
const SvStringsDtor& SwStyleNameMapper::GetNumRuleProgNameArray()
{
- return pNumRuleProgNameArray ? *pNumRuleProgNameArray :
- *NewProgNameArray( pNumRuleProgNameArray, NumRuleProgNameTable,
+ return pNumRuleProgNameArray ? *pNumRuleProgNameArray :
+ *NewProgNameArray( pNumRuleProgNameArray, NumRuleProgNameTable,
sizeof ( NumRuleProgNameTable ) / sizeof ( SwTableEntry ) );
}
diff --git a/sw/source/core/doc/acmplwrd.cxx b/sw/source/core/doc/acmplwrd.cxx
index 13346087e1cd..12c56ca65076 100644
--- a/sw/source/core/doc/acmplwrd.cxx
+++ b/sw/source/core/doc/acmplwrd.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
diff --git a/sw/source/core/doc/dbgoutsw.cxx b/sw/source/core/doc/dbgoutsw.cxx
index 8d1b4d1d5aa4..4d34e555e143 100644
--- a/sw/source/core/doc/dbgoutsw.cxx
+++ b/sw/source/core/doc/dbgoutsw.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
@@ -678,11 +678,11 @@ String lcl_dbg_out(const SwNode & rNode)
else if (rNode.IsStartNode())
{
aTmpStr += String("<start end=\"", RTL_TEXTENCODING_ASCII_US);
-
+
const SwStartNode * pStartNode = dynamic_cast<const SwStartNode *> (&rNode);
- if (pStartNode != NULL)
+ if (pStartNode != NULL)
aTmpStr += String::CreateFromInt32(pStartNode->EndOfSectionNode()->GetIndex());
-
+
aTmpStr += String("\"/>", RTL_TEXTENCODING_ASCII_US);
}
else if (rNode.IsEndNode())
@@ -747,7 +747,7 @@ void lcl_dbg_nodes_inner(String & aStr, SwNodes & rNodes, ULONG & nIndex)
ULONG nStartIndex = nIndex;
bool bDone = false;
-
+
String aTag;
if (pNode->IsTableNode())
aTag += String("table", RTL_TEXTENCODING_ASCII_US);
@@ -755,13 +755,13 @@ void lcl_dbg_nodes_inner(String & aStr, SwNodes & rNodes, ULONG & nIndex)
aTag += String("section", RTL_TEXTENCODING_ASCII_US);
else
aTag += String("nodes", RTL_TEXTENCODING_ASCII_US);
-
+
aStr += String("<", RTL_TEXTENCODING_ASCII_US);
aStr += aTag;
aStr += String(">", RTL_TEXTENCODING_ASCII_US);
while (! bDone)
- {
+ {
if (pNode->IsStartNode() && nIndex != nStartIndex)
lcl_dbg_nodes_inner(aStr, rNodes, nIndex);
else
@@ -771,13 +771,13 @@ void lcl_dbg_nodes_inner(String & aStr, SwNodes & rNodes, ULONG & nIndex)
nIndex++;
}
-
+
if (pNode == pEndNode || nIndex >= nCount)
bDone = true;
else
- pNode = rNodes[nIndex];
+ pNode = rNodes[nIndex];
}
-
+
aStr += String("</", RTL_TEXTENCODING_ASCII_US);
aStr += aTag;
aStr += String(">\n", RTL_TEXTENCODING_ASCII_US);
@@ -786,15 +786,15 @@ void lcl_dbg_nodes_inner(String & aStr, SwNodes & rNodes, ULONG & nIndex)
String lcl_dbg_out(SwNodes & rNodes)
{
String aStr("<nodes-array>", RTL_TEXTENCODING_ASCII_US);
-
+
ULONG nIndex = 0;
ULONG nCount = rNodes.Count();
-
+
while (nIndex < nCount)
{
lcl_dbg_nodes_inner(aStr, rNodes, nIndex);
}
-
+
aStr += String("</nodes-array>\n", RTL_TEXTENCODING_ASCII_US);
return aStr;
@@ -1087,7 +1087,7 @@ SW_DLLPUBLIC const char * dbg_out(const SwFormTokens & rTokens)
String lcl_dbg_out(const SwNodeRange & rRange)
{
String aStr("[", RTL_TEXTENCODING_ASCII_US);
-
+
aStr += lcl_dbg_out(SwPosition(rRange.aStart));
aStr += String(", ", RTL_TEXTENCODING_ASCII_US);
aStr += lcl_dbg_out(SwPosition(rRange.aEnd));
diff --git a/sw/source/core/doc/doc.cxx b/sw/source/core/doc/doc.cxx
index 63347cbede7a..7221f6afa385 100644
--- a/sw/source/core/doc/doc.cxx
+++ b/sw/source/core/doc/doc.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
@@ -80,21 +80,21 @@
#include <swtable.hxx>
#include <pam.hxx>
#include <ndtxt.hxx>
-#include <swundo.hxx> // fuer die UndoIds
+#include <swundo.hxx> // fuer die UndoIds
#include <undobj.hxx>
-#include <pagedesc.hxx> //DTor
+#include <pagedesc.hxx> //DTor
#include <breakit.hxx>
#include <ndole.hxx>
#include <ndgrf.hxx>
-#include <rolbck.hxx> // Undo-Attr
-#include <doctxm.hxx> // fuer die Verzeichnisse
+#include <rolbck.hxx> // Undo-Attr
+#include <doctxm.hxx> // fuer die Verzeichnisse
#include <grfatr.hxx>
-#include <poolfmt.hxx> // PoolVorlagen-Id's
-#include <mvsave.hxx> // fuer Server-Funktionalitaet
+#include <poolfmt.hxx> // PoolVorlagen-Id's
+#include <mvsave.hxx> // fuer Server-Funktionalitaet
#include <SwGrammarMarkUp.hxx>
#include <scriptinfo.hxx>
-#include <acorrect.hxx> // Autokorrektur
-#include <mdiexp.hxx> // Statusanzeige
+#include <acorrect.hxx> // Autokorrektur
+#include <mdiexp.hxx> // Statusanzeige
#include <docstat.hxx>
#include <docary.hxx>
#include <redline.hxx>
@@ -103,7 +103,7 @@
#include <printdata.hxx>
#include <swprtopt.hxx>
#include <cmdid.h> // fuer den dflt - Printer in SetJob
-#include <statstr.hrc> // StatLine-String
+#include <statstr.hrc> // StatLine-String
#include <comcore.hrc>
#include <SwUndoTOXChange.hxx>
#include <SwUndoFmt.hxx>
@@ -678,9 +678,9 @@ bool SwDoc::SplitNode( const SwPosition &rPos, bool bChkTableStart )
return false;
{
- // BUG 26675: DataChanged vorm loeschen verschicken, dann bekommt
- // man noch mit, welche Objecte sich im Bereich befinden.
- // Danach koennen sie vor/hinter der Position befinden.
+ // BUG 26675: DataChanged vorm loeschen verschicken, dann bekommt
+ // man noch mit, welche Objecte sich im Bereich befinden.
+ // Danach koennen sie vor/hinter der Position befinden.
SwDataChanged aTmp( this, rPos, 0 );
}
@@ -697,9 +697,9 @@ bool SwDoc::SplitNode( const SwPosition &rPos, bool bChkTableStart )
}
//JP 28.01.97: Sonderfall fuer SplitNode am Tabellenanfang:
- // steht die am Doc/Fly/Footer/..-Anfang oder direkt
- // hinter einer Tabelle, dann fuege davor
- // einen Absatz ein
+ // steht die am Doc/Fly/Footer/..-Anfang oder direkt
+ // hinter einer Tabelle, dann fuege davor
+ // einen Absatz ein
if( bChkTableStart && !rPos.nContent.GetIndex() && pNode->IsTxtNode() )
{
ULONG nPrevPos = rPos.nNode.GetIndex() - 1;
@@ -847,7 +847,7 @@ bool SwDoc::InsertString( const SwPaM &rRg, const String &rStr,
const SwPosition& rPos = *rRg.GetPoint();
- if( pACEWord ) // Aufnahme in die Autokorrektur
+ if( pACEWord ) // Aufnahme in die Autokorrektur
{
if( 1 == rStr.Len() && pACEWord->IsDeleted() )
{
@@ -876,7 +876,7 @@ bool SwDoc::InsertString( const SwPaM &rRg, const String &rStr,
}
}
else
- { // ist Undo und Gruppierung eingeschaltet, ist alles anders !
+ { // ist Undo und Gruppierung eingeschaltet, ist alles anders !
SwUndoInsert * pUndo = NULL; // #111827#
// don't group the start if hints at the start should be expanded
@@ -1039,8 +1039,8 @@ SwFlyFrmFmt* SwDoc::InsertOLE(const SwPaM &rRg, const String& rObjName,
}
/*************************************************************************
-|* SwDoc::GetFldType()
-|* Beschreibung: liefert den am Doc eingerichteten Feldtypen zurueck
+|* SwDoc::GetFldType()
+|* Beschreibung: liefert den am Doc eingerichteten Feldtypen zurueck
*************************************************************************/
SwFieldType *SwDoc::GetSysFldType( const USHORT eWhich ) const
{
@@ -1051,7 +1051,7 @@ SwFieldType *SwDoc::GetSysFldType( const USHORT eWhich ) const
}
/*************************************************************************
- * void SetDocStat( const SwDocStat& rStat );
+ * void SetDocStat( const SwDocStat& rStat );
*************************************************************************/
void SwDoc::SetDocStat( const SwDocStat& rStat )
{
@@ -1069,16 +1069,16 @@ struct _PostItFld : public _SetGetExpFld
: _SetGetExpFld( rNdIdx, pFld, pIdx ) {}
USHORT GetPageNo( const StringRangeEnumerator &rRangeEnum,
- const std::set< sal_Int32 > &rPossiblePages,
+ const std::set< sal_Int32 > &rPossiblePages,
USHORT& rVirtPgNo, USHORT& rLineNo );
-
+
SwPostItField* GetPostIt() const
- {
+ {
return (SwPostItField*) GetFld()->GetFld().GetFld();
}
};
-USHORT _PostItFld::GetPageNo(
+USHORT _PostItFld::GetPageNo(
const StringRangeEnumerator &rRangeEnum,
const std::set< sal_Int32 > &rPossiblePages,
/* out */ USHORT& rVirtPgNo, /* out */ USHORT& rLineNo )
@@ -1110,8 +1110,8 @@ USHORT _PostItFld::GetPageNo(
return 0;
}
-bool lcl_GetPostIts(
- IDocumentFieldsAccess* pIDFA,
+bool lcl_GetPostIts(
+ IDocumentFieldsAccess* pIDFA,
_SetGetExpFlds * pSrtLst )
{
bool bHasPostIts = false;
@@ -1147,9 +1147,9 @@ bool lcl_GetPostIts(
return bHasPostIts;
}
-static void lcl_FormatPostIt(
- IDocumentContentOperations* pIDCO,
- SwPaM& aPam,
+static void lcl_FormatPostIt(
+ IDocumentContentOperations* pIDCO,
+ SwPaM& aPam,
SwPostItField* pField,
bool bNewPage, bool bIsFirstPostIt,
USHORT nPageNo, USHORT nLineNo )
@@ -1169,7 +1169,7 @@ static void lcl_FormatPostIt(
pIDCO->SplitNode( *aPam.GetPoint(), false );
pIDCO->SplitNode( *aPam.GetPoint(), false );
}
-
+
String aStr( ViewShell::GetShellRes()->aPostItPage );
aStr.AppendAscii(sTmp);
@@ -1186,7 +1186,7 @@ static void lcl_FormatPostIt(
aStr.AppendAscii(sTmp);
aStr += pField->GetPar1();
aStr += ' ';
- SvtSysLocale aSysLocale;
+ SvtSysLocale aSysLocale;
aStr += /*(LocaleDataWrapper&)*/aSysLocale.GetLocaleData().getDate( pField->GetDate() );
pIDCO->InsertString( aPam, aStr );
@@ -1216,7 +1216,7 @@ static sal_Int32 lcl_GetPaperBin( const SwPageFrm *pStartFrm )
}
void SwDoc::CalculatePagesForPrinting(
- /* out */ SwRenderData &rData,
+ /* out */ SwRenderData &rData,
const SwPrintUIOptions &rOptions,
bool bIsPDFExport,
sal_Int32 nDocPageCount )
@@ -1234,9 +1234,9 @@ void SwDoc::CalculatePagesForPrinting(
bool bPrintRightPages = bIsPDFExport ? true : rOptions.IsPrintRightPages();
// #i103700# printing selections should not allow for automatic inserting empty pages
bool bPrintEmptyPages = bPrintSelection ? false : rOptions.IsPrintEmptyPages( bIsPDFExport );
-
+
Range aPages( 1, nDocPageCount );
-
+
MultiSelection aMulti( aPages );
aMulti.SetTotalRange( Range( 0, RANGE_MAX ) );
aMulti.Select( aPages );
@@ -1329,7 +1329,7 @@ void SwDoc::CalculatePagesForPrinting(
}
}
-
+
//
// now that we have identified the valid pages for printing according
// to the print settings we need to get the PageRange to use and
@@ -1342,7 +1342,7 @@ void SwDoc::CalculatePagesForPrinting(
// PL, OD #i116085# - adjusting fix for i113919
if ( !bIsPDFExport )
{
- // PageContent :
+ // PageContent :
// 0 -> print all pages (default if aPageRange is empty)
// 1 -> print range according to PageRange
// 2 -> print selection
@@ -1353,9 +1353,9 @@ void SwDoc::CalculatePagesForPrinting(
// note that printing selections is actually implemented by copying
// the selection to a new temporary document and printing all of that one.
// Thus for Writer "PrintContent" must never be 2.
- // See SwXTextDocument::GetRenderDoc for evaluating if a selection is to be
+ // See SwXTextDocument::GetRenderDoc for evaluating if a selection is to be
// printed and for creating the temporary document.
- }
+ }
// please note
}
@@ -1370,15 +1370,15 @@ void SwDoc::CalculatePagesForPrinting(
// get vector of pages to print according to PageRange and valid pages set from above
// (result may be an empty vector, for example if the range string is not correct)
- StringRangeEnumerator::getRangesFromString(
+ StringRangeEnumerator::getRangesFromString(
aPageRange, rData.GetPagesToPrint(),
1, nDocPageCount, 0, &rData.GetValidPagesSet() );
}
-void SwDoc::UpdatePagesForPrintingWithPostItData(
- /* out */ SwRenderData &rData,
+void SwDoc::UpdatePagesForPrintingWithPostItData(
+ /* out */ SwRenderData &rData,
const SwPrintUIOptions &rOptions,
- bool /*bIsPDFExport*/,
+ bool /*bIsPDFExport*/,
sal_Int32 nDocPageCount )
{
@@ -1399,14 +1399,14 @@ void SwDoc::UpdatePagesForPrintingWithPostItData(
const StringRangeEnumerator aRangeEnum( rData.GetPageRange(), 1, nDocPageCount, 0 );
- // For mode POSTITS_ENDPAGE:
+ // For mode POSTITS_ENDPAGE:
// maps a physical page number to the page number in post-it document that holds
// the first post-it for that physical page . Needed to relate the correct start frames
// from the post-it doc to the physical page of the document
std::map< sal_Int32, sal_Int32 > aPostItLastStartPageNum;
// add all post-its on valid pages within the the page range to the
- // temporary post-it document.
+ // temporary post-it document.
// Since the array of post-it fileds is sorted by page and line number we will
// already get them in the correct order
USHORT nVirtPg = 0, nLineNo = 0, nLastPageNum = 0, nPhyPageNum = 0;
@@ -1415,7 +1415,7 @@ void SwDoc::UpdatePagesForPrintingWithPostItData(
{
_PostItFld& rPostIt = (_PostItFld&)*(*rData.m_pPostItFields)[ i ];
nLastPageNum = nPhyPageNum;
- nPhyPageNum = rPostIt.GetPageNo(
+ nPhyPageNum = rPostIt.GetPageNo(
aRangeEnum, rData.GetValidPagesSet(), nVirtPg, nLineNo );
if (nPhyPageNum)
{
@@ -1424,46 +1424,46 @@ void SwDoc::UpdatePagesForPrintingWithPostItData(
// post-it page needs to start on a new page
const bool bNewPage = nPostItMode == POSTITS_ENDPAGE &&
!bIsFirstPostIt && nPhyPageNum != nLastPageNum;
-
+
lcl_FormatPostIt( rData.m_pPostItShell->GetDoc(), aPam,
rPostIt.GetPostIt(), bNewPage, bIsFirstPostIt, nVirtPg, nLineNo );
bIsFirstPostIt = false;
-
+
if (nPostItMode == POSTITS_ENDPAGE)
{
// get the correct number of current pages for the post-it document
rData.m_pPostItShell->CalcLayout();
const sal_Int32 nPages = rData.m_pPostItDoc->GetPageCount();
aPostItLastStartPageNum[ nPhyPageNum ] = nPages;
- }
+ }
}
}
-
+
// format post-it doc to get correct number of pages
rData.m_pPostItShell->CalcLayout();
const sal_Int32 nPostItDocPageCount = rData.m_pPostItDoc->GetPageCount();
if (nPostItMode == POSTITS_ONLY || nPostItMode == POSTITS_ENDDOC)
{
- // now add those post-it pages to the vector of pages to print
+ // now add those post-it pages to the vector of pages to print
// or replace them if only post-its should be printed
-
+
rData.GetPostItStartFrames().clear();
if (nPostItMode == POSTITS_ENDDOC)
{
// set all values up to number of pages to print currently known to NULL,
- // meaning none of the pages currently in the vector is from the
+ // meaning none of the pages currently in the vector is from the
// post-it document, they are the documents pages.
rData.GetPostItStartFrames().resize( rData.GetPagesToPrint().size() );
- }
+ }
else if (nPostItMode == POSTITS_ONLY)
{
// no document page to be printed
rData.GetPagesToPrint().clear();
}
-
+
// now we just need to add the post-it pages to be printed to the end
- // of the vector of pages to print and keep the GetValidStartFrames
+ // of the vector of pages to print and keep the GetValidStartFrames
// data conform with it
sal_Int32 nPageNum = 0;
const SwPageFrm * pPageFrm = (SwPageFrm*)rData.m_pPostItShell->GetLayout()->Lower();
@@ -1477,7 +1477,7 @@ void SwDoc::UpdatePagesForPrintingWithPostItData(
pPageFrm = (SwPageFrm*)pPageFrm->GetNext();
}
DBG_ASSERT( nPageNum == nPostItDocPageCount, "unexpected number of pages" );
- }
+ }
else if (nPostItMode == POSTITS_ENDPAGE)
{
// the next step is to find all the start frames from the post-it
@@ -1495,10 +1495,10 @@ void SwDoc::UpdatePagesForPrintingWithPostItData(
aAllPostItStartFrames.push_back( pPageFrm );
pPageFrm = (SwPageFrm*)pPageFrm->GetNext();
}
- DBG_ASSERT( sal_Int32(aAllPostItStartFrames.size()) == nPostItDocPageCount,
+ DBG_ASSERT( sal_Int32(aAllPostItStartFrames.size()) == nPostItDocPageCount,
"unexpected number of frames; does not match number of pages" );
-
- // get a map that holds all post-it frames to be printed for a
+
+ // get a map that holds all post-it frames to be printed for a
// given physical page from the document
sal_Int32 nLastStartPageNum = 0;
std::map< sal_Int32, sal_Int32 >::const_iterator aIt;
@@ -1513,7 +1513,7 @@ void SwDoc::UpdatePagesForPrintingWithPostItData(
for (sal_Int32 i = 0; i < nFrames; ++i)
{
const sal_Int32 nIdx = nFirstStartPageNum - 1 + i; // -1 because lowest page num is 1
- DBG_ASSERT( 0 <= nIdx && nIdx < sal_Int32(aAllPostItStartFrames.size()),
+ DBG_ASSERT( 0 <= nIdx && nIdx < sal_Int32(aAllPostItStartFrames.size()),
"index out of range" );
aStartFrames.push_back( aAllPostItStartFrames[ nIdx ] );
}
@@ -1521,12 +1521,12 @@ void SwDoc::UpdatePagesForPrintingWithPostItData(
nLastStartPageNum = aIt->second;
}
-
- // ok, now that aPhysPageToPostItFrames can give the start frames for all
+
+ // ok, now that aPhysPageToPostItFrames can give the start frames for all
// post-it pages to be printed we need to merge those at the correct
// position into the GetPagesToPrint vector and build and maintain the
// GetValidStartFrames vector as well.
- // Since inserting a larger number of entries in the middle of a vector
+ // Since inserting a larger number of entries in the middle of a vector
// isn't that efficient we will create new vectors by copying the required data
std::vector< sal_Int32 > aTmpPagesToPrint;
std::vector< const SwPageFrm * > aTmpPostItStartFrames;
@@ -1537,7 +1537,7 @@ void SwDoc::UpdatePagesForPrintingWithPostItData(
const sal_Int32 nPhysPage = rData.GetPagesToPrint()[i];
aTmpPagesToPrint.push_back( nPhysPage );
aTmpPostItStartFrames.push_back( NULL );
-
+
// add the post-it document pages to print, i.e those
// post-it pages that have the data for the above physical page
const std::vector< const SwPageFrm * > &rPostItFrames = aPhysPageToPostItFrames[ nPhysPage ];
@@ -1546,7 +1546,7 @@ void SwDoc::UpdatePagesForPrintingWithPostItData(
{
aTmpPagesToPrint.push_back( 0 );
aTmpPostItStartFrames.push_back( rPostItFrames[k] );
- }
+ }
}
// finally we need to assign those vectors to the resulting ones.
@@ -1554,12 +1554,12 @@ void SwDoc::UpdatePagesForPrintingWithPostItData(
// we won't need the temporary vectors anymore
rData.GetPagesToPrint().swap( aTmpPagesToPrint );
rData.GetPostItStartFrames().swap( aTmpPostItStartFrames );
- }
- }
+ }
+ }
}
-void SwDoc::CalculatePagePairsForProspectPrinting(
- /* out */ SwRenderData &rData,
+void SwDoc::CalculatePagePairsForProspectPrinting(
+ /* out */ SwRenderData &rData,
const SwPrintUIOptions &rOptions,
sal_Int32 nDocPageCount )
{
@@ -1567,13 +1567,13 @@ void SwDoc::CalculatePagePairsForProspectPrinting(
std::set< sal_Int32 > &rValidPagesSet = rData.GetValidPagesSet();
std::map< sal_Int32, const SwPageFrm * > &rValidStartFrms = rData.GetValidStartFrames();
std::vector< std::pair< sal_Int32, sal_Int32 > > &rPagePairs = rData.GetPagePairsForProspectPrinting();
-
+
rPagePairs.clear();
rValidPagesSet.clear();
rValidStartFrms.clear();
rtl::OUString aPageRange = rOptions.getStringValue( "PageRange", rtl::OUString() );
- // PageContent :
+ // PageContent :
// 0 -> print all pages (default if aPageRange is empty)
// 1 -> print range according to PageRange
// 2 -> print selection
@@ -1598,7 +1598,7 @@ void SwDoc::CalculatePagePairsForProspectPrinting(
if ( !pStPage ) // dann wars das
return;
- // currently for prospect printing all pages are valid to be printed
+ // currently for prospect printing all pages are valid to be printed
// thus we add them all to the respective map and set for later use
sal_Int32 nPageNum = 0;
const SwPageFrm *pPageFrm = (SwPageFrm*)pLayout->Lower();
@@ -1622,11 +1622,11 @@ void SwDoc::CalculatePagePairsForProspectPrinting(
bool bPrintProspectRTL = rOptions.getIntValue( "PrintProspectRTL", 0 ) ? true : false;
// get pages for prospect printing according to the 'PageRange'
- // (duplicates and any order allowed!)
+ // (duplicates and any order allowed!)
std::vector< sal_Int32 > aPagesToPrint;
- StringRangeEnumerator::getRangesFromString(
+ StringRangeEnumerator::getRangesFromString(
aPageRange, aPagesToPrint, 1, nDocPageCount, 0 );
-
+
// now fill the vector for calculating the page pairs with the start frames
// from the above obtained vector
std::vector< const SwPageFrm * > aVec;
@@ -1638,7 +1638,7 @@ void SwDoc::CalculatePagePairsForProspectPrinting(
}
// just one page is special ...
- if ( 1 == aVec.size() )
+ if ( 1 == aVec.size() )
aVec.insert( aVec.begin() + 1, 0 ); // insert a second empty page
else
{
@@ -1700,7 +1700,7 @@ void SwDoc::CalculatePagePairsForProspectPrinting(
}
DBG_ASSERT( size_t(nCntPage) == rPagePairs.size(), "size mismatch for number of page pairs" );
- // luckily prospect printing does not make use of post-its so far,
+ // luckily prospect printing does not make use of post-its so far,
// thus we are done here.
}
@@ -1718,14 +1718,14 @@ const Size SwDoc::GetPageSize( sal_uInt16 nPageNum, bool bSkipEmptyPages ) const
(GetRootFrm()->Lower());
while ( --nPageNum && pPage->GetNext() )
- {
+ {
pPage = static_cast<const SwPageFrm*>( pPage->GetNext() );
}
// switch to next page for an empty page, if empty pages are not skipped
// in order to get a sensible page size for an empty page - e.g. for printing.
if ( !bSkipEmptyPages && pPage->IsEmptyPage() && pPage->GetNext() )
- {
+ {
pPage = static_cast<const SwPageFrm*>( pPage->GetNext() );
}
@@ -1735,7 +1735,7 @@ const Size SwDoc::GetPageSize( sal_uInt16 nPageNum, bool bSkipEmptyPages ) const
}
/*************************************************************************
- * void UpdateDocStat( const SwDocStat& rStat );
+ * void UpdateDocStat( const SwDocStat& rStat );
*************************************************************************/
void SwDoc::UpdateDocStat( SwDocStat& rStat )
{
@@ -1752,10 +1752,10 @@ void SwDoc::UpdateDocStat( SwDocStat& rStat )
case ND_TEXTNODE:
((SwTxtNode*)pNd)->CountWords( rStat, 0, ((SwTxtNode*)pNd)->GetTxt().Len() );
break;
- case ND_TABLENODE: ++rStat.nTbl; break;
- case ND_GRFNODE: ++rStat.nGrf; break;
- case ND_OLENODE: ++rStat.nOLE; break;
- case ND_SECTIONNODE: break;
+ case ND_TABLENODE: ++rStat.nTbl; break;
+ case ND_GRFNODE: ++rStat.nGrf; break;
+ case ND_OLENODE: ++rStat.nOLE; break;
+ case ND_SECTIONNODE: break;
}
}
@@ -1777,7 +1777,7 @@ void SwDoc::UpdateDocStat( SwDocStat& rStat )
}
}
- rStat.nPage = GetRootFrm() ? GetRootFrm()->GetPageNum() : 0;
+ rStat.nPage = GetRootFrm() ? GetRootFrm()->GetPageNum() : 0;
rStat.bModified = FALSE;
SetDocStat( rStat );
@@ -1878,7 +1878,7 @@ const SwFmtRefMark* SwDoc::GetRefMark( USHORT nIndex ) const
// returne die Namen aller im Doc gesetzten Referenzen
//JP 24.06.96: Ist der ArrayPointer 0 dann returne nur, ob im Doc. eine
-// RefMark gesetzt ist
+// RefMark gesetzt ist
// OS 25.06.96: ab jetzt wird immer die Anzahl der Referenzen returnt
USHORT SwDoc::GetRefMarks( SvStringsDtor* pNames ) const
{
@@ -1959,8 +1959,8 @@ void SwDoc::SetModified()
SwLayouter::ClearMoveBwdLayoutInfo( *this );
// <--
// dem Link wird der Status returnt, wie die Flags waren und werden
- // Bit 0: -> alter Zustand
- // Bit 1: -> neuer Zustand
+ // Bit 0: -> alter Zustand
+ // Bit 1: -> neuer Zustand
long nCall = mbModified ? 3 : 2;
mbModified = TRUE;
pDocStat->bModified = TRUE;
@@ -1978,8 +1978,8 @@ void SwDoc::SetModified()
void SwDoc::ResetModified()
{
// dem Link wird der Status returnt, wie die Flags waren und werden
- // Bit 0: -> alter Zustand
- // Bit 1: -> neuer Zustand
+ // Bit 0: -> alter Zustand
+ // Bit 1: -> neuer Zustand
long nCall = mbModified ? 1 : 0;
mbModified = FALSE;
// If there is already a document statistic, we assume that
@@ -2052,14 +2052,14 @@ BOOL lcl_SpellAndGrammarAgain( const SwNodePtr& rpNd, void* pArgs )
BOOL lcl_CheckSmartTagsAgain( const SwNodePtr& rpNd, void* )
{
SwTxtNode *pTxtNode = (SwTxtNode*)rpNd->GetTxtNode();
-// BOOL bOnlyWrong = *(BOOL*)pArgs;
+// BOOL bOnlyWrong = *(BOOL*)pArgs;
if( pTxtNode )
{
pTxtNode->SetSmartTagDirty( true );
if( pTxtNode->GetSmartTags() )
{
// if ( bOnlyWrong ) // only some smart tag types have been enabled or disabled
-// pTxtNode->GetSmartTags()->SetInvalid( 0, STRING_LEN );
+// pTxtNode->GetSmartTags()->SetInvalid( 0, STRING_LEN );
// else // smart tags all have been enabled or disabled
pTxtNode->SetSmartTags( NULL );
}
@@ -2068,7 +2068,7 @@ BOOL lcl_CheckSmartTagsAgain( const SwNodePtr& rpNd, void* )
}
/*************************************************************************
- * SwDoc::SpellItAgainSam( BOOL bInvalid, BOOL bOnlyWrong )
+ * SwDoc::SpellItAgainSam( BOOL bInvalid, BOOL bOnlyWrong )
*
* stoesst das Spelling im Idle-Handler wieder an.
* Wird bInvalid als TRUE uebergeben, so werden zusaetzlich die WrongListen
@@ -2185,7 +2185,7 @@ void SwDoc::Summary( SwDoc* pExtDoc, BYTE nLevel, BYTE nPara, BOOL bImpress )
{
SwNode *pNode;
BOOL bDelete = FALSE;
- if( (pNode = &aIndx.GetNode())->IsTxtNode() )
+ if( (pNode = &aIndx.GetNode())->IsTxtNode() )
{
SwTxtNode *pNd = (SwTxtNode*)pNode;
if( pNd->HasSwAttrSet() )
@@ -2453,7 +2453,7 @@ BOOL SwDoc::ConvertFieldsToText()
SwPaM aPam2(*pTxtFld->GetpTxtNode(), *pTxtFld->GetStart());
aPam2.SetMark();
aPam2.Move();
- DeleteAndJoin(aPam2);//remove the field
+ DeleteAndJoin(aPam2);//remove the field
}
}
++aBegin;
@@ -2535,7 +2535,7 @@ bool SwDoc::EmbedAllLinks()
rLnkMgr.Remove( xLink );
if( nCount != rLnks.Count() + 1 )
- n = 0; // wieder von vorne anfangen, es wurden
+ n = 0; // wieder von vorne anfangen, es wurden
// mehrere Links entfernt
bRet = TRUE;
}
diff --git a/sw/source/core/doc/docbasic.cxx b/sw/source/core/doc/docbasic.cxx
index 8f7f374da5b8..fd18605015a6 100644
--- a/sw/source/core/doc/docbasic.cxx
+++ b/sw/source/core/doc/docbasic.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
@@ -153,7 +153,7 @@ BOOL SwDoc::ExecMacro( const SvxMacro& rMacro, String* pRet, SbxArray* pArgs )
USHORT SwDoc::CallEvent( USHORT nEvent, const SwCallMouseEvent& rCallEvent,
BOOL bCheckPtr, SbxArray* pArgs, const Link* )
{
- if( !pDocShell ) // ohne DocShell geht das nicht!
+ if( !pDocShell ) // ohne DocShell geht das nicht!
return 0;
USHORT nRet = 0;
@@ -169,7 +169,7 @@ USHORT SwDoc::CallEvent( USHORT nEvent, const SwCallMouseEvent& rCallEvent,
if( 0 != (pItem = GetAttrPool().GetItem( RES_TXTATR_INETFMT, n ) )
&& rCallEvent.PTR.pINetAttr == pItem )
{
- bCheckPtr = FALSE; // als Flag missbrauchen
+ bCheckPtr = FALSE; // als Flag missbrauchen
break;
}
}
@@ -185,7 +185,7 @@ USHORT SwDoc::CallEvent( USHORT nEvent, const SwCallMouseEvent& rCallEvent,
{
USHORT nPos = GetSpzFrmFmts()->GetPos( pFmt );
if( USHRT_MAX != nPos )
- bCheckPtr = FALSE; // als Flag missbrauchen
+ bCheckPtr = FALSE; // als Flag missbrauchen
}
if( !bCheckPtr )
pTbl = &pFmt->GetMacro().GetMacroTable();
@@ -206,7 +206,7 @@ USHORT SwDoc::CallEvent( USHORT nEvent, const SwCallMouseEvent& rCallEvent,
for( nPos = pIMap->GetIMapObjectCount(); nPos; )
if( pIMapObj == pIMap->GetIMapObject( --nPos ))
{
- bCheckPtr = FALSE; // als Flag missbrauchen
+ bCheckPtr = FALSE; // als Flag missbrauchen
break;
}
}
diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx
index 6b2148f0508d..9717586e0694 100644
--- a/sw/source/core/doc/docbm.cxx
+++ b/sw/source/core/doc/docbm.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
@@ -428,19 +428,19 @@ namespace sw { namespace mark
const rtl::OUString& rName,
const rtl::OUString& rType )
{
- sw::mark::IMark* pMark = makeMark( rPaM, rName,
+ sw::mark::IMark* pMark = makeMark( rPaM, rName,
IDocumentMarkAccess::TEXT_FIELDMARK );
sw::mark::IFieldmark* pFieldMark = dynamic_cast<sw::mark::IFieldmark*>( pMark );
pFieldMark->SetFieldname( rType );
return pFieldMark;
}
-
- ::sw::mark::IFieldmark* MarkManager::makeNoTextFieldBookmark( const SwPaM& rPaM,
- const rtl::OUString& rName,
+
+ ::sw::mark::IFieldmark* MarkManager::makeNoTextFieldBookmark( const SwPaM& rPaM,
+ const rtl::OUString& rName,
const rtl::OUString& rType)
{
- sw::mark::IMark* pMark = makeMark( rPaM, rName,
+ sw::mark::IMark* pMark = makeMark( rPaM, rName,
IDocumentMarkAccess::CHECKBOX_FIELDMARK );
sw::mark::IFieldmark* pFieldMark = dynamic_cast<sw::mark::IFieldmark*>( pMark );
pFieldMark->SetFieldname( rType );
@@ -869,20 +869,20 @@ namespace sw { namespace mark
namespace
{
// Aufbau vom Array: 2 longs,
- // 1. Long enthaelt Type und Position im DocArray,
- // 2. die ContentPosition
+ // 1. Long enthaelt Type und Position im DocArray,
+ // 2. die ContentPosition
//
- // CntntType --
- // 0x8000 = Bookmark Pos1
- // 0x8001 = Bookmark Pos2
- // 0x2000 = Absatzgebundener Rahmen
- // 0x2001 = Auto-Absatzgebundener Rahmen, der umgehaengt werden soll
- // 0x1000 = Redline Mark
- // 0x1001 = Redline Point
- // 0x0800 = Crsr aus der CrsrShell Mark
- // 0x0801 = Crsr aus der CrsrShell Point
- // 0x0400 = UnoCrsr Mark
- // 0x0401 = UnoCrsr Point
+ // CntntType --
+ // 0x8000 = Bookmark Pos1
+ // 0x8001 = Bookmark Pos2
+ // 0x2000 = Absatzgebundener Rahmen
+ // 0x2001 = Auto-Absatzgebundener Rahmen, der umgehaengt werden soll
+ // 0x1000 = Redline Mark
+ // 0x1001 = Redline Point
+ // 0x0800 = Crsr aus der CrsrShell Mark
+ // 0x0801 = Crsr aus der CrsrShell Point
+ // 0x0400 = UnoCrsr Mark
+ // 0x0401 = UnoCrsr Point
//
class _SwSaveTypeCountContent
@@ -911,21 +911,21 @@ namespace
rArr.Insert( nContent, rArr.Count() );
}
- void SetType( USHORT n ) { TYPECOUNT.TC.nType = n; }
- USHORT GetType() const { return TYPECOUNT.TC.nType; }
- void IncType() { ++TYPECOUNT.TC.nType; }
- void DecType() { --TYPECOUNT.TC.nType; }
+ void SetType( USHORT n ) { TYPECOUNT.TC.nType = n; }
+ USHORT GetType() const { return TYPECOUNT.TC.nType; }
+ void IncType() { ++TYPECOUNT.TC.nType; }
+ void DecType() { --TYPECOUNT.TC.nType; }
- void SetCount( USHORT n ) { TYPECOUNT.TC.nCount = n; }
- USHORT GetCount() const { return TYPECOUNT.TC.nCount; }
- USHORT IncCount() { return ++TYPECOUNT.TC.nCount; }
- USHORT DecCount() { return --TYPECOUNT.TC.nCount; }
+ void SetCount( USHORT n ) { TYPECOUNT.TC.nCount = n; }
+ USHORT GetCount() const { return TYPECOUNT.TC.nCount; }
+ USHORT IncCount() { return ++TYPECOUNT.TC.nCount; }
+ USHORT DecCount() { return --TYPECOUNT.TC.nCount; }
void SetTypeAndCount( USHORT nT, USHORT nC )
{ TYPECOUNT.TC.nCount = nC; TYPECOUNT.TC.nType = nT; }
- void SetContent( xub_StrLen n ) { nContent = n; }
- xub_StrLen GetContent() const { return nContent; }
+ void SetContent( xub_StrLen n ) { nContent = n; }
+ xub_StrLen GetContent() const { return nContent; }
};
// #i59534: If a paragraph will be splitted we have to restore some redline positions
diff --git a/sw/source/core/doc/docchart.cxx b/sw/source/core/doc/docchart.cxx
index 3a8f5b86c6d9..5ded86eb0ef4 100644
--- a/sw/source/core/doc/docchart.cxx
+++ b/sw/source/core/doc/docchart.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
@@ -172,7 +172,7 @@ void SwDoc::UpdateCharts( const String &rName ) const
void SwDoc::SetTableName( SwFrmFmt& rTblFmt, const String &rNewName )
{
-// BOOL bStop = 1;
+// BOOL bStop = 1;
const String aOldName( rTblFmt.GetName() );
diff --git a/sw/source/core/doc/doccomp.cxx b/sw/source/core/doc/doccomp.cxx
index 11030e68ea8a..f05f36a76dc7 100644
--- a/sw/source/core/doc/doccomp.cxx
+++ b/sw/source/core/doc/doccomp.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
@@ -115,8 +115,8 @@ public:
: 0;
}
- ULONG GetLineCount() const { return aLines.Count(); }
- ULONG GetLineOffset() const { return nSttLineNum; }
+ ULONG GetLineCount() const { return aLines.Count(); }
+ ULONG GetLineOffset() const { return nSttLineNum; }
const CompareLine* GetLine( ULONG nLine ) const
{ return aLines.GetObject( nLine ); }
void InsertLine( CompareLine* pLine )
@@ -330,7 +330,7 @@ static const ULONG primes[] =
8388593,
16777213,
33554393,
- 67108859, /* Preposterously large . . . */
+ 67108859, /* Preposterously large . . . */
134217689,
268435399,
536870909,
@@ -675,16 +675,16 @@ void Compare::CompareSequence::Compare( ULONG nStt1, ULONG nEnd1,
ULONG Compare::CompareSequence::CheckDiag( ULONG nStt1, ULONG nEnd1,
ULONG nStt2, ULONG nEnd2, ULONG* pCost )
{
- const long dmin = nStt1 - nEnd2; /* Minimum valid diagonal. */
- const long dmax = nEnd1 - nStt2; /* Maximum valid diagonal. */
- const long fmid = nStt1 - nStt2; /* Center diagonal of top-down search. */
- const long bmid = nEnd1 - nEnd2; /* Center diagonal of bottom-up search. */
+ const long dmin = nStt1 - nEnd2; /* Minimum valid diagonal. */
+ const long dmax = nEnd1 - nStt2; /* Maximum valid diagonal. */
+ const long fmid = nStt1 - nStt2; /* Center diagonal of top-down search. */
+ const long bmid = nEnd1 - nEnd2; /* Center diagonal of bottom-up search. */
- long fmin = fmid, fmax = fmid; /* Limits of top-down search. */
- long bmin = bmid, bmax = bmid; /* Limits of bottom-up search. */
+ long fmin = fmid, fmax = fmid; /* Limits of top-down search. */
+ long bmin = bmid, bmax = bmid; /* Limits of bottom-up search. */
- long c; /* Cost. */
- long odd = (fmid - bmid) & 1; /* True if southeast corner is on an odd
+ long c; /* Cost. */
+ long odd = (fmid - bmid) & 1; /* True if southeast corner is on an odd
diagonal with respect to the northwest. */
pFDiag[fmid] = nStt1;
@@ -692,7 +692,7 @@ ULONG Compare::CompareSequence::CheckDiag( ULONG nStt1, ULONG nEnd1,
for (c = 1;; ++c)
{
- long d; /* Active diagonal. */
+ long d; /* Active diagonal. */
long big_snake = 0;
/* Extend the top-down search by an edit step in each diagonal. */
@@ -1030,11 +1030,11 @@ BOOL SwCompareLine::CompareNode( const SwNode& rDstNd, const SwNode& rSrcNd )
// the same type of TOX?
const SwTOXBase* pSrcTOX = rSrcSect.GetTOXBase();
const SwTOXBase* pDstTOX = rDstSect.GetTOXBase();
- bRet = pSrcTOX && pDstTOX
+ bRet = pSrcTOX && pDstTOX
&& pSrcTOX->GetType() == pDstTOX->GetType()
&& pSrcTOX->GetTitle() == pDstTOX->GetTitle()
&& pSrcTOX->GetTypeName() == pDstTOX->GetTypeName()
-// && pSrcTOX->GetTOXName() == pDstTOX->GetTOXName()
+// && pSrcTOX->GetTOXName() == pDstTOX->GetTOXName()
;
}
break;
@@ -1103,7 +1103,7 @@ String SwCompareLine::GetText() const
if( pTOX )
sRet.Append( pTOX->GetTitle() )
.Append( pTOX->GetTypeName() )
-// .Append( pTOX->GetTOXName() )
+// .Append( pTOX->GetTOXName() )
.Append( String::CreateFromInt32( pTOX->GetType() ));
}
break;
@@ -1416,7 +1416,7 @@ void SwCompareData::SetRedlinesToDoc( BOOL bUseDocInfo )
SwPaM* pTmp = pDelRing;
// Bug #83296#: get the Author / TimeStamp from the "other"
- // document info
+ // document info
USHORT nAuthor = rDoc.GetRedlineAuthor();
DateTime aTimeStamp;
SwDocShell *pDocShell(rDoc.GetDocShell());
diff --git a/sw/source/core/doc/doccorr.cxx b/sw/source/core/doc/doccorr.cxx
index b68d512d1aa0..67f83f0f42f0 100644
--- a/sw/source/core/doc/doccorr.cxx
+++ b/sw/source/core/doc/doccorr.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
@@ -122,9 +122,9 @@ namespace
const SwPosition& rEnd,
const SwPosition& rNewPos)
{
- for(int nb = 0; nb < 2; ++nb)
- if(rStart <= (pPam)->GetBound(BOOL(nb)) &&
- (pPam)->GetBound(BOOL(nb)) <= rEnd )
+ for(int nb = 0; nb < 2; ++nb)
+ if(rStart <= (pPam)->GetBound(BOOL(nb)) &&
+ (pPam)->GetBound(BOOL(nb)) <= rEnd )
(pPam)->GetBound(BOOL(nb)) = rNewPos;
};
@@ -139,7 +139,7 @@ namespace
(pPam)->GetBound(BOOL(nb)).nNode = rNewPos.nNode;
(pPam)->GetBound(BOOL(nb)).nContent.Assign(
const_cast<SwIndexReg*>(rNewPos.nContent.GetIdxReg()),
- nCntIdx + (pPam)->GetBound(BOOL(nb)).nContent.GetIndex());
+ nCntIdx + (pPam)->GetBound(BOOL(nb)).nContent.GetIndex());
}
}
}
diff --git a/sw/source/core/doc/docdde.cxx b/sw/source/core/doc/docdde.cxx
index 6959e2880877..1b6c2e3c3aca 100644
--- a/sw/source/core/doc/docdde.cxx
+++ b/sw/source/core/doc/docdde.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
@@ -38,15 +38,15 @@
#define _SVSTDARR_STRINGS
#include <svl/svstdarr.hxx>
-#include <sfx2/linkmgr.hxx> // LinkManager
+#include <sfx2/linkmgr.hxx> // LinkManager
#include <unotools/charclass.hxx>
#include <fmtcntnt.hxx>
#include <doc.hxx>
-#include <swserv.hxx> // fuer Server-Funktionalitaet
+#include <swserv.hxx> // fuer Server-Funktionalitaet
#include <IMark.hxx>
#include <bookmrk.hxx>
-#include <section.hxx> // fuer SwSectionFmt
-#include <swtable.hxx> // fuer SwTable
+#include <section.hxx> // fuer SwSectionFmt
+#include <swtable.hxx> // fuer SwTable
#include <node.hxx>
#include <ndtxt.hxx>
#include <pam.hxx>
@@ -115,20 +115,20 @@ BOOL lcl_FindSection( const SwSectionFmtPtr& rpSectFmt, void* pArgs, bool bCaseS
pItem->pSectNd = pIdx->GetNode().GetSectionNode();
return FALSE;
}
-//nein!! // sollte der Namen schon passen, der Rest aber nicht, dann haben wir
+//nein!! // sollte der Namen schon passen, der Rest aber nicht, dann haben wir
// sie nicht. Die Namen sind immer eindeutig.
}
}
- return TRUE; // dann weiter
+ return TRUE; // dann weiter
}
BOOL lcl_FindSectionCaseSensitive( const SwSectionFmtPtr& rpSectFmt, void* pArgs )
{
return lcl_FindSection( rpSectFmt, pArgs, true );
-}
+}
BOOL lcl_FindSectionCaseInsensitive( const SwSectionFmtPtr& rpSectFmt, void* pArgs )
{
return lcl_FindSection( rpSectFmt, pArgs, false );
-}
+}
@@ -150,10 +150,10 @@ BOOL lcl_FindTable( const SwFrmFmtPtr& rpTableFmt, void* pArgs )
pFBox->GetSttNd()->FindTableNode();
return FALSE;
}
-//nein! // sollte der Namen schon passen, der Rest aber nicht, dann haben wir
+//nein! // sollte der Namen schon passen, der Rest aber nicht, dann haben wir
// sie nicht. Die Namen sind immer eindeutig.
}
- return TRUE; // dann weiter
+ return TRUE; // dann weiter
}
@@ -166,7 +166,7 @@ bool SwDoc::GetData( const String& rItem, const String& rMimeType,
while( true )
{
::sw::mark::DdeBookmark* const pBkmk = lcl_FindDdeBookmark(*pMarkManager, rItem, bCaseSensitive);
- if(pBkmk)
+ if(pBkmk)
return SwServerObject(*pBkmk).GetData(rValue, rMimeType);
// haben wir ueberhaupt das Item vorraetig?
@@ -179,7 +179,7 @@ bool SwDoc::GetData( const String& rItem, const String& rMimeType,
// gefunden, als erfrage die Daten
return SwServerObject( *aPara.pSectNd ).GetData( rValue, rMimeType );
}
- if( !bCaseSensitive )
+ if( !bCaseSensitive )
break;
bCaseSensitive = false;
}
@@ -205,7 +205,7 @@ bool SwDoc::SetData( const String& rItem, const String& rMimeType,
while( true )
{
::sw::mark::DdeBookmark* const pBkmk = lcl_FindDdeBookmark(*pMarkManager, rItem, bCaseSensitive);
- if(pBkmk)
+ if(pBkmk)
return SwServerObject(*pBkmk).SetData(rMimeType, rValue);
// haben wir ueberhaupt das Item vorraetig?
@@ -217,7 +217,7 @@ bool SwDoc::SetData( const String& rItem, const String& rMimeType,
// gefunden, als erfrage die Daten
return SwServerObject( *aPara.pSectNd ).SetData( rMimeType, rValue );
}
- if( !bCaseSensitive )
+ if( !bCaseSensitive )
break;
bCaseSensitive = false;
}
@@ -248,12 +248,12 @@ bool SwDoc::SetData( const String& rItem, const String& rMimeType,
if(pBkmk && pBkmk->IsExpanded()
&& (0 == (pObj = pBkmk->GetRefObject())))
{
- // mark found, but no link yet -> create hotlink
+ // mark found, but no link yet -> create hotlink
pObj = new SwServerObject(*pBkmk);
pBkmk->SetRefObject(pObj);
GetLinkManager().InsertServer(pObj);
- }
- if(pObj)
+ }
+ if(pObj)
return pObj;
_FindItem aPara(bCaseSensitive ? rItem : GetAppCharClass().lower(rItem));
@@ -262,25 +262,25 @@ bool SwDoc::SetData( const String& rItem, const String& rMimeType,
if(aPara.pSectNd
&& (0 == (pObj = aPara.pSectNd->GetSection().GetObject())))
{
- // section found, but no link yet -> create hotlink
+ // section found, but no link yet -> create hotlink
pObj = new SwServerObject( *aPara.pSectNd );
aPara.pSectNd->GetSection().SetRefObject( pObj );
GetLinkManager().InsertServer(pObj);
}
- if(pObj)
+ if(pObj)
return pObj;
- if( !bCaseSensitive )
+ if( !bCaseSensitive )
break;
bCaseSensitive = false;
}
_FindItem aPara( GetAppCharClass().lower(rItem) );
- // tables
+ // tables
((SwFrmFmts*)pTblFrmFmtTbl)->ForEach(0, pTblFrmFmtTbl->Count(), lcl_FindTable, &aPara);
if(aPara.pTblNd
&& (0 == (pObj = aPara.pTblNd->GetTable().GetObject())))
{
- // table found, but no link yet -> create hotlink
+ // table found, but no link yet -> create hotlink
pObj = new SwServerObject(*aPara.pTblNd);
aPara.pTblNd->GetTable().SetRefObject(pObj);
GetLinkManager().InsertServer(pObj);
@@ -341,7 +341,7 @@ BOOL SwDoc::SelectServerObj( const String& rStr, SwPaM*& rpPam,
}
else if( sCmp.EqualsAscii( pMarkToRegion ) )
{
- sItem = sName; // wird unten behandelt !
+ sItem = sName; // wird unten behandelt !
bWeiter = TRUE;
}
else if( sCmp.EqualsAscii( pMarkToOutline ) )
@@ -365,7 +365,7 @@ BOOL SwDoc::SelectServerObj( const String& rStr, SwPaM*& rpPam,
//GetTxtColl()->GetOutlineLevel();//#outline level,zhaojianwei
GetAttrOutlineLevel()-1;//<-end,zhaojianwei
++nTmpPos )
- ; // es gibt keinen Block
+ ; // es gibt keinen Block
if( nTmpPos < rOutlNds.Count() )
rpRange->aEnd = *rOutlNds[ nTmpPos ];
@@ -393,7 +393,7 @@ BOOL SwDoc::SelectServerObj( const String& rStr, SwPaM*& rpPam,
return static_cast<bool>(rpPam);
}
- //
+ //
_FindItem aPara( bCaseSensitive ? sItem : rCC.lower( sItem ) );
if( pSectionFmtTbl->Count() )
@@ -408,7 +408,7 @@ BOOL SwDoc::SelectServerObj( const String& rStr, SwPaM*& rpPam,
}
}
- if( !bCaseSensitive )
+ if( !bCaseSensitive )
break;
bCaseSensitive = false;
}
diff --git a/sw/source/core/doc/docdesc.cxx b/sw/source/core/doc/docdesc.cxx
index 00a9fd604f5a..a5a4078f1a82 100644
--- a/sw/source/core/doc/docdesc.cxx
+++ b/sw/source/core/doc/docdesc.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
@@ -50,8 +50,8 @@
#include <mdiexp.hxx>
#include <doc.hxx>
#include <docary.hxx>
-#include <pagefrm.hxx> //Fuer DelPageDesc
-#include <rootfrm.hxx> //Fuer DelPageDesc
+#include <pagefrm.hxx> //Fuer DelPageDesc
+#include <rootfrm.hxx> //Fuer DelPageDesc
#include <ndtxt.hxx>
#include <frmtool.hxx>
#include <pagedesc.hxx>
@@ -136,10 +136,10 @@ static void lcl_DefaultPageFmt( sal_uInt16 nPoolFmtId,
/*************************************************************************
|*
-|* SwDoc::ChgPageDesc()
+|* SwDoc::ChgPageDesc()
|*
-|* Ersterstellung MA 25. Jan. 93
-|* Letzte Aenderung MA 01. Mar. 95
+|* Ersterstellung MA 25. Jan. 93
+|* Letzte Aenderung MA 01. Mar. 95
|*
|*************************************************************************/
@@ -220,7 +220,7 @@ void SwDoc::ChgPageDesc( USHORT i, const SwPageDesc &rChged )
{
pDesc->SetNumType( rChged.GetNumType() );
// JP 30.03.99: Bug 64121 - den Seitennummernfeldern bescheid sagen,
- // das sich das Num-Format geaendert hat
+ // das sich das Num-Format geaendert hat
GetSysFldType( RES_PAGENUMBERFLD )->UpdateFlds();
GetSysFldType( RES_REFPAGEGETFLD )->UpdateFlds();
@@ -260,7 +260,7 @@ void SwDoc::ChgPageDesc( USHORT i, const SwPageDesc &rChged )
pDesc->GetLeft().SetFmtAttr( pDesc->GetMaster().GetHeader() );
}
else if ( rHead.IsActive() )
- { //Left bekommt einen eigenen Header verpasst wenn das Format nicht
+ { //Left bekommt einen eigenen Header verpasst wenn das Format nicht
//bereits einen hat.
//Wenn er bereits einen hat und dieser auf die gleiche Section
//wie der Rechte zeigt, so muss er einen eigenen bekommen. Der
@@ -322,7 +322,7 @@ void SwDoc::ChgPageDesc( USHORT i, const SwPageDesc &rChged )
//Left teilt sich den Header mit dem Master.
pDesc->GetLeft().SetFmtAttr( pDesc->GetMaster().GetFooter() );
else if ( rFoot.IsActive() )
- { //Left bekommt einen eigenen Footer verpasst wenn das Format nicht
+ { //Left bekommt einen eigenen Footer verpasst wenn das Format nicht
//bereits einen hat.
//Wenn er bereits einen hat und dieser auf die gleiche Section
//wie der Rechte zeigt, so muss er einen eigenen bekommen. Der
@@ -382,14 +382,14 @@ void SwDoc::ChgPageDesc( USHORT i, const SwPageDesc &rChged )
bUseOn = TRUE;
}
if ( pDesc->GetFollow() != rChged.GetFollow() )
- { if ( rChged.GetFollow() == &rChged )
- { if ( pDesc->GetFollow() != pDesc )
- { pDesc->SetFollow( pDesc );
+ { if ( rChged.GetFollow() == &rChged )
+ { if ( pDesc->GetFollow() != pDesc )
+ { pDesc->SetFollow( pDesc );
bFollow = TRUE;
}
}
else
- { pDesc->SetFollow( rChged.pFollow );
+ { pDesc->SetFollow( rChged.pFollow );
bFollow = TRUE;
}
}
@@ -435,12 +435,12 @@ void SwDoc::ChgPageDesc( USHORT i, const SwPageDesc &rChged )
/*************************************************************************
|*
-|* SwDoc::DelPageDesc()
+|* SwDoc::DelPageDesc()
|*
-|* Beschreibung Alle Descriptoren, deren Follow auf den zu loeschenden
-|* zeigen muessen angepasst werden.
-|* Ersterstellung MA 25. Jan. 93
-|* Letzte Aenderung JP 04.09.95
+|* Beschreibung Alle Descriptoren, deren Follow auf den zu loeschenden
+|* zeigen muessen angepasst werden.
+|* Ersterstellung MA 25. Jan. 93
+|* Letzte Aenderung JP 04.09.95
|*
|*************************************************************************/
@@ -489,7 +489,7 @@ void SwDoc::PreDelPageDesc(SwPageDesc * pDel)
aPageDescs[0]->Add( pLast );
}
}
- else //Es kann noch eine Undo-Kopie existieren
+ else //Es kann noch eine Undo-Kopie existieren
aPageDescs[0]->Add( pLast );
}
@@ -583,10 +583,10 @@ void SwDoc::DelPageDesc( USHORT i, BOOL bBroadcast )
/*************************************************************************
|*
-|* SwDoc::MakePageDesc()
+|* SwDoc::MakePageDesc()
|*
-|* Ersterstellung MA 25. Jan. 93
-|* Letzte Aenderung MA 20. Aug. 93
+|* Ersterstellung MA 25. Jan. 93
+|* Letzte Aenderung MA 20. Aug. 93
|*
|*************************************************************************/
@@ -651,9 +651,9 @@ SwPageDesc* SwDoc::FindPageDescByName( const String& rName, USHORT* pPos ) const
/******************************************************************************
* Methode : void SwDoc::PrtDataChanged()
- * Beschreibung:
- * Erstellt : OK 27.10.94 10:20
- * Aenderung : MA 26. Mar. 98
+ * Beschreibung:
+ * Erstellt : OK 27.10.94 10:20
+ * Aenderung : MA 26. Mar. 98
******************************************************************************/
void SwDoc::PrtDataChanged()
@@ -739,7 +739,7 @@ void SwDoc::PrtOLENotify( BOOL bAll )
ViewShell *pSh = GetRootFrm()->GetCurrShell();
if ( !pSh->ISA(SwFEShell) )
do
- { pSh = (ViewShell*)pSh->GetNext();
+ { pSh = (ViewShell*)pSh->GetNext();
} while ( !pSh->ISA(SwFEShell) &&
pSh != GetRootFrm()->GetCurrShell() );
diff --git a/sw/source/core/doc/docdraw.cxx b/sw/source/core/doc/docdraw.cxx
index 59e70d1fc36f..64a5913035c2 100644
--- a/sw/source/core/doc/docdraw.cxx
+++ b/sw/source/core/doc/docdraw.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
@@ -51,12 +51,12 @@
#include <swhints.hxx>
#include <doc.hxx>
#include <docsh.hxx>
-#include <rootfrm.hxx> //Damit der RootDtor gerufen wird.
+#include <rootfrm.hxx> //Damit der RootDtor gerufen wird.
#include <poolfmt.hxx>
#include <viewsh.hxx> // fuer MakeDrawView
#include <drawdoc.hxx>
#include <undobj.hxx>
-#include <swundo.hxx> // fuer die UndoIds
+#include <swundo.hxx> // fuer die UndoIds
#include <dcontact.hxx>
#include <dview.hxx>
#include <mvsave.hxx>
@@ -85,7 +85,7 @@ SV_IMPL_VARARR_SORT( _ZSortFlys, _ZSortFly )
/*************************************************************************
|*
-|* SwDoc::GroupSelection / SwDoc::UnGroupSelection
+|* SwDoc::GroupSelection / SwDoc::UnGroupSelection
|*
|*************************************************************************/
// local method to determine positioning and
@@ -424,10 +424,10 @@ void SwDoc::UnGroupSelection( SdrView& rDrawView )
/*************************************************************************
|*
-|* SwDoc::DeleteSelection()
+|* SwDoc::DeleteSelection()
|*
-|* Ersterstellung MA 14. Nov. 95
-|* Letzte Aenderung MA 14. Nov. 95
+|* Ersterstellung MA 14. Nov. 95
+|* Letzte Aenderung MA 14. Nov. 95
|*
|*************************************************************************/
@@ -479,7 +479,7 @@ BOOL SwDoc::DeleteSelection( SwDrawView& rDrawView )
if( !pObj->GetUpGroup() )
{
SwUndoDrawDelete* pUndo = !DoesUndo() ? 0
- : new SwUndoDrawDelete( (USHORT)rMrkList.GetMarkCount() );
+ : new SwUndoDrawDelete( (USHORT)rMrkList.GetMarkCount() );
//ContactObjekte vernichten, Formate sicherstellen.
for( i = 0; i < rMrkList.GetMarkCount(); ++i )
@@ -525,10 +525,10 @@ BOOL SwDoc::DeleteSelection( SwDrawView& rDrawView )
/*************************************************************************
|*
-|* SwDoc::DeleteSelection()
+|* SwDoc::DeleteSelection()
|*
-|* Ersterstellung JP 11.01.96
-|* Letzte Aenderung JP 11.01.96
+|* Ersterstellung JP 11.01.96
+|* Letzte Aenderung JP 11.01.96
|*
|*************************************************************************/
@@ -588,7 +588,7 @@ void SwDoc::InitDrawModel()
//dem Drawing nur mitgegeben. Im ReleaseDrawModel werden die Pools wieder
//zerstoert.
// 17.2.99: for Bug 73110 - for loading the drawing items. This must
- // be loaded without RefCounts!
+ // be loaded without RefCounts!
SfxItemPool *pSdrPool = new SdrItemPool( &GetAttrPool() );
// #75371# change DefaultItems for the SdrEdgeObj distance items
// to TWIPS.
@@ -624,10 +624,10 @@ void SwDoc::InitDrawModel()
String sLayerNm;
sLayerNm.AssignAscii(RTL_CONSTASCII_STRINGPARAM("Hell" ));
- nHell = pDrawModel->GetLayerAdmin().NewLayer( sLayerNm )->GetID();
+ nHell = pDrawModel->GetLayerAdmin().NewLayer( sLayerNm )->GetID();
sLayerNm.AssignAscii(RTL_CONSTASCII_STRINGPARAM("Heaven" ));
- nHeaven = pDrawModel->GetLayerAdmin().NewLayer( sLayerNm )->GetID();
+ nHeaven = pDrawModel->GetLayerAdmin().NewLayer( sLayerNm )->GetID();
sLayerNm.AssignAscii(RTL_CONSTASCII_STRINGPARAM("Controls" ));
nControls = pDrawModel->GetLayerAdmin().NewLayer( sLayerNm )->GetID();
@@ -660,7 +660,7 @@ void SwDoc::InitDrawModel()
SetCalcFieldValueHdl(&pDrawModel->GetHitTestOutliner());
//JP 16.07.98: Bug 50193 - Linkmanager am Model setzen, damit
- // dort ggfs. verlinkte Grafiken eingefuegt werden koennen
+ // dort ggfs. verlinkte Grafiken eingefuegt werden koennen
//JP 28.01.99: der WinWord Import benoetigt ihn auch
pDrawModel->SetLinkManager( &GetLinkManager() );
pDrawModel->SetAddExtLeading( get(IDocumentSettingAccess::ADD_EXT_LEADING) );
@@ -823,10 +823,10 @@ void SwDoc::ReleaseDrawModel()
OSL_ENSURE( pSdrPool, "missing Pool" );
SfxItemPool *pEEgPool = pSdrPool->GetSecondaryPool();
OSL_ENSURE( !pEEgPool->GetSecondaryPool(), "i don't accept additional pools");
- pSdrPool->Delete(); //Erst die Items vernichten lassen,
+ pSdrPool->Delete(); //Erst die Items vernichten lassen,
//dann erst die Verkettung loesen
- GetAttrPool().SetSecondaryPool( 0 ); //Der ist ein muss!
- pSdrPool->SetSecondaryPool( 0 ); //Der ist sicherer
+ GetAttrPool().SetSecondaryPool( 0 ); //Der ist ein muss!
+ pSdrPool->SetSecondaryPool( 0 ); //Der ist sicherer
SfxItemPool::Free(pSdrPool);
SfxItemPool::Free(pEEgPool);
}
diff --git a/sw/source/core/doc/docedt.cxx b/sw/source/core/doc/docedt.cxx
index 5b2b3b7bcf69..26d376901553 100644
--- a/sw/source/core/doc/docedt.cxx
+++ b/sw/source/core/doc/docedt.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
@@ -29,7 +29,7 @@
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_sw.hxx"
-#include <string.h> // fuer strchr()
+#include <string.h> // fuer strchr()
#include <hintids.hxx>
#include <vcl/sound.hxx>
@@ -44,25 +44,25 @@
#include <fmtcntnt.hxx>
#include <fmtpdsc.hxx>
#include <txtftn.hxx>
-#include <acorrect.hxx> // Autokorrektur
-#include <IMark.hxx> // fuer SwBookmark
-#include <cntfrm.hxx> // fuers Spell
+#include <acorrect.hxx> // Autokorrektur
+#include <IMark.hxx> // fuer SwBookmark
+#include <cntfrm.hxx> // fuers Spell
#include <crsrsh.hxx>
#include <doc.hxx>
#include <docsh.hxx>
#include <docary.hxx>
-#include <doctxm.hxx> // beim Move: Verzeichnisse korrigieren
+#include <doctxm.hxx> // beim Move: Verzeichnisse korrigieren
#include <ftnidx.hxx>
#include <ftninfo.hxx>
-#include <mdiexp.hxx> // Statusanzeige
-#include <mvsave.hxx> // Strukturen zum Sichern beim Move/Delete
+#include <mdiexp.hxx> // Statusanzeige
+#include <mvsave.hxx> // Strukturen zum Sichern beim Move/Delete
#include <ndtxt.hxx>
#include <pam.hxx>
#include <redline.hxx>
-#include <rootfrm.hxx> // fuers UpdateFtn
-#include <splargs.hxx> // fuer Spell
+#include <rootfrm.hxx> // fuers UpdateFtn
+#include <splargs.hxx> // fuer Spell
#include <swtable.hxx>
-#include <swundo.hxx> // fuer die UndoIds
+#include <swundo.hxx> // fuer die UndoIds
#include <txtfrm.hxx>
#include <undobj.hxx>
#include <breakit.hxx>
@@ -284,7 +284,7 @@ void _SaveFlyInRange( const SwPaM& rPam, const SwNodeIndex& rInsPos,
SwFmtAnchor aAnchor( *pAnchor );
aAnchor.SetAnchor( &aPos );
pFmt->SetFmtAttr( aAnchor );
-// ((SwFmtAnchor*)pAnchor)->SetAnchor( &aPos );
+// ((SwFmtAnchor*)pAnchor)->SetAnchor( &aPos );
}
}
else if( ( rSttNdIdx.GetIndex() + nSttOff <= pAPos->nNode.GetIndex()
@@ -392,7 +392,7 @@ bool lcl_SaveFtn( const SwNodeIndex& rSttNd, const SwNodeIndex& rEndNd,
nFtnSttIdx >= pEndCnt->GetIndex() ))
: ( &rEndNd.GetNode() == pFtnNd ))
{
- ++nPos; // weiter suchen
+ ++nPos; // weiter suchen
}
else
{
@@ -593,7 +593,7 @@ void lcl_SaveRedlines( const SwNodeRange& rRg, _SaveRedlines& rArr )
pTmpPos->nNode.GetNode().GetCntntNode(), 0 );
_SaveRedline* pSave = new _SaveRedline( pNewRedl, rRg.aStart );
-// rArr.Insert( pSave, rArr.Count() );
+// rArr.Insert( pSave, rArr.Count() );
rArr.C40_INSERT( _SaveRedline, pSave, rArr.Count() );
pTmpPos = pTmp->End();
@@ -617,7 +617,7 @@ void lcl_SaveRedlines( const SwNodeRange& rRg, _SaveRedlines& rArr )
{
// gesamt verschieben
_SaveRedline* pSave = new _SaveRedline( pTmp, rRg.aStart );
-// rArr.Insert( pSave, rArr.Count() );
+// rArr.Insert( pSave, rArr.Count() );
rArr.C40_INSERT( _SaveRedline, pSave, rArr.Count() );
}
else
@@ -630,7 +630,7 @@ void lcl_SaveRedlines( const SwNodeRange& rRg, _SaveRedlines& rArr )
pTmpPos->nNode.GetNode().GetCntntNode(), 0 );
_SaveRedline* pSave = new _SaveRedline( pNewRedl, rRg.aStart );
-// rArr.Insert( pSave, rArr.Count() );
+// rArr.Insert( pSave, rArr.Count() );
rArr.C40_INSERT( _SaveRedline, pSave, rArr.Count() );
pTmpPos = pTmp->Start();
@@ -744,12 +744,12 @@ void SwDoc::SetModified(SwPaM &rPaM)
}
/*************************************************************************
- * SwDoc::Overwrite()
+ * SwDoc::Overwrite()
************************************************************************/
bool SwDoc::Overwrite( const SwPaM &rRg, const String &rStr )
{
SwPosition& rPt = *(SwPosition*)rRg.GetPoint();
- if( pACEWord ) // Aufnahme in die Autokorrektur
+ if( pACEWord ) // Aufnahme in die Autokorrektur
{
if( 1 == rStr.Len() )
pACEWord->CheckChar( rPt, rStr.GetChar( 0 ) );
@@ -850,7 +850,7 @@ bool SwDoc::MoveAndJoin( SwPaM& rPaM, SwPosition& rPos, SwMoveFlags eMvFlags )
SwNodeIndex aIdx( rPaM.Start()->nNode );
sal_Bool bJoinTxt = aIdx.GetNode().IsTxtNode();
sal_Bool bOneNode = rPaM.GetPoint()->nNode == rPaM.GetMark()->nNode;
- aIdx--; // vor den Move Bereich !!
+ aIdx--; // vor den Move Bereich !!
bool bRet = MoveRange( rPaM, rPos, eMvFlags );
if( bRet && !bOneNode )
@@ -1009,7 +1009,7 @@ bool SwDoc::MoveRange( SwPaM& rPaM, SwPosition& rPos, SwMoveFlags eMvFlags )
"PaM wurde nicht verschoben, am Anfang/Ende keine ContentNodes?" );
*aSavePam.GetMark() = rPos;
- rPaM.SetMark(); // um den neuen Bereich eine Sel. aufspannen
+ rPaM.SetMark(); // um den neuen Bereich eine Sel. aufspannen
pTNd = aSavePam.GetNode()->GetTxtNode();
if( DoesUndo() )
{
@@ -1046,7 +1046,7 @@ bool SwDoc::MoveRange( SwPaM& rPaM, SwPosition& rPos, SwMoveFlags eMvFlags )
}
bJoin = sal_False;
}
-// else if( !bCorrSavePam && !pSavePam->Move( fnMoveForward, fnGoCntnt ))
+// else if( !bCorrSavePam && !pSavePam->Move( fnMoveForward, fnGoCntnt ))
else if ( !aSavePam.Move( fnMoveForward, fnGoCntnt ) )
{
aSavePam.GetPoint()->nNode++;
@@ -1191,7 +1191,7 @@ bool SwDoc::MoveNodeRange( SwNodeRange& rRange, SwNodeIndex& rPos,
BOOL bNoDelFrms = 0 != (DOC_NO_DELFRMS & eMvFlags);
if( GetNodes()._MoveNodes( rRange, GetNodes(), rPos, !bNoDelFrms ) )
{
- aIdx++; // wieder auf alte Position
+ aIdx++; // wieder auf alte Position
if( pSaveInsPos )
(*pSaveInsPos)++;
}
@@ -1502,7 +1502,7 @@ bool lcl_DoWithBreaks(SwDoc & rDoc, SwPaM & rPam,
// N.B.: deletion must be split into several parts if the text node
// contains a text attribute with end and with dummy character
// and the selection does not contain the text attribute completely,
- // but overlaps its start (left), where the dummy character is.
+ // but overlaps its start (left), where the dummy character is.
SwPosition const & rSelectionEnd( *rPam.End() );
@@ -1661,9 +1661,9 @@ bool SwDoc::DeleteRangeImplImpl(SwPaM & rPam)
}
{
- // Bug 26675: DataChanged vorm loeschen verschicken, dann bekommt
- // man noch mit, welche Objecte sich im Bereich befinden.
- // Danach koennen sie vor/hinter der Position befinden.
+ // Bug 26675: DataChanged vorm loeschen verschicken, dann bekommt
+ // man noch mit, welche Objecte sich im Bereich befinden.
+ // Danach koennen sie vor/hinter der Position befinden.
SwDataChanged aTmp( rPam, 0 );
}
@@ -1701,7 +1701,7 @@ bool SwDoc::DeleteRangeImplImpl(SwPaM & rPam)
SwNodeIndex aSttIdx( pStt->nNode );
SwCntntNode * pCNd = aSttIdx.GetNode().GetCntntNode();
- do { // middle checked loop!
+ do { // middle checked loop!
if( pCNd )
{
SwTxtNode * pStartTxtNode( pCNd->GetTxtNode() );
@@ -1725,7 +1725,7 @@ bool SwDoc::DeleteRangeImplImpl(SwPaM & rPam)
}
}
- if( bOneNd ) // das wars schon
+ if( bOneNd ) // das wars schon
break;
aSttIdx++;
@@ -2079,7 +2079,7 @@ SwHyphArgs::SwHyphArgs( const SwPaM *pPam, const Point &rCrsrPos,
inline void SwHyphArgs::SetRange( const SwNode *pNew )
{
nStart = pStart == pNew ? nPamStart : 0;
- nLen = pEnd == pNew ? nPamLen : STRING_NOTFOUND;
+ nLen = pEnd == pNew ? nPamLen : STRING_NOTFOUND;
}
void SwHyphArgs::SetPam( SwPaM *pPam ) const
@@ -2151,7 +2151,7 @@ uno::Reference< XHyphenatedWord > SwDoc::Hyphenate(
GetNodes().ForEach( pPam->GetPoint()->nNode, aTmpIdx,
lcl_HyphenateNode, &aHyphArg );
aHyphArg.SetPam( pPam );
- return aHyphArg.GetHyphWord(); // will be set by lcl_HyphenateNode
+ return aHyphArg.GetHyphWord(); // will be set by lcl_HyphenateNode
}
sal_Bool lcl_GetTokenToParaBreak( String& rStr, String& rRet, sal_Bool bRegExpRplc )
@@ -2222,7 +2222,7 @@ bool SwDoc::ReplaceRange( SwPaM& rPam, const String& rStr,
// N.B.: deletion must be split into several parts if the text node
// contains a text attribute with end and with dummy character
// and the selection does not contain the text attribute completely,
- // but overlaps its start (left), where the dummy character is.
+ // but overlaps its start (left), where the dummy character is.
bool bRet( true );
// iterate from end to start, to avoid invalidating the offsets!
@@ -2323,7 +2323,7 @@ bool SwDoc::ReplaceRangeImpl( SwPaM& rPam, const String& rStr,
{
// Attribute des 1. Zeichens ueber den ReplaceText setzen
SfxItemSet aSet( GetAttrPool(),
- RES_CHRATR_BEGIN, RES_TXTATR_WITHEND_END - 1,
+ RES_CHRATR_BEGIN, RES_TXTATR_WITHEND_END - 1,
RES_UNKNOWNATR_BEGIN, RES_UNKNOWNATR_END-1,
0 );
pTxtNd->GetAttr( aSet, nStt+1, nStt+1 );
@@ -2530,10 +2530,10 @@ bool SwDoc::DelFullPara( SwPaM& rPam )
{
SwFrmFmt* pTableFmt = pTblNd->GetTable().GetFrmFmt();
//JP 24.08.98: will man wirklich den PageDesc/Break vom
-// nachfolgen Absatz ueberbuegeln?
-// const SwAttrSet& rAttrSet = pTableFmt->GetAttrSet();
-// if( SFX_ITEM_SET != rAttrSet.GetItemState( RES_PAGEDESC ) &&
-// SFX_ITEM_SET != rAttrSet.GetItemState( RES_BREAK ))
+// nachfolgen Absatz ueberbuegeln?
+// const SwAttrSet& rAttrSet = pTableFmt->GetAttrSet();
+// if( SFX_ITEM_SET != rAttrSet.GetItemState( RES_PAGEDESC ) &&
+// SFX_ITEM_SET != rAttrSet.GetItemState( RES_BREAK ))
{
const SfxPoolItem *pItem;
const SfxItemSet* pSet = ((SwCntntNode*)pNd)->GetpSwAttrSet();
@@ -2638,7 +2638,7 @@ bool SwDoc::DelFullPara( SwPaM& rPam )
return sal_True;
}
-void SwDoc::TransliterateText(
+void SwDoc::TransliterateText(
const SwPaM& rPaM,
utl::TransliterationWrapper& rTrans )
{
@@ -2650,13 +2650,13 @@ void SwDoc::TransliterateText(
const SwPosition* pStt = rPaM.Start(),
* pEnd = rPaM.End();
- ULONG nSttNd = pStt->nNode.GetIndex(),
+ ULONG nSttNd = pStt->nNode.GetIndex(),
nEndNd = pEnd->nNode.GetIndex();
xub_StrLen nSttCnt = pStt->nContent.GetIndex(),
nEndCnt = pEnd->nContent.GetIndex();
SwTxtNode* pTNd = pStt->nNode.GetNode().GetTxtNode();
- if( pStt == pEnd && pTNd ) // no selection?
+ if( pStt == pEnd && pTNd ) // no selection?
{
// set current word as 'area of effect'
@@ -2713,7 +2713,7 @@ void SwDoc::TransliterateText(
SetModified();
}
-#define MAX_REDLINE_COUNT 250
+#define MAX_REDLINE_COUNT 250
void SwDoc::checkRedlining(RedlineMode_t& _rReadlineMode)
{
diff --git a/sw/source/core/doc/docfld.cxx b/sw/source/core/doc/docfld.cxx
index 6aecde72872f..cfef5a9f7cab 100644
--- a/sw/source/core/doc/docfld.cxx
+++ b/sw/source/core/doc/docfld.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
@@ -85,9 +85,9 @@ SV_IMPL_OP_PTRARR_SORT( _SetGetExpFlds, _SetGetExpFldPtr )
Beschreibung: Feldtypen einfuegen
--------------------------------------------------------------------*/
/*
- * Implementierung der Feldfunktionen am Doc
- * Return immer einen gueltigen Pointer auf den Typ. Wenn er also neu
- * zugefuegt oder schon vorhanden ist.
+ * Implementierung der Feldfunktionen am Doc
+ * Return immer einen gueltigen Pointer auf den Typ. Wenn er also neu
+ * zugefuegt oder schon vorhanden ist.
*/
SwFieldType* SwDoc::InsertFldType(const SwFieldType &rFldTyp)
{
@@ -100,7 +100,7 @@ SwFieldType* SwDoc::InsertFldType(const SwFieldType &rFldTyp)
{
case RES_SETEXPFLD:
//JP 29.01.96: SequenceFelder beginnen aber bei INIT_FLDTYPES - 3!!
- // Sonst gibt es doppelte Nummernkreise!!
+ // Sonst gibt es doppelte Nummernkreise!!
//MIB 14.03.95: Ab sofort verlaesst sich auch der SW3-Reader
//beim Aufbau der String-Pools und beim Einlesen von SetExp-Feldern
//hierauf
@@ -169,7 +169,7 @@ void SwDoc::InsDeletedFldType( SwFieldType& rFldTyp )
// Array entfernt. Nun muss man nach diesem wieder suchen.
// - Ist der nicht vorhanden, dann kann er eingefuegt werden.
// - Wird genau der gleiche Typ gefunden, dann muss der geloeschte
- // einen anderen Namen erhalten.
+ // einen anderen Namen erhalten.
USHORT nSize = pFldTypes->Count(), nFldWhich = rFldTyp.Which();
USHORT i = INIT_FLDTYPES;
@@ -196,10 +196,10 @@ void SwDoc::InsDeletedFldType( SwFieldType& rFldTyp )
rSCmp.isEqual( sSrch, pFnd->GetName() ) )
break;
- if( i >= nSize ) // nicht gefunden
+ if( i >= nSize ) // nicht gefunden
{
((String&)rFldNm) = sSrch;
- break; // raus aus der While-Schleife
+ break; // raus aus der While-Schleife
}
++nNum;
} while( TRUE );
@@ -227,7 +227,7 @@ void SwDoc::InsDeletedFldType( SwFieldType& rFldTyp )
--------------------------------------------------------------------*/
void SwDoc::RemoveFldType(USHORT nFld)
{
- OSL_ENSURE( INIT_FLDTYPES <= nFld, "keine InitFields loeschen" );
+ OSL_ENSURE( INIT_FLDTYPES <= nFld, "keine InitFields loeschen" );
/*
* Abheangige Felder vorhanden -> ErrRaise
*/
@@ -290,7 +290,7 @@ SwFieldType* SwDoc::GetFldType( USHORT nResId, const String& rName,
{
case RES_SETEXPFLD:
//JP 29.01.96: SequenceFelder beginnen aber bei INIT_FLDTYPES - 3!!
- // Sonst gibt es doppelte Nummernkreise!!
+ // Sonst gibt es doppelte Nummernkreise!!
//MIB 14.03.95: Ab sofort verlaesst sich auch der SW3-Reader
//beim Aufbau der String-Pools und beim Einlesen von SetExp-Feldern
//hierauf
@@ -311,7 +311,7 @@ SwFieldType* SwDoc::GetFldType( USHORT nResId, const String& rName,
SwFieldType* pFldType = (*pFldTypes)[i];
String aFldName( pFldType->GetName() );
- if (bDbFieldMatching && nResId == RES_DBFLD) // #i51815#
+ if (bDbFieldMatching && nResId == RES_DBFLD) // #i51815#
aFldName.SearchAndReplaceAll(DB_DELIM, '.');
if( nResId == pFldType->Which() &&
@@ -325,11 +325,11 @@ SwFieldType* SwDoc::GetFldType( USHORT nResId, const String& rName,
}
/*************************************************************************
-|* SwDoc::UpdateFlds()
-|* Beschreibung Felder updaten
+|* SwDoc::UpdateFlds()
+|* Beschreibung Felder updaten
*************************************************************************/
/*
- * Alle sollen neu evaluiert werden.
+ * Alle sollen neu evaluiert werden.
*/
void SwDoc::UpdateFlds( SfxPoolItem *pNewHt, bool bCloseDB )
{
@@ -346,7 +346,7 @@ void SwDoc::UpdateFlds( SfxPoolItem *pNewHt, bool bCloseDB )
case RES_TABLEFLD:
case RES_DBFLD:
case RES_JUMPEDITFLD:
- case RES_REFPAGESETFLD: // werden nie expandiert!
+ case RES_REFPAGESETFLD: // werden nie expandiert!
break;
case RES_DDEFLD:
@@ -373,7 +373,7 @@ void SwDoc::UpdateFlds( SfxPoolItem *pNewHt, bool bCloseDB )
}
if( !IsExpFldsLocked() )
- UpdateExpFlds( 0, FALSE ); // Expression-Felder Updaten
+ UpdateExpFlds( 0, FALSE ); // Expression-Felder Updaten
// Tabellen
UpdateTblFlds(pNewHt);
@@ -389,7 +389,7 @@ void SwDoc::UpdateFlds( SfxPoolItem *pNewHt, bool bCloseDB )
}
/******************************************************************************
- * void SwDoc::UpdateUsrFlds()
+ * void SwDoc::UpdateUsrFlds()
******************************************************************************/
void SwDoc::UpdateUsrFlds()
{
@@ -458,7 +458,7 @@ void SwDoc::UpdateTblFlds( SfxPoolItem* pHt )
case TBL_CALC:
// setze das Value-Flag zurueck
// JP 17.06.96: interne Darstellung auf alle Formeln
- // (Referenzen auf andere Tabellen!!!)
+ // (Referenzen auf andere Tabellen!!!)
if( nsSwExtendedSubType::SUB_CMD & pFld->GetSubType() )
pFld->PtrToBoxNm( pUpdtFld->pTbl );
else
@@ -473,7 +473,7 @@ void SwDoc::UpdateTblFlds( SfxPoolItem* pHt )
case TBL_BOXPTR:
// zur internen Darstellung
// JP 17.06.96: interne Darstellung auf alle Formeln
- // (Referenzen auf andere Tabellen!!!)
+ // (Referenzen auf andere Tabellen!!!)
pFld->BoxNmToPtr( pUpdtFld->pTbl );
break;
case TBL_RELBOXNAME:
@@ -520,9 +520,9 @@ void SwDoc::UpdateTblFlds( SfxPoolItem* pHt )
SwClientIter aIter( *pFldType );
// dann rechne mal schoen
// JP 27.03.97: Beim Berechnen am Ende anfangen - weil neue
- // Felder immer am Anfang der Modifykette eingefuegt
- // werden. Beim Import haben wir damit eine bessere/
- // schnellere Berechnung bei "Kettenformeln"
+ // Felder immer am Anfang der Modifykette eingefuegt
+ // werden. Beim Import haben wir damit eine bessere/
+ // schnellere Berechnung bei "Kettenformeln"
if( 0 != ( pLast = aIter.GoEnd() ))
do {
SwFmtFld* pFmtFld = (SwFmtFld*)pLast;
@@ -557,7 +557,7 @@ void SwDoc::UpdateTblFlds( SfxPoolItem* pHt )
if( pTblNd->GetIndex() < GetNodes().GetEndOfExtras().GetIndex() )
{
// steht im Sonderbereich, wird teuer !!
- Point aPt; // den im Layout 1. Frame returnen - Tab.Kopfzeile !!
+ Point aPt; // den im Layout 1. Frame returnen - Tab.Kopfzeile !!
pFrm = rTxtNd.GetFrm( &aPt );
if( pFrm )
{
@@ -623,7 +623,7 @@ void SwDoc::UpdateTblFlds( SfxPoolItem* pHt )
if( pTblNd->GetIndex() < GetNodes().GetEndOfExtras().GetIndex() )
{
// steht im Sonderbereich, wird teuer !!
- Point aPt; // den im Layout 1. Frame returnen - Tab.Kopfzeile !!
+ Point aPt; // den im Layout 1. Frame returnen - Tab.Kopfzeile !!
SwNodeIndex aCNdIdx( *pTblNd, +2 );
SwCntntNode* pCNd = aCNdIdx.GetNode().GetCntntNode();
if( !pCNd )
@@ -1318,7 +1318,7 @@ void SwDoc::UpdateExpFlds( SwTxtFld* pUpdtFld, bool bUpdRefFlds )
{
//!SECTION
-// if( pGFld->IsInBodyTxt() )
+// if( pGFld->IsInBodyTxt() )
SwSbxValue aValue = aCalc.Calculate(
pSect->GetCondition() );
if(!aValue.IsVoidValue())
@@ -1384,9 +1384,9 @@ void SwDoc::UpdateExpFlds( SwTxtFld* pUpdtFld, bool bUpdRefFlds )
// Wert fuer den Calculator setzen
//JP 10.02.96: GetValue macht hier doch keinen Sinn
-// ((SwDBField*)pFld)->GetValue();
+// ((SwDBField*)pFld)->GetValue();
-//!OK aCalc.VarChange(aName, ((SwDBField*)pFld)->GetValue(aCalc));
+//!OK aCalc.VarChange(aName, ((SwDBField*)pFld)->GetValue(aCalc));
// Eintrag in den HashTable eintragen
// Eintrag vorhanden ?
@@ -1409,7 +1409,7 @@ void SwDoc::UpdateExpFlds( SwTxtFld* pUpdtFld, bool bUpdRefFlds )
case RES_GETEXPFLD:
case RES_SETEXPFLD:
{
- if( nsSwGetSetExpType::GSE_STRING & pFld->GetSubType() ) // String Ersetzung
+ if( nsSwGetSetExpType::GSE_STRING & pFld->GetSubType() ) // String Ersetzung
{
if( RES_GETEXPFLD == nWhich )
{
@@ -1430,8 +1430,8 @@ void SwDoc::UpdateExpFlds( SwTxtFld* pUpdtFld, bool bUpdRefFlds )
LookString( pHashStrTbl, nStrFmtCnt,
pSFld->GetFormula(), aNew );
- if( !aNew.Len() ) // nichts gefunden, dann ist die
- aNew = pSFld->GetFormula(); // Formel der neue Wert
+ if( !aNew.Len() ) // nichts gefunden, dann ist die
+ aNew = pSFld->GetFormula(); // Formel der neue Wert
// nur ein spezielles FeldUpdaten ?
if( !pUpdtFld || pUpdtFld == pTxtFld )
@@ -1457,7 +1457,7 @@ void SwDoc::UpdateExpFlds( SwTxtFld* pUpdtFld, bool bUpdRefFlds )
aCalc.VarChange( aNew, aValue );
}
}
- else // Formel neu berechnen
+ else // Formel neu berechnen
{
if( RES_GETEXPFLD == nWhich )
{
@@ -1516,15 +1516,15 @@ void SwDoc::UpdateExpFlds( SwTxtFld* pUpdtFld, bool bUpdRefFlds )
}
} // switch
- pFmtFld->Modify( 0, 0 ); // Formatierung anstossen
+ pFmtFld->Modify( 0, 0 ); // Formatierung anstossen
- if( pUpdtFld == pTxtFld ) // sollte nur dieses geupdatet werden
+ if( pUpdtFld == pTxtFld ) // sollte nur dieses geupdatet werden
{
- if( RES_GETEXPFLD == nWhich || // nur GetFeld oder
- RES_HIDDENTXTFLD == nWhich || // HiddenTxt?
- RES_HIDDENPARAFLD == nWhich) // HiddenParaFld?
- break; // beenden
- pUpdtFld = 0; // ab jetzt alle Updaten
+ if( RES_GETEXPFLD == nWhich || // nur GetFeld oder
+ RES_HIDDENTXTFLD == nWhich || // HiddenTxt?
+ RES_HIDDENPARAFLD == nWhich) // HiddenParaFld?
+ break; // beenden
+ pUpdtFld = 0; // ab jetzt alle Updaten
}
}
@@ -1573,7 +1573,7 @@ void SwDoc::UpdateDBNumFlds( SwDBNameInfField& rDBFld, SwCalc& rCalc )
}
}
-void SwDoc::_InitFieldTypes() // wird vom CTOR gerufen!!
+void SwDoc::_InitFieldTypes() // wird vom CTOR gerufen!!
{
// Feldtypen
USHORT nFldType = 0;
@@ -1609,7 +1609,7 @@ void SwDoc::_InitFieldTypes() // wird vom CTOR gerufen!!
// Types muessen am Ende stehen !!
// Im InsertFldType wird davon ausgegangen !!!!
// MIB 14.04.95: Im Sw3StringPool::Setup (sw3imp.cxx) und
- // lcl_sw3io_InSetExpField (sw3field.cxx) jetzt auch
+ // lcl_sw3io_InSetExpField (sw3field.cxx) jetzt auch
pFldTypes->Insert( new SwSetExpFieldType(this,
SW_RESSTR(STR_POOLCOLL_LABEL_ABB), nsSwGetSetExpType::GSE_SEQ), nFldType++);
pFldTypes->Insert( new SwSetExpFieldType(this,
@@ -1782,7 +1782,7 @@ void SwDoc::GetAllDBNames( SvStringsDtor& rAllDBNames )
{
SwDSParam* pParam = rArr[i];
String* pStr = new String( pParam->sDataSource );
- (*pStr) += DB_DELIM;
+ (*pStr) += DB_DELIM;
(*pStr) += (String)pParam->sCommand;
rAllDBNames.Insert( pStr, rAllDBNames.Count() );
}
@@ -1793,7 +1793,7 @@ SvStringsDtor& SwDoc::FindUsedDBs( const SvStringsDtor& rAllDBNames,
SvStringsDtor& rUsedDBNames )
{
const CharClass& rCC = GetAppCharClass();
- String sFormel( rFormel);
+ String sFormel( rFormel);
#ifndef UNX
rCC.toUpper( sFormel );
#endif
@@ -1904,7 +1904,7 @@ void SwDoc::ChangeDBFields( const SvStringsDtor& rOldNames,
SwDBFieldType* pTyp = (SwDBFieldType*)InsertFldType(
SwDBFieldType(this, pOldTyp->GetColumnName(), aNewDBData));
- pTyp->Add(pFmtFld); // Feld auf neuen Typ umhaengen
+ pTyp->Add(pFmtFld); // Feld auf neuen Typ umhaengen
pFld->ChgTyp(pTyp);
((SwDBField*)pFld)->ClearInitialized();
@@ -1961,8 +1961,8 @@ void SwDoc::ReplaceUsedDBs( const SvStringsDtor& rUsedDBNames,
const String& rNewName, String& rFormel )
{
const CharClass& rCC = GetAppCharClass();
- String sFormel(rFormel);
- String sNewName( rNewName );
+ String sFormel(rFormel);
+ String sNewName( rNewName );
sNewName.SearchAndReplace( DB_DELIM, '.');
//the command type is not part of the condition
sNewName = sNewName.GetToken(0, DB_DELIM);
@@ -1971,7 +1971,7 @@ void SwDoc::ReplaceUsedDBs( const SvStringsDtor& rUsedDBNames,
for( USHORT i = 0; i < rUsedDBNames.Count(); ++i )
{
- String sDBName( *rUsedDBNames.GetObject( i ) );
+ String sDBName( *rUsedDBNames.GetObject( i ) );
sDBName.SearchAndReplace( DB_DELIM, '.');
//cut off command type
@@ -2030,11 +2030,11 @@ void SwDoc::SetFixFields( bool bOnlyTimeDate, const DateTime* pNewDateTime )
}
USHORT aTypes[5] = {
- /*0*/ RES_DOCINFOFLD,
- /*1*/ RES_AUTHORFLD,
- /*2*/ RES_EXTUSERFLD,
- /*3*/ RES_FILENAMEFLD,
- /*4*/ RES_DATETIMEFLD }; // MUSS am Ende stehen!!
+ /*0*/ RES_DOCINFOFLD,
+ /*1*/ RES_AUTHORFLD,
+ /*2*/ RES_EXTUSERFLD,
+ /*3*/ RES_FILENAMEFLD,
+ /*4*/ RES_DATETIMEFLD }; // MUSS am Ende stehen!!
USHORT nStt = bOnlyTimeDate ? 4 : 0;
@@ -2140,8 +2140,8 @@ bool SwDoc::SetFieldsDirty( bool b, const SwNode* pChk, ULONG nLen )
const SwTxtNode* pTNd = rNds[ nStt++ ]->GetTxtNode();
if( pTNd )
{
- if( //pTNd->GetFmtColl() && //#outline level,zhaojianwei
- // MAXLEVEL > pTNd->GetTxtColl()->GetOutlineLevel() )
+ if( //pTNd->GetFmtColl() && //#outline level,zhaojianwei
+ // MAXLEVEL > pTNd->GetTxtColl()->GetOutlineLevel() )
pTNd->GetAttrOutlineLevel() != 0 )//<-end,zhaojianwei
// Kapitelfelder aktualisieren
b = TRUE;
@@ -2197,7 +2197,7 @@ void SwDocUpdtFld::InsDelFldInFldLst( BOOL bIns, const SwTxtFld& rFld )
case RES_DBNEXTSETFLD:
case RES_DBSETNUMBERFLD:
case RES_GETEXPFLD:
- break; // diese muessen ein-/ausgetragen werden!
+ break; // diese muessen ein-/ausgetragen werden!
default:
return;
@@ -2206,12 +2206,12 @@ void SwDocUpdtFld::InsDelFldInFldLst( BOOL bIns, const SwTxtFld& rFld )
SetFieldsDirty( TRUE );
if( !pFldSortLst )
{
- if( !bIns ) // keine Liste vorhanden und loeschen
- return; // dann nichts tun
+ if( !bIns ) // keine Liste vorhanden und loeschen
+ return; // dann nichts tun
pFldSortLst = new _SetGetExpFlds( 64, 16 );
}
- if( bIns ) // neu einfuegen:
+ if( bIns ) // neu einfuegen:
GetBodyNode( rFld, nWhich );
else
{
@@ -2517,7 +2517,7 @@ void SwDocUpdtFld::GetBodyNode( const SwSectionNode& rSectNd )
if( rSectNd.GetIndex() < rDoc.GetNodes().GetEndOfExtras().GetIndex() )
{
- do { // middle check loop
+ do { // middle check loop
// dann muessen wir uns mal den Anker besorgen!
// einen Index fuers bestimmen vom TextNode anlegen
diff --git a/sw/source/core/doc/docfly.cxx b/sw/source/core/doc/docfly.cxx
index ff79efddc707..1c9010c9de33 100644
--- a/sw/source/core/doc/docfly.cxx
+++ b/sw/source/core/doc/docfly.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
@@ -156,11 +156,11 @@ SwFrmFmt* SwDoc::GetFlyNum( USHORT nIdx, FlyCntType eType )
}
/***********************************************************************
-#* Class : SwDoc
-#* Methode : SetFlyFrmAnchor
-#* Beschreibung: Das Ankerattribut des FlyFrms aendert sich.
-#* Datum : MA 01. Feb. 94
-#* Update : JP 09.03.98
+#* Class : SwDoc
+#* Methode : SetFlyFrmAnchor
+#* Beschreibung: Das Ankerattribut des FlyFrms aendert sich.
+#* Datum : MA 01. Feb. 94
+#* Update : JP 09.03.98
#***********************************************************************/
Point lcl_FindAnchorLayPos( SwDoc& rDoc, const SwFmtAnchor& rAnch,
const SwFrmFmt* pFlyFmt )
@@ -519,10 +519,10 @@ void SwDoc::SetFlyFrmDescription( SwFlyFrmFmt& rFlyFrmFmt,
// <--
/***************************************************************************
- * Methode : BOOL SwDoc::SetFrmFmtToFly( SwFlyFrm&, SwFrmFmt& )
- * Beschreibung:
- * Erstellt : OK 14.04.94 15:40
- * Aenderung : JP 23.04.98
+ * Methode : BOOL SwDoc::SetFrmFmtToFly( SwFlyFrm&, SwFrmFmt& )
+ * Beschreibung:
+ * Erstellt : OK 14.04.94 15:40
+ * Aenderung : JP 23.04.98
***************************************************************************/
BOOL SwDoc::SetFrmFmtToFly( SwFrmFmt& rFmt, SwFrmFmt& rNewFmt,
SfxItemSet* pSet, BOOL bKeepOrient )
@@ -574,7 +574,7 @@ BOOL SwDoc::SetFrmFmtToFly( SwFrmFmt& rFmt, SwFrmFmt& rNewFmt,
else
{
//JP 23.04.98: muss den FlyFmt-Range haben, denn im SetFlyFrmAnchor
- // werden Attribute in diesen gesetzt!
+ // werden Attribute in diesen gesetzt!
SfxItemSet aFlySet( *rNewFmt.GetAttrSet().GetPool(),
rNewFmt.GetAttrSet().GetRanges() );
aFlySet.Put( *pItem );
@@ -587,7 +587,7 @@ BOOL SwDoc::SetFrmFmtToFly( SwFrmFmt& rFmt, SwFrmFmt& rNewFmt,
//automatische Ausrichtung eingestellt ist, anderfalls den alten Wert
//wieder hineinstopfen.
//JP 09.06.98: beim Update der RahmenVorlage sollte der Fly NICHT
- // seine Orientierng verlieren (diese wird nicht geupdatet!)
+ // seine Orientierng verlieren (diese wird nicht geupdatet!)
//OS: #96584# text::HoriOrientation::NONE and text::VertOrientation::NONE are allowed now
if (!bKeepOrient)
{
@@ -630,10 +630,10 @@ void SwDoc::GetGrfNms( const SwFlyFrmFmt& rFmt, String* pGrfName,
/*************************************************************************
|*
-|* SwDoc::ChgAnchor()
+|* SwDoc::ChgAnchor()
|*
-|* Ersterstellung MA 10. Jan. 95
-|* Letzte Aenderung JP 08.07.98
+|* Ersterstellung MA 10. Jan. 95
+|* Letzte Aenderung JP 08.07.98
|*
*************************************************************************/
sal_Bool SwDoc::ChgAnchor( const SdrMarkList& _rMrkList,
@@ -780,7 +780,7 @@ sal_Bool SwDoc::ChgAnchor( const SdrMarkList& _rMrkList,
}
((SwTxtFrm*)pOldAnchorFrm)->Prepare();
}
- else // Ankerwechsel
+ else // Ankerwechsel
{
// OD 18.06.2003 #108784# - allow drawing objects in header/footer
pNewAnchorFrm = ::FindAnchor( pOldAnchorFrm, aPt, false );
@@ -792,7 +792,7 @@ sal_Bool SwDoc::ChgAnchor( const SdrMarkList& _rMrkList,
bUnmark = ( 0 != i );
Point aPoint( aPt );
- aPoint.X() -= 1; // nicht im DrawObj landen!!
+ aPoint.X() -= 1; // nicht im DrawObj landen!!
aNewAnch.SetType( FLY_AS_CHAR );
SwPosition aPos( *((SwCntntFrm*)pNewAnchorFrm)->GetNode() );
if ( pNewAnchorFrm->Frm().IsInside( aPoint ) )
diff --git a/sw/source/core/doc/docfmt.cxx b/sw/source/core/doc/docfmt.cxx
index 89a300f49113..f3329d1e66a9 100644
--- a/sw/source/core/doc/docfmt.cxx
+++ b/sw/source/core/doc/docfmt.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
@@ -57,14 +57,14 @@
#include <doc.hxx>
#include <rootfrm.hxx>
#include <pagefrm.hxx>
-#include <hints.hxx> // fuer SwHyphenBug (in SetDefault)
+#include <hints.hxx> // fuer SwHyphenBug (in SetDefault)
#include <ndtxt.hxx>
#include <pam.hxx>
#include <undobj.hxx>
#include <ndgrf.hxx>
-#include <pagedesc.hxx> // Fuer Sonderbehandlung in InsFrmFmt
-#include <rolbck.hxx> // Undo-Attr
-#include <mvsave.hxx> // servieren: Veraenderungen erkennen
+#include <pagedesc.hxx> // Fuer Sonderbehandlung in InsFrmFmt
+#include <rolbck.hxx> // Undo-Attr
+#include <mvsave.hxx> // servieren: Veraenderungen erkennen
#include <txatbase.hxx>
#include <swtable.hxx>
#include <swtblfmt.hxx>
@@ -125,7 +125,7 @@ struct ParaRstFmt
bool bResetAll;
bool bInclRefToxMark;
- bool bKeepOutlineLevelAttr; //#outline level,add by zhaojianwei
+ bool bKeepOutlineLevelAttr; //#outline level,add by zhaojianwei
ParaRstFmt( const SwPosition* pStt, const SwPosition* pEnd,
SwHistory* pHst, USHORT nWhch = 0, const SfxItemSet* pSet = 0 )
@@ -141,7 +141,7 @@ struct ParaRstFmt
// <--
bResetAll( true ),
bInclRefToxMark( false ),
- bKeepOutlineLevelAttr( false ) //#outline level,add by zhaojianwei
+ bKeepOutlineLevelAttr( false ) //#outline level,add by zhaojianwei
{}
ParaRstFmt( SwHistory* pHst )
@@ -157,7 +157,7 @@ struct ParaRstFmt
// <--
bResetAll( true ),
bInclRefToxMark( false ),
- bKeepOutlineLevelAttr( false ) //#outline level,add by zhaojianwei
+ bKeepOutlineLevelAttr( false ) //#outline level,add by zhaojianwei
{}
};
@@ -246,13 +246,13 @@ BOOL lcl_RstAttr( const SwNodePtr& rpNd, void* pArgs )
// <--
const SfxPoolItem* pItem;
- // USHORT __READONLY_DATA aSavIds[ 3 ] = { RES_PAGEDESC, RES_BREAK, //#outline level,removed by zhaojianwei
+ // USHORT __READONLY_DATA aSavIds[ 3 ] = { RES_PAGEDESC, RES_BREAK, //#outline level,removed by zhaojianwei
// RES_PARATR_NUMRULE };
//for( USHORT n = 0; n < 3; ++n )
- USHORT __READONLY_DATA aSavIds[ 4 ] = { RES_PAGEDESC, RES_BREAK, //->add by zhaojianwei
+ USHORT __READONLY_DATA aSavIds[ 4 ] = { RES_PAGEDESC, RES_BREAK, //->add by zhaojianwei
RES_PARATR_NUMRULE,
RES_PARATR_OUTLINELEVEL };
- for( USHORT n = 0; n < 4; ++n ) //<-end,zhaojianwei
+ for( USHORT n = 0; n < 4; ++n ) //<-end,zhaojianwei
{
if( SFX_ITEM_SET == pSet->GetItemState( aSavIds[ n ], FALSE, &pItem ))
{
@@ -270,11 +270,11 @@ BOOL lcl_RstAttr( const SwNodePtr& rpNd, void* pArgs )
bSave = 0 != ((SwNumRuleItem*)pItem)->GetValue().Len();
}
break;
- case RES_PARATR_OUTLINELEVEL: //#outline level,add by zhaojianwei
+ case RES_PARATR_OUTLINELEVEL: //#outline level,add by zhaojianwei
{
bSave = pPara && pPara->bKeepOutlineLevelAttr;
}
- break; //<-end,zhaojianwei
+ break; //<-end,zhaojianwei
}
if( bSave )
{
@@ -397,7 +397,7 @@ void SwDoc::ResetAttrs( const SwPaM &rRg,
USHORT nMkPos, nPtPos = rSt.GetIndex();
// JP 22.08.96: Sonderfall: steht der Crsr in einem URL-Attribut
- // dann wird dessen Bereich genommen
+ // dann wird dessen Bereich genommen
SwTxtAttr const*const pURLAttr(
pTxtNd->GetTxtAttrAt(rSt.GetIndex(), RES_TXTATR_INETFMT));
if (pURLAttr && pURLAttr->GetINetFmt().GetValue().Len())
@@ -488,7 +488,7 @@ void SwDoc::ResetAttrs( const SwPaM &rRg,
BOOL bAdd = TRUE;
SwNodeIndex aTmpStt( pStt->nNode );
SwNodeIndex aTmpEnd( pEnd->nNode );
- if( pStt->nContent.GetIndex() ) // nur ein Teil
+ if( pStt->nContent.GetIndex() ) // nur ein Teil
{
// dann spaeter aufsetzen und alle CharFmtAttr -> TxtFmtAttr
SwTxtNode* pTNd = aTmpStt.GetNode().GetTxtNode();
@@ -885,7 +885,7 @@ lcl_InsAttr(SwDoc *const pDoc, const SwPaM &rRg, const SfxItemSet& rChgSet,
}
- if( !rRg.HasMark() ) // kein Bereich
+ if( !rRg.HasMark() ) // kein Bereich
{
if( !pNode )
{
@@ -901,7 +901,7 @@ lcl_InsAttr(SwDoc *const pDoc, const SwPaM &rRg, const SfxItemSet& rChgSet,
const String& rStr = pTxtNd->GetTxt();
// JP 22.08.96: Sonderfall: steht der Crsr in einem URL-Attribut
- // dann wird dessen Bereich genommen
+ // dann wird dessen Bereich genommen
SwTxtAttr const*const pURLAttr(
pTxtNd->GetTxtAttrAt(rSt.GetIndex(), RES_TXTATR_INETFMT));
if (pURLAttr && pURLAttr->GetINetFmt().GetValue().Len())
@@ -1224,9 +1224,9 @@ int lcl_SetNewDefTabStops( SwTwips nOldWidth, SwTwips nNewWidth,
{
// dann aender bei allen TabStop die default's auf den neuen Wert
// !!! Achtung: hier wird immer auf dem PoolAttribut gearbeitet,
- // damit nicht in allen Sets die gleiche Berechnung
- // auf dem gleichen TabStop (gepoolt!) vorgenommen
- // wird. Als Modify wird ein FmtChg verschickt.
+ // damit nicht in allen Sets die gleiche Berechnung
+ // auf dem gleichen TabStop (gepoolt!) vorgenommen
+ // wird. Als Modify wird ein FmtChg verschickt.
USHORT nOldCnt = rChgTabStop.Count();
if( !nOldCnt || nOldWidth == nNewWidth )
@@ -1241,7 +1241,7 @@ int lcl_SetNewDefTabStops( SwTwips nOldWidth, SwTwips nNewWidth,
if( SVX_TAB_ADJUST_DEFAULT != pTabs->GetAdjustment() )
break;
++n;
- if( n < nOldCnt ) // die DefTabStops loeschen
+ if( n < nOldCnt ) // die DefTabStops loeschen
rChgTabStop.Remove( n, nOldCnt - n );
return TRUE;
}
@@ -1341,9 +1341,9 @@ void SwDoc::SetDefault( const SfxItemSet& rSet )
// TabStop-Aenderungen behandeln wir erstmal anders:
// dann aender bei allen TabStop die dafault's auf den neuen Wert
// !!! Achtung: hier wird immer auf dem PoolAttribut gearbeitet,
- // damit nicht in allen Sets die gleiche Berechnung
- // auf dem gleichen TabStop (gepoolt!) vorgenommen
- // wird. Als Modify wird ein FmtChg verschickt.
+ // damit nicht in allen Sets die gleiche Berechnung
+ // auf dem gleichen TabStop (gepoolt!) vorgenommen
+ // wird. Als Modify wird ein FmtChg verschickt.
SwTwips nNewWidth = (*(SvxTabStopItem*)pTmpItem)[ 0 ].GetTabPos(),
nOldWidth = ((SvxTabStopItem&)aOld.Get(RES_PARATR_TABSTOP))[ 0 ].GetTabPos();
@@ -1369,7 +1369,7 @@ void SwDoc::SetDefault( const SfxItemSet& rSet )
{
SwAttrSetChg aChgOld( aOld, aOld );
SwAttrSetChg aChgNew( aNew, aNew );
- aCallMod.Modify( &aChgOld, &aChgNew ); // alle veraenderten werden verschickt
+ aCallMod.Modify( &aChgOld, &aChgNew ); // alle veraenderten werden verschickt
}
// und die default-Formate wieder beim Object austragen
@@ -1688,7 +1688,7 @@ void SwDoc::DelTxtFmtColl(USHORT nFmtColl, BOOL bBroadcast)
// Wer hat die zu loeschende als Next
SwTxtFmtColl *pDel = (*pTxtFmtCollTbl)[nFmtColl];
if( pDfltTxtFmtColl == pDel )
- return; // default nie loeschen !!
+ return; // default nie loeschen !!
if (bBroadcast)
BroadcastStyleOperation(pDel->GetName(), SFX_STYLE_FAMILY_PARA,
@@ -1865,7 +1865,7 @@ SwFmt* SwDoc::CopyFmt( const SwFmt& rFmt,
SwFmt* pNewFmt = (this->*fnCopyFmt)( rFmt.GetName(), pParent, FALSE, TRUE );
// <--
pNewFmt->SetAuto( rFmt.IsAuto() );
- pNewFmt->CopyAttrs( rFmt, TRUE ); // kopiere Attribute
+ pNewFmt->CopyAttrs( rFmt, TRUE ); // kopiere Attribute
pNewFmt->SetPoolFmtId( rFmt.GetPoolFmtId() );
pNewFmt->SetPoolHelpId( rFmt.GetPoolHelpId() );
@@ -1929,8 +1929,8 @@ SwTxtFmtColl* SwDoc::CopyTxtColl( const SwTxtFmtColl& rColl )
pNewColl->CopyAttrs( rColl, TRUE );
// setze noch den Outline-Level
- //if( NO_NUMBERING != rColl.GetOutlineLevel() ) //#outline level,zhaojianwei
- // pNewColl->SetOutlineLevel( rColl.GetOutlineLevel() );
+ //if( NO_NUMBERING != rColl.GetOutlineLevel() ) //#outline level,zhaojianwei
+ // pNewColl->SetOutlineLevel( rColl.GetOutlineLevel() );
if(rColl.IsAssignedToListLevelOfOutlineStyle())
pNewColl->AssignToListLevelOfOutlineStyle(rColl.GetAssignedOutlineStyleLevel());//<-end,zhaojianwei
//<-end
@@ -2041,8 +2041,8 @@ void SwDoc::CopyFmtArr( const SvPtrarr& rSourceArr,
pDest = FindFmtByName( rDestArr, pSrc->GetName() );
pDest->SetAuto( FALSE );
-// pDest->ResetAllAttr();
-// pDest->CopyAttrs( *pSrc, TRUE ); // kopiere Attribute
+// pDest->ResetAllAttr();
+// pDest->CopyAttrs( *pSrc, TRUE ); // kopiere Attribute
//JP 19.02.96: ist so wohl optimaler - loest ggfs. kein Modify aus!
pDest->DelDiffs( *pSrc );
// --> OD 2009-03-23 #i94285#
@@ -2093,8 +2093,8 @@ void SwDoc::CopyFmtArr( const SvPtrarr& rSourceArr,
rDestArr, pSrcColl->GetNextTxtFmtColl().GetName() ) );
// setze noch den Outline-Level
- //if( NO_NUMBERING != pSrcColl->GetOutlineLevel() ) //#outline level,zhaojianwei
- // pDstColl->SetOutlineLevel( pSrcColl->GetOutlineLevel() );
+ //if( NO_NUMBERING != pSrcColl->GetOutlineLevel() ) //#outline level,zhaojianwei
+ // pDstColl->SetOutlineLevel( pSrcColl->GetOutlineLevel() );
if(pSrcColl->IsAssignedToListLevelOfOutlineStyle())
pDstColl->AssignToListLevelOfOutlineStyle(pSrcColl->GetAssignedOutlineStyleLevel());//<-end,zhaojianwei
//<-end
@@ -2443,7 +2443,7 @@ void SwDoc::_CreateNumberFormatter()
LanguageType eLang = LANGUAGE_SYSTEM; //System::GetLanguage();
-/* ((const SvxLanguageItem&)GetAttrPool().
+/* ((const SvxLanguageItem&)GetAttrPool().
GetDefaultItem( RES_CHRATR_LANGUAGE )).GetLanguage();
*/
Reference< XMultiServiceFactory > xMSF = ::comphelper::getProcessServiceFactory();
@@ -2655,7 +2655,7 @@ namespace docfunc
if ( pTxtFmtColl->IsDefault() ||
// pTxtFmtColl->GetOutlineLevel() == NO_NUMBERING ) //#outline level,zhaojianwei
- ! pTxtFmtColl->IsAssignedToListLevelOfOutlineStyle() ) //<-end,zhaojianwei
+ ! pTxtFmtColl->IsAssignedToListLevelOfOutlineStyle() ) //<-end,zhaojianwei
{
continue;
}
diff --git a/sw/source/core/doc/docftn.cxx b/sw/source/core/doc/docftn.cxx
index a8cf79c40b7a..9080e14d194c 100644
--- a/sw/source/core/doc/docftn.cxx
+++ b/sw/source/core/doc/docftn.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
@@ -224,7 +224,7 @@ SwFtnInfo& SwFtnInfo::operator=(const SwFtnInfo& rInfo)
BOOL SwFtnInfo::operator==( const SwFtnInfo& rInfo ) const
{
- return ePos == rInfo.ePos &&
+ return ePos == rInfo.ePos &&
eNum == rInfo.eNum &&
SwEndNoteInfo::operator==(rInfo) &&
aQuoVadis == rInfo.aQuoVadis &&
@@ -414,7 +414,7 @@ bool SwDoc::SetCurFtn( const SwPaM& rPam, const String& rNumStr,
ULONG nIdx;
BOOL bChg = FALSE;
BOOL bTypeChgd = FALSE;
- USHORT n = nPos; // sichern
+ USHORT n = nPos; // sichern
while( nPos < rFtnArr.Count() &&
(( nIdx = _SwTxtFtn_GetIndex((pTxtFtn = rFtnArr[ nPos++ ] )))
< nEndNd || ( nIdx == nEndNd &&
@@ -446,7 +446,7 @@ bool SwDoc::SetCurFtn( const SwPaM& rPam, const String& rNumStr,
}
}
- nPos = n; // nach vorne gibt es auch noch welche !
+ nPos = n; // nach vorne gibt es auch noch welche !
while( nPos &&
(( nIdx = _SwTxtFtn_GetIndex((pTxtFtn = rFtnArr[ --nPos ] )))
> nSttNd || ( nIdx == nSttNd &&
diff --git a/sw/source/core/doc/docglbl.cxx b/sw/source/core/doc/docglbl.cxx
index 9b52c3f28369..9591edf74c0d 100644
--- a/sw/source/core/doc/docglbl.cxx
+++ b/sw/source/core/doc/docglbl.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
@@ -50,7 +50,7 @@
#include <docsh.hxx>
#include <globdoc.hxx>
#include <shellio.hxx>
-#include <swundo.hxx> // fuer die UndoIds
+#include <swundo.hxx> // fuer die UndoIds
#include <section.hxx>
#include <doctxm.hxx>
#include <poolfmt.hxx>
@@ -171,7 +171,7 @@ BOOL SwDoc::SplitDoc( USHORT eDocType, const String& rPath,
break;
default:
-// case SPLITDOC_TO_GLOBALDOC:
+// case SPLITDOC_TO_GLOBALDOC:
pFilter = SwIoSystem::GetFilterOfFormat(
String::CreateFromAscii( FILTER_XML ));
eDocType = SPLITDOC_TO_GLOBALDOC;
@@ -231,17 +231,17 @@ BOOL SwDoc::SplitDoc( USHORT eDocType, const String& rPath,
pNd = pOutlNds->GetObject( nOutl );
SwTxtFmtColl* pTColl = pNd->GetTxtNode()->GetTxtColl();
- //if( ( pTColl == pSplitColl || //#outline level,zhaojianwei
- // ( NO_NUMBERING != pSplitColl->GetOutlineLevel() &&
- // pTColl->GetOutlineLevel() <
- // pSplitColl->GetOutlineLevel() )) &&
- // !pNd->FindTableNode() )
+ //if( ( pTColl == pSplitColl || //#outline level,zhaojianwei
+ // ( NO_NUMBERING != pSplitColl->GetOutlineLevel() &&
+ // pTColl->GetOutlineLevel() <
+ // pSplitColl->GetOutlineLevel() )) &&
+ // !pNd->FindTableNode() )
if( ( pTColl == pSplitColl ||
( pSplitColl->GetAttrOutlineLevel() > 0 &&
- pTColl->GetAttrOutlineLevel() > 0 &&
+ pTColl->GetAttrOutlineLevel() > 0 &&
pTColl->GetAttrOutlineLevel() <
pSplitColl->GetAttrOutlineLevel() )) &&
- !pNd->FindTableNode() ) //<-end,zhaojianwei
+ !pNd->FindTableNode() ) //<-end,zhaojianwei
{
pEndNd = pNd;
@@ -275,8 +275,8 @@ BOOL SwDoc::SplitDoc( USHORT eDocType, const String& rPath,
xDocProps->setTemplateDate(uDT);
xDocProps->setTemplateURL(rPath);
//JP 14.06.99: Set the text of the "split para" as title
- // from the new doc. Is the current doc has
- // a title, insert it at begin.
+ // from the new doc. Is the current doc has
+ // a title, insert it at begin.
String sTitle( xDocProps->getTitle() );
if( sTitle.Len() )
sTitle.AppendAscii( RTL_CONSTASCII_STRINGPARAM( ": " ));
@@ -407,7 +407,7 @@ BOOL SwDoc::SplitDoc( USHORT eDocType, const String& rPath,
aSectData.SetLinkFileName(sFileName);
aSectData.SetProtectFlag(true);
- aEndIdx--; // im InsertSection ist Ende inclusive
+ aEndIdx--; // im InsertSection ist Ende inclusive
while( aEndIdx.GetNode().IsStartNode() )
aEndIdx--;
@@ -476,7 +476,7 @@ BOOL SwDoc::SplitDoc( USHORT eDocType, const String& rPath,
}
} while( pSttNd );
-// if( pOutlNds != (SwOutlineNodes*)&GetNodes().GetOutLineNds();
+// if( pOutlNds != (SwOutlineNodes*)&GetNodes().GetOutLineNds();
if( pOutlNds != &GetNodes().GetOutLineNds() )
delete pOutlNds;
@@ -494,14 +494,14 @@ BOOL SwDoc::SplitDoc( USHORT eDocType, const String& rPath,
}
break;
-// case SPLITDOC_TO_GLOBALDOC:
+// case SPLITDOC_TO_GLOBALDOC:
default:
// dann das Globaldoc speichern
set(IDocumentSettingAccess::GLOBAL_DOCUMENT, true);
set(IDocumentSettingAccess::GLOBAL_DOCUMENT_SAVE_LINKS, false);
}
- // Medium istn't locked after reopen the document. Bug 91462
+ // Medium istn't locked after reopen the document. Bug 91462
SfxRequest aReq( SID_SAVEASDOC, SFX_CALLMODE_SYNCHRON, GetAttrPool() );
aReq.AppendItem( SfxStringItem( SID_FILE_NAME, rPath ) );
aReq.AppendItem( SfxBoolItem( SID_SAVETO, sal_True ) );
@@ -532,7 +532,7 @@ BOOL SwDoc::SplitDoc( USHORT eDocType, const String& rPath, int nOutlineLevel )
break;
default:
-// case SPLITDOC_TO_GLOBALDOC:
+// case SPLITDOC_TO_GLOBALDOC:
pFilter = SwIoSystem::GetFilterOfFormat(
String::CreateFromAscii( FILTER_XML ));
eDocType = SPLITDOC_TO_GLOBALDOC;
@@ -591,7 +591,7 @@ BOOL SwDoc::SplitDoc( USHORT eDocType, const String& rPath, int nOutlineLevel )
pNd = pOutlNds->GetObject( nOutl );
const int nLevel = pNd->GetTxtNode()->GetAttrOutlineLevel();
-
+
if( ( 0 < nLevel && nLevel <= nOutlineLevel ) &&
!pNd->FindTableNode() )
{
@@ -626,8 +626,8 @@ BOOL SwDoc::SplitDoc( USHORT eDocType, const String& rPath, int nOutlineLevel )
xDocProps->setTemplateDate(uDT);
xDocProps->setTemplateURL(rPath);
//JP 14.06.99: Set the text of the "split para" as title
- // from the new doc. Is the current doc has
- // a title, insert it at begin.
+ // from the new doc. Is the current doc has
+ // a title, insert it at begin.
String sTitle( xDocProps->getTitle() );
if( sTitle.Len() )
sTitle.AppendAscii( RTL_CONSTASCII_STRINGPARAM( ": " ));
@@ -758,7 +758,7 @@ BOOL SwDoc::SplitDoc( USHORT eDocType, const String& rPath, int nOutlineLevel )
aSectData.SetLinkFileName(sFileName);
aSectData.SetProtectFlag(true);
- aEndIdx--; // im InsertSection ist Ende inclusive
+ aEndIdx--; // im InsertSection ist Ende inclusive
while( aEndIdx.GetNode().IsStartNode() )
aEndIdx--;
@@ -838,7 +838,7 @@ BOOL SwDoc::SplitDoc( USHORT eDocType, const String& rPath, int nOutlineLevel )
}
break;
-// case SPLITDOC_TO_GLOBALDOC:
+// case SPLITDOC_TO_GLOBALDOC:
default:
set(IDocumentSettingAccess::GLOBAL_DOCUMENT, true);
set(IDocumentSettingAccess::GLOBAL_DOCUMENT_SAVE_LINKS, false);
diff --git a/sw/source/core/doc/docglos.cxx b/sw/source/core/doc/docglos.cxx
index 057d6881fb99..aa14673dbdce 100644
--- a/sw/source/core/doc/docglos.cxx
+++ b/sw/source/core/doc/docglos.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
@@ -117,7 +117,7 @@ BOOL SwDoc::InsertGlossary( SwTextBlocks& rBlock, const String& rEntry,
if( (USHORT) -1 != nIdx )
{
// Bug #70238# ask the TextOnly-Flag before BeginGetDoc, because
- // the method closed the Storage!
+ // the method closed the Storage!
BOOL bSav_IsInsGlossary = mbInsOnlyTxtGlssry;
mbInsOnlyTxtGlssry = rBlock.IsOnlyTextBlock( nIdx );
diff --git a/sw/source/core/doc/doclay.cxx b/sw/source/core/doc/doclay.cxx
index a19dd58af6f9..d1f28a01be04 100644
--- a/sw/source/core/doc/doclay.cxx
+++ b/sw/source/core/doc/doclay.cxx
@@ -87,8 +87,8 @@
#include <swundo.hxx>
#include <flypos.hxx>
#include <undobj.hxx>
-#include <expfld.hxx> // InsertLabel
-#include <poolfmt.hxx> // PoolVorlagen-Id's
+#include <expfld.hxx> // InsertLabel
+#include <poolfmt.hxx> // PoolVorlagen-Id's
#include <docary.hxx>
#include <swtable.hxx>
#include <tblsel.hxx>
@@ -99,7 +99,7 @@
#include <ftninfo.hxx>
#include <pagedesc.hxx>
#include <PostItMgr.hxx>
-#include <comcore.hrc> // STR-ResId's
+#include <comcore.hrc> // STR-ResId's
#include <unoframe.hxx>
@@ -110,7 +110,7 @@
using namespace ::com::sun::star;
using ::rtl::OUString;
-#define DEF_FLY_WIDTH 2268 //Defaultbreite fuer FlyFrms (2268 == 4cm)
+#define DEF_FLY_WIDTH 2268 //Defaultbreite fuer FlyFrms (2268 == 4cm)
static bool lcl_IsItemSet(const SwCntntNode & rNode, USHORT which)
@@ -125,13 +125,13 @@ static bool lcl_IsItemSet(const SwCntntNode & rNode, USHORT which)
/*************************************************************************
|*
-|* SwDoc::MakeLayoutFmt()
+|* SwDoc::MakeLayoutFmt()
|*
-|* Beschreibung Erzeugt ein neues Format das in seinen Einstellungen
-|* Defaultmaessig zu dem Request passt. Das Format wird in das
-|* entsprechende Formate-Array gestellt.
-|* Wenn bereits ein passendes Format existiert, so wird dies
-|* zurueckgeliefert.
+|* Beschreibung Erzeugt ein neues Format das in seinen Einstellungen
+|* Defaultmaessig zu dem Request passt. Das Format wird in das
+|* entsprechende Formate-Array gestellt.
+|* Wenn bereits ein passendes Format existiert, so wird dies
+|* zurueckgeliefert.
|*************************************************************************/
SwFrmFmt *SwDoc::MakeLayoutFmt( RndStdIds eRequest, const SfxItemSet* pSet )
{
@@ -175,10 +175,10 @@ SwFrmFmt *SwDoc::MakeLayoutFmt( RndStdIds eRequest, const SfxItemSet* pSet )
) ) );
pFmt->SetFmtAttr( SwFmtCntnt( pSttNd ));
- if( pSet ) // noch ein paar Attribute setzen ?
+ if( pSet ) // noch ein paar Attribute setzen ?
pFmt->SetFmtAttr( *pSet );
- // JP: warum zuruecksetzen ??? Doc. ist doch veraendert ???
+ // JP: warum zuruecksetzen ??? Doc. ist doch veraendert ???
// bei den Fly auf jedenfall verkehrt !!
if ( !bMod )
ResetModified();
@@ -188,7 +188,7 @@ SwFrmFmt *SwDoc::MakeLayoutFmt( RndStdIds eRequest, const SfxItemSet* pSet )
case RND_DRAW_OBJECT:
{
pFmt = MakeDrawFrmFmt( aEmptyStr, GetDfltFrmFmt() );
- if( pSet ) // noch ein paar Attribute setzen ?
+ if( pSet ) // noch ein paar Attribute setzen ?
pFmt->SetFmtAttr( *pSet );
if( DoesUndo() )
@@ -219,12 +219,12 @@ SwFrmFmt *SwDoc::MakeLayoutFmt( RndStdIds eRequest, const SfxItemSet* pSet )
/*************************************************************************
|*
-|* SwDoc::DelLayoutFmt()
+|* SwDoc::DelLayoutFmt()
|*
-|* Beschreibung Loescht das angegebene Format, der Inhalt wird mit
-|* geloescht.
-|* Ersterstellung MA 23. Sep. 92
-|* Letzte Aenderung MA 05. Feb. 93
+|* Beschreibung Loescht das angegebene Format, der Inhalt wird mit
+|* geloescht.
+|* Ersterstellung MA 23. Sep. 92
+|* Letzte Aenderung MA 05. Feb. 93
|*
|*************************************************************************/
void SwDoc::DelLayoutFmt( SwFrmFmt *pFmt )
@@ -258,7 +258,7 @@ void SwDoc::DelLayoutFmt( SwFrmFmt *pFmt )
if( pDoc )
{
SfxObjectShell* p = pDoc->GetPersist();
- if( p ) // muss da sein
+ if( p ) // muss da sein
{
SvInfoObjectRef aRef( p->Find( pOLENd->GetOLEObj().GetName() ) );
if( aRef.Is() )
@@ -372,18 +372,18 @@ void SwDoc::DelLayoutFmt( SwFrmFmt *pFmt )
/*************************************************************************
|*
-|* SwDoc::CopyLayoutFmt()
+|* SwDoc::CopyLayoutFmt()
|*
-|* Beschreibung Kopiert das angegebene Format pSrc in pDest und
-|* returnt pDest. Wenn es noch kein pDest gibt, wird
-|* eins angelegt.
-|* JP: steht das Source Format in einem anderen
-|* Dokument, so kopiere auch dann noch richtig !!
-|* Vom chaos::Anchor-Attribut wird die Position immer
-|* auf 0 gesetzt !!!
+|* Beschreibung Kopiert das angegebene Format pSrc in pDest und
+|* returnt pDest. Wenn es noch kein pDest gibt, wird
+|* eins angelegt.
+|* JP: steht das Source Format in einem anderen
+|* Dokument, so kopiere auch dann noch richtig !!
+|* Vom chaos::Anchor-Attribut wird die Position immer
+|* auf 0 gesetzt !!!
|*
-|* Ersterstellung BP 18.12.92
-|* Letzte Aenderung MA 17. Jul. 96
+|* Ersterstellung BP 18.12.92
+|* Letzte Aenderung MA 17. Jul. 96
|*
|*************************************************************************/
SwFrmFmt *SwDoc::CopyLayoutFmt( const SwFrmFmt& rSource,
@@ -475,12 +475,12 @@ SwFrmFmt *SwDoc::CopyLayoutFmt( const SwFrmFmt& rSource,
String sOld( pDest->GetName() );
pDest->SetName( aEmptyStr );
- if( FindFlyByName( sOld, nNdTyp ) ) // einen gefunden
+ if( FindFlyByName( sOld, nNdTyp ) ) // einen gefunden
switch( nNdTyp )
{
- case ND_GRFNODE: sOld = GetUniqueGrfName(); break;
- case ND_OLENODE: sOld = GetUniqueOLEName(); break;
- default: sOld = GetUniqueFrameName(); break;
+ case ND_GRFNODE: sOld = GetUniqueGrfName(); break;
+ case ND_OLENODE: sOld = GetUniqueOLEName(); break;
+ default: sOld = GetUniqueFrameName(); break;
}
pDest->SetName( sOld );
@@ -611,9 +611,9 @@ SwFlyFrmFmt* SwDoc::_MakeFlySection( const SwPosition& rAnchPos,
if( !mbInReading )
switch( rNode.GetNodeType() )
{
- case ND_GRFNODE: sName = GetUniqueGrfName(); break;
- case ND_OLENODE: sName = GetUniqueOLEName(); break;
- default: sName = GetUniqueFrameName(); break;
+ case ND_GRFNODE: sName = GetUniqueGrfName(); break;
+ case ND_OLENODE: sName = GetUniqueOLEName(); break;
+ default: sName = GetUniqueFrameName(); break;
}
SwFlyFrmFmt* pFmt = MakeFlyFrmFmt( sName, pFrmFmt );
@@ -720,7 +720,7 @@ SwFlyFrmFmt* SwDoc::_MakeFlySection( const SwPosition& rAnchPos,
// Frames anlegen
if( GetRootFrm() )
- pFmt->MakeFrms(); // ???
+ pFmt->MakeFrms(); // ???
if( DoesUndo() )
{
@@ -807,14 +807,14 @@ SwFlyFrmFmt* SwDoc::MakeFlyAndMove( const SwPaM& rPam, const SfxItemSet& rSet,
if( pFmt )
{
- do { // middle check loop
+ do { // middle check loop
const SwFmtCntnt &rCntnt = pFmt->GetCntnt();
OSL_ENSURE( rCntnt.GetCntntIdx(), "Kein Inhalt vorbereitet." );
SwNodeIndex aIndex( *(rCntnt.GetCntntIdx()), 1 );
SwCntntNode *pNode = aIndex.GetNode().GetCntntNode();
// ACHTUNG: nicht einen Index auf dem Stack erzeugen, sonst
- // kann der CntntnNode am Ende nicht geloscht werden !!
+ // kann der CntntnNode am Ende nicht geloscht werden !!
SwPosition aPos( aIndex );
aPos.nContent.Assign( pNode, 0 );
@@ -860,11 +860,11 @@ SwFlyFrmFmt* SwDoc::MakeFlyAndMove( const SwPaM& rPam, const SfxItemSet& rSet,
aIndex = rCntnt.GetCntntIdx()->GetNode().EndOfSectionIndex() - 1;
OSL_ENSURE( aIndex.GetNode().GetTxtNode(),
"hier sollte ein TextNode stehen" );
- aPos.nContent.Assign( 0, 0 ); // Index abmelden !!
+ aPos.nContent.Assign( 0, 0 ); // Index abmelden !!
GetNodes().Delete( aIndex, 1 );
//JP erstmal ein Hack, solange keine Flys/Headers/Footers Undofaehig sind
-if( DoesUndo() ) // werden erstmal alle Undo - Objecte geloescht.
+if( DoesUndo() ) // werden erstmal alle Undo - Objecte geloescht.
DelAllUndoObj();
}
@@ -1020,10 +1020,10 @@ SwDrawFrmFmt* SwDoc::Insert( const SwPaM &rRg,
/*************************************************************************
|*
-|* SwDoc::GetAllFlyFmts
+|* SwDoc::GetAllFlyFmts
|*
-|* Ersterstellung MA 14. Jul. 93
-|* Letzte Aenderung MD 23. Feb. 95
+|* Ersterstellung MA 14. Jul. 93
+|* Letzte Aenderung MD 23. Feb. 95
|*
|*************************************************************************/
/*sal_Bool TstFlyRange( const SwPaM* pPam, sal_uInt32 nFlyPos )
@@ -1101,7 +1101,7 @@ void SwDoc::GetAllFlyFmts( SwPosFlyFrms& rPosFlyFmts,
{
if( pCmpRange &&
!TstFlyRange( pCmpRange, pAPos, rAnchor.GetAnchorId() ))
- continue; // kein gueltiger FlyFrame
+ continue; // kein gueltiger FlyFrame
pFPos = new SwPosFlyFrm( pAPos->nNode, pFly, rPosFlyFmts.Count() );
rPosFlyFmts.Insert( pFPos );
}
@@ -1167,10 +1167,10 @@ void SwDoc::GetAllFlyFmts( SwPosFlyFrms& rPosFlyFmts,
/*************************************************************************
|*
-|* SwDoc::InsertLabel()
+|* SwDoc::InsertLabel()
|*
-|* Ersterstellung MA 11. Feb. 94
-|* Letzte Aenderung MA 12. Nov. 97
+|* Ersterstellung MA 11. Feb. 94
+|* Letzte Aenderung MA 12. Nov. 97
|*
|*************************************************************************/
@@ -1326,10 +1326,10 @@ SwFlyFrmFmt* SwDoc::InsertLabel( const SwLabelType eType, const String &rTxt, co
if( bCpyBrd )
{
// JP 07.07.99: Bug 67029 - if at Grafik no BoxItem but
- // in the new Format is any, then set the
- // default item in the new Set. Because
- // the Size of the Grafik have never been
- // changed!
+ // in the new Format is any, then set the
+ // default item in the new Set. Because
+ // the Size of the Grafik have never been
+ // changed!
const SfxPoolItem *pItem;
if( SFX_ITEM_SET == pOldFmt->GetAttrSet().
GetItemState( RES_BOX, sal_True, &pItem ))
@@ -1531,10 +1531,10 @@ SwFlyFrmFmt* SwDoc::InsertLabel( const SwLabelType eType, const String &rTxt, co
/*************************************************************************
|*
-|* SwDoc::InsertDrawLabel()
+|* SwDoc::InsertDrawLabel()
|*
-|* Ersterstellung MIB 7. Dez. 98
-|* Letzte Aenderung MIB 7. Dez. 98
+|* Ersterstellung MIB 7. Dez. 98
+|* Letzte Aenderung MIB 7. Dez. 98
|*
|*************************************************************************/
SwFlyFrmFmt* SwDoc::InsertDrawLabel( const String &rTxt,
@@ -1664,7 +1664,7 @@ SwFlyFrmFmt* SwDoc::InsertDrawLabel( const String &rTxt,
GetFrmFmtFromPool( RES_POOLFRM_FRAME ) );
// JP 28.10.99: Bug 69487 - set border and shadow to default if the
- // template contains any.
+ // template contains any.
if( SFX_ITEM_SET == pNewFmt->GetAttrSet().GetItemState( RES_BOX, sal_True ))
pNewSet->Put( *GetDfltAttr( RES_BOX ) );
@@ -1803,7 +1803,7 @@ SwFlyFrmFmt* SwDoc::InsertDrawLabel( const String &rTxt,
/*************************************************************************
|*
-|* IDocumentTimerAccess-methods
+|* IDocumentTimerAccess-methods
|*
|*************************************************************************/
void SwDoc::StartIdling()
@@ -1834,10 +1834,10 @@ void SwDoc::UnblockIdling()
/*************************************************************************
|*
-|* SwDoc::DoIdleJobs()
+|* SwDoc::DoIdleJobs()
|*
-|* Ersterstellung OK 30.03.94
-|* Letzte Aenderung MA 09. Jun. 95
+|* Ersterstellung OK 30.03.94
+|* Letzte Aenderung MA 09. Jun. 95
|*
|*************************************************************************/
IMPL_LINK( SwDoc, DoIdleJobs, Timer *, pTimer )
@@ -1897,10 +1897,10 @@ IMPL_LINK( SwDoc, DoIdleJobs, Timer *, pTimer )
const sal_Bool bOldLockView = pStartSh->IsViewLocked();
pStartSh->LockView( sal_True );
- GetSysFldType( RES_CHAPTERFLD )->Modify( 0, 0 ); // KapitelFld
- UpdateExpFlds( 0, sal_False ); // Expression-Felder Updaten
- UpdateTblFlds(NULL); // Tabellen
- UpdateRefFlds(NULL); // Referenzen
+ GetSysFldType( RES_CHAPTERFLD )->Modify( 0, 0 ); // KapitelFld
+ UpdateExpFlds( 0, sal_False ); // Expression-Felder Updaten
+ UpdateTblFlds(NULL); // Tabellen
+ UpdateRefFlds(NULL); // Referenzen
GetRootFrm()->EndAllAction();
@@ -2031,8 +2031,8 @@ void SwDoc::SetFlyName( SwFlyFrmFmt& rFmt, const String& rName )
if( pIdx && pIdx->GetNode().GetNodes().IsDocNodes() )
switch( GetNodes()[ pIdx->GetIndex() + 1 ]->GetNodeType() )
{
- case ND_GRFNODE: nTyp = STR_GRAPHIC_DEFNAME; break;
- case ND_OLENODE: nTyp = STR_OBJECT_DEFNAME; break;
+ case ND_GRFNODE: nTyp = STR_GRAPHIC_DEFNAME; break;
+ case ND_OLENODE: nTyp = STR_OBJECT_DEFNAME; break;
}
sName = lcl_GetUniqueFlyName( this, nTyp );
}
@@ -2055,7 +2055,7 @@ void SwDoc::SetAllUniqueFlyNames()
n = 255;
SwSpzFrmFmts aArr( (sal_Int8)n, 10 );
SwFrmFmtPtr pFlyFmt;
- sal_Bool bLoadedFlag = sal_True; // noch etwas fuers Layout
+ sal_Bool bLoadedFlag = sal_True; // noch etwas fuers Layout
for( n = GetSpzFrmFmts()->Count(); n; )
{
@@ -2153,7 +2153,7 @@ void SwDoc::SetAllUniqueFlyNames()
sal_Bool SwDoc::IsInHeaderFooter( const SwNodeIndex& rIdx ) const
{
// gibt es ein Layout, dann ueber das laufen!!
- // (Das kann dann auch Fly in Fly in Kopfzeile !)
+ // (Das kann dann auch Fly in Fly in Kopfzeile !)
// MIB 9.2.98: Wird auch vom sw3io benutzt, um festzustellen, ob sich
// ein Redline-Objekt in einer Kopf- oder Fusszeile befindet. Da
// Redlines auch an Start- und Endnodes haengen, muss der Index nicht
diff --git a/sw/source/core/doc/docnew.cxx b/sw/source/core/doc/docnew.cxx
index eb878a1372a5..7e78a4b9b75b 100644
--- a/sw/source/core/doc/docnew.cxx
+++ b/sw/source/core/doc/docnew.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
@@ -28,7 +28,7 @@
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_sw.hxx"
-#define ROLBCK_HISTORY_ONLY // Der Kampf gegen die CLOOK's
+#define ROLBCK_HISTORY_ONLY // Der Kampf gegen die CLOOK's
#include <doc.hxx>
#include <dcontact.hxx>
#include <com/sun/star/document/PrinterIndependentLayout.hpp>
@@ -78,8 +78,8 @@
#include <poolfmt.hxx> // fuer die Pool-Vorlage
#include <dbmgr.hxx>
#include <docsh.hxx>
-#include <acorrect.hxx> // fuer die autom. Aufnahme von Ausnahmen
-#include <visiturl.hxx> // fuer die URL-Change Benachrichtigung
+#include <acorrect.hxx> // fuer die autom. Aufnahme von Ausnahmen
+#include <visiturl.hxx> // fuer die URL-Change Benachrichtigung
#include <docary.hxx>
#include <lineinfo.hxx>
#include <drawdoc.hxx>
@@ -175,7 +175,7 @@ void StartGrammarChecking( SwDoc &rDoc )
bVisible = true;
pFrame = SfxViewFrame::GetNext( *pFrame, pDocShell, sal_False );
}
-
+
//!! only documents with visible views need to be checked
//!! (E.g. don't check temporary documents created for printing, see printing of notes and selections.
//!! Those get created on the fly and get hard deleted a bit later as well, and no one should have
@@ -233,7 +233,7 @@ SwDoc::SwDoc() :
pGrfFmtCollTbl( new SwGrfFmtColls() ),
pTOXTypes( new SwTOXTypes() ),
pDefTOXBases( new SwDefTOXBase_Impl() ),
- pLayout( 0 ), // Rootframe des spezifischen Layouts.
+ pLayout( 0 ), // Rootframe des spezifischen Layouts.
pDrawModel( 0 ),
pUndos( new SwUndos( 0, 20 ) ),
pUpdtFlds( new SwDocUpdtFld() ),
@@ -498,7 +498,7 @@ SwDoc::~SwDoc()
SwFmtCharFmt aCharFmt(NULL);
SetDefault(aCharFmt);
- StopIdling(); // stop idle timer
+ StopIdling(); // stop idle timer
delete pUnoCallBack, pUnoCallBack = 0;
delete pURLStateChgd;
@@ -517,7 +517,7 @@ SwDoc::~SwDoc()
delete pPgPViewPrtData;
- mbUndo = FALSE; // immer das Undo abschalten !!
+ mbUndo = FALSE; // immer das Undo abschalten !!
// damit die Fussnotenattribute die Fussnotennodes in Frieden lassen.
mbDtor = TRUE;
@@ -549,7 +549,7 @@ SwDoc::~SwDoc()
pFtnIdxs->Remove( USHORT(0), pFtnIdxs->Count() );
- pUndos->DeleteAndDestroy( 0, pUndos->Count() ); //Es koennen in den Attributen noch
+ pUndos->DeleteAndDestroy( 0, pUndos->Count() ); //Es koennen in den Attributen noch
//noch indizes angemeldet sein.
// in den BookMarks sind Indizies auf den Content. Diese muessen vorm
@@ -567,7 +567,7 @@ SwDoc::~SwDoc()
}
//JP: alt - loeschen ohne Flag ist teuer; Modify wird verschickt!
-// aTOXTypes.DeleteAndDestroy( 0, aTOXTypes.Count() );
+// aTOXTypes.DeleteAndDestroy( 0, aTOXTypes.Count() );
{
for( USHORT n = pTOXTypes->Count(); n; )
{
@@ -609,8 +609,8 @@ SwDoc::~SwDoc()
"Default-Text-Collection muss immer am Anfang stehen" );
// JP 27.01.98: opt.: ausgehend davon, das Standard als 2. im Array
- // steht, sollte das als letztes geloescht werden, damit
- // die ganze Umhaengerei der Formate vermieden wird!
+ // steht, sollte das als letztes geloescht werden, damit
+ // die ganze Umhaengerei der Formate vermieden wird!
if( 2 < pTxtFmtCollTbl->Count() )
pTxtFmtCollTbl->DeleteAndDestroy( 2, pTxtFmtCollTbl->Count()-2 );
pTxtFmtCollTbl->DeleteAndDestroy( 1, pTxtFmtCollTbl->Count()-1 );
@@ -621,7 +621,7 @@ SwDoc::~SwDoc()
pGrfFmtCollTbl->DeleteAndDestroy( 1, pGrfFmtCollTbl->Count()-1 );
// ergibt sich automatisch - kein _DEL Array!
-// pGrfFmtCollTbl->Remove( 0, n );
+// pGrfFmtCollTbl->Remove( 0, n );
delete pGrfFmtCollTbl;
/*
@@ -647,7 +647,7 @@ SwDoc::~SwDoc()
//Ausserdem koennen vorher noch DrawContacts existieren.
ReleaseDrawModel();
//JP 28.01.99: DrawModel vorm LinkManager zerstoeren, da am DrawModel
- // dieser immer gesetzt ist.
+ // dieser immer gesetzt ist.
DELETEZ( pLinkMgr );
//Tables vor dem loeschen der Defaults leeren, sonst GPF wegen Def-Abhaengigen.
@@ -730,7 +730,7 @@ SfxPrinter& SwDoc::CreatePrinter_() const
// Das ItemSet wird vom Sfx geloescht!
SfxItemSet *pSet = new SfxItemSet( ((SwDoc*)this)->GetAttrPool(),
FN_PARAM_ADDPRINTER, FN_PARAM_ADDPRINTER,
- SID_HTML_MODE, SID_HTML_MODE,
+ SID_HTML_MODE, SID_HTML_MODE,
SID_PRINTER_NOTFOUND_WARN, SID_PRINTER_NOTFOUND_WARN,
SID_PRINTER_CHANGESTODOC, SID_PRINTER_CHANGESTODOC,
0 );
@@ -778,7 +778,7 @@ void SwDoc::ClearDoc()
{
BOOL bOldUndo = mbUndo;
DelAllUndoObj();
- mbUndo = FALSE; // immer das Undo abschalten !!
+ mbUndo = FALSE; // immer das Undo abschalten !!
// Undo-Benachrichtigung vom Draw abschalten
if( pDrawModel )
@@ -856,8 +856,8 @@ void SwDoc::ClearDoc()
if( pFtnColl ) pFtnColl->Remove( pEndNoteInfo );
// JP 27.01.98: opt.: ausgehend davon, das Standard als 2. im Array
- // steht, sollte das als letztes geloescht werden, damit
- // die ganze Umhaengerei der Formate vermieden wird!
+ // steht, sollte das als letztes geloescht werden, damit
+ // die ganze Umhaengerei der Formate vermieden wird!
if( 2 < pTxtFmtCollTbl->Count() )
pTxtFmtCollTbl->DeleteAndDestroy( 2, pTxtFmtCollTbl->Count()-2 );
pTxtFmtCollTbl->DeleteAndDestroy( 1, pTxtFmtCollTbl->Count()-1 );
@@ -907,7 +907,7 @@ void SwDoc::SetPreViewPrtData( const SwPagePreViewPrtData* pNew )
SetModified();
}
-SwModify* SwDoc::GetUnoCallBack() const
+SwModify* SwDoc::GetUnoCallBack() const
{
return pUnoCallBack;
}
@@ -1130,7 +1130,7 @@ SfxObjectShell* SwDoc::CreateCopy(bool bCallInitNew ) const
SfxObjectShellRef xRetShell = new SwDocShell( pRet, SFX_CREATE_MODE_STANDARD );
if( bCallInitNew )
xRetShell->DoInitNew();
- //copy content
+ //copy content
pRet->Paste( *this );
pRet->SetRefForDocShell( 0 );
return xRetShell;
diff --git a/sw/source/core/doc/docnum.cxx b/sw/source/core/doc/docnum.cxx
index 5fad9f575c2c..cc9b780f3dfb 100644
--- a/sw/source/core/doc/docnum.cxx
+++ b/sw/source/core/doc/docnum.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
@@ -38,7 +38,7 @@
#include <doc.hxx>
#include <pam.hxx>
#include <ndtxt.hxx>
-#include <doctxm.hxx> // pTOXBaseRing
+#include <doctxm.hxx> // pTOXBaseRing
#include <poolfmt.hxx>
#include <undobj.hxx>
#include <swundo.hxx>
@@ -192,7 +192,7 @@ BOOL SwDoc::OutlineUpDown( const SwPaM& rPam, short nOffset )
{
//BYTE nLevel = (*pTxtFmtCollTbl)[ n ]->GetOutlineLevel();//#outline level,zhaojianwei
//if( nLevel < MAXLEVEL )
- // aCollArr[ nLevel ] = (*pTxtFmtCollTbl)[ n ];
+ // aCollArr[ nLevel ] = (*pTxtFmtCollTbl)[ n ];
if((*pTxtFmtCollTbl)[ n ]->IsAssignedToListLevelOfOutlineStyle())
{
const int nLevel = (*pTxtFmtCollTbl)[ n ]->GetAssignedOutlineStyleLevel();
@@ -372,7 +372,7 @@ BOOL SwDoc::OutlineUpDown( const SwPaM& rPam, short nOffset )
if( pColl->IsAssignedToListLevelOfOutlineStyle() )
{
- // OSL_ENSURE(pColl->GetOutlineLevel() < MAXLEVEL, //#outline level,removed by zhaojianwei
+ // OSL_ENSURE(pColl->GetOutlineLevel() < MAXLEVEL, //#outline level,removed by zhaojianwei
// "non outline node in outline nodes?");
//int nLevel = pColl->GetOutlineLevel();
const int nLevel = pColl->GetAssignedOutlineStyleLevel();//#outline level,add by zhaojianwei
@@ -390,7 +390,7 @@ BOOL SwDoc::OutlineUpDown( const SwPaM& rPam, short nOffset )
}
}
- else if( pTxtNd->GetAttrOutlineLevel() > 0) //#outline level,add by zhaojianwei
+ else if( pTxtNd->GetAttrOutlineLevel() > 0) //#outline level,add by zhaojianwei
{
int nLevel = pTxtNd->GetAttrOutlineLevel() + nOffset;
if( 0 <= nLevel && nLevel <= MAXLEVEL)
@@ -425,10 +425,10 @@ BOOL SwDoc::MoveOutlinePara( const SwPaM& rPam, short nOffset )
USHORT nAktPos = 0;
SwNodeIndex aSttRg( rStt.nNode ), aEndRg( rEnd.nNode );
- //BYTE nOutLineLevel = NO_NUMBERING; //#outline level,zhaojianwei
- int nOutLineLevel = MAXLEVEL; //<-end,zhaojianwei
+ //BYTE nOutLineLevel = NO_NUMBERING; //#outline level,zhaojianwei
+ int nOutLineLevel = MAXLEVEL; //<-end,zhaojianwei
SwNode* pSrch = &aSttRg.GetNode();
- //if( pSrch->IsTxtNode() ) //#outline level,zhaojianwei
+ //if( pSrch->IsTxtNode() ) //#outline level,zhaojianwei
// nOutLineLevel = static_cast<BYTE>(((SwTxtNode*)pSrch)->GetOutlineLevel());
if( pSrch->IsTxtNode())
nOutLineLevel = static_cast<BYTE>(((SwTxtNode*)pSrch)->GetAttrOutlineLevel()-1);//<-end,zhaojianwei
@@ -590,15 +590,15 @@ USHORT lcl_FindOutlineName( const SwNodes& rNds, const String& rName,
USHORT lcl_FindOutlineNum( const SwNodes& rNds, String& rName )
{
// Gueltig Nummern sind (immer nur Offsets!!!):
- // ([Nummer]+\.)+ (als regulaerer Ausdruck!)
- // (Nummer gefolgt von Punkt, zum 5 Wiederholungen)
- // also: "1.1.", "1.", "1.1.1."
+ // ([Nummer]+\.)+ (als regulaerer Ausdruck!)
+ // (Nummer gefolgt von Punkt, zum 5 Wiederholungen)
+ // also: "1.1.", "1.", "1.1.1."
xub_StrLen nPos = 0;
String sNum = rName.GetToken( 0, '.', nPos );
if( STRING_NOTFOUND == nPos )
- return USHRT_MAX; // ungueltige Nummer!!!
+ return USHRT_MAX; // ungueltige Nummer!!!
- USHORT nLevelVal[ MAXLEVEL ]; // Nummern aller Levels
+ USHORT nLevelVal[ MAXLEVEL ]; // Nummern aller Levels
memset( nLevelVal, 0, MAXLEVEL * sizeof( nLevelVal[0] ));
BYTE nLevel = 0;
String sName( rName );
@@ -613,9 +613,9 @@ USHORT lcl_FindOutlineNum( const SwNodes& rNds, String& rName )
nVal *= 10; nVal += c - '0';
}
else if( nLevel )
- break; // "fast" gueltige Nummer
+ break; // "fast" gueltige Nummer
else
- return USHRT_MAX; // ungueltige Nummer!!!
+ return USHRT_MAX; // ungueltige Nummer!!!
if( MAXLEVEL > nLevel )
nLevelVal[ nLevel++ ] = nVal;
@@ -627,7 +627,7 @@ USHORT lcl_FindOutlineNum( const SwNodes& rNds, String& rName )
if(!ByteString(sNum, gsl_getSystemTextEncoding()).IsNumericAscii())
nPos = STRING_NOTFOUND;
}
- rName = sName; // das ist der nachfolgende Text.
+ rName = sName; // das ist der nachfolgende Text.
// alle Levels gelesen, dann suche mal im Document nach dieser
// Gliederung:
@@ -642,7 +642,7 @@ USHORT lcl_FindOutlineNum( const SwNodes& rNds, String& rName )
for( ; nPos < rOutlNds.Count(); ++nPos )
{
pNd = rOutlNds[ nPos ]->GetTxtNode();
- //BYTE nLvl = pNd->GetTxtColl()->GetOutlineLevel(); //#outline level,zhaojianwei
+ //BYTE nLvl = pNd->GetTxtColl()->GetOutlineLevel(); //#outline level,zhaojianwei
const int nLvl = pNd->GetAttrOutlineLevel()-1; //<-end,zhaojianwei
if( nLvl == nLevel - 1)
{
@@ -725,7 +725,7 @@ BOOL SwDoc::GotoOutline( SwPosition& rPos, const String& rName ) const
if( !sExpandedText.Equals( sName ) )
{
USHORT nTmp = ::lcl_FindOutlineName( GetNodes(), sName, TRUE );
- if( USHRT_MAX != nTmp ) // ueber den Namen gefunden
+ if( USHRT_MAX != nTmp ) // ueber den Namen gefunden
{
nFndPos = nTmp;
pNd = rOutlNds[ nFndPos ]->GetTxtNode();
@@ -943,7 +943,7 @@ void SwDoc::SetNumRule( const SwPaM& rPam,
if (DoesUndo())
{
ClearRedo();
- StartUndo( UNDO_INSNUM, NULL ); // Klammerung fuer die Attribute!
+ StartUndo( UNDO_INSNUM, NULL ); // Klammerung fuer die Attribute!
AppendUndo( pUndo = new SwUndoInsNum( rPam, rRule ) );
}
@@ -1535,7 +1535,7 @@ BOOL SwDoc::NoNum( const SwPaM& rPam )
SetModified();
}
else
- bRet = FALSE; // keine Nummerierung , ?? oder immer TRUE ??
+ bRet = FALSE; // keine Nummerierung , ?? oder immer TRUE ??
}
return bRet;
}
@@ -1592,7 +1592,7 @@ void SwDoc::DelNumRules( const SwPaM& rPam )
if( RES_CONDTXTFMTCOLL == pTNd->GetFmtColl()->Which() )
pTNd->ChkCondColl();
//else if( !pOutlNd && NO_NUMBERING != //#outline level,zhaojianwei
- // ((SwTxtFmtColl*)pTNd->GetFmtColl())->GetOutlineLevel() )
+ // ((SwTxtFmtColl*)pTNd->GetFmtColl())->GetOutlineLevel() )
else if( !pOutlNd &&
((SwTxtFmtColl*)pTNd->GetFmtColl())->IsAssignedToListLevelOfOutlineStyle() )//<-end,zhaojianwei
pOutlNd = pTNd;
@@ -1646,7 +1646,7 @@ BOOL lcl_IsValidPrevNextNumNode( const SwNodeIndex& rIdx )
bRet = SwTableBoxStartNode == ((SwStartNode&)rNd).GetStartNodeType();
break;
- case ND_SECTIONNODE: // der ist erlaubt, also weiter
+ case ND_SECTIONNODE: // der ist erlaubt, also weiter
bRet = TRUE;
break;
}
@@ -1683,7 +1683,7 @@ BOOL lcl_GotoNextPrevNum( SwPosition& rPos, BOOL bNext,
nTmpNum = static_cast<BYTE>(pNd->GetActualListLevel());
if( !( ! pNd->IsCountedInList() &&
(nTmpNum >= nSrchNum )) )
- break; // gefunden
+ break; // gefunden
}
else
bError = TRUE;
@@ -1737,7 +1737,7 @@ BOOL lcl_GotoNextPrevNum( SwPosition& rPos, BOOL bNext,
aIdx--;
}
- if( !bRet && !bOverUpper && pLast ) // nicht ueber hoehere Nummmern, aber bis Ende
+ if( !bRet && !bOverUpper && pLast ) // nicht ueber hoehere Nummmern, aber bis Ende
{
if( bNext )
{
@@ -2073,23 +2073,23 @@ BOOL SwDoc::MoveParagraph( const SwPaM& rPam, long nOffset, BOOL bIsOutlMv )
switch( ComparePosition( *pRStt, *pREnd, aStPos, aEndPos ))
{
case POS_COLLIDE_START:
- case POS_BEHIND: // Pos1 liegt hinter Pos2
+ case POS_BEHIND: // Pos1 liegt hinter Pos2
nRedlPos = GetRedlineTbl().Count();
break;
case POS_COLLIDE_END:
- case POS_BEFORE: // Pos1 liegt vor Pos2
+ case POS_BEFORE: // Pos1 liegt vor Pos2
break;
- case POS_INSIDE: // Pos1 liegt vollstaendig in Pos2
+ case POS_INSIDE: // Pos1 liegt vollstaendig in Pos2
// ist erlaubt, aber checke dann alle nachfolgenden
// auf Ueberlappungen
bCheckDel = FALSE;
break;
- case POS_OUTSIDE: // Pos2 liegt vollstaendig in Pos1
- case POS_EQUAL: // Pos1 ist genauso gross wie Pos2
- case POS_OVERLAP_BEFORE: // Pos1 ueberlappt Pos2 am Anfang
- case POS_OVERLAP_BEHIND: // Pos1 ueberlappt Pos2 am Ende
+ case POS_OUTSIDE: // Pos2 liegt vollstaendig in Pos1
+ case POS_EQUAL: // Pos1 ist genauso gross wie Pos2
+ case POS_OVERLAP_BEFORE: // Pos1 ueberlappt Pos2 am Anfang
+ case POS_OVERLAP_BEHIND: // Pos1 ueberlappt Pos2 am Ende
return FALSE;
}
}
@@ -2656,8 +2656,8 @@ sal_Int32 SwDoc::getOutlineNodesCount() const
int SwDoc::getOutlineLevel( const sal_Int32 nIdx ) const
{
return GetNodes().GetOutLineNds()[ static_cast<USHORT>(nIdx) ]->
- // GetTxtNode()->GetOutlineLevel(); //#outline level,zhaojianwei
- GetTxtNode()->GetAttrOutlineLevel()-1; //<-end,zhaojianwei
+ // GetTxtNode()->GetOutlineLevel(); //#outline level,zhaojianwei
+ GetTxtNode()->GetAttrOutlineLevel()-1; //<-end,zhaojianwei
}
String SwDoc::getOutlineText( const sal_Int32 nIdx,
diff --git a/sw/source/core/doc/docredln.cxx b/sw/source/core/doc/docredln.cxx
index 7854d2b9a973..128878dfc324 100644
--- a/sw/source/core/doc/docredln.cxx
+++ b/sw/source/core/doc/docredln.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
@@ -282,24 +282,24 @@ bool CheckPosition( const SwPosition* pStt, const SwPosition* pEnd )
Text heisst, nicht von Redline "verseuchter" Text.
Verhalten von Insert-Redline:
- - im Text - Redline Object einfuegen
- - im InsertRedline (eigenes) - ignorieren, bestehendes wird
+ - im Text - Redline Object einfuegen
+ - im InsertRedline (eigenes) - ignorieren, bestehendes wird
aufgespannt
- - im InsertRedline (andere) - Insert Redline aufsplitten
+ - im InsertRedline (andere) - Insert Redline aufsplitten
Redline Object einfuegen
- - in DeleteRedline - Delete Redline aufsplitten oder
+ - in DeleteRedline - Delete Redline aufsplitten oder
am Ende/Anfang verschieben
Verhalten von Delete-Redline:
- - im Text - Redline Object einfuegen
- - im DeleteRedline (eigenes/andere) - ignorieren
- - im InsertRedline (eigenes) - ignorieren, Zeichen aber loeschen
- - im InsertRedline (andere) - Insert Redline aufsplitten
+ - im Text - Redline Object einfuegen
+ - im DeleteRedline (eigenes/andere) - ignorieren
+ - im InsertRedline (eigenes) - ignorieren, Zeichen aber loeschen
+ - im InsertRedline (andere) - Insert Redline aufsplitten
Redline Object einfuegen
- - Ueberlappung von Text und - Text in eigenen Insert loeschen,
- eigenem Insert im andereren Text aufspannen (bis
+ - Ueberlappung von Text und - Text in eigenen Insert loeschen,
+ eigenem Insert im andereren Text aufspannen (bis
zum Insert!
- - Ueberlappung von Text und - Redline Object einfuegen, der
+ - Ueberlappung von Text und - Redline Object einfuegen, der
anderem Insert andere Insert wird vom Delete
ueberlappt
*/
@@ -634,7 +634,7 @@ bool SwDoc::AppendRedline( SwRedline* pNewRedl, bool bCallDelete )
if( *pStt == *pRStt && pRedl->GetContentIdx() == NULL )
pRedlineTbl->DeleteAndDestroy( n );
AppendRedline( pNew, bCallDelete );
- n = 0; // neu Aufsetzen
+ n = 0; // neu Aufsetzen
bDec = true;
}
}
@@ -666,7 +666,7 @@ bool SwDoc::AppendRedline( SwRedline* pNewRedl, bool bCallDelete )
pNew->SetStart( *pREnd );
pNewRedl->SetEnd( *pRStt, pEnd );
AppendRedline( pNew, bCallDelete );
- n = 0; // neu Aufsetzen
+ n = 0; // neu Aufsetzen
bDec = true;
}
else
@@ -683,7 +683,7 @@ bool SwDoc::AppendRedline( SwRedline* pNewRedl, bool bCallDelete )
case POS_OVERLAP_BEFORE:
case POS_OVERLAP_BEHIND:
if( pRedl->IsOwnRedline( *pNewRedl ) &&
-// 1 == pRedl->GetStackCount() &&
+// 1 == pRedl->GetStackCount() &&
pRedl->CanCombine( *pNewRedl ))
{
// dann kann das zusammengefasst werden, sprich
@@ -704,7 +704,7 @@ bool SwDoc::AppendRedline( SwRedline* pNewRedl, bool bCallDelete )
case POS_COLLIDE_START:
case POS_COLLIDE_END:
if( pRedl->IsOwnRedline( *pNewRedl ) &&
-// 1 == pRedl->GetStackCount() &&
+// 1 == pRedl->GetStackCount() &&
pRedl->CanCombine( *pNewRedl ) )
{
if( IsHideChanges( eRedlineMode ))
@@ -848,7 +848,7 @@ bool SwDoc::AppendRedline( SwRedline* pNewRedl, bool bCallDelete )
pRedlineTbl->Remove( nFnd );
else
pNewRedl = 0;
- n = 0; // neu Aufsetzen
+ n = 0; // neu Aufsetzen
}
bDec = true;
}
@@ -877,7 +877,7 @@ bool SwDoc::AppendRedline( SwRedline* pNewRedl, bool bCallDelete )
pRedlineTbl->Remove( nFnd );
else
pNewRedl = 0;
- n = 0; // neu Aufsetzen
+ n = 0; // neu Aufsetzen
bDec = true;
}
}
@@ -1079,7 +1079,7 @@ bool SwDoc::AppendRedline( SwRedline* pNewRedl, bool bCallDelete )
( pRedl->GetContentIdx() == NULL ) )
pRedlineTbl->DeleteAndDestroy( n );
AppendRedline( pNew, bCallDelete );
- n = 0; // neu Aufsetzen
+ n = 0; // neu Aufsetzen
bDec = true;
}
}
@@ -1126,7 +1126,7 @@ bool SwDoc::AppendRedline( SwRedline* pNewRedl, bool bCallDelete )
pNew->SetStart( *pREnd );
pNewRedl->SetEnd( *pRStt, pEnd );
AppendRedline( pNew, bCallDelete );
- n = 0; // neu Aufsetzen
+ n = 0; // neu Aufsetzen
bDec = true;
}
}
@@ -1176,7 +1176,7 @@ bool SwDoc::AppendRedline( SwRedline* pNewRedl, bool bCallDelete )
pNew->SetStart( *pEnd );
pRedl->SetEnd( *pStt, pREnd );
AppendRedline( pNew, bCallDelete );
- n = 0; // neu Aufsetzen
+ n = 0; // neu Aufsetzen
bDec = true;
}
break;
@@ -2023,7 +2023,7 @@ int lcl_AcceptRejectRedl( Fn_AcceptReject fn_AcceptReject,
* pEnd = pStt == rPam.GetPoint() ? rPam.GetMark()
: rPam.GetPoint();
const SwRedline* pFnd = lcl_FindCurrRedline( *pStt, n, TRUE );
- if( pFnd && // neu ein Teil davon?
+ if( pFnd && // neu ein Teil davon?
( *pFnd->Start() != *pStt || *pFnd->End() > *pEnd ))
{
// dann nur die TeilSelektion aufheben
@@ -2080,7 +2080,7 @@ void lcl_AdjustRedlineRange( SwPaM& rPam )
}
if( pEnd->nNode.GetNode().IsCntntNode() &&
!pDoc->GetNodes()[ pEnd->nNode.GetIndex() + 1 ]->IsCntntNode() &&
- pEnd->nContent.GetIndex() == pEnd->nNode.GetNode().GetCntntNode()->Len() )
+ pEnd->nContent.GetIndex() == pEnd->nNode.GetNode().GetCntntNode()->Len() )
{
const SwRedline* pRedl = pDoc->GetRedline( *pEnd, 0 );
if( pRedl )
@@ -3170,18 +3170,18 @@ void SwRedline::Show( USHORT nLoop )
switch( GetType() )
{
- case nsRedlineType_t::REDLINE_INSERT: // Inhalt wurde eingefuegt
+ case nsRedlineType_t::REDLINE_INSERT: // Inhalt wurde eingefuegt
bIsVisible = TRUE;
MoveFromSection();
break;
- case nsRedlineType_t::REDLINE_DELETE: // Inhalt wurde geloescht
+ case nsRedlineType_t::REDLINE_DELETE: // Inhalt wurde geloescht
bIsVisible = TRUE;
MoveFromSection();
break;
- case nsRedlineType_t::REDLINE_FORMAT: // Attributierung wurde angewendet
- case nsRedlineType_t::REDLINE_TABLE: // TabellenStruktur wurde veraendert
+ case nsRedlineType_t::REDLINE_FORMAT: // Attributierung wurde angewendet
+ case nsRedlineType_t::REDLINE_TABLE: // TabellenStruktur wurde veraendert
InvalidateRange();
break;
default:
@@ -3202,24 +3202,24 @@ void SwRedline::Hide( USHORT nLoop )
switch( GetType() )
{
- case nsRedlineType_t::REDLINE_INSERT: // Inhalt wurde eingefuegt
+ case nsRedlineType_t::REDLINE_INSERT: // Inhalt wurde eingefuegt
bIsVisible = TRUE;
if( 1 <= nLoop )
MoveFromSection();
break;
- case nsRedlineType_t::REDLINE_DELETE: // Inhalt wurde geloescht
+ case nsRedlineType_t::REDLINE_DELETE: // Inhalt wurde geloescht
bIsVisible = FALSE;
switch( nLoop )
{
- case 0: MoveToSection(); break;
- case 1: CopyToSection(); break;
- case 2: DelCopyOfSection(); break;
+ case 0: MoveToSection(); break;
+ case 1: CopyToSection(); break;
+ case 2: DelCopyOfSection(); break;
}
break;
- case nsRedlineType_t::REDLINE_FORMAT: // Attributierung wurde angewendet
- case nsRedlineType_t::REDLINE_TABLE: // TabellenStruktur wurde veraendert
+ case nsRedlineType_t::REDLINE_FORMAT: // Attributierung wurde angewendet
+ case nsRedlineType_t::REDLINE_TABLE: // TabellenStruktur wurde veraendert
if( 1 <= nLoop )
InvalidateRange();
break;
@@ -3246,24 +3246,24 @@ void SwRedline::ShowOriginal( USHORT nLoop )
switch( pCur->eType )
{
- case nsRedlineType_t::REDLINE_INSERT: // Inhalt wurde eingefuegt
+ case nsRedlineType_t::REDLINE_INSERT: // Inhalt wurde eingefuegt
bIsVisible = FALSE;
switch( nLoop )
{
- case 0: MoveToSection(); break;
- case 1: CopyToSection(); break;
- case 2: DelCopyOfSection(); break;
+ case 0: MoveToSection(); break;
+ case 1: CopyToSection(); break;
+ case 2: DelCopyOfSection(); break;
}
break;
- case nsRedlineType_t::REDLINE_DELETE: // Inhalt wurde geloescht
+ case nsRedlineType_t::REDLINE_DELETE: // Inhalt wurde geloescht
bIsVisible = TRUE;
if( 1 <= nLoop )
MoveFromSection();
break;
- case nsRedlineType_t::REDLINE_FORMAT: // Attributierung wurde angewendet
- case nsRedlineType_t::REDLINE_TABLE: // TabellenStruktur wurde veraendert
+ case nsRedlineType_t::REDLINE_FORMAT: // Attributierung wurde angewendet
+ case nsRedlineType_t::REDLINE_TABLE: // TabellenStruktur wurde veraendert
if( 1 <= nLoop )
InvalidateRange();
break;
@@ -3275,7 +3275,7 @@ void SwRedline::ShowOriginal( USHORT nLoop )
}
-void SwRedline::InvalidateRange() // das Layout anstossen
+void SwRedline::InvalidateRange() // das Layout anstossen
{
ULONG nSttNd = GetMark()->nNode.GetIndex(),
nEndNd = GetPoint()->nNode.GetIndex();
@@ -3313,14 +3313,14 @@ void SwRedline::CalcStartEnd( ULONG nNdIdx, USHORT& nStart, USHORT& nEnd ) const
{
if( pREnd->nNode > nNdIdx )
{
- nStart = 0; // Absatz ist komplett enthalten
+ nStart = 0; // Absatz ist komplett enthalten
nEnd = STRING_LEN;
}
else
{
OSL_ENSURE( pREnd->nNode == nNdIdx,
"SwRedlineItr::Seek: GetRedlinePos Error" );
- nStart = 0; // Absatz wird vorne ueberlappt
+ nStart = 0; // Absatz wird vorne ueberlappt
nEnd = pREnd->nContent.GetIndex();
}
}
@@ -3330,7 +3330,7 @@ void SwRedline::CalcStartEnd( ULONG nNdIdx, USHORT& nStart, USHORT& nEnd ) const
if( pREnd->nNode == nNdIdx )
nEnd = pREnd->nContent.GetIndex(); // Innerhalb des Absatzes
else
- nEnd = STRING_LEN; // Absatz wird hinten ueberlappt
+ nEnd = STRING_LEN; // Absatz wird hinten ueberlappt
}
else
{
@@ -3454,7 +3454,7 @@ void SwRedline::CopyToSection()
pDoc->CopyRange( *this, aPos, false );
// JP 08.10.98: die Vorlage vom EndNode ggfs. mit uebernehmen
- // - ist im Doc::Copy nicht erwuenscht
+ // - ist im Doc::Copy nicht erwuenscht
if( pCEndNd && pCEndNd != pCSttNd )
{
SwCntntNode* pDestNd = aPos.nNode.GetNode().GetCntntNode();
@@ -3726,14 +3726,14 @@ void SwRedline::SetContentIdx( const SwNodeIndex* pIdx )
BOOL SwRedline::CanCombine( const SwRedline& rRedl ) const
{
- return IsVisible() && rRedl.IsVisible() &&
+ return IsVisible() && rRedl.IsVisible() &&
pRedlineData->CanCombine( *rRedl.pRedlineData );
}
void SwRedline::PushData( const SwRedline& rRedl, BOOL bOwnAsNext )
{
-// SwRedlineData* pNew = new SwRedlineData( rRedl.GetType(),
-// rRedl.GetAuthor() );
+// SwRedlineData* pNew = new SwRedlineData( rRedl.GetType(),
+// rRedl.GetAuthor() );
SwRedlineData* pNew = new SwRedlineData( *rRedl.pRedlineData, FALSE );
if( bOwnAsNext )
{
diff --git a/sw/source/core/doc/docruby.cxx b/sw/source/core/doc/docruby.cxx
index e09e74c3db03..866942b26365 100644
--- a/sw/source/core/doc/docruby.cxx
+++ b/sw/source/core/doc/docruby.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
@@ -30,7 +30,7 @@
#include "precompiled_sw.hxx"
-#include <string.h> // fuer strchr()
+#include <string.h> // fuer strchr()
#include <hintids.hxx>
#include <com/sun/star/i18n/UnicodeType.hdl>
@@ -38,12 +38,12 @@
#include <unotools/charclass.hxx>
#include <doc.hxx>
#include <docary.hxx>
-#include <mvsave.hxx> // Strukturen zum Sichern beim Move/Delete
+#include <mvsave.hxx> // Strukturen zum Sichern beim Move/Delete
#include <ndtxt.hxx>
#include <txatbase.hxx>
#include <rubylist.hxx>
#include <pam.hxx>
-#include <swundo.hxx> // fuer die UndoIds
+#include <swundo.hxx> // fuer die UndoIds
#include <undobj.hxx>
#include <breakit.hxx>
#include <crsskip.hxx>
@@ -289,7 +289,7 @@ BOOL SwDoc::_SelectNextRubyChars( SwPaM& rPam, SwRubyListEntry& rEntry, USHORT )
case UnicodeType::SPACE_SEPARATOR:
case UnicodeType::CONTROL:
-/*??*/ case UnicodeType::PRIVATE_USE:
+/*??*/ case UnicodeType::PRIVATE_USE:
case UnicodeType::START_PUNCTUATION:
case UnicodeType::END_PUNCTUATION:
bIgnoreChar = TRUE;
@@ -299,27 +299,27 @@ BOOL SwDoc::_SelectNextRubyChars( SwPaM& rPam, SwRubyListEntry& rEntry, USHORT )
case UnicodeType::OTHER_LETTER:
bChkNxtWrd = TRUE;
// no break!
-// case UnicodeType::UNASSIGNED:
-// case UnicodeType::MODIFIER_LETTER:
-// case UnicodeType::NON_SPACING_MARK:
-// case UnicodeType::ENCLOSING_MARK:
-// case UnicodeType::COMBINING_SPACING_MARK:
-// case UnicodeType::LETTER_NUMBER:
-// case UnicodeType::OTHER_NUMBER:
-// case UnicodeType::LINE_SEPARATOR:
-// case UnicodeType::PARAGRAPH_SEPARATOR:
-// case UnicodeType::FORMAT:
-// case UnicodeType::SURROGATE:
-// case UnicodeType::DASH_PUNCTUATION:
-// case UnicodeType::CONNECTOR_PUNCTUATION:
+// case UnicodeType::UNASSIGNED:
+// case UnicodeType::MODIFIER_LETTER:
+// case UnicodeType::NON_SPACING_MARK:
+// case UnicodeType::ENCLOSING_MARK:
+// case UnicodeType::COMBINING_SPACING_MARK:
+// case UnicodeType::LETTER_NUMBER:
+// case UnicodeType::OTHER_NUMBER:
+// case UnicodeType::LINE_SEPARATOR:
+// case UnicodeType::PARAGRAPH_SEPARATOR:
+// case UnicodeType::FORMAT:
+// case UnicodeType::SURROGATE:
+// case UnicodeType::DASH_PUNCTUATION:
+// case UnicodeType::CONNECTOR_PUNCTUATION:
///*?? */case UnicodeType::OTHER_PUNCTUATION:
//--> char '!' is to ignore!
-// case UnicodeType::MATH_SYMBOL:
-// case UnicodeType::CURRENCY_SYMBOL:
-// case UnicodeType::MODIFIER_SYMBOL:
-// case UnicodeType::OTHER_SYMBOL:
-// case UnicodeType::INITIAL_PUNCTUATION:
-// case UnicodeType::FINAL_PUNCTUATION:
+// case UnicodeType::MATH_SYMBOL:
+// case UnicodeType::CURRENCY_SYMBOL:
+// case UnicodeType::MODIFIER_SYMBOL:
+// case UnicodeType::OTHER_SYMBOL:
+// case UnicodeType::INITIAL_PUNCTUATION:
+// case UnicodeType::FINAL_PUNCTUATION:
default:
bIsAlphaNum = FALSE;
break;
diff --git a/sw/source/core/doc/docsort.cxx b/sw/source/core/doc/docsort.cxx
index f39063e27702..9cbfc57e0f26 100644
--- a/sw/source/core/doc/docsort.cxx
+++ b/sw/source/core/doc/docsort.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
@@ -61,13 +61,13 @@
using namespace ::com::sun::star::lang;
-SwSortOptions* SwSortElement::pOptions = 0;
-SwDoc* SwSortElement::pDoc = 0;
-const FlatFndBox* SwSortElement::pBox = 0;
-CollatorWrapper* SwSortElement::pSortCollator = 0;
-Locale* SwSortElement::pLocale = 0;
-String* SwSortElement::pLastAlgorithm = 0;
-LocaleDataWrapper* SwSortElement::pLclData = 0;
+SwSortOptions* SwSortElement::pOptions = 0;
+SwDoc* SwSortElement::pDoc = 0;
+const FlatFndBox* SwSortElement::pBox = 0;
+CollatorWrapper* SwSortElement::pSortCollator = 0;
+Locale* SwSortElement::pLocale = 0;
+String* SwSortElement::pLastAlgorithm = 0;
+LocaleDataWrapper* SwSortElement::pLclData = 0;
SV_IMPL_OP_PTRARR_SORT( SwSortElements, SwSortElementPtr );
@@ -94,8 +94,8 @@ void SwSortElement::Init( SwDoc* pD, const SwSortOptions& rOpt,
pSortCollator = new CollatorWrapper(
::comphelper::getProcessServiceFactory() );
-// pSortCollator->loadCollatorAlgorithm( sAlgorithm, aLocale,
-// rOpt.bIgnoreCase ? SW_COLLATOR_IGNORES : 0 );
+// pSortCollator->loadCollatorAlgorithm( sAlgorithm, aLocale,
+// rOpt.bIgnoreCase ? SW_COLLATOR_IGNORES : 0 );
}
void SwSortElement::Finit()
@@ -258,14 +258,14 @@ String SwSortBoxElement::GetKey(USHORT nKey) const
USHORT nCol = pOptions->aKeys[nKey]->nColumnId-1;
if( SRT_ROWS == pOptions->eDirection )
- pFndBox = pBox->GetBox(nCol, nRow); // Zeilen sortieren
+ pFndBox = pBox->GetBox(nCol, nRow); // Zeilen sortieren
else
- pFndBox = pBox->GetBox(nRow, nCol); // Spalten sortieren
+ pFndBox = pBox->GetBox(nRow, nCol); // Spalten sortieren
// Den Text rausfieseln
String aRetStr;
if( pFndBox )
- { // StartNode holen und ueberlesen
+ { // StartNode holen und ueberlesen
const SwTableBox* pMyBox = pFndBox->GetBox();
OSL_ENSURE(pMyBox, "Keine atomare Box");
@@ -287,9 +287,9 @@ double SwSortBoxElement::GetValue( USHORT nKey ) const
USHORT nCol = pOptions->aKeys[nKey]->nColumnId-1;
if( SRT_ROWS == pOptions->eDirection )
- pFndBox = pBox->GetBox(nCol, nRow); // Zeilen sortieren
+ pFndBox = pBox->GetBox(nCol, nRow); // Zeilen sortieren
else
- pFndBox = pBox->GetBox(nRow, nCol); // Spalten sortieren
+ pFndBox = pBox->GetBox(nRow, nCol); // Spalten sortieren
double nVal;
if( pFndBox )
@@ -416,9 +416,9 @@ BOOL SwDoc::SortText(const SwPaM& rPaM, const SwSortOptions& rOpt)
for ( USHORT n = 0; n < aSortArr.Count(); ++n )
{
SwSortTxtElement* pBox = (SwSortTxtElement*)aSortArr[n];
- aStart = nBeg + n;
- aRg.aStart = pBox->aPos.GetIndex();
- aRg.aEnd = aRg.aStart.GetIndex() + 1;
+ aStart = nBeg + n;
+ aRg.aStart = pBox->aPos.GetIndex();
+ aRg.aEnd = aRg.aStart.GetIndex() + 1;
// Nodes verschieben
MoveNodeRange( aRg, aStart,
@@ -559,7 +559,7 @@ BOOL SwDoc::SortTbl(const SwSelBoxes& rBoxes, const SwSortOptions& rOpt)
if(bUndo)
{
ClearRedo();
- pUndoSort = new SwUndoSort( rBoxes[0]->GetSttIdx(),
+ pUndoSort = new SwUndoSort( rBoxes[0]->GetSttIdx(),
rBoxes[rBoxes.Count()-1]->GetSttIdx(),
*pTblNd, rOpt, aFlatBox.HasItemSets() );
AppendUndo(pUndoSort);
@@ -623,7 +623,7 @@ void MoveRow(SwDoc* pDoc, const FlatFndBox& rBox, USHORT nS, USHORT nT,
SwMovedBoxes& rMovedList, SwUndoSort* pUD)
{
for( USHORT i=0; i < rBox.GetCols(); ++i )
- { // Alte Zellen-Pos bestimmen und merken
+ { // Alte Zellen-Pos bestimmen und merken
const _FndBox* pSource = rBox.GetBox(i, nS);
// neue Zellen-Pos
@@ -669,7 +669,7 @@ void MoveCol(SwDoc* pDoc, const FlatFndBox& rBox, USHORT nS, USHORT nT,
SwMovedBoxes& rMovedList, SwUndoSort* pUD)
{
for(USHORT i=0; i < rBox.GetRows(); ++i)
- { // Alte Zellen-Pos bestimmen und merken
+ { // Alte Zellen-Pos bestimmen und merken
const _FndBox* pSource = rBox.GetBox(nS, i);
// neue Zellen-Pos
@@ -737,7 +737,7 @@ void MoveCell(SwDoc* pDoc, const SwTableBox* pSource, const SwTableBox* pTar,
// Ist das Ziel leer(1 leerer Node vorhanden)
// -> diesen loeschen und move
// Ziel
- SwNodeIndex aTar( *pTar->GetSttNd() );
+ SwNodeIndex aTar( *pTar->GetSttNd() );
pNd = pDoc->GetNodes().GoNext( &aTar ); // naechsten ContentNode
ULONG nCount = pNd->EndOfSectionIndex() - pNd->StartOfSectionIndex();
@@ -749,7 +749,7 @@ void MoveCell(SwDoc* pDoc, const SwTableBox* pSource, const SwTableBox* pTar,
}
if(!bDelFirst)
- { // Es besteht schon Inhalt -> alter I n h a l t Section Down
+ { // Es besteht schon Inhalt -> alter I n h a l t Section Down
SwNodeRange aRgTar( aTar.GetNode(), 0, *pNd->EndOfSectionNode() );
pDoc->GetNodes().SectionDown( &aRgTar );
}
@@ -801,7 +801,7 @@ FlatFndBox::~FlatFndBox()
}
/*--------------------------------------------------------------------
- Beschreibung: Alle Lines einer Box muessen gleichviel Boxen haben
+ Beschreibung: Alle Lines einer Box muessen gleichviel Boxen haben
--------------------------------------------------------------------*/
BOOL FlatFndBox::CheckLineSymmetry(const _FndBox& rBox)
{
@@ -810,7 +810,7 @@ BOOL FlatFndBox::CheckLineSymmetry(const _FndBox& rBox)
// UeberLines iterieren
for(USHORT i=0; i < rLines.Count(); ++i)
- { // Die Boxen einer Line
+ { // Die Boxen einer Line
_FndLine* pLn = rLines[i];
const _FndBoxes& rBoxes = pLn->GetBoxes();
@@ -826,7 +826,7 @@ BOOL FlatFndBox::CheckLineSymmetry(const _FndBox& rBox)
}
/*--------------------------------------------------------------------
- Beschreibung: Box auf Symmetrie pruefen
+ Beschreibung: Box auf Symmetrie pruefen
Alle Boxen einer Line muessen gleichviele Lines haben
--------------------------------------------------------------------*/
BOOL FlatFndBox::CheckBoxSymmetry(const _FndLine& rLn)
@@ -836,7 +836,7 @@ BOOL FlatFndBox::CheckBoxSymmetry(const _FndLine& rLn)
// Ueber Boxes iterieren
for(USHORT i=0; i < rBoxes.Count(); ++i)
- { // Die Boxen einer Line
+ { // Die Boxen einer Line
_FndBox* pBox = rBoxes[i];
const _FndLines& rLines = pBox->GetLines();
@@ -868,7 +868,7 @@ USHORT FlatFndBox::GetColCount(const _FndBox& rBox)
USHORT nCount = 0;
const _FndBoxes& rBoxes = rLines[i]->GetBoxes();
for( USHORT j=0; j < rBoxes.Count(); ++j )
- // Rekursiv wirder ueber die Lines Iterieren
+ // Rekursiv wirder ueber die Lines Iterieren
nCount += rBoxes[j]->GetLines().Count()
? GetColCount(*rBoxes[j]) : 1;
@@ -889,12 +889,12 @@ USHORT FlatFndBox::GetRowCount(const _FndBox& rBox)
USHORT nLines = 0;
for(USHORT i=0; i < rLines.Count(); ++i)
- { // Die Boxen einer Line
+ { // Die Boxen einer Line
const _FndBoxes& rBoxes = rLines[i]->GetBoxes();
USHORT nLn = 1;
for(USHORT j=0; j < rBoxes.Count(); ++j)
if( rBoxes[j]->GetLines().Count() )
- // Rekursiv ueber die Lines Iterieren
+ // Rekursiv ueber die Lines Iterieren
nLn = Max(GetRowCount(*rBoxes[j]), nLn);
nLines = nLines + nLn;
@@ -920,7 +920,7 @@ void FlatFndBox::FillFlat(const _FndBox& rBox, BOOL bLastBox)
for( USHORT j = 0; j < rBoxes.Count(); ++j )
{
// Die Box pruefen ob es eine atomare Box ist
- const _FndBox* pBox = rBoxes[ j ];
+ const _FndBox* pBox = rBoxes[ j ];
if( !pBox->GetLines().Count() )
{
diff --git a/sw/source/core/doc/docstat.cxx b/sw/source/core/doc/docstat.cxx
index 5225ffd6ad10..e2bef7fd4992 100644
--- a/sw/source/core/doc/docstat.cxx
+++ b/sw/source/core/doc/docstat.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,7 +34,7 @@
/************************************************************************
- * SwDocStat::SwDocStat()
+ * SwDocStat::SwDocStat()
************************************************************************/
SwDocStat::SwDocStat() :
@@ -51,19 +51,19 @@ SwDocStat::SwDocStat() :
{}
/************************************************************************
- * void SwDocStat::Reset()
+ * void SwDocStat::Reset()
************************************************************************/
void SwDocStat::Reset()
{
- nTbl = 0;
- nGrf = 0;
- nOLE = 0;
+ nTbl = 0;
+ nGrf = 0;
+ nOLE = 0;
nPage = 1;
nPara = 1;
nAllPara= 1;
- nWord = 0;
- nChar = 0;
+ nWord = 0;
+ nChar = 0;
nCharExcludingSpaces = 0;
bModified = TRUE;
}
diff --git a/sw/source/core/doc/doctxm.cxx b/sw/source/core/doc/doctxm.cxx
index 3d7ed1be1d7a..dfc587d3cb12 100644
--- a/sw/source/core/doc/doctxm.cxx
+++ b/sw/source/core/doc/doctxm.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
@@ -79,17 +79,17 @@
using namespace ::com::sun::star;
-const sal_Unicode cNumRepl = '@';
-const sal_Unicode cEndPageNum = '~';
+const sal_Unicode cNumRepl = '@';
+const sal_Unicode cEndPageNum = '~';
const sal_Char __FAR_DATA sPageDeli[] = ", ";
SV_IMPL_PTRARR(SwTOXSortTabBases, SwTOXSortTabBasePtr)
-TYPEINIT2( SwTOXBaseSection, SwTOXBase, SwSection ); // fuers RTTI
+TYPEINIT2( SwTOXBaseSection, SwTOXBase, SwSection ); // fuers RTTI
struct LinkStruct
{
- SwFmtINetFmt aINetFmt;
+ SwFmtINetFmt aINetFmt;
xub_StrLen nStartTextPos, nEndTextPos;
LinkStruct( const String& rURL, xub_StrLen nStart, xub_StrLen nEnd )
@@ -161,7 +161,7 @@ USHORT SwDoc::GetCurTOXMark( const SwPosition& rPos,
// pruefe Ende mit ab
if( 0 == ( pEndIdx = pHt->GetEnd() ) ||
*pEndIdx <= nAktPos )
- continue; // weiter suchen
+ continue; // weiter suchen
}
else if( nSttIdx > nAktPos )
// ist Start vom Hint groesser als rPos, dann abbrechen. Denn
@@ -252,12 +252,12 @@ const SwTOXMark& SwDoc::GotoTOXMark( const SwTOXMark& rCurTOXMark,
CompareNodeCntnt aMax( 0, 0 );
CompareNodeCntnt aMin( ULONG_MAX, STRING_NOTFOUND );
- const SwTOXMark* pNew = 0;
- const SwTOXMark* pMax = &rCurTOXMark;
- const SwTOXMark* pMin = &rCurTOXMark;
+ const SwTOXMark* pNew = 0;
+ const SwTOXMark* pMax = &rCurTOXMark;
+ const SwTOXMark* pMin = &rCurTOXMark;
const SwModify* pType = rCurTOXMark.GetRegisteredIn();
- SwClientIter aIter( *(SwModify*)pType );
+ SwClientIter aIter( *(SwModify*)pType );
const SwTOXMark* pTOXMark;
const SwCntntFrm* pCFrm;
@@ -431,7 +431,7 @@ const SwTOXBaseSection* SwDoc::InsertTableOf( ULONG nSttNd, ULONG nEndNd,
if(pSet)
pFmt->SetFmtAttr(*pSet);
-// --aEnd; // im InsertSection ist Ende inclusive
+// --aEnd; // im InsertSection ist Ende inclusive
SwSectionNode *const pNewSectionNode =
GetNodes().InsertTextSection(aStt, *pFmt, aSectionData, &rTOX, &aEnd);
@@ -484,13 +484,13 @@ const SwTOXBase* SwDoc::GetDefaultTOXBase( TOXTypes eTyp, BOOL bCreate )
SwTOXBase** prBase = 0;
switch(eTyp)
{
- case TOX_CONTENT: prBase = &pDefTOXBases->pContBase; break;
+ case TOX_CONTENT: prBase = &pDefTOXBases->pContBase; break;
case TOX_INDEX: prBase = &pDefTOXBases->pIdxBase; break;
case TOX_USER: prBase = &pDefTOXBases->pUserBase; break;
case TOX_TABLES: prBase = &pDefTOXBases->pTblBase; break;
case TOX_OBJECTS: prBase = &pDefTOXBases->pObjBase; break;
case TOX_ILLUSTRATIONS: prBase = &pDefTOXBases->pIllBase; break;
- case TOX_AUTHORITIES: prBase = &pDefTOXBases->pAuthBase; break;
+ case TOX_AUTHORITIES: prBase = &pDefTOXBases->pAuthBase; break;
}
if(!(*prBase) && bCreate)
{
@@ -501,18 +501,18 @@ const SwTOXBase* SwDoc::GetDefaultTOXBase( TOXTypes eTyp, BOOL bCreate )
return (*prBase);
}
-void SwDoc::SetDefaultTOXBase(const SwTOXBase& rBase)
+void SwDoc::SetDefaultTOXBase(const SwTOXBase& rBase)
{
SwTOXBase** prBase = 0;
switch(rBase.GetType())
{
- case TOX_CONTENT: prBase = &pDefTOXBases->pContBase; break;
+ case TOX_CONTENT: prBase = &pDefTOXBases->pContBase; break;
case TOX_INDEX: prBase = &pDefTOXBases->pIdxBase; break;
case TOX_USER: prBase = &pDefTOXBases->pUserBase; break;
case TOX_TABLES: prBase = &pDefTOXBases->pTblBase; break;
case TOX_OBJECTS: prBase = &pDefTOXBases->pObjBase; break;
case TOX_ILLUSTRATIONS: prBase = &pDefTOXBases->pIllBase; break;
- case TOX_AUTHORITIES: prBase = &pDefTOXBases->pAuthBase; break;
+ case TOX_AUTHORITIES: prBase = &pDefTOXBases->pAuthBase; break;
}
if(*prBase)
delete (*prBase);
@@ -612,7 +612,7 @@ BOOL SwDoc::DeleteTOX( const SwTOXBase& rTOXBase, BOOL bDelNodes )
}
/*--------------------------------------------------------------------
- Beschreibung: Verzeichnistypen verwalten
+ Beschreibung: Verzeichnistypen verwalten
--------------------------------------------------------------------*/
USHORT SwDoc::GetTOXTypeCount(TOXTypes eTyp) const
{
@@ -726,7 +726,7 @@ const SwTxtNode* lcl_FindChapterNode( const SwNode& rNd, BYTE nLvl = 0 )
{
SwPosition aPos( *pNd );
pNd = GetBodyTxtNode( *pNd->GetDoc(), aPos, *pFrm );
- OSL_ENSURE( pNd, "wo steht der Absatz" );
+ OSL_ENSURE( pNd, "wo steht der Absatz" );
}
}
return pNd ? pNd->FindOutlineNodeOfLevel( nLvl ) : 0;
@@ -1001,7 +1001,7 @@ sNm.AppendAscii( RTL_CONSTASCII_STRINGPARAM( "_Head" ));
aSortArr[ nCnt ]->pTOXNd = pTOXNd;
// Generierung: Form auswerten und Platzhalter
- // fuer die Seitennummer eintragen
+ // fuer die Seitennummer eintragen
//if it is a TOX_INDEX and the SwForm IsCommaSeparated()
// then a range of entries must be generated into one paragraph
USHORT nRange = 1;
@@ -1069,7 +1069,7 @@ void SwTOXBaseSection::InsertAlphaDelimitter( const SwTOXInternational& rIntl )
{
SwDoc* pDoc = (SwDoc*)GetFmt()->GetDoc();
String sDeli, sLastDeli;
- USHORT i = 0;
+ USHORT i = 0;
while( i < aSortArr.Count() )
{
::SetProgressState( 0, pDoc->GetDocShell() );
@@ -1120,17 +1120,17 @@ SwTxtFmtColl* SwTOXBaseSection::GetTxtFmtColl( USHORT nLevel )
const TOXTypes eMyType = SwTOXBase::GetType();
switch( eMyType )
{
- case TOX_INDEX: nPoolFmt = RES_POOLCOLL_TOX_IDXH; break;
+ case TOX_INDEX: nPoolFmt = RES_POOLCOLL_TOX_IDXH; break;
case TOX_USER:
if( nLevel < 6 )
nPoolFmt = RES_POOLCOLL_TOX_USERH;
else
nPoolFmt = RES_POOLCOLL_TOX_USER6 - 6;
break;
- case TOX_ILLUSTRATIONS: nPoolFmt = RES_POOLCOLL_TOX_ILLUSH; break;
- case TOX_OBJECTS: nPoolFmt = RES_POOLCOLL_TOX_OBJECTH; break;
- case TOX_TABLES: nPoolFmt = RES_POOLCOLL_TOX_TABLESH; break;
- case TOX_AUTHORITIES: nPoolFmt = RES_POOLCOLL_TOX_AUTHORITIESH; break;
+ case TOX_ILLUSTRATIONS: nPoolFmt = RES_POOLCOLL_TOX_ILLUSH; break;
+ case TOX_OBJECTS: nPoolFmt = RES_POOLCOLL_TOX_OBJECTH; break;
+ case TOX_TABLES: nPoolFmt = RES_POOLCOLL_TOX_TABLESH; break;
+ case TOX_AUTHORITIES: nPoolFmt = RES_POOLCOLL_TOX_AUTHORITIESH; break;
case TOX_CONTENT:
// im Content Bereich gibt es einen Sprung!
@@ -1222,7 +1222,7 @@ void SwTOXBaseSection::UpdateMarks( const SwTOXInternational& rIntl,
}
else if( TOX_USER == eTOXTyp ||
pMark->GetLevel() <= GetLevel())
- { // Inhaltsberzeichnismarkierung
+ { // Inhaltsberzeichnismarkierung
// also used for user marks
pBase = new SwTOXContent( *pTOXSrc, pTxtMark, rIntl );
InsertSorted(pBase);
@@ -1233,7 +1233,7 @@ void SwTOXBaseSection::UpdateMarks( const SwTOXInternational& rIntl,
}
/*--------------------------------------------------------------------
- Beschreibung: Verzeichnisinhalt aus Gliederungsebene generieren
+ Beschreibung: Verzeichnisinhalt aus Gliederungsebene generieren
--------------------------------------------------------------------*/
void SwTOXBaseSection::UpdateOutline( const SwTxtNode* pOwnChapterNode )
{
@@ -1246,8 +1246,8 @@ void SwTOXBaseSection::UpdateOutline( const SwTxtNode* pOwnChapterNode )
::SetProgressState( 0, pDoc->GetDocShell() );
SwTxtNode* pTxtNd = rOutlNds[ n ]->GetTxtNode();
if( pTxtNd && pTxtNd->Len() && pTxtNd->GetDepends() &&
- //USHORT(pTxtNd->GetTxtColl()->GetOutlineLevel()+1) <= GetLevel() && //#outline level,zhaojianwei
- USHORT( pTxtNd->GetAttrOutlineLevel()) <= GetLevel() && //<-end,zhaojianwei
+ //USHORT(pTxtNd->GetTxtColl()->GetOutlineLevel()+1) <= GetLevel() && //#outline level,zhaojianwei
+ USHORT( pTxtNd->GetAttrOutlineLevel()) <= GetLevel() && //<-end,zhaojianwei
pTxtNd->GetFrm() &&
!pTxtNd->HasHiddenParaField() &&
!pTxtNd->HasHiddenCharAttribute( true ) &&
@@ -1361,7 +1361,7 @@ void SwTOXBaseSection::UpdateAuthorities( const SwTOXInternational& rIntl )
const SwTxtNode& rTxtNode = pTxtFld->GetTxtNode();
::SetProgressState( 0, pDoc->GetDocShell() );
-// const SwTxtNode* pChapterCompareNode = 0;
+// const SwTxtNode* pChapterCompareNode = 0;
if( rTxtNode.GetTxt().Len() && rTxtNode.GetFrm() &&
rTxtNode.GetNodes().IsDocNodes() /*&&
@@ -1473,7 +1473,7 @@ void SwTOXBaseSection::UpdateCntnt( SwTOXElement eMyType,
long nMyOLEOptions = GetOLEOptions();
SwOLEObj& rOLEObj = pOLENode->GetOLEObj();
- if( rOLEObj.IsOleRef() ) //Noch nicht geladen
+ if( rOLEObj.IsOleRef() ) //Noch nicht geladen
{
SvGlobalName aTmpName = SvGlobalName( rOLEObj.GetOleRef()->getClassID() );
long nObj = ::lcl_IsSOObject( aTmpName );
@@ -1511,7 +1511,7 @@ void SwTOXBaseSection::UpdateCntnt( SwTOXElement eMyType,
{
//USHORT nTmp = pOutlNd->GetTxtColl()->GetOutlineLevel();//#outline level,zhaojianwei
//if( nTmp < NO_NUMBERING )
- // nSetLevel = nTmp + 1;
+ // nSetLevel = nTmp + 1;
if( pOutlNd->GetTxtColl()->IsAssignedToListLevelOfOutlineStyle())
nSetLevel = pOutlNd->GetTxtColl()->GetAttrOutlineLevel() ;//<-end,zhaojianwei
}
@@ -1533,7 +1533,7 @@ void SwTOXBaseSection::UpdateCntnt( SwTOXElement eMyType,
}
/*--------------------------------------------------------------------
- Beschreibung: Tabelleneintraege zusammensuchen
+ Beschreibung: Tabelleneintraege zusammensuchen
--------------------------------------------------------------------*/
void SwTOXBaseSection::UpdateTable( const SwTxtNode* pOwnChapterNode )
{
@@ -1569,7 +1569,7 @@ void SwTOXBaseSection::UpdateTable( const SwTxtNode* pOwnChapterNode )
{
//USHORT nTmp = pOutlNd->GetTxtColl()->GetOutlineLevel();//#outline level,zhaojianwei
//if( nTmp < NO_NUMBERING )
- // pNew->SetLevel( nTmp + 1 );
+ // pNew->SetLevel( nTmp + 1 );
if( pOutlNd->GetTxtColl()->IsAssignedToListLevelOfOutlineStyle())
{
const int nTmp = pOutlNd->GetTxtColl()->GetAttrOutlineLevel();
@@ -1586,7 +1586,7 @@ void SwTOXBaseSection::UpdateTable( const SwTxtNode* pOwnChapterNode )
}
/*--------------------------------------------------------------------
- Beschreibung: String generieren anhand der Form
+ Beschreibung: String generieren anhand der Form
SonderZeichen 0-31 und 255 entfernen
--------------------------------------------------------------------*/
String lcl_GetNumString( const SwTOXSortTabBase& rBase, sal_Bool bUsePrefix, BYTE nLevel )
@@ -1594,7 +1594,7 @@ String lcl_GetNumString( const SwTOXSortTabBase& rBase, sal_Bool bUsePrefix, BYT
String sRet;
if( !rBase.pTxtMark && rBase.aTOXSources.Count() > 0 )
- { // nur wenn es keine Marke ist
+ { // nur wenn es keine Marke ist
const SwTxtNode* pNd = rBase.aTOXSources[0].pNd->GetTxtNode();
if( pNd )
{
@@ -1615,7 +1615,7 @@ void SwTOXBaseSection::GenerateText( USHORT nArrayIdx,
const sal_uInt32 _nTOXSectNdIdx,
const SwPageDesc* _pDefaultPageDesc )
{
- LinkStructArr aLinkArr;
+ LinkStructArr aLinkArr;
SwDoc* pDoc = (SwDoc*)GetFmt()->GetDoc();
::SetProgressState( 0, pDoc->GetDocShell() );
@@ -1769,9 +1769,9 @@ void SwTOXBaseSection::GenerateText( USHORT nArrayIdx,
aInsStr += cEndPageNum;
rTxt.Append( aInsStr );
}
-// // Tab entfernen, wenn keine Seitennummer
-// else if( rTxt.Len() && '\t' == rTxt.GetChar( rTxt.Len() - 1 ))
-// rTxt.Erase( rTxt.Len()-1, 1 );
+// // Tab entfernen, wenn keine Seitennummer
+// else if( rTxt.Len() && '\t' == rTxt.GetChar( rTxt.Len() - 1 ))
+// rTxt.Erase( rTxt.Len()-1, 1 );
}
break;
@@ -1878,7 +1878,7 @@ void SwTOXBaseSection::GenerateText( USHORT nArrayIdx,
if( aToken.sCharStyleName.Len() )
{
SwCharFmt* pCharFmt;
- if( USHRT_MAX != aToken.nPoolId )
+ if( USHRT_MAX != aToken.nPoolId )
pCharFmt = pDoc->GetCharFmtFromPool( aToken.nPoolId );
else
pCharFmt = pDoc->FindCharFmtByName( aToken.sCharStyleName);
@@ -1916,8 +1916,8 @@ void SwTOXBaseSection::UpdatePageNum()
return ;
// die aktuellen Seitennummern ins Verzeichnis eintragen
- SwPageFrm* pAktPage = 0;
- USHORT nPage = 0;
+ SwPageFrm* pAktPage = 0;
+ USHORT nPage = 0;
SwDoc* pDoc = (SwDoc*)GetFmt()->GetDoc();
SwTOXInternational aIntl( GetLanguage(),
@@ -1928,8 +1928,8 @@ void SwTOXBaseSection::UpdatePageNum()
for( USHORT nCnt = 0; nCnt < aSortArr.Count(); ++nCnt )
{
// Schleife ueber alle SourceNodes
- SvUShorts aNums; //Die Seitennummern
- SvPtrarr aDescs; //Die PageDescriptoren passend zu den Seitennummern.
+ SvUShorts aNums; //Die Seitennummern
+ SvPtrarr aDescs; //Die PageDescriptoren passend zu den Seitennummern.
SvUShorts* pMainNums = 0; // contains page numbers of main entries
// process run in lines
@@ -1976,11 +1976,11 @@ void SwTOXBaseSection::UpdatePageNum()
pFrm = pNext;
}
- SwPageFrm* pTmpPage = pFrm->FindPageFrm();
+ SwPageFrm* pTmpPage = pFrm->FindPageFrm();
if( pTmpPage != pAktPage )
{
- nPage = pTmpPage->GetVirtPageNum();
- pAktPage = pTmpPage;
+ nPage = pTmpPage->GetVirtPageNum();
+ pAktPage = pTmpPage;
}
// sortiert einfuegen
@@ -2075,7 +2075,7 @@ void SwTOXBaseSection::_UpdatePageNum( SwTxtNode* pNd,
{
SwTxtAttr* pAttr = pHints->GetStart(nHintIdx);
xub_StrLen nTmpEnd = pAttr->GetEnd() ? *pAttr->GetEnd() : 0;
- if( nStartPos >= *pAttr->GetStart() &&
+ if( nStartPos >= *pAttr->GetStart() &&
(nStartPos + 2) <= nTmpEnd &&
pAttr->Which() == RES_TXTATR_CHARFMT)
{
@@ -2089,7 +2089,7 @@ void SwTOXBaseSection::_UpdatePageNum( SwTxtNode* pNd,
{
SvxNumberType aType( ((SwPageDesc*)rDescs[i])->GetNumType() );
if( TOX_INDEX == SwTOXBase::GetType() )
- { // Zusammenfassen f. ff.
+ { // Zusammenfassen f. ff.
// Alle folgenden aufaddieren
// break up if main entry starts or ends and
// insert a char style index
@@ -2119,19 +2119,19 @@ void SwTOXBaseSection::_UpdatePageNum( SwTxtNode* pNd,
}
// neuen String anlegen
- nBeg = rNums[i];
+ nBeg = rNums[i];
aNumStr.AppendAscii( sPageDeli );
//the change of the character style must apply after sPageDeli is appended
if(pCharStyleIdx && bMainEntryChanges)
pCharStyleIdx->Insert(aNumStr.Len(),
pCharStyleIdx->Count());
aNumStr += aType.GetNumStr( nBeg );
- nCount = 0;
+ nCount = 0;
}
nOld = rNums[i];
}
else
- { // Alle Nummern eintragen
+ { // Alle Nummern eintragen
aNumStr += aType.GetNumStr( USHORT(rNums[i]) );
if(i != (rNums.Count()-1))
aNumStr.AppendAscii( sPageDeli );
@@ -2252,7 +2252,7 @@ void SwTOXBaseSection::InsertSorted(SwTOXSortTabBase* pNew)
short i;
for( i = (short)aRange.Min(); i < (short)aRange.Max(); ++i)
- { // nur auf gleicher Ebene pruefen
+ { // nur auf gleicher Ebene pruefen
//
SwTOXSortTabBase* pOld = aSortArr[i];
if(*pOld == *pNew)
@@ -2266,7 +2266,7 @@ void SwTOXBaseSection::InsertSorted(SwTOXSortTabBase* pNew)
continue;
if(!(pNew->GetOptions() & nsSwTOIOptions::TOI_SAME_ENTRY))
- { // Eigener Eintrag
+ { // Eigener Eintrag
aSortArr.Insert(pNew, i );
return;
}
@@ -2332,7 +2332,7 @@ Range SwTOXBaseSection::GetKeyRange(const String& rStr, const String& rStrReadin
break;
}
if(i == nMax)
- { // Falls nicht vorhanden erzeugen und einfuegen
+ { // Falls nicht vorhanden erzeugen und einfuegen
//
SwTOXCustom* pKey = new SwTOXCustom( sToCompare, sToCompareReading, nLevel, rIntl,
rNew.GetLocale() );
@@ -2350,7 +2350,7 @@ Range SwTOXBaseSection::GetKeyRange(const String& rStr, const String& rStrReadin
for(i = nStart; i < aSortArr.Count(); ++i)
{
if(aSortArr[i]->GetLevel() <= nLevel)
- { nEnd = i;
+ { nEnd = i;
break;
}
}
diff --git a/sw/source/core/doc/docxforms.cxx b/sw/source/core/doc/docxforms.cxx
index bf34f2a64699..322d28643115 100644
--- a/sw/source/core/doc/docxforms.cxx
+++ b/sw/source/core/doc/docxforms.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
@@ -99,14 +99,14 @@ void SwDoc::initXForms( bool bCreateDefaultModel )
if( bCreateDefaultModel && xXForms.is() )
{
OUString sName(RTL_CONSTASCII_USTRINGPARAM("Model 1"));
- Reference<XModel> xModel(
+ Reference<XModel> xModel(
lcl_createInstance( "com.sun.star.xforms.Model" ),
UNO_QUERY );
DBG_ASSERT( xModel.is(), "no model?" );
if( xModel.is() )
{
xModel->setID( sName );
- Reference<XFormsUIHelper1>( xModel, UNO_QUERY )->newInstance(
+ Reference<XFormsUIHelper1>( xModel, UNO_QUERY )->newInstance(
OUString(RTL_CONSTASCII_USTRINGPARAM("Instance 1")),
OUString(), sal_True );
xModel->initialize();
diff --git a/sw/source/core/doc/extinput.cxx b/sw/source/core/doc/extinput.cxx
index fdfe5ca10310..01dcfd295680 100644
--- a/sw/source/core/doc/extinput.cxx
+++ b/sw/source/core/doc/extinput.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
diff --git a/sw/source/core/doc/fmtcol.cxx b/sw/source/core/doc/fmtcol.cxx
index 624aca83618b..b1d130082cbf 100644
--- a/sw/source/core/doc/fmtcol.cxx
+++ b/sw/source/core/doc/fmtcol.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,7 +34,7 @@
#include <editeng/ulspitem.hxx>
#include <editeng/lrspitem.hxx>
#include <editeng/fhgtitem.hxx>
-#include <doc.hxx> // fuer GetAttrPool
+#include <doc.hxx> // fuer GetAttrPool
#include <errhdl.hxx>
#include <fmtcol.hxx>
// --> OD 2006-11-22 #i71574#
@@ -250,27 +250,27 @@ void SwTxtFmtColl::Modify( SfxPoolItem* pOld, SfxPoolItem* pNew )
(const SfxPoolItem**)&pOldLRSpace ))
{
int bChg = FALSE;
- if( pOldLRSpace != pNewLRSpace ) // verhinder Rekursion (SetAttr!!)
+ if( pOldLRSpace != pNewLRSpace ) // verhinder Rekursion (SetAttr!!)
{
SvxLRSpaceItem aNew( *pOldLRSpace );
// wir hatten eine relative Angabe -> neu berechnen
if( 100 != aNew.GetPropLeft() )
{
- long nTmp = aNew.GetLeft(); // alten zum Vergleichen
+ long nTmp = aNew.GetLeft(); // alten zum Vergleichen
aNew.SetLeft( pNewLRSpace->GetLeft(), aNew.GetPropLeft() );
bChg |= nTmp != aNew.GetLeft();
}
// wir hatten eine relative Angabe -> neu berechnen
if( 100 != aNew.GetPropRight() )
{
- long nTmp = aNew.GetRight(); // alten zum Vergleichen
+ long nTmp = aNew.GetRight(); // alten zum Vergleichen
aNew.SetRight( pNewLRSpace->GetRight(), aNew.GetPropRight() );
bChg |= nTmp != aNew.GetRight();
}
// wir hatten eine relative Angabe -> neu berechnen
if( 100 != aNew.GetPropTxtFirstLineOfst() )
{
- short nTmp = aNew.GetTxtFirstLineOfst(); // alten zum Vergleichen
+ short nTmp = aNew.GetTxtFirstLineOfst(); // alten zum Vergleichen
aNew.SetTxtFirstLineOfst( pNewLRSpace->GetTxtFirstLineOfst(),
aNew.GetPropTxtFirstLineOfst() );
bChg |= nTmp != aNew.GetTxtFirstLineOfst();
@@ -289,21 +289,21 @@ void SwTxtFmtColl::Modify( SfxPoolItem* pOld, SfxPoolItem* pNew )
if( pNewULSpace && SFX_ITEM_SET == GetItemState(
RES_UL_SPACE, FALSE, (const SfxPoolItem**)&pOldULSpace ) &&
- pOldULSpace != pNewULSpace ) // verhinder Rekursion (SetAttr!!)
+ pOldULSpace != pNewULSpace ) // verhinder Rekursion (SetAttr!!)
{
SvxULSpaceItem aNew( *pOldULSpace );
int bChg = FALSE;
// wir hatten eine relative Angabe -> neu berechnen
if( 100 != aNew.GetPropUpper() )
{
- USHORT nTmp = aNew.GetUpper(); // alten zum Vergleichen
+ USHORT nTmp = aNew.GetUpper(); // alten zum Vergleichen
aNew.SetUpper( pNewULSpace->GetUpper(), aNew.GetPropUpper() );
bChg |= nTmp != aNew.GetUpper();
}
// wir hatten eine relative Angabe -> neu berechnen
if( 100 != aNew.GetPropLower() )
{
- USHORT nTmp = aNew.GetLower(); // alten zum Vergleichen
+ USHORT nTmp = aNew.GetLower(); // alten zum Vergleichen
aNew.SetLower( pNewULSpace->GetLower(), aNew.GetPropLower() );
bChg |= nTmp != aNew.GetLower();
}
@@ -339,7 +339,7 @@ void SwTxtFmtColl::Modify( SfxPoolItem* pOld, SfxPoolItem* pNew )
else
{
// wir hatten eine relative Angabe -> neu berechnen
- UINT32 nTmp = pOldFSize->GetHeight(); // alten zum Vergleichen
+ UINT32 nTmp = pOldFSize->GetHeight(); // alten zum Vergleichen
SvxFontHeightItem aNew(240 , 100, pFSize->Which());
aNew.SetHeight( pFSize->GetHeight(), pOldFSize->GetProp(),
pOldFSize->GetPropUnit() );
diff --git a/sw/source/core/doc/ftnidx.cxx b/sw/source/core/doc/ftnidx.cxx
index afd96de4ba90..c63b4fce8c62 100644
--- a/sw/source/core/doc/ftnidx.cxx
+++ b/sw/source/core/doc/ftnidx.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,16 +110,16 @@ void SwFtnIdxs::UpdateFtn( const SwNodeIndex& rStt )
for( n = 0; n < rOutlNds.Count(); ++n )
if( rOutlNds[ n ]->GetIndex() > rStt.GetIndex() )
- break; // gefunden
- //else if( !rOutlNds[ n ]->GetTxtNode()->GetTxtColl()->GetOutlineLevel() ) //#outline level,zhaojianwei
+ break; // gefunden
+ //else if( !rOutlNds[ n ]->GetTxtNode()->GetTxtColl()->GetOutlineLevel() ) //#outline level,zhaojianwei
else if ( rOutlNds[ n ]->GetTxtNode()->GetAttrOutlineLevel() == 1 ) //<-end,zhaojianwei
- pCapStt = rOutlNds[ n ]; // Start eines neuen Kapitels
+ pCapStt = rOutlNds[ n ]; // Start eines neuen Kapitels
// dann suche jetzt noch das Ende vom Bereich
for( ; n < rOutlNds.Count(); ++n )
//if( !rOutlNds[ n ]->GetTxtNode()->GetTxtColl()->GetOutlineLevel() )//#outline level,zhaojianwei
if ( rOutlNds[ n ]->GetTxtNode()->GetAttrOutlineLevel() == 1 )//<-end,zhaojianwei
{
- nCapEnd = rOutlNds[ n ]->GetIndex(); // Ende des gefundenen Kapitels
+ nCapEnd = rOutlNds[ n ]->GetIndex(); // Ende des gefundenen Kapitels
break;
}
}
@@ -134,7 +134,7 @@ void SwFtnIdxs::UpdateFtn( const SwNodeIndex& rStt )
++nPos;
}
- if( nPos == Count() ) // nichts gefunden
+ if( nPos == Count() ) // nichts gefunden
return;
if( !rOutlNds.Count() )
@@ -227,14 +227,14 @@ void SwFtnIdxs::UpdateAllFtn()
if( FTNNUM_CHAPTER == rFtnInfo.eNum )
{
const SwOutlineNodes& rOutlNds = pDoc->GetNodes().GetOutLineNds();
- USHORT nNo = 1, // Nummer fuer die Fussnoten
- nFtnIdx = 0; // Index in das FtnIdx-Array
+ USHORT nNo = 1, // Nummer fuer die Fussnoten
+ nFtnIdx = 0; // Index in das FtnIdx-Array
for( USHORT n = 0; n < rOutlNds.Count(); ++n )
{
//if( !rOutlNds[ n ]->GetTxtNode()->GetTxtColl()->GetOutlineLevel() )//#outline level,zhaojianwei
if ( rOutlNds[ n ]->GetTxtNode()->GetAttrOutlineLevel() == 1 )//<-end,zhaojianwei
{
- ULONG nCapStt = rOutlNds[ n ]->GetIndex(); // Start eines neuen Kapitels
+ ULONG nCapStt = rOutlNds[ n ]->GetIndex(); // Start eines neuen Kapitels
for( ; nFtnIdx < Count(); ++nFtnIdx )
{
pTxtFtn = (*this)[ nFtnIdx ];
@@ -249,7 +249,7 @@ void SwFtnIdxs::UpdateAllFtn()
&rFtn.GetNumStr() );
}
if( nFtnIdx >= Count() )
- break; // ok alles geupdatet
+ break; // ok alles geupdatet
nNo = 1;
}
}
@@ -338,7 +338,7 @@ const SwSectionNode* SwUpdFtnEndNtAtEnd::FindSectNdWithEndAttr(
const SwTxtFtn& rTxtFtn )
{
USHORT nWh = static_cast<USHORT>( rTxtFtn.GetFtn().IsEndNote() ?
- RES_END_AT_TXTEND : RES_FTN_AT_TXTEND );
+ RES_END_AT_TXTEND : RES_FTN_AT_TXTEND );
USHORT nVal;
const SwSectionNode* pNd = rTxtFtn.GetTxtNode().FindSectionNode();
while( pNd && FTNEND_ATTXTEND_OWNNUMSEQ != ( nVal =
diff --git a/sw/source/core/doc/gctable.cxx b/sw/source/core/doc/gctable.cxx
index 6e49dc8108d5..401affef93e4 100644
--- a/sw/source/core/doc/gctable.cxx
+++ b/sw/source/core/doc/gctable.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
@@ -366,7 +366,7 @@ BOOL lcl_MergeGCBox( const SwTableBox*& rpTblBox, void* pPara )
// loesche alte die Box mit der Line
pInsLine->GetTabBoxes().DeleteAndDestroy( nInsPos );
- return FALSE; // neu aufsetzen
+ return FALSE; // neu aufsetzen
}
}
return TRUE;
@@ -401,7 +401,7 @@ BOOL lcl_MergeGCLine( const SwTableLine*& rpLine, void* pPara )
SwTableBox* pUpper = pLn->GetUpper();
- rLns.Remove( nInsPos, 1 ); // die Line dem aus Array loeschen
+ rLns.Remove( nInsPos, 1 ); // die Line dem aus Array loeschen
rLns.Insert( &pBox->GetTabLines(), nInsPos );
// JP 31.03.99: Bug 60000 - die Attribute der zu loeschenden
@@ -417,7 +417,7 @@ BOOL lcl_MergeGCLine( const SwTableLine*& rpLine, void* pPara )
pGCPara->pShareFmts->SetAttr( *rBoxLns[ nLns ], *pItem );
}
- pBox->GetTabLines().Remove( 0, nLen ); // Lines aus Array loeschen
+ pBox->GetTabLines().Remove( 0, nLen ); // Lines aus Array loeschen
delete pLn;
@@ -425,7 +425,7 @@ BOOL lcl_MergeGCLine( const SwTableLine*& rpLine, void* pPara )
while( nLen-- )
rLns[ nInsPos++ ]->SetUpper( pUpper );
- pLn = pLine; // und neu setzen
+ pLn = pLine; // und neu setzen
nLen = pLn->GetTabBoxes().Count();
}
diff --git a/sw/source/core/doc/htmltbl.cxx b/sw/source/core/doc/htmltbl.cxx
index 4eeff2a0ec0e..7afb7a1fa175 100644
--- a/sw/source/core/doc/htmltbl.cxx
+++ b/sw/source/core/doc/htmltbl.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
@@ -66,13 +66,13 @@ using namespace ::com::sun::star;
class SwHTMLTableLayoutConstraints
{
- USHORT nRow; // Start-Zeile
- USHORT nCol; // Start-Spalte
- USHORT nColSpan; // COLSPAN der Zelle
+ USHORT nRow; // Start-Zeile
+ USHORT nCol; // Start-Spalte
+ USHORT nColSpan; // COLSPAN der Zelle
- SwHTMLTableLayoutConstraints *pNext; // die naechste Bedingung
+ SwHTMLTableLayoutConstraints *pNext; // die naechste Bedingung
- ULONG nMinNoAlign, nMaxNoAlign; // Zwischenergebnisse AL-Pass 1
+ ULONG nMinNoAlign, nMaxNoAlign; // Zwischenergebnisse AL-Pass 1
public:
@@ -150,7 +150,7 @@ SwHTMLTableLayoutColumn::SwHTMLTableLayoutColumn( USHORT nWidth,
/* */
SwHTMLTableLayoutConstraints::SwHTMLTableLayoutConstraints(
- ULONG nMin, ULONG nMax, USHORT nRw, USHORT nColumn, USHORT nColSp ):
+ ULONG nMin, ULONG nMax, USHORT nRw, USHORT nColumn, USHORT nColSp ):
nRow( nRw ), nCol( nColumn ), nColSpan( nColSp ),
pNext( 0 ),
nMinNoAlign( nMin ), nMaxNoAlign( nMax )
@@ -512,7 +512,7 @@ void SwHTMLTableLayout::AutoLayoutPass1()
pColumn->ClearPass1Info( !HasColTags() );
USHORT nMinColSpan = USHRT_MAX; // Spaltenzahl, auf die sich dir
// berechnete Breite bezieht
- USHORT nColSkip = USHRT_MAX; // Wie viele Spalten muessen
+ USHORT nColSkip = USHRT_MAX; // Wie viele Spalten muessen
// uebersprungen werden
for( USHORT j=0; j<nRows; j++ )
@@ -782,19 +782,19 @@ void SwHTMLTableLayout::AutoLayoutPass1()
// Werte anhand folgender Tabelle (Netscape 4.0 pv 3) uebernehmen:
//
- // WIDTH: kein COLS COLS
+ // WIDTH: kein COLS COLS
//
- // keine min = min min = absmin
- // max = max max = max
+ // keine min = min min = absmin
+ // max = max max = max
//
- // >= min min = min min = width
- // max = width max = width
+ // >= min min = min min = width
+ // max = width max = width
//
- // >= absmin min = wdith(*) min = width
- // max = width max = width
+ // >= absmin min = wdith(*) min = width
+ // max = width max = width
//
- // < absmin min = absmin min = absmin
- // max = absmin max = absmin
+ // < absmin min = absmin min = absmin
+ // max = absmin max = absmin
//
// (*) Netscape benutzt hier die Mindestbreite ohne einen
// Umbruch vor der letzten Grafik. Haben wir (noch?) nicht,
@@ -962,9 +962,9 @@ void SwHTMLTableLayout::AutoLayoutPass1()
// erhalten und dient als Ausgangsbasis fuer die andern Breiten.
// Es werden auch hier nur die Maximalbreiten beeinflusst!
- ULONG nAbsMin = 0; // absolte Min-Breite alter Spalten mit
+ ULONG nAbsMin = 0; // absolte Min-Breite alter Spalten mit
// relativer Breite
- ULONG nRel = 0; // Summe der relativen Breiten aller Spalten
+ ULONG nRel = 0; // Summe der relativen Breiten aller Spalten
for( i=0; i<nCols; i++ )
{
SwHTMLTableLayoutColumn *pColumn = GetColumn( i );
@@ -1010,9 +1010,9 @@ void SwHTMLTableLayout::AutoLayoutPass1()
}
else
{
- USHORT nRel = 0; // Summe der relativen Breiten aller Spalten
- USHORT nRelCols = 0; // Anzahl Spalten mit relativer Angabe
- ULONG nRelMax = 0; // Anteil am Maximum dieser Spalten
+ USHORT nRel = 0; // Summe der relativen Breiten aller Spalten
+ USHORT nRelCols = 0; // Anzahl Spalten mit relativer Angabe
+ ULONG nRelMax = 0; // Anteil am Maximum dieser Spalten
for( i=0; i<nCols; i++ )
{
OSL_ENSURE( nRel<=100, "relative Breite aller Spalten>100%" );
@@ -1588,7 +1588,7 @@ void SwHTMLTableLayout::AutoLayoutPass2( USHORT nAbsAvail, USHORT nRelAvail,
if( nRelLeftFill && !pLeftFillerBox &&
( nWidthSet>0 || nAbsLeftFill<MINLAY+nInhLeftBorderWidth ||
(HasColTags() && nAbsLeftFill < nAbsLeftSpace+nParentInhAbsLeftSpace+20) ) )
-// (nAbsLeftFill<MINLAY || nAbsLeftFill<=nAbsLeftSpace) )
+// (nAbsLeftFill<MINLAY || nAbsLeftFill<=nAbsLeftSpace) )
{
SwHTMLTableLayoutColumn *pColumn = GetColumn( 0 );
pColumn->SetAbsColWidth( pColumn->GetAbsColWidth()+nAbsLeftFill );
@@ -1599,7 +1599,7 @@ void SwHTMLTableLayout::AutoLayoutPass2( USHORT nAbsAvail, USHORT nRelAvail,
if( nRelRightFill && !pRightFillerBox &&
( nWidthSet>0 || nAbsRightFill<MINLAY+nInhRightBorderWidth ||
(HasColTags() && nAbsRightFill < nAbsRightSpace+nParentInhAbsRightSpace+20) ) )
-// (nAbsRightFill<MINLAY || nAbsRightFill<=nAbsRightSpace) )
+// (nAbsRightFill<MINLAY || nAbsRightFill<=nAbsRightSpace) )
{
SwHTMLTableLayoutColumn *pColumn = GetColumn( nCols-1 );
pColumn->SetAbsColWidth( pColumn->GetAbsColWidth()+nAbsRightFill );
@@ -1621,7 +1621,7 @@ static BOOL lcl_ResizeBox( const SwTableBox*& rpBox, void* pPara )
USHORT nWidth = 0;
((SwTableBox *)rpBox)->GetTabLines().ForEach( &lcl_ResizeLine, &nWidth );
rpBox->GetFrmFmt()->SetFmtAttr( SwFmtFrmSize( ATT_VAR_SIZE, nWidth, 0 ));
- *pWidth = *pWidth + nWidth;
+ *pWidth = *pWidth + nWidth;
}
else
{
@@ -1743,7 +1743,7 @@ void SwHTMLTableLayout::SetWidths( BOOL bCallPass2, USHORT nAbsAvail,
if( bUseRelWidth )
{
// Bei %-Angaben wird die Breite auf das Minimum gesetzt.
- aFlyFrmSize.SetWidth( nMin > USHRT_MAX ? USHRT_MAX
+ aFlyFrmSize.SetWidth( nMin > USHRT_MAX ? USHRT_MAX
: nMin );
aFlyFrmSize.SetWidthPercent( (BYTE)nWidthOption );
}
@@ -1797,7 +1797,7 @@ void SwHTMLTableLayout::_Resize( USHORT nAbsAvail, BOOL bRecalc )
SetWidths( TRUE, nAbsAvail );
if ( pRoot && pRoot->IsCallbackActionEnabled() )
- pRoot->EndAllAction( TRUE ); //True per VirDev (Browsen ruhiger)
+ pRoot->EndAllAction( TRUE ); //True per VirDev (Browsen ruhiger)
}
IMPL_STATIC_LINK( SwHTMLTableLayout, DelayedResize_Impl, void*, EMPTYARG )
diff --git a/sw/source/core/doc/lineinfo.cxx b/sw/source/core/doc/lineinfo.cxx
index 3d6b872522ee..92d8bb88cf08 100644
--- a/sw/source/core/doc/lineinfo.cxx
+++ b/sw/source/core/doc/lineinfo.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
diff --git a/sw/source/core/doc/list.cxx b/sw/source/core/doc/list.cxx
index 259d6f06e646..8c34485600b5 100644
--- a/sw/source/core/doc/list.cxx
+++ b/sw/source/core/doc/list.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
diff --git a/sw/source/core/doc/notxtfrm.cxx b/sw/source/core/doc/notxtfrm.cxx
index 349cfbda11b9..994cb535b2b0 100644
--- a/sw/source/core/doc/notxtfrm.cxx
+++ b/sw/source/core/doc/notxtfrm.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
@@ -152,11 +152,11 @@ void lcl_PaintReplacement( const SwRect &rRect, const String &rText,
/*************************************************************************
|*
-|* SwGrfFrm::SwGrfFrm(ViewShell * const,SwGrfNode *)
+|* SwGrfFrm::SwGrfFrm(ViewShell * const,SwGrfNode *)
|*
-|* Beschreibung
-|* Ersterstellung JP 05.03.91
-|* Letzte Aenderung MA 03. Mar. 93
+|* Beschreibung
+|* Ersterstellung JP 05.03.91
+|* Letzte Aenderung MA 03. Mar. 93
|*
*************************************************************************/
@@ -182,11 +182,11 @@ void SwNoTxtFrm::InitCtor()
/*************************************************************************
|*
-|* SwNoTxtNode::MakeFrm()
+|* SwNoTxtNode::MakeFrm()
|*
-|* Beschreibung
-|* Ersterstellung JP 05.03.91
-|* Letzte Aenderung MA 03. Mar. 93
+|* Beschreibung
+|* Ersterstellung JP 05.03.91
+|* Letzte Aenderung MA 03. Mar. 93
|*
*************************************************************************/
@@ -198,11 +198,11 @@ SwCntntFrm *SwNoTxtNode::MakeFrm()
/*************************************************************************
|*
-|* SwNoTxtFrm::~SwNoTxtFrm()
+|* SwNoTxtFrm::~SwNoTxtFrm()
|*
-|* Beschreibung
-|* Ersterstellung JP 05.03.91
-|* Letzte Aenderung MA 30. Apr. 96
+|* Beschreibung
+|* Ersterstellung JP 05.03.91
+|* Letzte Aenderung MA 30. Apr. 96
|*
*************************************************************************/
@@ -213,11 +213,11 @@ SwNoTxtFrm::~SwNoTxtFrm()
/*************************************************************************
|*
-|* void SwNoTxtFrm::Modify( SwHint * pOld, SwHint * pNew )
+|* void SwNoTxtFrm::Modify( SwHint * pOld, SwHint * pNew )
|*
-|* Beschreibung
-|* Ersterstellung JP 05.03.91
-|* Letzte Aenderung JP 05.03.91
+|* Beschreibung
+|* Ersterstellung JP 05.03.91
+|* Letzte Aenderung JP 05.03.91
|*
*************************************************************************/
@@ -257,11 +257,11 @@ void lcl_ClearArea( const SwFrm &rFrm,
/*************************************************************************
|*
-|* void SwNoTxtFrm::Paint()
+|* void SwNoTxtFrm::Paint()
|*
-|* Beschreibung
-|* Ersterstellung JP 05.03.91
-|* Letzte Aenderung MA 10. Jan. 97
+|* Beschreibung
+|* Ersterstellung JP 05.03.91
+|* Letzte Aenderung MA 10. Jan. 97
|*
*************************************************************************/
@@ -390,13 +390,13 @@ void lcl_CalcRect( Point& rPt, Size& rDim, USHORT nMirror )
/*************************************************************************
|*
-|* void SwNoTxtFrm::GetGrfArea()
+|* void SwNoTxtFrm::GetGrfArea()
|*
-|* Beschreibung Errechne die Position und die Groesse der Bitmap
-|* innerhalb des uebergebenem Rechtecks.
+|* Beschreibung Errechne die Position und die Groesse der Bitmap
+|* innerhalb des uebergebenem Rechtecks.
|*
-|* Ersterstellung JP 03.09.91
-|* Letzte Aenderung MA 11. Oct. 94
+|* Ersterstellung JP 03.09.91
+|* Letzte Aenderung MA 11. Oct. 94
|*
*************************************************************************/
@@ -405,7 +405,7 @@ void SwNoTxtFrm::GetGrfArea( SwRect &rRect, SwRect* pOrigRect,
{
// JP 23.01.2001: currently only used for scaling, cropping and mirroring
// the contour of graphics!
- // all other is handled by the GraphicObject
+ // all other is handled by the GraphicObject
//In rRect wird das sichbare Rechteck der Grafik gesteckt.
//In pOrigRect werden Pos+Size der Gesamtgrafik gesteck.
@@ -484,12 +484,12 @@ void SwNoTxtFrm::GetGrfArea( SwRect &rRect, SwRect* pOrigRect,
//Erst das 'sichtbare' Rect einstellen.
if ( nLeftCrop > 0 )
{
- aVisPt.X() += nLeftCrop;
+ aVisPt.X() += nLeftCrop;
aVisSz.Width() -= nLeftCrop;
}
if ( nTopCrop > 0 )
{
- aVisPt.Y() += nTopCrop;
+ aVisPt.Y() += nTopCrop;
aVisSz.Height() -= nTopCrop;
}
if ( nRightCrop > 0 )
@@ -506,7 +506,7 @@ void SwNoTxtFrm::GetGrfArea( SwRect &rRect, SwRect* pOrigRect,
Size aTmpSz( aGrfSz );
aGrfPt.X() += nLeftCrop;
aTmpSz.Width() -= nLeftCrop + nRightCrop;
- aGrfPt.Y() += nTopCrop;
+ aGrfPt.Y() += nTopCrop;
aTmpSz.Height()-= nTopCrop + nBottomCrop;
if( RES_MIRROR_GRAPH_DONT != nMirror )
@@ -519,12 +519,12 @@ void SwNoTxtFrm::GetGrfArea( SwRect &rRect, SwRect* pOrigRect,
/*************************************************************************
|*
-|* Size SwNoTxtFrm::GetSize()
+|* Size SwNoTxtFrm::GetSize()
|*
-|* Beschreibung Gebe die Groesse des umgebenen FLys und
-|* damit die der Grafik zurueck.
-|* Ersterstellung JP 04.03.91
-|* Letzte Aenderung JP 31.08.94
+|* Beschreibung Gebe die Groesse des umgebenen FLys und
+|* damit die der Grafik zurueck.
+|* Ersterstellung JP 04.03.91
+|* Letzte Aenderung JP 31.08.94
|*
*************************************************************************/
@@ -540,10 +540,10 @@ const Size& SwNoTxtFrm::GetSize() const
/*************************************************************************
|*
-|* SwNoTxtFrm::MakeAll()
+|* SwNoTxtFrm::MakeAll()
|*
-|* Ersterstellung MA 29. Nov. 96
-|* Letzte Aenderung MA 29. Nov. 96
+|* Ersterstellung MA 29. Nov. 96
+|* Letzte Aenderung MA 29. Nov. 96
|*
*************************************************************************/
@@ -564,7 +564,7 @@ void SwNoTxtFrm::MakeAll()
MakePrtArea( rAttrs );
if ( !bValidSize )
- { bValidSize = TRUE;
+ { bValidSize = TRUE;
Format();
}
}
@@ -572,11 +572,11 @@ void SwNoTxtFrm::MakeAll()
/*************************************************************************
|*
-|* SwNoTxtFrm::Format()
+|* SwNoTxtFrm::Format()
|*
-|* Beschreibung Errechne die Groesse der Bitmap, wenn noetig
-|* Ersterstellung JP 11.03.91
-|* Letzte Aenderung MA 13. Mar. 96
+|* Beschreibung Errechne die Groesse der Bitmap, wenn noetig
+|* Ersterstellung JP 11.03.91
+|* Letzte Aenderung MA 13. Mar. 96
|*
*************************************************************************/
@@ -597,11 +597,11 @@ void SwNoTxtFrm::Format( const SwBorderAttrs * )
/*************************************************************************
|*
-|* SwNoTxtFrm::GetCharRect()
+|* SwNoTxtFrm::GetCharRect()
|*
-|* Beschreibung
-|* Ersterstellung SS 29-Apr-1991
-|* Letzte Aenderung MA 10. Oct. 94
+|* Beschreibung
+|* Ersterstellung SS 29-Apr-1991
+|* Letzte Aenderung MA 10. Oct. 94
|*
|*************************************************************************/
@@ -731,7 +731,7 @@ void SwNoTxtFrm::Modify( SfxPoolItem* pOld, SfxPoolItem* pNew )
CLEARCACHE( (SwGrfNode*) GetNode() )
break;
}
- if( RES_GRFATR_END == n ) // not found
+ if( RES_GRFATR_END == n ) // not found
return ;
}
break;
diff --git a/sw/source/core/doc/number.cxx b/sw/source/core/doc/number.cxx
index a3e49d23b04e..166a53c8088d 100644
--- a/sw/source/core/doc/number.cxx
+++ b/sw/source/core/doc/number.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
@@ -350,7 +350,7 @@ void SwNumFmt::SetCharFmtName(const String& rSet)
SvxNumberFormat::SetCharFmtName(rSet);
}
-const String& SwNumFmt::GetCharFmtName() const
+const String& SwNumFmt::GetCharFmtName() const
{
if((SwCharFmt*)pRegisteredIn)
return ((SwCharFmt*)pRegisteredIn)->GetName();
@@ -358,7 +358,7 @@ const String& SwNumFmt::GetCharFmtName() const
return aEmptyStr;
}
-void SwNumFmt::SetGraphicBrush( const SvxBrushItem* pBrushItem, const Size* pSize,
+void SwNumFmt::SetGraphicBrush( const SvxBrushItem* pBrushItem, const Size* pSize,
const sal_Int16* pOrient)
{
if(pOrient)
@@ -472,7 +472,7 @@ SwNumRule::SwNumRule( const String& rNm,
nSerial = nInstances++;
#endif
- if( !nRefCount++ ) // zum erstmal, also initialisiern
+ if( !nRefCount++ ) // zum erstmal, also initialisiern
{
SwNumFmt* pFmt;
BYTE n;
@@ -591,7 +591,7 @@ SwNumRule::~SwNumRule()
pNumRuleMap->erase(GetName());
}
- if( !--nRefCount ) // der letzte macht die Tuer zu
+ if( !--nRefCount ) // der letzte macht die Tuer zu
{
// Nummerierung:
SwNumFmt** ppFmts = (SwNumFmt**)SwNumRule::aBaseFmts;
@@ -776,13 +776,13 @@ String SwNumRule::MakeNumString( const SwNumberTree::tNumberVector & rNumVector,
aStr += rNFmt.GetNumStr( rNumVector[ i ] );
}
else
- aStr += '0'; // alle 0-Level sind eine 0
+ aStr += '0'; // alle 0-Level sind eine 0
if( i != nLevel && aStr.Len() )
aStr += aDotStr;
}
//JP 14.12.99: the type dont have any number, so dont append
- // the Post-/Prefix String
+ // the Post-/Prefix String
if( bInclStrings && !bOnlyArabic &&
SVX_NUM_CHAR_SPECIAL != rMyNFmt.GetNumberingType() &&
SVX_NUM_BITMAP != rMyNFmt.GetNumberingType() )
@@ -929,7 +929,7 @@ void SwNumRule::SetInvalidRule(BOOL bFlag)
SwList* pList = pTxtNode->GetDoc()->getListByName( pTxtNode->GetListId() );
OSL_ENSURE( pList, "<SwNumRule::SetInvalidRule(..)> - list at which the text node is registered at does not exist. This is a serious issue --> please inform OD.");
if ( pList )
- {
+ {
aLists.insert( pList );
}
// <--
diff --git a/sw/source/core/doc/poolfmt.cxx b/sw/source/core/doc/poolfmt.cxx
index daef15f54ea9..738a1a95c976 100644
--- a/sw/source/core/doc/poolfmt.cxx
+++ b/sw/source/core/doc/poolfmt.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
@@ -75,34 +75,34 @@
using namespace ::com::sun::star;
-const USHORT PT_3 = 3 * 20; // 3 pt
-const USHORT PT_6 = 6 * 20; // 6 pt
-const USHORT PT_7 = 7 * 20; // 6 pt
-const USHORT PT_8 = 8 * 20; // 8 pt
-const USHORT PT_9 = 9 * 20; // 9 pt
-const USHORT PT_10 = 10 * 20; // 10 pt
-const USHORT PT_11 = 11 * 20; // 11 pt
-const USHORT PT_12 = 12 * 20; // 12 pt
-const USHORT PT_14 = 14 * 20; // 14 pt
-const USHORT PT_16 = 16 * 20; // 16 pt
-const USHORT PT_18 = 18 * 20; // 18 pt
-const USHORT PT_22 = 22 * 20; // 22 pt
-const USHORT PT_24 = 24 * 20; // 22 pt
+const USHORT PT_3 = 3 * 20; // 3 pt
+const USHORT PT_6 = 6 * 20; // 6 pt
+const USHORT PT_7 = 7 * 20; // 6 pt
+const USHORT PT_8 = 8 * 20; // 8 pt
+const USHORT PT_9 = 9 * 20; // 9 pt
+const USHORT PT_10 = 10 * 20; // 10 pt
+const USHORT PT_11 = 11 * 20; // 11 pt
+const USHORT PT_12 = 12 * 20; // 12 pt
+const USHORT PT_14 = 14 * 20; // 14 pt
+const USHORT PT_16 = 16 * 20; // 16 pt
+const USHORT PT_18 = 18 * 20; // 18 pt
+const USHORT PT_22 = 22 * 20; // 22 pt
+const USHORT PT_24 = 24 * 20; // 22 pt
//const USHORT HTML_PARSPACE = ((CM_05 * 7) / 10);
-#define HTML_PARSPACE GetMetricVal( CM_05 )
+#define HTML_PARSPACE GetMetricVal( CM_05 )
static const sal_Char __FAR_DATA sKomma[] = ", ";
static const USHORT aHeadlineSizes[ 2 * MAXLEVEL ] = {
-// PT_16, PT_14, PT_14, PT_12, PT_12, // normal
+// PT_16, PT_14, PT_14, PT_12, PT_12, // normal
//JP 10.12.96: jetzt soll alles prozentual sein:
115, 100, 100, 85, 85,
- 75, 75, 75, 75, 75, // normal
-// PT_22, PT_16, PT_12, PT_11, PT_9 // HTML-Mode
+ 75, 75, 75, 75, 75, // normal
+// PT_22, PT_16, PT_12, PT_11, PT_9 // HTML-Mode
PT_24, PT_18, PT_14, PT_12, PT_10,
- PT_7, PT_7, PT_7, PT_7, PT_7 // HTML-Mode
+ PT_7, PT_7, PT_7, PT_7, PT_7 // HTML-Mode
};
long lcl_GetRightMargin( SwDoc& rDoc )
@@ -225,7 +225,7 @@ void lcl_SetHeadline( SwDoc* pDoc, SwTxtFmtColl* pColl,
{
if( !( nOutLvlBits & ( 1 << nLevel )) )
{
- //pColl->SetOutlineLevel( nLevel ); //#outline level zhaojianwei
+ //pColl->SetOutlineLevel( nLevel ); //#outline level zhaojianwei
pColl->AssignToListLevelOfOutlineStyle(nLevel);//<-end,zhaojianwei
if( !bHTMLMode )
{
@@ -337,9 +337,9 @@ SwTxtFmtColl* SwDoc::GetTxtCollFromPool( USHORT nId, bool bRegardLanguage )
{
return pNewColl;
}
- //if( pNewColl->GetOutlineLevel() < MAXLEVEL ) //#outline level,zhaojianwei
+ //if( pNewColl->GetOutlineLevel() < MAXLEVEL ) //#outline level,zhaojianwei
//nOutLvlBits |= ( 1 << pNewColl->GetOutlineLevel() );
- if( pNewColl->IsAssignedToListLevelOfOutlineStyle())
+ if( pNewColl->IsAssignedToListLevelOfOutlineStyle())
nOutLvlBits |= ( 1 << pNewColl->GetAssignedOutlineStyleLevel() );//<-end,zhaojianwei
}
@@ -407,21 +407,21 @@ SwTxtFmtColl* SwDoc::GetTxtCollFromPool( USHORT nId, bool bRegardLanguage )
}
break;
- case RES_POOLCOLL_TEXT: // Textkoerper
+ case RES_POOLCOLL_TEXT: // Textkoerper
{
SvxULSpaceItem aUL( 0, PT_6, RES_UL_SPACE );
if( get(IDocumentSettingAccess::HTML_MODE) ) aUL.SetLower( HTML_PARSPACE );
aSet.Put( aUL );
}
break;
- case RES_POOLCOLL_TEXT_IDENT: // Textkoerper Einzug
+ case RES_POOLCOLL_TEXT_IDENT: // Textkoerper Einzug
{
SvxLRSpaceItem aLR( RES_LR_SPACE );
aLR.SetTxtFirstLineOfst( GetMetricVal( CM_05 ));
aSet.Put( aLR );
}
break;
- case RES_POOLCOLL_TEXT_NEGIDENT: // Textkoerper neg. Einzug
+ case RES_POOLCOLL_TEXT_NEGIDENT: // Textkoerper neg. Einzug
{
SvxLRSpaceItem aLR( RES_LR_SPACE );
aLR.SetTxtFirstLineOfst( -(short)GetMetricVal( CM_05 ));
@@ -432,7 +432,7 @@ SwTxtFmtColl* SwDoc::GetTxtCollFromPool( USHORT nId, bool bRegardLanguage )
aSet.Put( aTStops );
}
break;
- case RES_POOLCOLL_TEXT_MOVE: // Textkoerper Einrueckung
+ case RES_POOLCOLL_TEXT_MOVE: // Textkoerper Einrueckung
{
SvxLRSpaceItem aLR( RES_LR_SPACE );
aLR.SetTxtLeft( GetMetricVal( CM_05 ));
@@ -440,7 +440,7 @@ SwTxtFmtColl* SwDoc::GetTxtCollFromPool( USHORT nId, bool bRegardLanguage )
}
break;
- case RES_POOLCOLL_CONFRONTATION: // Textkoerper Gegenueberstellung
+ case RES_POOLCOLL_CONFRONTATION: // Textkoerper Gegenueberstellung
{
SvxLRSpaceItem aLR( RES_LR_SPACE );
aLR.SetTxtFirstLineOfst( - short( GetMetricVal( CM_1 ) * 4 +
@@ -452,7 +452,7 @@ SwTxtFmtColl* SwDoc::GetTxtCollFromPool( USHORT nId, bool bRegardLanguage )
aSet.Put( aTStops );
}
break;
- case RES_POOLCOLL_MARGINAL: // Textkoerper maginalie
+ case RES_POOLCOLL_MARGINAL: // Textkoerper maginalie
{
SvxLRSpaceItem aLR( RES_LR_SPACE );
aLR.SetTxtLeft( GetMetricVal( CM_1 ) * 4 );
@@ -460,14 +460,14 @@ SwTxtFmtColl* SwDoc::GetTxtCollFromPool( USHORT nId, bool bRegardLanguage )
}
break;
- case RES_POOLCOLL_HEADLINE_BASE: // Basis Ueberschrift
+ case RES_POOLCOLL_HEADLINE_BASE: // Basis Ueberschrift
{
static const USHORT aFntInit[] = {
- DEFAULTFONT_LATIN_HEADING, RES_CHRATR_FONT,
+ DEFAULTFONT_LATIN_HEADING, RES_CHRATR_FONT,
RES_CHRATR_LANGUAGE, LANGUAGE_ENGLISH_US,
- DEFAULTFONT_CJK_HEADING, RES_CHRATR_CJK_FONT,
+ DEFAULTFONT_CJK_HEADING, RES_CHRATR_CJK_FONT,
RES_CHRATR_CJK_LANGUAGE, LANGUAGE_ENGLISH_US,
- DEFAULTFONT_CTL_HEADING, RES_CHRATR_CTL_FONT,
+ DEFAULTFONT_CTL_HEADING, RES_CHRATR_CTL_FONT,
RES_CHRATR_CTL_LANGUAGE, LANGUAGE_ARABIC_SAUDI_ARABIA,
0
};
@@ -499,47 +499,47 @@ SwTxtFmtColl* SwDoc::GetTxtCollFromPool( USHORT nId, bool bRegardLanguage )
}
break;
- case RES_POOLCOLL_NUMBUL_BASE: // Basis Numerierung/Aufzaehlung
+ case RES_POOLCOLL_NUMBUL_BASE: // Basis Numerierung/Aufzaehlung
break;
- case RES_POOLCOLL_GREETING: // Grussformel
- case RES_POOLCOLL_REGISTER_BASE: // Basis Verzeichnisse
- case RES_POOLCOLL_SIGNATURE: // Unterschrift
- case RES_POOLCOLL_TABLE: // Tabelle-Inhalt
+ case RES_POOLCOLL_GREETING: // Grussformel
+ case RES_POOLCOLL_REGISTER_BASE: // Basis Verzeichnisse
+ case RES_POOLCOLL_SIGNATURE: // Unterschrift
+ case RES_POOLCOLL_TABLE: // Tabelle-Inhalt
{
SwFmtLineNumber aLN; aLN.SetCountLines( FALSE );
aSet.Put( aLN );
}
break;
- case RES_POOLCOLL_HEADLINE1: // Ueberschrift 1
+ case RES_POOLCOLL_HEADLINE1: // Ueberschrift 1
lcl_SetHeadline( this, pNewColl, aSet, nOutLvlBits, 0, FALSE );
break;
- case RES_POOLCOLL_HEADLINE2: // Ueberschrift 2
+ case RES_POOLCOLL_HEADLINE2: // Ueberschrift 2
lcl_SetHeadline( this, pNewColl, aSet, nOutLvlBits, 1, TRUE );
break;
- case RES_POOLCOLL_HEADLINE3: // Ueberschrift 3
+ case RES_POOLCOLL_HEADLINE3: // Ueberschrift 3
lcl_SetHeadline( this, pNewColl, aSet, nOutLvlBits, 2, FALSE );
break;
- case RES_POOLCOLL_HEADLINE4: // Ueberschrift 4
+ case RES_POOLCOLL_HEADLINE4: // Ueberschrift 4
lcl_SetHeadline( this, pNewColl, aSet, nOutLvlBits, 3, TRUE );
break;
- case RES_POOLCOLL_HEADLINE5: // Ueberschrift 5
+ case RES_POOLCOLL_HEADLINE5: // Ueberschrift 5
lcl_SetHeadline( this, pNewColl, aSet, nOutLvlBits, 4, FALSE );
break;
- case RES_POOLCOLL_HEADLINE6: // Ueberschrift 6
+ case RES_POOLCOLL_HEADLINE6: // Ueberschrift 6
lcl_SetHeadline( this, pNewColl, aSet, nOutLvlBits, 5, FALSE );
break;
- case RES_POOLCOLL_HEADLINE7: // Ueberschrift 7
+ case RES_POOLCOLL_HEADLINE7: // Ueberschrift 7
lcl_SetHeadline( this, pNewColl, aSet, nOutLvlBits, 6, FALSE );
break;
- case RES_POOLCOLL_HEADLINE8: // Ueberschrift 8
+ case RES_POOLCOLL_HEADLINE8: // Ueberschrift 8
lcl_SetHeadline( this, pNewColl, aSet, nOutLvlBits, 7, FALSE );
break;
- case RES_POOLCOLL_HEADLINE9: // Ueberschrift 9
+ case RES_POOLCOLL_HEADLINE9: // Ueberschrift 9
lcl_SetHeadline( this, pNewColl, aSet, nOutLvlBits, 8, FALSE );
break;
- case RES_POOLCOLL_HEADLINE10: // Ueberschrift 10
+ case RES_POOLCOLL_HEADLINE10: // Ueberschrift 10
lcl_SetHeadline( this, pNewColl, aSet, nOutLvlBits, 9, FALSE );
break;
@@ -576,7 +576,7 @@ SwTxtFmtColl* SwDoc::GetTxtCollFromPool( USHORT nId, bool bRegardLanguage )
}
break;
- case RES_POOLCOLL_FOOTNOTE: // Fussnote
+ case RES_POOLCOLL_FOOTNOTE: // Fussnote
case RES_POOLCOLL_ENDNOTE:
{
SvxLRSpaceItem aLR( RES_LR_SPACE );
@@ -589,7 +589,7 @@ SwTxtFmtColl* SwDoc::GetTxtCollFromPool( USHORT nId, bool bRegardLanguage )
}
break;
- case RES_POOLCOLL_LABEL: // Beschriftung-Basis
+ case RES_POOLCOLL_LABEL: // Beschriftung-Basis
{
SvxULSpaceItem aUL( RES_UL_SPACE ); aUL.SetUpper( PT_6 ); aUL.SetLower( PT_6 );
aSet.Put( aUL );
@@ -600,14 +600,14 @@ SwTxtFmtColl* SwDoc::GetTxtCollFromPool( USHORT nId, bool bRegardLanguage )
}
break;
- case RES_POOLCOLL_FRAME: // Rahmen Inhalt
- case RES_POOLCOLL_LABEL_ABB: // Beschriftung-Abbildung
- case RES_POOLCOLL_LABEL_TABLE: // Beschriftung-Tabelle
- case RES_POOLCOLL_LABEL_FRAME: // Beschriftung-Rahmen
- case RES_POOLCOLL_LABEL_DRAWING: // Beschriftung-Zeichnung
+ case RES_POOLCOLL_FRAME: // Rahmen Inhalt
+ case RES_POOLCOLL_LABEL_ABB: // Beschriftung-Abbildung
+ case RES_POOLCOLL_LABEL_TABLE: // Beschriftung-Tabelle
+ case RES_POOLCOLL_LABEL_FRAME: // Beschriftung-Rahmen
+ case RES_POOLCOLL_LABEL_DRAWING: // Beschriftung-Zeichnung
break;
- case RES_POOLCOLL_JAKETADRESS: // UmschlagAdresse
+ case RES_POOLCOLL_JAKETADRESS: // UmschlagAdresse
{
SvxULSpaceItem aUL( RES_UL_SPACE ); aUL.SetLower( PT_3 );
aSet.Put( aUL );
@@ -616,7 +616,7 @@ SwTxtFmtColl* SwDoc::GetTxtCollFromPool( USHORT nId, bool bRegardLanguage )
}
break;
- case RES_POOLCOLL_SENDADRESS: // AbsenderAdresse
+ case RES_POOLCOLL_SENDADRESS: // AbsenderAdresse
{
if( get(IDocumentSettingAccess::HTML_MODE) )
SetAllScriptItem( aSet, SvxPostureItem(ITALIC_NORMAL, RES_CHRATR_POSTURE) );
@@ -631,101 +631,101 @@ SwTxtFmtColl* SwDoc::GetTxtCollFromPool( USHORT nId, bool bRegardLanguage )
break;
// Benutzer-Verzeichnisse:
- case RES_POOLCOLL_TOX_USERH: // Header
+ case RES_POOLCOLL_TOX_USERH: // Header
lcl_SetRegister( this, aSet, 0, TRUE, FALSE );
{
SwFmtLineNumber aLN; aLN.SetCountLines( FALSE );
aSet.Put( aLN );
}
break;
- case RES_POOLCOLL_TOX_USER1: // 1. Ebene
+ case RES_POOLCOLL_TOX_USER1: // 1. Ebene
lcl_SetRegister( this, aSet, 0, FALSE, TRUE );
break;
- case RES_POOLCOLL_TOX_USER2: // 2. Ebene
+ case RES_POOLCOLL_TOX_USER2: // 2. Ebene
lcl_SetRegister( this, aSet, 1, FALSE, TRUE );
break;
- case RES_POOLCOLL_TOX_USER3: // 3. Ebene
+ case RES_POOLCOLL_TOX_USER3: // 3. Ebene
lcl_SetRegister( this, aSet, 2, FALSE, TRUE );
break;
- case RES_POOLCOLL_TOX_USER4: // 4. Ebene
+ case RES_POOLCOLL_TOX_USER4: // 4. Ebene
lcl_SetRegister( this, aSet, 3, FALSE, TRUE );
break;
- case RES_POOLCOLL_TOX_USER5: // 5. Ebene
+ case RES_POOLCOLL_TOX_USER5: // 5. Ebene
lcl_SetRegister( this, aSet, 4, FALSE, TRUE );
break;
- case RES_POOLCOLL_TOX_USER6: // 6. Ebene
+ case RES_POOLCOLL_TOX_USER6: // 6. Ebene
lcl_SetRegister( this, aSet, 5, FALSE, TRUE );
break;
- case RES_POOLCOLL_TOX_USER7: // 7. Ebene
+ case RES_POOLCOLL_TOX_USER7: // 7. Ebene
lcl_SetRegister( this, aSet, 6, FALSE, TRUE );
break;
- case RES_POOLCOLL_TOX_USER8: // 8. Ebene
+ case RES_POOLCOLL_TOX_USER8: // 8. Ebene
lcl_SetRegister( this, aSet, 7, FALSE, TRUE );
break;
- case RES_POOLCOLL_TOX_USER9: // 9. Ebene
+ case RES_POOLCOLL_TOX_USER9: // 9. Ebene
lcl_SetRegister( this, aSet, 8, FALSE, TRUE );
break;
- case RES_POOLCOLL_TOX_USER10: // 10. Ebene
+ case RES_POOLCOLL_TOX_USER10: // 10. Ebene
lcl_SetRegister( this, aSet, 9, FALSE, TRUE );
break;
// Index-Verzeichnisse
- case RES_POOLCOLL_TOX_IDXH: // Header
+ case RES_POOLCOLL_TOX_IDXH: // Header
lcl_SetRegister( this, aSet, 0, TRUE, FALSE );
{
SwFmtLineNumber aLN; aLN.SetCountLines( FALSE );
aSet.Put( aLN );
}
break;
- case RES_POOLCOLL_TOX_IDX1: // 1. Ebene
+ case RES_POOLCOLL_TOX_IDX1: // 1. Ebene
lcl_SetRegister( this, aSet, 0, FALSE, FALSE );
break;
- case RES_POOLCOLL_TOX_IDX2: // 2. Ebene
+ case RES_POOLCOLL_TOX_IDX2: // 2. Ebene
lcl_SetRegister( this, aSet, 1, FALSE, FALSE );
break;
- case RES_POOLCOLL_TOX_IDX3: // 3. Ebene
+ case RES_POOLCOLL_TOX_IDX3: // 3. Ebene
lcl_SetRegister( this, aSet, 2, FALSE, FALSE );
break;
- case RES_POOLCOLL_TOX_IDXBREAK: // Trenner
+ case RES_POOLCOLL_TOX_IDXBREAK: // Trenner
lcl_SetRegister( this, aSet, 0, FALSE, FALSE );
break;
// Inhalts-Verzeichnisse
- case RES_POOLCOLL_TOX_CNTNTH: // Header
+ case RES_POOLCOLL_TOX_CNTNTH: // Header
lcl_SetRegister( this, aSet, 0, TRUE, FALSE );
{
SwFmtLineNumber aLN; aLN.SetCountLines( FALSE );
aSet.Put( aLN );
}
break;
- case RES_POOLCOLL_TOX_CNTNT1: // 1. Ebene
+ case RES_POOLCOLL_TOX_CNTNT1: // 1. Ebene
lcl_SetRegister( this, aSet, 0, FALSE, TRUE );
break;
- case RES_POOLCOLL_TOX_CNTNT2: // 2. Ebene
+ case RES_POOLCOLL_TOX_CNTNT2: // 2. Ebene
lcl_SetRegister( this, aSet, 1, FALSE, TRUE );
break;
- case RES_POOLCOLL_TOX_CNTNT3: // 3. Ebene
+ case RES_POOLCOLL_TOX_CNTNT3: // 3. Ebene
lcl_SetRegister( this, aSet, 2, FALSE, TRUE );
break;
- case RES_POOLCOLL_TOX_CNTNT4: // 4. Ebene
+ case RES_POOLCOLL_TOX_CNTNT4: // 4. Ebene
lcl_SetRegister( this, aSet, 3, FALSE, TRUE );
break;
- case RES_POOLCOLL_TOX_CNTNT5: // 5. Ebene
+ case RES_POOLCOLL_TOX_CNTNT5: // 5. Ebene
lcl_SetRegister( this, aSet, 4, FALSE, TRUE );
break;
- case RES_POOLCOLL_TOX_CNTNT6: // 6. Ebene
+ case RES_POOLCOLL_TOX_CNTNT6: // 6. Ebene
lcl_SetRegister( this, aSet, 5, FALSE, TRUE );
break;
- case RES_POOLCOLL_TOX_CNTNT7: // 7. Ebene
+ case RES_POOLCOLL_TOX_CNTNT7: // 7. Ebene
lcl_SetRegister( this, aSet, 6, FALSE, TRUE );
break;
- case RES_POOLCOLL_TOX_CNTNT8: // 8. Ebene
+ case RES_POOLCOLL_TOX_CNTNT8: // 8. Ebene
lcl_SetRegister( this, aSet, 7, FALSE, TRUE );
break;
- case RES_POOLCOLL_TOX_CNTNT9: // 9. Ebene
+ case RES_POOLCOLL_TOX_CNTNT9: // 9. Ebene
lcl_SetRegister( this, aSet, 8, FALSE, TRUE );
break;
- case RES_POOLCOLL_TOX_CNTNT10: // 10. Ebene
+ case RES_POOLCOLL_TOX_CNTNT10: // 10. Ebene
lcl_SetRegister( this, aSet, 9, FALSE, TRUE );
break;
@@ -940,7 +940,7 @@ SwTxtFmtColl* SwDoc::GetTxtCollFromPool( USHORT nId, bool bRegardLanguage )
0, SwNumRule::GetBullIndent( 4 ), 0, PT_6 );
break;
- case RES_POOLCOLL_DOC_TITEL: // Doc. Titel
+ case RES_POOLCOLL_DOC_TITEL: // Doc. Titel
{
SetAllScriptItem( aSet, SvxWeightItem( WEIGHT_BOLD, RES_CHRATR_WEIGHT ) );
SetAllScriptItem( aSet, SvxFontHeightItem( PT_18, 100, RES_CHRATR_FONTSIZE ) );
@@ -952,7 +952,7 @@ SwTxtFmtColl* SwDoc::GetTxtCollFromPool( USHORT nId, bool bRegardLanguage )
}
break;
- case RES_POOLCOLL_DOC_SUBTITEL: // Doc. UnterTitel
+ case RES_POOLCOLL_DOC_SUBTITEL: // Doc. UnterTitel
{
SetAllScriptItem( aSet, SvxPostureItem( ITALIC_NORMAL, RES_CHRATR_POSTURE ));
SetAllScriptItem( aSet, SvxFontHeightItem( PT_14, 100, RES_CHRATR_FONTSIZE ));
@@ -1050,7 +1050,7 @@ SwTxtFmtColl* SwDoc::GetTxtCollFromPool( USHORT nId, bool bRegardLanguage )
{
pNewColl->SetFmtAttr( aSet );
// JP 31.08.95: erzeugen einer PoolVorlage ist keine Modifikation
- // (Bug: 18545)
+ // (Bug: 18545)
// SetModified();
}
}
@@ -1114,7 +1114,7 @@ SwFmt* SwDoc::GetFmtFromPool( USHORT nId )
pWhichRange = aCharFmtSetRange;
// Fehlerfall: unbekanntes Format, aber CharFormat
- // -> returne das erste
+ // -> returne das erste
if( RES_POOLCHR_BEGIN > nId || nId >= RES_POOLCHR_END )
{
OSL_ENSURE( !this, "ungueltige Id" );
@@ -1132,7 +1132,7 @@ SwFmt* SwDoc::GetFmtFromPool( USHORT nId )
pWhichRange = aFrmFmtSetRange;
// Fehlerfall: unbekanntes Format, aber FrameFormat
- // -> returne das erste
+ // -> returne das erste
if( RES_POOLFRM_BEGIN > nId || nId >= RES_POOLFRM_END )
{
OSL_ENSURE( !this, "ungueltige Id" );
@@ -1184,30 +1184,30 @@ SwFmt* SwDoc::GetFmtFromPool( USHORT nId )
if( !bIsModified )
ResetModified();
pNewFmt->SetPoolFmtId( nId );
- pNewFmt->SetAuto( FALSE ); // kein Auto-Format
+ pNewFmt->SetAuto( FALSE ); // kein Auto-Format
}
switch( nId )
{
- case RES_POOLCHR_FOOTNOTE: // Fussnote
- case RES_POOLCHR_PAGENO: // Seiten/Feld
- case RES_POOLCHR_LABEL: // Beschriftung
- case RES_POOLCHR_DROPCAPS: // Initialien
- case RES_POOLCHR_NUM_LEVEL: // Aufzaehlungszeichen
- case RES_POOLCHR_TOXJUMP: // Verzeichnissprung
- case RES_POOLCHR_ENDNOTE: // Endnote
- case RES_POOLCHR_LINENUM: // Zeilennummerierung
+ case RES_POOLCHR_FOOTNOTE: // Fussnote
+ case RES_POOLCHR_PAGENO: // Seiten/Feld
+ case RES_POOLCHR_LABEL: // Beschriftung
+ case RES_POOLCHR_DROPCAPS: // Initialien
+ case RES_POOLCHR_NUM_LEVEL: // Aufzaehlungszeichen
+ case RES_POOLCHR_TOXJUMP: // Verzeichnissprung
+ case RES_POOLCHR_ENDNOTE: // Endnote
+ case RES_POOLCHR_LINENUM: // Zeilennummerierung
break;
- case RES_POOLCHR_ENDNOTE_ANCHOR: // Endnotenanker
- case RES_POOLCHR_FOOTNOTE_ANCHOR: // Fussnotenanker
+ case RES_POOLCHR_ENDNOTE_ANCHOR: // Endnotenanker
+ case RES_POOLCHR_FOOTNOTE_ANCHOR: // Fussnotenanker
{
aSet.Put( SvxEscapementItem( DFLT_ESC_AUTO_SUPER, 58, RES_CHRATR_ESCAPEMENT ) );
}
break;
- case RES_POOLCHR_BUL_LEVEL: // Aufzaehlungszeichen
+ case RES_POOLCHR_BUL_LEVEL: // Aufzaehlungszeichen
{
const Font& rBulletFont = numfunc::GetDefBulletFont();
SetAllScriptItem( aSet, SvxFontItem( rBulletFont.GetFamily(),
@@ -1287,8 +1287,8 @@ SwFmt* SwDoc::GetFmtFromPool( USHORT nId )
aSet.Put( SvxCharRotateItem( 900, sal_False, RES_CHRATR_ROTATE ) );
break;
//nichts besonderes
-// case RES_POOLCHR_HTML_DEFINSTANCE:
-// break;
+// case RES_POOLCHR_HTML_DEFINSTANCE:
+// break;
case RES_POOLFRM_FRAME:
@@ -1378,7 +1378,7 @@ SwFmt* SwDoc::GetFmtFromPool( USHORT nId )
{
pNewFmt->SetFmtAttr( aSet );
// JP 31.08.95: erzeugen einer PoolVorlage ist keine Modifikation
- // (Bug: 18545)
+ // (Bug: 18545)
// SetModified();
}
}
@@ -1509,7 +1509,7 @@ SwPageDesc* SwDoc::GetPageDescFromPool( sal_uInt16 nId, bool bRegardLanguage )
switch( nId )
{
- case RES_POOLPAGE_STANDARD: // Standard-Seite
+ case RES_POOLPAGE_STANDARD: // Standard-Seite
{
aSet.Put( aLR );
aSet.Put( aUL );
@@ -1518,8 +1518,8 @@ SwPageDesc* SwDoc::GetPageDescFromPool( sal_uInt16 nId, bool bRegardLanguage )
}
break;
- case RES_POOLPAGE_FIRST: // Erste Seite
- case RES_POOLPAGE_REGISTER: // Verzeichnis
+ case RES_POOLPAGE_FIRST: // Erste Seite
+ case RES_POOLPAGE_REGISTER: // Verzeichnis
{
lcl_GetStdPgSize( this, aSet );
aSet.Put( aLR );
@@ -1533,7 +1533,7 @@ SwPageDesc* SwDoc::GetPageDescFromPool( sal_uInt16 nId, bool bRegardLanguage )
}
break;
- case RES_POOLPAGE_LEFT: // Linke Seite
+ case RES_POOLPAGE_LEFT: // Linke Seite
{
lcl_GetStdPgSize( this, aSet );
aSet.Put( aLR );
@@ -1543,7 +1543,7 @@ SwPageDesc* SwDoc::GetPageDescFromPool( sal_uInt16 nId, bool bRegardLanguage )
pNewPgDsc->SetUseOn( nsUseOnPage::PD_LEFT );
}
break;
- case RES_POOLPAGE_RIGHT: // Rechte Seite
+ case RES_POOLPAGE_RIGHT: // Rechte Seite
{
lcl_GetStdPgSize( this, aSet );
aSet.Put( aLR );
@@ -1554,7 +1554,7 @@ SwPageDesc* SwDoc::GetPageDescFromPool( sal_uInt16 nId, bool bRegardLanguage )
}
break;
- case RES_POOLPAGE_JAKET: // Umschlag
+ case RES_POOLPAGE_JAKET: // Umschlag
{
aLR.SetLeft( 0 ); aLR.SetRight( 0 );
aUL.SetUpper( 0 ); aUL.SetLower( 0 );
@@ -1572,7 +1572,7 @@ SwPageDesc* SwDoc::GetPageDescFromPool( sal_uInt16 nId, bool bRegardLanguage )
}
break;
- case RES_POOLPAGE_HTML: // HTML
+ case RES_POOLPAGE_HTML: // HTML
{
lcl_GetStdPgSize( this, aSet );
aLR.SetRight( GetMetricVal( CM_1 ));
@@ -1599,7 +1599,7 @@ SwPageDesc* SwDoc::GetPageDescFromPool( sal_uInt16 nId, bool bRegardLanguage )
aInf.SetBottomDist( 0 );
pNewPgDsc->SetFtnInfo( aInf );
}
- break;
+ break;
case RES_POOLPAGE_LANDSCAPE:
{
SwPageDesc* pStdPgDsc = this->GetPageDescFromPool( RES_POOLPAGE_STANDARD );
@@ -1627,7 +1627,7 @@ SwPageDesc* SwDoc::GetPageDescFromPool( sal_uInt16 nId, bool bRegardLanguage )
pNewPgDsc->GetLeft().SetFmtAttr( aSet );
pNewPgDsc->GetMaster().SetFmtAttr( aSet );
// JP 31.08.95: erzeugen einer PoolVorlage ist keine Modifikation
- // (Bug: 18545)
+ // (Bug: 18545)
// SetModified();
}
}
@@ -1702,7 +1702,7 @@ SwNumRule* SwDoc::GetNumRuleFromPool( USHORT nId )
static const USHORT aAbsSpace[ MAXLEVEL ] =
{
-// cm: 0,5 1,0 1,5 2,0 2,5 3,0 3,5 4,0 4,5 5,0
+// cm: 0,5 1,0 1,5 2,0 2,5 3,0 3,5 4,0 4,5 5,0
283, 567, 850, 1134, 1417, 1701, 1984, 2268, 2551, 2835
};
#ifdef USE_MEASUREMENT
@@ -1751,9 +1751,9 @@ SwNumRule* SwDoc::GetNumRuleFromPool( USHORT nId )
{
static const USHORT aAbsSpace[ MAXLEVEL ] =
{
- 283, 283, 567, 709, // 0.50, 0.50, 1.00, 1.25
- 850, 1021, 1304, 1474, // 1.50, 1.80, 2.30, 2.60
- 1588, 1758 // 2.80, 3.10
+ 283, 283, 567, 709, // 0.50, 0.50, 1.00, 1.25
+ 850, 1021, 1304, 1474, // 1.50, 1.80, 2.30, 2.60
+ 1588, 1758 // 2.80, 3.10
};
#ifdef USE_MEASUREMENT
@@ -1859,7 +1859,7 @@ SwNumRule* SwDoc::GetNumRuleFromPool( USHORT nId )
static const USHORT aAbsSpace[ MAXLEVEL ] =
{
-// cm: 0,5 1,0 1,5 2,0 2,5 3,0 3,5 4,0 4,5 5,0
+// cm: 0,5 1,0 1,5 2,0 2,5 3,0 3,5 4,0 4,5 5,0
283, 567, 850, 1134, 1417, 1701, 1984, 2268, 2551, 2835
};
#ifdef USE_MEASUREMENT
@@ -1909,9 +1909,9 @@ SwNumRule* SwDoc::GetNumRuleFromPool( USHORT nId )
// [ First, LSpace ]
static const USHORT aAbsSpace0to2[] =
{
- 227, 227, // 0.40, 0.40,
- 369, 624, // 0.65, 1.10,
- 255, 879 // 0.45, 1.55
+ 227, 227, // 0.40, 0.40,
+ 369, 624, // 0.65, 1.10,
+ 255, 879 // 0.45, 1.55
};
#ifdef USE_MEASUREMENT
@@ -2053,7 +2053,7 @@ SwNumRule* SwDoc::GetNumRuleFromPool( USHORT nId )
static const USHORT aAbsSpace[ MAXLEVEL ] =
{
-// cm: 0,4 0,8 1,2 1,6 2,0 2,4 2,8 3,2 3,6 4,0
+// cm: 0,4 0,8 1,2 1,6 2,0 2,4 2,8 3,2 3,6 4,0
227, 454, 680, 907, 1134, 1361, 1587, 1814, 2041, 2268
};
#ifdef USE_MEASUREMENT
@@ -2114,7 +2114,7 @@ SwNumRule* SwDoc::GetNumRuleFromPool( USHORT nId )
static const USHORT aAbsSpace[ MAXLEVEL ] =
{
-// cm: 0,3 0,6 0,9 1,2 1,5 1,8 2,1 2,4 2,7 3,0
+// cm: 0,3 0,6 0,9 1,2 1,5 1,8 2,1 2,4 2,7 3,0
170, 340, 510, 680, 850, 1020, 1191, 1361, 1531, 1701
};
#ifdef USE_MEASUREMENT
@@ -2219,7 +2219,7 @@ SwNumRule* SwDoc::GetNumRuleFromPool( USHORT nId )
static const USHORT aAbsSpace[ MAXLEVEL ] =
{
-// cm: 0,4 0,8 1,2 1,6 2,0 2,4 2,8 3,2 3,6 4,0
+// cm: 0,4 0,8 1,2 1,6 2,0 2,4 2,8 3,2 3,6 4,0
227, 454, 680, 907, 1134, 1361, 1587, 1814, 2041, 2268
};
#ifdef USE_MEASUREMENT
@@ -2250,9 +2250,9 @@ SwNumRule* SwDoc::GetNumRuleFromPool( USHORT nId )
{
switch( n )
{
- case 0: aFmt.SetBulletChar( 0x27a2 ); break;
- case 1: aFmt.SetBulletChar( 0xE006 ); break;
- default: aFmt.SetBulletChar( 0xE004 ); break;
+ case 0: aFmt.SetBulletChar( 0x27a2 ); break;
+ case 1: aFmt.SetBulletChar( 0xE006 ); break;
+ default: aFmt.SetBulletChar( 0xE004 ); break;
}
// --> OD 2008-02-11 #newlistlevelattrs#
if ( eNumberFormatPositionAndSpaceMode == SvxNumberFormat::LABEL_WIDTH_AND_POSITION )
@@ -2286,7 +2286,7 @@ SwNumRule* SwDoc::GetNumRuleFromPool( USHORT nId )
static const USHORT aAbsSpace[ MAXLEVEL ] =
{
-// cm: 0,4 0,8 1,2 1,6 2,0 2,4 2,8 3,2 3,6 4,0
+// cm: 0,4 0,8 1,2 1,6 2,0 2,4 2,8 3,2 3,6 4,0
227, 454, 680, 907, 1134, 1361, 1587, 1814, 2041, 2268
};
#ifdef USE_MEASUREMENT
@@ -2353,7 +2353,7 @@ bool SwDoc::IsPoolPageDescUsed( USHORT nId ) const
}
// nicht gefunden oder keine Abhaengigen ?
- if( !bFnd || !pNewPgDsc->GetDepends() ) // ??????
+ if( !bFnd || !pNewPgDsc->GetDepends() ) // ??????
return FALSE;
// dann teste mal, ob es abhaengige ContentNodes im Nodes Array gibt
@@ -2428,7 +2428,7 @@ USHORT SwDoc::SetDocPattern( const String& rPatternName )
return n;
if( nNewPos < aPatternNms.Count() )
- aPatternNms.Remove( nNewPos ); // Platz wieder frei machen
+ aPatternNms.Remove( nNewPos ); // Platz wieder frei machen
String* pNewNm = new String( rPatternName );
aPatternNms.Insert( pNewNm, nNewPos );
@@ -2439,17 +2439,17 @@ USHORT SwDoc::SetDocPattern( const String& rPatternName )
USHORT GetPoolParent( USHORT nId )
{
USHORT nRet = USHRT_MAX;
- if( POOLGRP_NOCOLLID & nId ) // 1 == Formate / 0 == Collections
+ if( POOLGRP_NOCOLLID & nId ) // 1 == Formate / 0 == Collections
{
switch( ( COLL_GET_RANGE_BITS | POOLGRP_NOCOLLID ) & nId )
{
case POOLGRP_CHARFMT:
case POOLGRP_FRAMEFMT:
- nRet = 0; // vom default abgeleitet
+ nRet = 0; // vom default abgeleitet
break;
case POOLGRP_PAGEDESC:
case POOLGRP_NUMRULE:
- break; // es gibt keine Ableitung
+ break; // es gibt keine Ableitung
}
}
else
@@ -2460,19 +2460,19 @@ USHORT GetPoolParent( USHORT nId )
switch( nId )
{
case RES_POOLCOLL_STANDARD:
- nRet = 0; break;
+ nRet = 0; break;
case RES_POOLCOLL_TEXT_IDENT:
case RES_POOLCOLL_TEXT_NEGIDENT:
case RES_POOLCOLL_TEXT_MOVE:
case RES_POOLCOLL_CONFRONTATION:
case RES_POOLCOLL_MARGINAL:
- nRet = RES_POOLCOLL_TEXT; break;
+ nRet = RES_POOLCOLL_TEXT; break;
case RES_POOLCOLL_TEXT:
case RES_POOLCOLL_GREETING:
case RES_POOLCOLL_SIGNATURE:
case RES_POOLCOLL_HEADLINE_BASE:
- nRet = RES_POOLCOLL_STANDARD; break;
+ nRet = RES_POOLCOLL_STANDARD; break;
case RES_POOLCOLL_HEADLINE1:
case RES_POOLCOLL_HEADLINE2:
@@ -2484,7 +2484,7 @@ USHORT GetPoolParent( USHORT nId )
case RES_POOLCOLL_HEADLINE8:
case RES_POOLCOLL_HEADLINE9:
case RES_POOLCOLL_HEADLINE10:
- nRet = RES_POOLCOLL_HEADLINE_BASE; break;
+ nRet = RES_POOLCOLL_HEADLINE_BASE; break;
}
break;
@@ -2492,10 +2492,10 @@ USHORT GetPoolParent( USHORT nId )
switch( nId )
{
case RES_POOLCOLL_NUMBUL_BASE:
- nRet = RES_POOLCOLL_TEXT; break;
+ nRet = RES_POOLCOLL_TEXT; break;
default:
- nRet = RES_POOLCOLL_NUMBUL_BASE; break;
+ nRet = RES_POOLCOLL_NUMBUL_BASE; break;
}
break;
@@ -2503,10 +2503,10 @@ USHORT GetPoolParent( USHORT nId )
switch( nId )
{
case RES_POOLCOLL_FRAME:
- nRet = RES_POOLCOLL_TEXT; break;
+ nRet = RES_POOLCOLL_TEXT; break;
case RES_POOLCOLL_TABLE_HDLN:
- nRet = RES_POOLCOLL_TABLE; break;
+ nRet = RES_POOLCOLL_TABLE; break;
case RES_POOLCOLL_TABLE:
case RES_POOLCOLL_FOOTNOTE:
@@ -2520,13 +2520,13 @@ USHORT GetPoolParent( USHORT nId )
case RES_POOLCOLL_FOOTERL:
case RES_POOLCOLL_FOOTERR:
case RES_POOLCOLL_LABEL:
- nRet = RES_POOLCOLL_STANDARD; break;
+ nRet = RES_POOLCOLL_STANDARD; break;
case RES_POOLCOLL_LABEL_ABB:
case RES_POOLCOLL_LABEL_TABLE:
case RES_POOLCOLL_LABEL_FRAME:
case RES_POOLCOLL_LABEL_DRAWING:
- nRet = RES_POOLCOLL_LABEL; break;
+ nRet = RES_POOLCOLL_LABEL; break;
}
break;
@@ -2534,7 +2534,7 @@ USHORT GetPoolParent( USHORT nId )
switch( nId )
{
case RES_POOLCOLL_REGISTER_BASE:
- nRet = RES_POOLCOLL_STANDARD; break;
+ nRet = RES_POOLCOLL_STANDARD; break;
case RES_POOLCOLL_TOX_USERH:
case RES_POOLCOLL_TOX_CNTNTH:
@@ -2543,10 +2543,10 @@ USHORT GetPoolParent( USHORT nId )
case RES_POOLCOLL_TOX_OBJECTH:
case RES_POOLCOLL_TOX_TABLESH:
case RES_POOLCOLL_TOX_AUTHORITIESH:
- nRet = RES_POOLCOLL_HEADLINE_BASE; break;
+ nRet = RES_POOLCOLL_HEADLINE_BASE; break;
default:
- nRet = RES_POOLCOLL_REGISTER_BASE; break;
+ nRet = RES_POOLCOLL_REGISTER_BASE; break;
}
break;
diff --git a/sw/source/core/doc/sortopt.cxx b/sw/source/core/doc/sortopt.cxx
index 9e432f8402f7..0ddb85800f1e 100644
--- a/sw/source/core/doc/sortopt.cxx
+++ b/sw/source/core/doc/sortopt.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
@@ -37,7 +37,7 @@
SV_IMPL_PTRARR(SwSortKeys, SwSortKey*)
/*--------------------------------------------------------------------
- Beschreibung: Sortier-Schluessel
+ Beschreibung: Sortier-Schluessel
--------------------------------------------------------------------*/
SwSortKey::SwSortKey() :
eSortOrder( SRT_ASCENDING ),
diff --git a/sw/source/core/doc/swserv.cxx b/sw/source/core/doc/swserv.cxx
index faf2f4e8d79e..4a9ad233cca4 100644
--- a/sw/source/core/doc/swserv.cxx
+++ b/sw/source/core/doc/swserv.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
@@ -295,7 +295,7 @@ void SwServerObject::SetNoServer()
if(eType == BOOKMARK_SERVER && CNTNT_TYPE.pBkmk)
{
::sw::mark::DdeBookmark* const pDdeBookmark = dynamic_cast< ::sw::mark::DdeBookmark* >(CNTNT_TYPE.pBkmk);
- if(pDdeBookmark)
+ if(pDdeBookmark)
{
CNTNT_TYPE.pBkmk = 0, eType = NONE_SERVER;
pDdeBookmark->SetRefObject(NULL);
diff --git a/sw/source/core/doc/swstylemanager.cxx b/sw/source/core/doc/swstylemanager.cxx
index b430cf2307a3..b43291b58b4d 100644
--- a/sw/source/core/doc/swstylemanager.cxx
+++ b/sw/source/core/doc/swstylemanager.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
diff --git a/sw/source/core/doc/swstylemanager.hxx b/sw/source/core/doc/swstylemanager.hxx
index 977245e5cfb4..799ce4e1b911 100644
--- a/sw/source/core/doc/swstylemanager.hxx
+++ b/sw/source/core/doc/swstylemanager.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
@@ -36,6 +36,6 @@ class SfxItemSet;
// --> OD 2008-03-07 #refactorlists#
IStyleAccess *createStyleManager( SfxItemSet* pIgnorableParagraphItems = 0 );
// <--
-#endif //_SWSTYLEMANAGER_HXX
+#endif //_SWSTYLEMANAGER_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/core/doc/tblafmt.cxx b/sw/source/core/doc/tblafmt.cxx
index 97f060da28ef..2c9d86cc43d7 100644
--- a/sw/source/core/doc/tblafmt.cxx
+++ b/sw/source/core/doc/tblafmt.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
@@ -43,7 +43,7 @@
#include <svx/dialmgr.hxx>
#include <svx/dialogs.hrc>
-#define READ_OLDVERS // erstmal noch alte Versionen lesen
+#define READ_OLDVERS // erstmal noch alte Versionen lesen
#include <swtypes.hxx>
#include <doc.hxx>
#include <poolfmt.hxx>
@@ -52,17 +52,17 @@
#include <SwStyleNameMapper.hxx>
// bis SO5PF
-const USHORT AUTOFORMAT_ID_X = 9501;
-const USHORT AUTOFORMAT_ID_358 = 9601;
-const USHORT AUTOFORMAT_DATA_ID_X = 9502;
+const USHORT AUTOFORMAT_ID_X = 9501;
+const USHORT AUTOFORMAT_ID_358 = 9601;
+const USHORT AUTOFORMAT_DATA_ID_X = 9502;
// ab SO5
//! in nachfolgenden Versionen muss der Betrag dieser IDs groesser sein
-const USHORT AUTOFORMAT_ID_504 = 9801;
-const USHORT AUTOFORMAT_DATA_ID_504 = 9802;
+const USHORT AUTOFORMAT_ID_504 = 9801;
+const USHORT AUTOFORMAT_DATA_ID_504 = 9802;
-const USHORT AUTOFORMAT_ID_552 = 9901;
-const USHORT AUTOFORMAT_DATA_ID_552 = 9902;
+const USHORT AUTOFORMAT_ID_552 = 9901;
+const USHORT AUTOFORMAT_DATA_ID_552 = 9902;
// --- from 641 on: CJK and CTL font settings
const USHORT AUTOFORMAT_ID_641 = 10001;
@@ -86,9 +86,9 @@ const USHORT AUTOFORMAT_DATA_ID = AUTOFORMAT_DATA_ID_300OVRLN;
#ifdef READ_OLDVERS
-const USHORT AUTOFORMAT_OLD_ID = 8201;
-const USHORT AUTOFORMAT_OLD_ID1 = 8301;
-const USHORT AUTOFORMAT_OLD_DATA_ID = 8202;
+const USHORT AUTOFORMAT_OLD_ID = 8201;
+const USHORT AUTOFORMAT_OLD_ID1 = 8301;
+const USHORT AUTOFORMAT_OLD_DATA_ID = 8202;
#endif
@@ -100,7 +100,7 @@ SwBoxAutoFmt* SwTableAutoFmt::pDfltBoxAutoFmt = 0;
SV_IMPL_PTRARR( _SwTableAutoFmtTbl, SwTableAutoFmt* )
-// Struct mit Versionsnummern der Items
+// Struct mit Versionsnummern der Items
struct SwAfVersions
{
@@ -192,7 +192,7 @@ void SwAfVersions::Load( SvStream& rStream, USHORT nVer )
rStream >> nNumFmtVersion;
}
-// ---------------------------------------------------------------------------
+// ---------------------------------------------------------------------------
SwBoxAutoFmt::SwBoxAutoFmt()
: aFont( *(SvxFontItem*)GetDfltAttr( RES_CHRATR_FONT ) ),
@@ -371,7 +371,7 @@ BOOL SwBoxAutoFmt::Load( SvStream& rStream, const SwAfVersions& rVersions, USHOR
READ( aBLTR, SvxLineItem, rVersions.nLineVersion)
}
- READ( aBackground, SvxBrushItem , rVersions.nBrushVersion)
+ READ( aBackground, SvxBrushItem , rVersions.nBrushVersion)
pNew = aAdjust.Create(rStream, rVersions.nAdjustVersion );
SetAdjust( *(SvxAdjustItem*)pNew );
@@ -405,7 +405,7 @@ BOOL SwBoxAutoFmt::Load( SvStream& rStream, const SwAfVersions& rVersions, USHOR
>> eSys >> eLge;
eSysLanguage = (LanguageType) eSys;
eNumFmtLanguage = (LanguageType) eLge;
- if ( eSysLanguage == LANGUAGE_SYSTEM ) // von alten Versionen (Calc)
+ if ( eSysLanguage == LANGUAGE_SYSTEM ) // von alten Versionen (Calc)
eSysLanguage = static_cast<LanguageType>(::GetAppLanguage());
}
@@ -420,26 +420,26 @@ BOOL SwBoxAutoFmt::Load( SvStream& rStream, const SwAfVersions& rVersions, USHOR
BOOL SwBoxAutoFmt::LoadOld( SvStream& rStream, USHORT aLoadVer[] )
{
SfxPoolItem* pNew;
- READ( aFont, SvxFontItem , 0)
+ READ( aFont, SvxFontItem , 0)
if( rStream.GetStreamCharSet() == aFont.GetCharSet() )
aFont.GetCharSet() = ::gsl_getSystemTextEncoding();
- READ( aHeight, SvxFontHeightItem , 1)
- READ( aWeight, SvxWeightItem , 2)
- READ( aPosture, SvxPostureItem , 3)
- READ( aUnderline, SvxUnderlineItem , 4)
- READ( aCrossedOut, SvxCrossedOutItem , 5)
- READ( aContour, SvxContourItem , 6)
- READ( aShadowed, SvxShadowedItem , 7)
- READ( aColor, SvxColorItem , 8)
+ READ( aHeight, SvxFontHeightItem , 1)
+ READ( aWeight, SvxWeightItem , 2)
+ READ( aPosture, SvxPostureItem , 3)
+ READ( aUnderline, SvxUnderlineItem , 4)
+ READ( aCrossedOut, SvxCrossedOutItem , 5)
+ READ( aContour, SvxContourItem , 6)
+ READ( aShadowed, SvxShadowedItem , 7)
+ READ( aColor, SvxColorItem , 8)
pNew = aAdjust.Create(rStream, aLoadVer[ 9 ] );
SetAdjust( *(SvxAdjustItem*)pNew );
delete pNew;
- READ( aBox, SvxBoxItem , 10)
- READ( aBackground, SvxBrushItem , 11)
+ READ( aBox, SvxBoxItem , 10)
+ READ( aBackground, SvxBrushItem , 11)
return 0 == rStream.GetError();
}
@@ -519,7 +519,7 @@ BOOL SwBoxAutoFmt::SaveVerionNo( SvStream& rStream ) const
rStream << aRotateAngle.GetVersion( SOFFICE_FILEFORMAT_40 );
rStream << aRotateMode.GetVersion( SOFFICE_FILEFORMAT_40 );
- rStream << (USHORT)0; // NumberFormat
+ rStream << (USHORT)0; // NumberFormat
return 0 == rStream.GetError();
}
@@ -556,9 +556,9 @@ SwTableAutoFmt& SwTableAutoFmt::operator=( const SwTableAutoFmt& rNew )
delete aBoxAutoFmt[ n ];
SwBoxAutoFmt* pFmt = rNew.aBoxAutoFmt[ n ];
- if( pFmt ) // ist gesetzt -> kopieren
+ if( pFmt ) // ist gesetzt -> kopieren
aBoxAutoFmt[ n ] = new SwBoxAutoFmt( *pFmt );
- else // sonst default
+ else // sonst default
aBoxAutoFmt[ n ] = 0;
}
@@ -589,9 +589,9 @@ void SwTableAutoFmt::SetBoxFmt( const SwBoxAutoFmt& rNew, BYTE nPos )
OSL_ENSURE( nPos < 16, "falscher Bereich" );
SwBoxAutoFmt* pFmt = aBoxAutoFmt[ nPos ];
- if( pFmt ) // ist gesetzt -> kopieren
+ if( pFmt ) // ist gesetzt -> kopieren
*aBoxAutoFmt[ nPos ] = rNew;
- else // sonst neu setzen
+ else // sonst neu setzen
aBoxAutoFmt[ nPos ] = new SwBoxAutoFmt( rNew );
}
@@ -601,9 +601,9 @@ const SwBoxAutoFmt& SwTableAutoFmt::GetBoxFmt( BYTE nPos ) const
OSL_ENSURE( nPos < 16, "falscher Bereich" );
SwBoxAutoFmt* pFmt = aBoxAutoFmt[ nPos ];
- if( pFmt ) // ist gesetzt -> kopieren
+ if( pFmt ) // ist gesetzt -> kopieren
return *pFmt;
- else // sonst den default returnen
+ else // sonst den default returnen
{
// falls noch nicht vorhanden:
if( !pDfltBoxAutoFmt )
@@ -622,7 +622,7 @@ SwBoxAutoFmt& SwTableAutoFmt::UpdateFromSet( BYTE nPos,
OSL_ENSURE( nPos < 16, "falscher Bereich" );
SwBoxAutoFmt* pFmt = aBoxAutoFmt[ nPos ];
- if( !pFmt ) // ist gesetzt -> kopieren
+ if( !pFmt ) // ist gesetzt -> kopieren
{
pFmt = new SwBoxAutoFmt;
aBoxAutoFmt[ nPos ] = pFmt;
@@ -769,8 +769,8 @@ void SwTableAutoFmt::UpdateToSet( BYTE nPos, SfxItemSet& rSet,
BOOL SwTableAutoFmt::Load( SvStream& rStream, const SwAfVersions& rVersions )
{
- BOOL bRet = TRUE;
- USHORT nVal = 0;
+ BOOL bRet = TRUE;
+ USHORT nVal = 0;
rStream >> nVal;
bRet = 0 == rStream.GetError();
@@ -822,8 +822,8 @@ BOOL SwTableAutoFmt::Load( SvStream& rStream, const SwAfVersions& rVersions )
BOOL SwTableAutoFmt::LoadOld( SvStream& rStream, USHORT aLoadVer[] )
{
- BOOL bRet = TRUE;
- USHORT nVal = 0;
+ BOOL bRet = TRUE;
+ USHORT nVal = 0;
rStream >> nVal;
bRet = 0 == rStream.GetError();
@@ -875,7 +875,7 @@ BOOL SwTableAutoFmt::Save( SvStream& rStream ) const
for( int i = 0; bRet && i < 16; ++i )
{
SwBoxAutoFmt* pFmt = aBoxAutoFmt[ i ];
- if( !pFmt ) // nicht gesetzt -> default schreiben
+ if( !pFmt ) // nicht gesetzt -> default schreiben
{
// falls noch nicht vorhanden:
if( !pDfltBoxAutoFmt )
@@ -993,8 +993,8 @@ BOOL SwTableAutoFmtTbl::Load( SvStream& rStream )
BYTE nChrSet, nCnt;
long nPos = rStream.Tell();
rStream >> nCnt >> nChrSet;
-// if( 4 <= nCnt )
-// rStream >> nFileVers;
+// if( 4 <= nCnt )
+// rStream >> nFileVers;
if( rStream.Tell() != ULONG(nPos + nCnt) )
{
OSL_ENSURE( !this, "Der Header enthaelt mehr/neuere Daten" );
@@ -1007,7 +1007,7 @@ BOOL SwTableAutoFmtTbl::Load( SvStream& rStream )
if( nVal == AUTOFORMAT_ID_358 || nVal == AUTOFORMAT_ID_X ||
(AUTOFORMAT_ID_504 <= nVal && nVal <= AUTOFORMAT_ID) )
{
- aVersions.Load( rStream, nVal ); // Item-Versionen
+ aVersions.Load( rStream, nVal ); // Item-Versionen
SwTableAutoFmt* pNew;
USHORT nAnz = 0;
@@ -1077,11 +1077,11 @@ BOOL SwTableAutoFmtTbl::Save( SvStream& rStream ) const
// Achtung hier muss ein allgemeiner Header gespeichert werden
USHORT nVal = AUTOFORMAT_ID;
rStream << nVal
- << (BYTE)2 // Anzahl von Zeichen des Headers incl. diesem
+ << (BYTE)2 // Anzahl von Zeichen des Headers incl. diesem
<< (BYTE)GetStoreCharSet( ::gsl_getSystemTextEncoding() );
-// << (BYTE)4 // Anzahl von Zeichen des Headers incl. diesem
-// << (BYTE)::GetSystemCharSet()
-// << (UNIT16)SOFFICE_FILEFORMAT_NOW;
+// << (BYTE)4 // Anzahl von Zeichen des Headers incl. diesem
+// << (BYTE)::GetSystemCharSet()
+// << (UNIT16)SOFFICE_FILEFORMAT_NOW;
bRet = 0 == rStream.GetError();
//-----------------------------------------------------------
diff --git a/sw/source/core/doc/tblcpy.cxx b/sw/source/core/doc/tblcpy.cxx
index 4f05900233d4..b6d976fe6080 100644
--- a/sw/source/core/doc/tblcpy.cxx
+++ b/sw/source/core/doc/tblcpy.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
@@ -528,12 +528,12 @@ namespace
// ---------------------------------------------------------------
// kopiere die Tabelle in diese.
-// Kopiere alle Boxen einer Line in entsprechenden Boxen. Der alte Inhalt
-// wird dabei geloescht.
-// Ist keine mehr vorhanden, kommt der restliche Inhalt in die letzte
-// Box einer "GrundLine".
-// Ist auch keine Line mehr vorhanden, -> auch in die letzte Box
-// einer "GrundLine"
+// Kopiere alle Boxen einer Line in entsprechenden Boxen. Der alte Inhalt
+// wird dabei geloescht.
+// Ist keine mehr vorhanden, kommt der restliche Inhalt in die letzte
+// Box einer "GrundLine".
+// Ist auch keine Line mehr vorhanden, -> auch in die letzte Box
+// einer "GrundLine"
void lcl_CpyBox( const SwTable& rCpyTbl, const SwTableBox* pCpyBox,
@@ -646,7 +646,7 @@ void lcl_CpyBox( const SwTable& rCpyTbl, const SwTableBox* pCpyBox,
RES_POOLCOLL_TABLE == nPoolId
? RES_POOLCOLL_TABLE_HDLN
: RES_POOLCOLL_TABLE ) );
- if( pColl ) // Vorlage umsetzen
+ if( pColl ) // Vorlage umsetzen
{
SwPaM aPam( aSavePos );
aPam.SetMark();
@@ -751,16 +751,16 @@ BOOL SwTable::InsNewTable( const SwTable& rCpyTbl, const SwSelBoxes& rSelBoxes,
}
// kopiere die Tabelle in diese.
-// Kopiere alle Boxen einer Line in entsprechenden Boxen. Der alte Inhalt
-// wird dabei geloescht.
-// Ist keine mehr vorhanden, kommt der restliche Inhalt in die letzte
-// Box einer "GrundLine".
-// Ist auch keine Line mehr vorhanden, -> auch in die letzte Box
-// einer "GrundLine"
+// Kopiere alle Boxen einer Line in entsprechenden Boxen. Der alte Inhalt
+// wird dabei geloescht.
+// Ist keine mehr vorhanden, kommt der restliche Inhalt in die letzte
+// Box einer "GrundLine".
+// Ist auch keine Line mehr vorhanden, -> auch in die letzte Box
+// einer "GrundLine"
BOOL SwTable::InsTable( const SwTable& rCpyTbl, const SwNodeIndex& rSttBox,
SwUndoTblCpyTbl* pUndo )
{
- SetHTMLTableLayout( 0 ); // MIB 9.7.97: HTML-Layout loeschen
+ SetHTMLTableLayout( 0 ); // MIB 9.7.97: HTML-Layout loeschen
SwDoc* pDoc = GetFrmFmt()->GetDoc();
@@ -804,11 +804,11 @@ BOOL SwTable::InsTable( const SwTable& rCpyTbl, const SwNodeIndex& rSttBox,
lcl_CpyBox( rCpyTbl, pCpyBox, *this, pMyBox, bDelCntnt, pUndo );
if( 0 == (pTmp = pCpyBox->FindNextBox( rCpyTbl, pCpyBox, FALSE )))
- break; // es folgt keine weitere Box mehr
+ break; // es folgt keine weitere Box mehr
pCpyBox = pTmp;
if( 0 == ( pTmp = pMyBox->FindNextBox( *this, pMyBox, FALSE )))
- bDelCntnt = FALSE; // kein Platz mehr ??
+ bDelCntnt = FALSE; // kein Platz mehr ??
else
pMyBox = (SwTableBox*)pTmp;
@@ -821,7 +821,7 @@ BOOL SwTable::InsTable( const SwTable& rCpyTbl, const SwNodeIndex& rSttBox,
USHORT nPos = GetTabLines().C40_GETPOS( SwTableLine, pNxtLine );
// gibt es eine naechste ??
if( nPos + 1 >= GetTabLines().Count() )
- bDelCntnt = FALSE; // es gibt keine, alles in die letzte Box
+ bDelCntnt = FALSE; // es gibt keine, alles in die letzte Box
else
{
// suche die naechste "Inhaltstragende Box"
@@ -833,7 +833,7 @@ BOOL SwTable::InsTable( const SwTable& rCpyTbl, const SwNodeIndex& rSttBox,
}
}
- aFndBox.MakeFrms( pTblNd->GetTable() ); // erzeuge die Frames neu
+ aFndBox.MakeFrms( pTblNd->GetTable() ); // erzeuge die Frames neu
return TRUE;
}
@@ -842,7 +842,7 @@ BOOL SwTable::InsTable( const SwTable& rCpyTbl, const SwSelBoxes& rSelBoxes,
{
OSL_ENSURE( rSelBoxes.Count(), "Missing selection" );
- SetHTMLTableLayout( 0 ); // MIB 9.7.97: HTML-Layout loeschen
+ SetHTMLTableLayout( 0 ); // MIB 9.7.97: HTML-Layout loeschen
if( IsNewModel() || rCpyTbl.IsNewModel() )
return InsNewTable( rCpyTbl, rSelBoxes, pUndo );
@@ -866,7 +866,7 @@ BOOL SwTable::InsTable( const SwTable& rCpyTbl, const SwSelBoxes& rSelBoxes,
}
// JP 06.09.96: Sonderfall - eine Box in der Tabelle -> in alle
- // selektierten Boxen kopieren!
+ // selektierten Boxen kopieren!
if( 1 != rCpyTbl.GetTabSortBoxes().Count() )
{
SwTableLine* pSttLine = pSttBox->GetUpper();
@@ -935,12 +935,12 @@ BOOL SwTable::InsTable( const SwTable& rCpyTbl, const SwSelBoxes& rSelBoxes,
return FALSE;
}
- nTstLns = rCpyTbl.GetTabLines().Count(); // soviele Kopieren
+ nTstLns = rCpyTbl.GetTabLines().Count(); // soviele Kopieren
}
else if( 0 == (nFndCnt % rCpyTbl.GetTabLines().Count()) )
nTstLns = nFndCnt;
else
- return FALSE; // kein Platz fuer die Zeilen
+ return FALSE; // kein Platz fuer die Zeilen
for( nLn = 0; nLn < nTstLns; ++nLn )
{
diff --git a/sw/source/core/doc/tblrwcl.cxx b/sw/source/core/doc/tblrwcl.cxx
index 1779aca328d2..2f302b034283 100644
--- a/sw/source/core/doc/tblrwcl.cxx
+++ b/sw/source/core/doc/tblrwcl.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
@@ -89,13 +89,13 @@ SV_IMPL_PTRARR( _SwShareBoxFmts, SwShareBoxFmt* )
struct _CpyTabFrm
{
union {
- SwTableBoxFmt *pFrmFmt; // fuer CopyCol
- SwTwips nSize; // fuer DelCol
+ SwTableBoxFmt *pFrmFmt; // fuer CopyCol
+ SwTwips nSize; // fuer DelCol
} Value;
SwTableBoxFmt *pNewFrmFmt;
_CpyTabFrm( SwTableBoxFmt* pAktFrmFmt ) : pNewFrmFmt( 0 )
- { Value.pFrmFmt = pAktFrmFmt; }
+ { Value.pFrmFmt = pAktFrmFmt; }
_CpyTabFrm& operator=( const _CpyTabFrm& );
@@ -195,11 +195,11 @@ typedef BOOL (*FN_lcl_SetBoxWidth)(SwTableLine*, CR_SetBoxWidth&, SwTwips, BOOL
void _CheckBoxWidth( const SwTableLine& rLine, SwTwips nSize );
-#define CHECKBOXWIDTH \
- { \
- SwTwips nSize = GetFrmFmt()->GetFrmSize().GetWidth(); \
- for( USHORT nTmp = 0; nTmp < aLines.Count(); ++nTmp ) \
- ::_CheckBoxWidth( *aLines[ nTmp ], nSize ); \
+#define CHECKBOXWIDTH \
+ { \
+ SwTwips nSize = GetFrmFmt()->GetFrmSize().GetWidth(); \
+ for( USHORT nTmp = 0; nTmp < aLines.Count(); ++nTmp ) \
+ ::_CheckBoxWidth( *aLines[ nTmp ], nSize ); \
}
#define CHECKTABLELAYOUT \
@@ -297,7 +297,7 @@ struct _CpyPara
_CpyTabFrms& rTabFrmArr;
SwTableLine* pInsLine;
SwTableBox* pInsBox;
- ULONG nOldSize, nNewSize; // zum Korrigieren der Size-Attribute
+ ULONG nOldSize, nNewSize; // zum Korrigieren der Size-Attribute
ULONG nMinLeft, nMaxRight;
USHORT nCpyCnt, nInsPos;
USHORT nLnIdx, nBoxIdx;
@@ -393,7 +393,7 @@ BOOL lcl_CopyCol( const _FndBox*& rpFndBox, void* pPara )
else
{
aFindFrm = pCpyPara->rTabFrmArr[ nFndPos ];
-// aFindFrm.pNewFrmFmt->Add( pBox );
+// aFindFrm.pNewFrmFmt->Add( pBox );
pBox->ChgFrmFmt( (SwTableBoxFmt*)aFindFrm.pNewFrmFmt );
}
}
@@ -489,7 +489,7 @@ void lcl_InsCol( _FndLine* pFndLn, _CpyPara& rCpyPara, USHORT nCpyCnt,
BOOL bBehind )
{
// Bug 29124: nicht nur in den Grundlines kopieren. Wenns geht, so weit
- // runter wie moeglich.
+ // runter wie moeglich.
_FndBox* pFBox;
if( 1 == pFndLn->GetBoxes().Count() &&
!( pFBox = pFndLn->GetBoxes()[ 0 ] )->GetBox()->GetSttNd() )
@@ -549,7 +549,7 @@ BOOL SwTable::InsertCol( SwDoc* pDoc, const SwSelBoxes& rBoxes, USHORT nCnt, BOO
if( !aFndBox.GetLines().Count() )
return FALSE;
- SetHTMLTableLayout( 0 ); // MIB 9.7.97: HTML-Layout loeschen
+ SetHTMLTableLayout( 0 ); // MIB 9.7.97: HTML-Layout loeschen
//Lines fuer das Layout-Update herausuchen.
aFndBox.SetTableLines( *this );
@@ -600,7 +600,7 @@ BOOL SwTable::_InsertRow( SwDoc* pDoc, const SwSelBoxes& rBoxes,
if( !aFndBox.GetLines().Count() )
return FALSE;
- SetHTMLTableLayout( 0 ); // MIB 9.7.97: HTML-Layout loeschen
+ SetHTMLTableLayout( 0 ); // MIB 9.7.97: HTML-Layout loeschen
_FndBox* pFndBox = &aFndBox;
{
@@ -728,7 +728,7 @@ BOOL SwTable::AppendRow( SwDoc* pDoc, USHORT nCnt )
{
const SwTableLine* pLLine = GetTabLines()[ GetTabLines().Count()-1 ];
- const SwSelBoxes* pBxs = 0; // Dummy !!!
+ const SwSelBoxes* pBxs = 0; // Dummy !!!
_FndPara aPara( *pBxs, &aFndBox );
_FndBoxAppendRowLine( pLLine, &aPara );
@@ -736,7 +736,7 @@ BOOL SwTable::AppendRow( SwDoc* pDoc, USHORT nCnt )
if( !aFndBox.GetLines().Count() )
return FALSE;
- SetHTMLTableLayout( 0 ); // MIB 9.7.97: HTML-Layout loeschen
+ SetHTMLTableLayout( 0 ); // MIB 9.7.97: HTML-Layout loeschen
//Lines fuer das Layout-Update herausuchen.
const BOOL bLayout = 0 != SwClientIter( *GetFrmFmt() ).First( TYPE(SwTabFrm) );
@@ -922,10 +922,10 @@ void _DeleteBox( SwTable& rTbl, SwTableBox* pBox, SwUndo* pUndo,
::lcl_LastBoxSetWidthLine( pBox->GetTabLines(), nBoxSz,
!bLastBox,
pShareFmts ? *pShareFmts
- : aShareFmts );
+ : aShareFmts );
}
}
- break; // nichts mehr loeschen
+ break; // nichts mehr loeschen
}
// loesche die Line aus Tabelle/Box
if( !pUpperBox )
@@ -935,7 +935,7 @@ void _DeleteBox( SwTable& rTbl, SwTableBox* pBox, SwUndo* pUndo,
if( pShareFmts )
pShareFmts->RemoveFormat( *rTbl.GetTabLines()[ nDelPos ]->GetFrmFmt() );
rTbl.GetTabLines().DeleteAndDestroy( nDelPos );
- break; // mehr kann nicht geloescht werden
+ break; // mehr kann nicht geloescht werden
}
// dann loesche auch noch die Line
@@ -1037,11 +1037,11 @@ void lcl_SaveUpperLowerBorder( SwTable& rTbl, const SwTableBox& rBox,
SwTwips nBoxWidth = rBox.GetFrmFmt()->GetFrmSize().GetWidth();
SwTableBox *pPrvBox = 0, *pNxtBox = 0;
- if( nLnPos ) // Vorgaenger?
+ if( nLnPos ) // Vorgaenger?
pPrvBox = ::lcl_FndNxtPrvDelBox( *pTblLns, nBoxStt, nBoxWidth,
nLnPos, FALSE, pAllDelBoxes, pCurPos );
- if( nLnPos + 1 < pTblLns->Count() ) // Nachfolger?
+ if( nLnPos + 1 < pTblLns->Count() ) // Nachfolger?
pNxtBox = ::lcl_FndNxtPrvDelBox( *pTblLns, nBoxStt, nBoxWidth,
nLnPos, TRUE, pAllDelBoxes, pCurPos );
@@ -1092,7 +1092,7 @@ BOOL SwTable::DeleteSel(
return FALSE;
}
- SetHTMLTableLayout( 0 ); // MIB 9.7.97: HTML-Layout loeschen
+ SetHTMLTableLayout( 0 ); // MIB 9.7.97: HTML-Layout loeschen
//Lines fuer das Layout-Update herausuchen.
_FndBox aFndBox( 0, 0 );
@@ -1164,7 +1164,7 @@ BOOL SwTable::OldSplitRow( SwDoc* pDoc, const SwSelBoxes& rBoxes, USHORT nCnt,
// Thus we tell the charts to use their own data provider and forget about this table
pDoc->CreateChartInternalDataProviders( this );
- SetHTMLTableLayout( 0 ); // MIB 9.7.97: HTML-Layout loeschen
+ SetHTMLTableLayout( 0 ); // MIB 9.7.97: HTML-Layout loeschen
// If the rows should get the same (min) height, we first have
// to store the old row heights before deleting the frames
@@ -1208,11 +1208,11 @@ BOOL SwTable::OldSplitRow( SwDoc* pDoc, const SwSelBoxes& rBoxes, USHORT nCnt,
SwTableBox* pNewBox = new SwTableBox( pFrmFmt, nCnt, pInsLine );
USHORT nBoxPos = pInsLine->GetTabBoxes().C40_GETPOS( SwTableBox, pSelBox );
- pInsLine->GetTabBoxes().Remove( nBoxPos ); // alte loeschen
+ pInsLine->GetTabBoxes().Remove( nBoxPos ); // alte loeschen
pInsLine->GetTabBoxes().C40_INSERT( SwTableBox, pNewBox, nBoxPos );
// Hintergrund- / Rand Attribut loeschen
- SwTableBox* pLastBox = pSelBox; // zum verteilen der TextNodes !!
+ SwTableBox* pLastBox = pSelBox; // zum verteilen der TextNodes !!
// sollte Bereiche in der Box stehen, dann bleibt sie so bestehen
// !! FALLS DAS GEAENDERT WIRD MUSS DAS UNDO ANGEPASST WERDEN !!!
BOOL bMoveNodes = TRUE;
@@ -1244,7 +1244,7 @@ BOOL SwTable::OldSplitRow( SwDoc* pDoc, const SwSelBoxes& rBoxes, USHORT nCnt,
pNewBox->GetTabLines().C40_INSERT( SwTableLine, pNewLine, i );
// dann eine neue Box in der Line
- if( !i ) // haenge die originale Box ein
+ if( !i ) // haenge die originale Box ein
{
pSelBox->SetUpper( pNewLine );
pNewLine->GetTabBoxes().C40_INSERT( SwTableBox, pSelBox, 0 );
@@ -1270,7 +1270,7 @@ BOOL SwTable::OldSplitRow( SwDoc* pDoc, const SwSelBoxes& rBoxes, USHORT nCnt,
{
// TextNodes verschieben
SwNodeRange aRg( *pLastBox->GetSttNd(), +2, *pEndNd );
- pLastBox = pNewLine->GetTabBoxes()[0]; // neu setzen
+ pLastBox = pNewLine->GetTabBoxes()[0]; // neu setzen
SwNodeIndex aInsPos( *pLastBox->GetSttNd(), 1 );
pDoc->GetNodes()._MoveNodes(aRg, pDoc->GetNodes(), aInsPos, FALSE);
pDoc->GetNodes().Delete( aInsPos, 1 ); // den leeren noch loeschen
@@ -1307,7 +1307,7 @@ BOOL SwTable::SplitCol( SwDoc* pDoc, const SwSelBoxes& rBoxes, USHORT nCnt )
// Thus we tell the charts to use their own data provider and forget about this table
pDoc->CreateChartInternalDataProviders( this );
- SetHTMLTableLayout( 0 ); // MIB 9.7.97: HTML-Layout loeschen
+ SetHTMLTableLayout( 0 ); // MIB 9.7.97: HTML-Layout loeschen
SwSelBoxes aSelBoxes;
aSelBoxes.Insert(rBoxes.GetData(), rBoxes.Count());
ExpandSelection( aSelBoxes );
@@ -1368,10 +1368,10 @@ BOOL SwTable::SplitCol( SwDoc* pDoc, const SwSelBoxes& rBoxes, USHORT nCnt )
// dann fuege mal an der Position die neuen Boxen ein
for( USHORT i = 1; i < nCnt; ++i )
::_InsTblBox( pDoc, pTblNd, pInsLine, aFindFrm.pNewFrmFmt,
- pSelBox, nBoxPos + i ); // dahinter einfuegen
+ pSelBox, nBoxPos + i ); // dahinter einfuegen
::_InsTblBox( pDoc, pTblNd, pInsLine, pLastBoxFmt,
- pSelBox, nBoxPos + nCnt ); // dahinter einfuegen
+ pSelBox, nBoxPos + nCnt ); // dahinter einfuegen
// Sonderbehandlung fuer die Umrandung:
const SvxBoxItem& aSelBoxItem = aFindFrm.pNewFrmFmt->GetBox();
@@ -1470,7 +1470,7 @@ struct _InsULPara
SwTableNode* pTblNd;
SwTableLine* pInsLine;
SwTableBox* pInsBox;
- BOOL bUL_LR : 1; // Upper-Lower(TRUE) oder Left-Right(FALSE) ?
+ BOOL bUL_LR : 1; // Upper-Lower(TRUE) oder Left-Right(FALSE) ?
BOOL bUL : 1; // Upper-Left(TRUE) oder Lower-Right(FALSE) ?
SwTableBox* pLeftBox;
@@ -1482,16 +1482,16 @@ struct _InsULPara
SwTableLine* pLine=0, SwTableBox* pBox=0 )
: pTblNd( pTNd ), pInsLine( pLine ), pInsBox( pBox ),
pLeftBox( pLeft ), pRightBox( pRight ), pMergeBox( pMerge )
- { bUL_LR = bUpperLower; bUL = bUpper; }
+ { bUL_LR = bUpperLower; bUL = bUpper; }
void SetLeft( SwTableBox* pBox=0 )
- { bUL_LR = FALSE; bUL = TRUE; if( pBox ) pInsBox = pBox; }
+ { bUL_LR = FALSE; bUL = TRUE; if( pBox ) pInsBox = pBox; }
void SetRight( SwTableBox* pBox=0 )
- { bUL_LR = FALSE; bUL = FALSE; if( pBox ) pInsBox = pBox; }
+ { bUL_LR = FALSE; bUL = FALSE; if( pBox ) pInsBox = pBox; }
void SetUpper( SwTableLine* pLine=0 )
- { bUL_LR = TRUE; bUL = TRUE; if( pLine ) pInsLine = pLine; }
+ { bUL_LR = TRUE; bUL = TRUE; if( pLine ) pInsLine = pLine; }
void SetLower( SwTableLine* pLine=0 )
- { bUL_LR = TRUE; bUL = FALSE; if( pLine ) pInsLine = pLine; }
+ { bUL_LR = TRUE; bUL = FALSE; if( pLine ) pInsLine = pLine; }
};
BOOL lcl_Merge_MoveBox( const _FndBox*& rpFndBox, void* pPara )
@@ -1501,18 +1501,18 @@ BOOL lcl_Merge_MoveBox( const _FndBox*& rpFndBox, void* pPara )
USHORT nStt = 0, nEnd = rpFndBox->GetLines().Count();
USHORT nInsPos = USHRT_MAX;
- if( !pULPara->bUL_LR ) // Left/Right
+ if( !pULPara->bUL_LR ) // Left/Right
{
USHORT nPos;
SwTableBox* pFndBox = (SwTableBox*)rpFndBox->GetBox();
pBoxes = &pFndBox->GetUpper()->GetTabBoxes();
- if( pULPara->bUL ) // Left ?
+ if( pULPara->bUL ) // Left ?
{
// gibt es noch davor Boxen, dann move sie
if( 0 != ( nPos = pBoxes->C40_GETPOS( SwTableBox, pFndBox )) )
lcl_CpyBoxes( 0, nPos, *pBoxes, pULPara->pInsLine );
}
- else // Right
+ else // Right
// gibt es noch dahinter Boxen, dann move sie
if( (nPos = pBoxes->C40_GETPOS( SwTableBox, pFndBox )) +1 < pBoxes->Count() )
{
@@ -1535,7 +1535,7 @@ BOOL lcl_Merge_MoveBox( const _FndBox*& rpFndBox, void* pPara )
if( rpFndBox->GetBox()->GetTabLines().Count() )
{
SwTableBox* pBox = new SwTableBox(
- (SwTableBoxFmt*)rpFndBox->GetBox()->GetFrmFmt(), 0, pULPara->pInsLine );
+ (SwTableBoxFmt*)rpFndBox->GetBox()->GetFrmFmt(), 0, pULPara->pInsLine );
_InsULPara aPara( *pULPara );
aPara.pInsBox = pBox;
((_FndBox*)rpFndBox)->GetLines().ForEach( nStt, nEnd,
@@ -1545,7 +1545,7 @@ BOOL lcl_Merge_MoveBox( const _FndBox*& rpFndBox, void* pPara )
if( USHRT_MAX == nInsPos )
nInsPos = pBoxes->Count();
pBoxes->C40_INSERT( SwTableBox, pBox, nInsPos );
- lcl_CalcWidth( pBox ); // bereche die Breite der Box
+ lcl_CalcWidth( pBox ); // bereche die Breite der Box
}
else
delete pBox;
@@ -1560,7 +1560,7 @@ BOOL lcl_Merge_MoveLine( const _FndLine*& rpFndLine, void* pPara )
USHORT nStt = 0, nEnd = rpFndLine->GetBoxes().Count();
USHORT nInsPos = USHRT_MAX;
- if( pULPara->bUL_LR ) // UpperLower ?
+ if( pULPara->bUL_LR ) // UpperLower ?
{
USHORT nPos;
SwTableLine* pFndLn = (SwTableLine*)rpFndLine->GetLine();
@@ -1574,11 +1574,11 @@ BOOL lcl_Merge_MoveLine( const _FndLine*& rpFndLine, void* pPara )
USHORT nLeft = pFndLn->GetTabBoxes().C40_GETPOS( SwTableBox, pLBx );
USHORT nRight = pFndLn->GetTabBoxes().C40_GETPOS( SwTableBox, pRBx );
-// if( ( nLeft && nRight+1 < pFndLn->GetTabBoxes().Count() ) ||
-// ( !nLeft && nRight+1 >= pFndLn->GetTabBoxes().Count() ) )
+// if( ( nLeft && nRight+1 < pFndLn->GetTabBoxes().Count() ) ||
+// ( !nLeft && nRight+1 >= pFndLn->GetTabBoxes().Count() ) )
if( !nLeft || nRight == pFndLn->GetTabBoxes().Count() )
{
- if( pULPara->bUL ) // Upper ?
+ if( pULPara->bUL ) // Upper ?
{
// gibt es noch davor Zeilen, dann move sie
if( 0 != ( nPos = pLines->C40_GETPOS( SwTableLine, pFndLn )) )
@@ -1612,7 +1612,7 @@ BOOL lcl_Merge_MoveLine( const _FndLine*& rpFndLine, void* pPara )
pInsLine->GetTabBoxes().C40_INSERT( SwTableBox, pLMBox, 0 );
- if( pULPara->bUL ) // Upper ?
+ if( pULPara->bUL ) // Upper ?
{
// gibt es noch davor Zeilen, dann move sie
if( 0 != ( nPos = pLines->C40_GETPOS( SwTableLine, pFndLn )) )
@@ -1623,7 +1623,7 @@ BOOL lcl_Merge_MoveLine( const _FndLine*& rpFndLine, void* pPara )
if( (nPos = pLines->C40_GETPOS( SwTableLine, pFndLn )) +1 < pLines->Count() )
lcl_CpyLines( nPos+1, pLines->Count(), *pLines,
pLMBox );
- lcl_CalcWidth( pLMBox ); // bereche die Breite der Box
+ lcl_CalcWidth( pLMBox ); // bereche die Breite der Box
}
else if( nRight+1 < pFndLn->GetTabBoxes().Count() )
{
@@ -1684,14 +1684,14 @@ BOOL lcl_Merge_MoveLine( const _FndLine*& rpFndLine, void* pPara )
lcl_CpyLines( nPos1, nPos2,
pNewLn->GetUpper()->GetTabLines(), pRMBox );
- lcl_CalcWidth( pRMBox ); // bereche die Breite der Box
+ lcl_CalcWidth( pRMBox ); // bereche die Breite der Box
pRMBox = new SwTableBox( (SwTableBoxFmt*)pRMBox->GetFrmFmt(), 0, pNewLn );
pNewLn->GetTabBoxes().C40_INSERT( SwTableBox, pRMBox,
pNewLn->GetTabBoxes().Count() );
}
}
- if( pULPara->bUL ) // Upper ?
+ if( pULPara->bUL ) // Upper ?
{
// gibt es noch davor Zeilen, dann move sie
if( 0 != ( nPos = pLines->C40_GETPOS( SwTableLine, pFndLn )) )
@@ -1702,7 +1702,7 @@ BOOL lcl_Merge_MoveLine( const _FndLine*& rpFndLine, void* pPara )
if( (nPos = pLines->C40_GETPOS( SwTableLine, pFndLn )) +1 < pLines->Count() )
lcl_CpyLines( nPos+1, pLines->Count(), *pLines,
pRMBox );
- lcl_CalcWidth( pRMBox ); // bereche die Breite der Box
+ lcl_CalcWidth( pRMBox ); // bereche die Breite der Box
}
else {
OSL_ENSURE( FALSE , "Was denn nun" );
@@ -1719,7 +1719,7 @@ BOOL lcl_Merge_MoveLine( const _FndLine*& rpFndLine, void* pPara )
SwTableLine* pNewLine = new SwTableLine(
(SwTableLineFmt*)rpFndLine->GetLine()->GetFrmFmt(), 0, pULPara->pInsBox );
- _InsULPara aPara( *pULPara ); // kopieren
+ _InsULPara aPara( *pULPara ); // kopieren
aPara.pInsLine = pNewLine;
((_FndLine*)rpFndLine)->GetBoxes().ForEach( nStt, nEnd,
&lcl_Merge_MoveBox, &aPara );
@@ -1757,7 +1757,7 @@ BOOL SwTable::OldMerge( SwDoc* pDoc, const SwSelBoxes& rBoxes,
// Thus we tell the charts to use their own data provider and forget about this table
pDoc->CreateChartInternalDataProviders( this );
- SetHTMLTableLayout( 0 ); // MIB 9.7.97: HTML-Layout loeschen
+ SetHTMLTableLayout( 0 ); // MIB 9.7.97: HTML-Layout loeschen
if( pUndo )
pUndo->SetSelBoxes( rBoxes );
@@ -1816,7 +1816,7 @@ BOOL SwTable::OldMerge( SwDoc* pDoc, const SwSelBoxes& rBoxes,
_DeleteBox( *this, pLeftBox, 0, FALSE, FALSE );
else
{
- lcl_CalcWidth( pLeftBox ); // bereche die Breite der Box
+ lcl_CalcWidth( pLeftBox ); // bereche die Breite der Box
if( pUndo && pLeftBox->GetSttNd() )
pUndo->AddNewBox( pLeftBox->GetSttIdx() );
}
@@ -1824,7 +1824,7 @@ BOOL SwTable::OldMerge( SwDoc* pDoc, const SwSelBoxes& rBoxes,
_DeleteBox( *this, pRightBox, 0, FALSE, FALSE );
else
{
- lcl_CalcWidth( pRightBox ); // bereche die Breite der Box
+ lcl_CalcWidth( pRightBox ); // bereche die Breite der Box
if( pUndo && pRightBox->GetSttNd() )
pUndo->AddNewBox( pRightBox->GetSttIdx() );
}
@@ -2038,7 +2038,7 @@ BOOL lcl_CopyBoxToDoc( const _FndBox*& rpFndBox, void* pPara )
rpFndBox->GetLines().Count(), pCpyPara->pInsLine );
pCpyPara->pInsLine->GetTabBoxes().C40_INSERT( SwTableBox, pBox, pCpyPara->nInsPos++ );
_CpyPara aPara( *pCpyPara, pBox );
- aPara.nNewSize = nSize; // hole die Groesse
+ aPara.nNewSize = nSize; // hole die Groesse
((_FndBox*)rpFndBox)->GetLines().ForEach( &lcl_CopyLineToDoc, &aPara );
}
else
@@ -2344,7 +2344,7 @@ BOOL SwTable::MakeCopy( SwDoc* pInsDoc, const SwPosition& rPos,
// Mal kurz aufraeumen:
pNewTbl->GCLines();
- pTblNd->MakeFrms( &aIdx ); // erzeuge die Frames neu
+ pTblNd->MakeFrms( &aIdx ); // erzeuge die Frames neu
CHECKTABLELAYOUT
@@ -2355,7 +2355,7 @@ BOOL SwTable::MakeCopy( SwDoc* pInsDoc, const SwPosition& rPos,
SwTableBox* SwTableLine::FindNextBox( const SwTable& rTbl,
const SwTableBox* pSrchBox, BOOL bOvrTblLns ) const
{
- const SwTableLine* pLine = this; // fuer M800
+ const SwTableLine* pLine = this; // fuer M800
SwTableBox* pBox;
USHORT nFndPos;
if( GetTabBoxes().Count() && pSrchBox &&
@@ -2377,12 +2377,12 @@ SwTableBox* SwTableLine::FindNextBox( const SwTable& rTbl,
return GetUpper()->GetUpper()->FindNextBox( rTbl, GetUpper(), bOvrTblLns );
pLine = GetUpper()->GetTabLines()[nFndPos+1];
}
- else if( bOvrTblLns ) // ueber die "GrundLines" einer Tabelle ?
+ else if( bOvrTblLns ) // ueber die "GrundLines" einer Tabelle ?
{
// suche in der Tabelle nach der naechsten Line
nFndPos = rTbl.GetTabLines().GetPos( pLine );
if( nFndPos + 1 >= rTbl.GetTabLines().Count() )
- return 0; // es gibt keine weitere Box mehr
+ return 0; // es gibt keine weitere Box mehr
pLine = rTbl.GetTabLines()[ nFndPos+1 ];
}
@@ -2403,7 +2403,7 @@ SwTableBox* SwTableLine::FindNextBox( const SwTable& rTbl,
SwTableBox* SwTableLine::FindPreviousBox( const SwTable& rTbl,
const SwTableBox* pSrchBox, BOOL bOvrTblLns ) const
{
- const SwTableLine* pLine = this; // fuer M800
+ const SwTableLine* pLine = this; // fuer M800
SwTableBox* pBox;
USHORT nFndPos;
if( GetTabBoxes().Count() && pSrchBox &&
@@ -2428,12 +2428,12 @@ SwTableBox* SwTableLine::FindPreviousBox( const SwTable& rTbl,
return GetUpper()->GetUpper()->FindPreviousBox( rTbl, GetUpper(), bOvrTblLns );
pLine = GetUpper()->GetTabLines()[nFndPos-1];
}
- else if( bOvrTblLns ) // ueber die "GrundLines" einer Tabelle ?
+ else if( bOvrTblLns ) // ueber die "GrundLines" einer Tabelle ?
{
// suche in der Tabelle nach der naechsten Line
nFndPos = rTbl.GetTabLines().GetPos( pLine );
if( !nFndPos )
- return 0; // es gibt keine weitere Box mehr
+ return 0; // es gibt keine weitere Box mehr
pLine = rTbl.GetTabLines()[ nFndPos-1 ];
}
@@ -2640,7 +2640,7 @@ BOOL lcl_SetOtherBoxWidth( SwTableLine* pLine, CR_SetBoxWidth& rParam,
{
rParam.bAnyBoxFnd = TRUE;
SwTwips nDiff;
- if( TBLFIX_CHGPROP == rParam.nMode ) // Tabelle fix, proport.
+ if( TBLFIX_CHGPROP == rParam.nMode ) // Tabelle fix, proport.
{
// relativ berechnen
nDiff = nWidth;
@@ -2679,7 +2679,7 @@ BOOL lcl_SetOtherBoxWidth( SwTableLine* pLine, CR_SetBoxWidth& rParam,
if( !nLowerDiff )
{
- if( TBLFIX_CHGPROP == rParam.nMode ) // Tabelle fix, proport.
+ if( TBLFIX_CHGPROP == rParam.nMode ) // Tabelle fix, proport.
{
// relativ berechnen
nLowerDiff = nWidth;
@@ -2806,7 +2806,7 @@ BOOL lcl_InsSelBox( SwTableLine* pLine, CR_SetBoxWidth& rParam,
rParam.aShareFmts.SetSize( *pNewBox, aNew );
// Sonderfall: kein Platz in den anderen Boxen
- // aber in der Zelle
+ // aber in der Zelle
if( rParam.bSplittBox )
{
// die akt. Box auf
@@ -2899,7 +2899,7 @@ BOOL lcl_InsOtherBox( SwTableLine* pLine, CR_SetBoxWidth& rParam,
{
rParam.bAnyBoxFnd = TRUE;
SwTwips nDiff;
- if( TBLFIX_CHGPROP == rParam.nMode ) // Tabelle fix, proport.
+ if( TBLFIX_CHGPROP == rParam.nMode ) // Tabelle fix, proport.
{
// relativ berechnen
nDiff = nWidth;
@@ -2926,10 +2926,10 @@ BOOL lcl_InsOtherBox( SwTableLine* pLine, CR_SetBoxWidth& rParam,
pTmpBox = pTmpBox->GetUpper()->GetUpper();
nBoxPos = pTmpBox->GetUpper()->GetTabBoxes().GetPos( pTmpBox );
}
-// if( nBoxPos )
+// if( nBoxPos )
nTmpWidth = pTmpBox->GetFrmFmt()->GetFrmSize().GetWidth();
-// else
-// nTmpWidth = 0;
+// else
+// nTmpWidth = 0;
}
if( nTmpWidth < nDiff || nTmpWidth - nDiff < MINLAY )
@@ -2963,7 +2963,7 @@ BOOL lcl_InsOtherBox( SwTableLine* pLine, CR_SetBoxWidth& rParam,
{
if( !nLowerDiff )
{
- if( TBLFIX_CHGPROP == rParam.nMode ) // Tabelle fix, proport.
+ if( TBLFIX_CHGPROP == rParam.nMode ) // Tabelle fix, proport.
{
// relativ berechnen
nLowerDiff = nWidth;
@@ -2994,13 +2994,13 @@ BOOL lcl_InsOtherBox( SwTableLine* pLine, CR_SetBoxWidth& rParam,
}
// das Ergebnis des Positions Vergleiches
-// POS_BEFORE, // Box liegt davor
-// POS_BEHIND, // Box liegt dahinter
-// POS_INSIDE, // Box liegt vollstaendig in Start/End
-// POS_OUTSIDE, // Box ueberlappt Start/End vollstaendig
-// POS_EQUAL, // Box und Start/End sind gleich
-// POS_OVERLAP_BEFORE, // Box ueberlappt den Start
-// POS_OVERLAP_BEHIND // Box ueberlappt das Ende
+// POS_BEFORE, // Box liegt davor
+// POS_BEHIND, // Box liegt dahinter
+// POS_INSIDE, // Box liegt vollstaendig in Start/End
+// POS_OUTSIDE, // Box ueberlappt Start/End vollstaendig
+// POS_EQUAL, // Box und Start/End sind gleich
+// POS_OVERLAP_BEFORE, // Box ueberlappt den Start
+// POS_OVERLAP_BEHIND // Box ueberlappt das Ende
SwComparePosition _CheckBoxInRange( USHORT nStt, USHORT nEnd,
USHORT nBoxStt, USHORT nBoxEnd )
{
@@ -3082,12 +3082,12 @@ void lcl_ChgBoxSize( SwTableBox& rBox, CR_SetBoxWidth& rParam,
switch( rParam.nMode )
{
- case TBLFIX_CHGABS: // Tabelle feste Breite, den Nachbar andern
+ case TBLFIX_CHGABS: // Tabelle feste Breite, den Nachbar andern
nDiff = rDelWidth + rParam.nLowerDiff;
bSetSize = TRUE;
break;
- case TBLFIX_CHGPROP: // Tabelle feste Breite, alle Nachbarn aendern
+ case TBLFIX_CHGPROP: // Tabelle feste Breite, alle Nachbarn aendern
if( !rParam.nRemainWidth )
{
// dann kurz berechnen:
@@ -3105,7 +3105,7 @@ void lcl_ChgBoxSize( SwTableBox& rBox, CR_SetBoxWidth& rParam,
bSetSize = TRUE;
break;
- case TBLVAR_CHGABS: // Tabelle variable, alle Nachbarn aendern
+ case TBLVAR_CHGABS: // Tabelle variable, alle Nachbarn aendern
if( COLFUZZY < Abs( rParam.nBoxWidth -
( rDelWidth + rParam.nLowerDiff )))
{
@@ -3239,13 +3239,13 @@ BOOL lcl_DelSelBox( SwTableLine* pTabLine, CR_SetBoxWidth& rParam,
}
break;
- case POS_OUTSIDE: // Box ueberlappt Start/End vollstaendig
- case POS_INSIDE: // Box liegt vollstaendig in Start/End
- case POS_EQUAL: // Box und Start/End sind gleich
+ case POS_OUTSIDE: // Box ueberlappt Start/End vollstaendig
+ case POS_INSIDE: // Box liegt vollstaendig in Start/End
+ case POS_EQUAL: // Box und Start/End sind gleich
bDelBox = TRUE;
break;
- case POS_OVERLAP_BEFORE: // Box ueberlappt den Start
+ case POS_OVERLAP_BEFORE: // Box ueberlappt den Start
if( nBoxChkStt <= ( nDist + (rParam.bLeft ? - nWidth / 2
: nWidth / 2 )))
{
@@ -3267,7 +3267,7 @@ BOOL lcl_DelSelBox( SwTableLine* pTabLine, CR_SetBoxWidth& rParam,
}
break;
- case POS_OVERLAP_BEHIND: // Box ueberlappt das Ende
+ case POS_OVERLAP_BEHIND: // Box ueberlappt das Ende
// JP 10.02.99:
// generell loeschen oder wie beim OVERLAP_Before nur die, die
// bis zur Haelfte in die "Loesch-"Box reicht ???
@@ -3370,10 +3370,10 @@ BOOL lcl_DelSelBox( SwTableLine* pTabLine, CR_SetBoxWidth& rParam,
{
switch( ePosType )
{
- case POS_OVERLAP_BEFORE: // Box ueberlappt den Start
+ case POS_OVERLAP_BEFORE: // Box ueberlappt den Start
if( TBLFIX_CHGPROP == rParam.nMode )
bCorrRel = rParam.bLeft;
- else if( rParam.bLeft ) // TBLFIX_CHGABS
+ else if( rParam.bLeft ) // TBLFIX_CHGABS
{
nLowerDiff = nLowerDiff - nDelWidth;
bCorrLowers = TRUE;
@@ -3381,10 +3381,10 @@ BOOL lcl_DelSelBox( SwTableLine* pTabLine, CR_SetBoxWidth& rParam,
}
break;
- case POS_OVERLAP_BEHIND: // Box ueberlappt das Ende
+ case POS_OVERLAP_BEHIND: // Box ueberlappt das Ende
if( TBLFIX_CHGPROP == rParam.nMode )
bCorrRel = !rParam.bLeft;
- else if( !rParam.bLeft ) // TBLFIX_CHGABS
+ else if( !rParam.bLeft ) // TBLFIX_CHGABS
{
nLowerDiff = nLowerDiff - nDelWidth;
bCorrLowers = TRUE;
@@ -3543,13 +3543,13 @@ _FndBox* lcl_SaveInsDelData( CR_SetBoxWidth& rParam, SwUndo** ppUndo,
BOOL SwTable::SetColWidth( SwTableBox& rAktBox, USHORT eType,
SwTwips nAbsDiff, SwTwips nRelDiff, SwUndo** ppUndo )
{
- SetHTMLTableLayout( 0 ); // MIB 9.7.97: HTML-Layout loeschen
+ SetHTMLTableLayout( 0 ); // MIB 9.7.97: HTML-Layout loeschen
const SwFmtFrmSize& rSz = GetFrmFmt()->GetFrmSize();
const SvxLRSpaceItem& rLR = GetFrmFmt()->GetLRSpace();
- _FndBox* pFndBox = 0; // fuers Einfuegen/Loeschen
- SwTableSortBoxes aTmpLst( 0, 5 ); // fuers Undo
+ _FndBox* pFndBox = 0; // fuers Einfuegen/Loeschen
+ SwTableSortBoxes aTmpLst( 0, 5 ); // fuers Undo
BOOL bBigger,
bRet = FALSE,
bLeft = nsTblChgWidthHeightType::WH_COL_LEFT == ( eType & 0xff ) ||
@@ -4078,14 +4078,14 @@ void SetLineHeight( SwTableLine& rLine, SwTwips nOldHeight, SwTwips nNewHeight,
SwFrmFmt* pFmt = rLine.ClaimFrmFmt();
SwTwips nMyNewH, nMyOldH = pLineFrm->Frm().Height();
- if( !nOldHeight ) // die BaseLine und absolut
+ if( !nOldHeight ) // die BaseLine und absolut
nMyNewH = nMyOldH + nNewHeight;
else
{
// moeglichst genau rechnen
Fraction aTmp( nMyOldH );
aTmp *= Fraction( nNewHeight, nOldHeight );
- aTmp += Fraction( 1, 2 ); // ggfs. aufrunden
+ aTmp += Fraction( 1, 2 ); // ggfs. aufrunden
nMyNewH = aTmp;
}
@@ -4284,8 +4284,8 @@ BOOL SwTable::SetRowHeight( SwTableBox& rAktBox, USHORT eType,
while( pBaseLine->GetUpper() )
pBaseLine = pBaseLine->GetUpper()->GetUpper();
- _FndBox* pFndBox = 0; // fuers Einfuegen/Loeschen
- SwTableSortBoxes aTmpLst( 0, 5 ); // fuers Undo
+ _FndBox* pFndBox = 0; // fuers Einfuegen/Loeschen
+ SwTableSortBoxes aTmpLst( 0, 5 ); // fuers Undo
BOOL bBigger,
bRet = FALSE,
bTop = nsTblChgWidthHeightType::WH_ROW_TOP == ( eType & 0xff ) ||
@@ -4312,7 +4312,7 @@ BOOL SwTable::SetRowHeight( SwTableBox& rAktBox, USHORT eType,
case nsTblChgWidthHeightType::WH_CELL_TOP:
case nsTblChgWidthHeightType::WH_CELL_BOTTOM:
if( pLine == pBaseLine )
- break; // dann geht es nicht!
+ break; // dann geht es nicht!
// ist eine verschachtelte Line (Box!)
pLines = &pLine->GetUpper()->GetTabLines();
@@ -4323,7 +4323,7 @@ BOOL SwTable::SetRowHeight( SwTableBox& rAktBox, USHORT eType,
case nsTblChgWidthHeightType::WH_ROW_TOP:
case nsTblChgWidthHeightType::WH_ROW_BOTTOM:
{
- if( bInsDel && !bBigger ) // um wieviel wird es Hoeher?
+ if( bInsDel && !bBigger ) // um wieviel wird es Hoeher?
{
nAbsDiff = GetRowFrm( *pBaseLine )->Frm().Height();
}
@@ -4603,7 +4603,7 @@ void SwShareBoxFmts::AddFormat( const SwFrmFmt& rOld, const SwFrmFmt& rNew )
// wenn das Format nicht geshared ist, braucht es auch nicht in die
// Liste aufgenommen werden. Denn es gibt keinen 2. der es sucht.
//leider werden auch die CellFrms gefunden
-// if( !rOld.IsLastDepend() )
+// if( !rOld.IsLastDepend() )
{
USHORT nPos;
SwShareBoxFmt* pEntry;
diff --git a/sw/source/core/doc/visiturl.cxx b/sw/source/core/doc/visiturl.cxx
index 6de29cd3d866..387f6568a21d 100644
--- a/sw/source/core/doc/visiturl.cxx
+++ b/sw/source/core/doc/visiturl.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