summaryrefslogtreecommitdiff
path: root/sw/source/core/edit/edtox.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/edit/edtox.cxx')
-rw-r--r--sw/source/core/edit/edtox.cxx42
1 files changed, 21 insertions, 21 deletions
diff --git a/sw/source/core/edit/edtox.cxx b/sw/source/core/edit/edtox.cxx
index 8a7d9357c1f8..370b9d6719d1 100644
--- a/sw/source/core/edit/edtox.cxx
+++ b/sw/source/core/edit/edtox.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
@@ -56,7 +56,7 @@
#include <statstr.hrc>
#include <bookmrk.hxx>
#include <xmloff/odffields.hxx>
-
+
using namespace ::com::sun::star;
using namespace ::com::sun::star::i18n;
@@ -120,7 +120,7 @@ BOOL SwEditShell::IsTOXBaseReadonly(const SwTOXBase& rTOXBase) const
{
OSL_ENSURE( rTOXBase.ISA( SwTOXBaseSection ), "no TOXBaseSection!" );
const SwTOXBaseSection& rTOXSect = (const SwTOXBaseSection&)rTOXBase;
- return rTOXSect.IsProtect();
+ return rTOXSect.IsProtect();
}
/* -----------------18.10.99 15:53-------------------
@@ -140,14 +140,14 @@ void SwEditShell::SetTOXBaseReadonly(const SwTOXBase& rTOXBase, BOOL bReadonly)
/* -----------------02.09.99 07:47-------------------
--------------------------------------------------*/
-const SwTOXBase* SwEditShell::GetDefaultTOXBase( TOXTypes eTyp, BOOL bCreate )
+const SwTOXBase* SwEditShell::GetDefaultTOXBase( TOXTypes eTyp, BOOL bCreate )
{
return GetDoc()->GetDefaultTOXBase( eTyp, bCreate );
}
/* -----------------02.09.99 08:05-------------------
--------------------------------------------------*/
-void SwEditShell::SetDefaultTOXBase(const SwTOXBase& rBase)
+void SwEditShell::SetDefaultTOXBase(const SwTOXBase& rBase)
{
GetDoc()->SetDefaultTOXBase(rBase);
}
@@ -313,7 +313,7 @@ BOOL SwEditShell::IsUpdateTOX() const
/* -----------------26.08.99 13:49-------------------
--------------------------------------------------*/
-const String& SwEditShell::GetTOIAutoMarkURL() const
+const String& SwEditShell::GetTOIAutoMarkURL() const
{
return GetDoc()->GetTOIAutoMarkURL();
}
@@ -333,7 +333,7 @@ void SwEditShell::ApplyAutoMark()
BOOL bDoesUndo = DoesUndo();
DoUndo(FALSE);
//1. remove all automatic generated index entries if AutoMarkURL has a
- // length and the file exists
+ // length and the file exists
//2. load file
//3. select all occurrences of the searched words
//4. apply index entries
@@ -362,15 +362,15 @@ void SwEditShell::ApplyAutoMark()
//
// SearchOptions to be used in loop below
//
- //SearchAlgorithms eSrchType = SearchAlgorithms_ABSOLUTE;
- //OUString aSrchStr = rText;
- BOOL bCaseSensitive = TRUE;
- BOOL bWordOnly = FALSE;
- BOOL bSrchInSel = FALSE;
- BOOL bLEV_Relaxed = TRUE;
- INT32 nLEV_Other = 2; // -> changedChars;
- INT32 nLEV_Longer = 3; //! -> deletedChars;
- INT32 nLEV_Shorter = 1; //! -> insertedChars;
+ //SearchAlgorithms eSrchType = SearchAlgorithms_ABSOLUTE;
+ //OUString aSrchStr = rText;
+ BOOL bCaseSensitive = TRUE;
+ BOOL bWordOnly = FALSE;
+ BOOL bSrchInSel = FALSE;
+ BOOL bLEV_Relaxed = TRUE;
+ INT32 nLEV_Other = 2; // -> changedChars;
+ INT32 nLEV_Longer = 3; //! -> deletedChars;
+ INT32 nLEV_Shorter = 1; //! -> insertedChars;
INT32 nTransliterationFlags = 0;
//
INT32 nSrchFlags = 0;
@@ -413,14 +413,14 @@ void SwEditShell::ApplyAutoMark()
if( sToSelect.Len() )
{
String sAlternative = sLine.GetToken(0, ';', nTokenPos);
- String sPrimary = sLine.GetToken(0, ';', nTokenPos);
- String sSecondary = sLine.GetToken(0, ';', nTokenPos);
+ String sPrimary = sLine.GetToken(0, ';', nTokenPos);
+ String sSecondary = sLine.GetToken(0, ';', nTokenPos);
String sCase = sLine.GetToken(0, ';', nTokenPos);
- String sWordOnly = sLine.GetToken(0, ';', nTokenPos);
+ String sWordOnly = sLine.GetToken(0, ';', nTokenPos);
//3.
- bCaseSensitive = sCase.Len() && sCase != sZero;
- bWordOnly = sWordOnly.Len() && sWordOnly != sZero;
+ bCaseSensitive = sCase.Len() && sCase != sZero;
+ bWordOnly = sWordOnly.Len() && sWordOnly != sZero;
//
if (!bCaseSensitive)
{