summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2014-11-16 14:49:16 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2014-11-16 16:54:45 +0100
commit1e0c847a6049e923e40954fcc4339e6989d80a69 (patch)
tree9d5690c7246c0e0c63cf58cb1114c6740e2aacfc
parent13b72a61cb3cb619e047fb47000a332f5d28190b (diff)
sal_True/sal_False to true/false in calls to getWordBoundary
Change-Id: I6116b4c2b8e03e819a430cbdcb7874af6508fb62
-rw-r--r--sw/source/core/crsr/swcrsr.cxx6
-rw-r--r--sw/source/core/doc/DocumentContentOperationsManager.cxx4
-rw-r--r--sw/source/core/doc/docfmt.cxx2
-rw-r--r--sw/source/core/doc/docruby.cxx4
-rw-r--r--sw/source/core/txtnode/txtedt.cxx10
-rw-r--r--sw/source/uibase/lingu/hhcwrp.cxx2
6 files changed, 14 insertions, 14 deletions
diff --git a/sw/source/core/crsr/swcrsr.cxx b/sw/source/core/crsr/swcrsr.cxx
index e5c9073bb86f..c9a8b5db7853 100644
--- a/sw/source/core/crsr/swcrsr.cxx
+++ b/sw/source/core/crsr/swcrsr.cxx
@@ -1200,7 +1200,7 @@ bool SwCursor::IsInWordWT( sal_Int16 nWordType ) const
pTxtNd->GetTxt(), nPtPos,
g_pBreakIt->GetLocale( pTxtNd->GetLang( nPtPos ) ),
nWordType,
- sal_True );
+ true );
bRet = aBoundary.startPos != aBoundary.endPos &&
aBoundary.startPos <= nPtPos &&
@@ -1242,7 +1242,7 @@ bool SwCursor::GoStartWordWT( sal_Int16 nWordType )
pTxtNd->GetTxt(), nPtPos,
g_pBreakIt->GetLocale( pTxtNd->GetLang( nPtPos ) ),
nWordType,
- sal_False ).startPos;
+ false ).startPos;
if (nPtPos < pTxtNd->GetTxt().getLength() && nPtPos >= 0)
{
@@ -1266,7 +1266,7 @@ bool SwCursor::GoEndWordWT( sal_Int16 nWordType )
pTxtNd->GetTxt(), nPtPos,
g_pBreakIt->GetLocale( pTxtNd->GetLang( nPtPos ) ),
nWordType,
- sal_True ).endPos;
+ true ).endPos;
if (nPtPos <= pTxtNd->GetTxt().getLength() && nPtPos >= 0 &&
GetPoint()->nContent.GetIndex() != nPtPos )
diff --git a/sw/source/core/doc/DocumentContentOperationsManager.cxx b/sw/source/core/doc/DocumentContentOperationsManager.cxx
index 7e99c27f2648..a39b961f0034 100644
--- a/sw/source/core/doc/DocumentContentOperationsManager.cxx
+++ b/sw/source/core/doc/DocumentContentOperationsManager.cxx
@@ -1315,7 +1315,7 @@ namespace //local functions originally from docfmt.cxx
pTxtNd->GetTxt(), nPtPos,
g_pBreakIt->GetLocale( pTxtNd->GetLang( nPtPos ) ),
WordType::ANY_WORD /*ANYWORD_IGNOREWHITESPACES*/,
- sal_True );
+ true );
if( aBndry.startPos < nPtPos && nPtPos < aBndry.endPos )
{
@@ -2513,7 +2513,7 @@ void DocumentContentOperationsManager::TransliterateText(
pTNd->GetTxt(), nSttCnt,
g_pBreakIt->GetLocale( pTNd->GetLang( nSttCnt ) ),
WordType::ANY_WORD /*ANYWORD_IGNOREWHITESPACES*/,
- sal_True );
+ true );
if( aBndry.startPos < nSttCnt && nSttCnt < aBndry.endPos )
{
diff --git a/sw/source/core/doc/docfmt.cxx b/sw/source/core/doc/docfmt.cxx
index db36809292c4..dbe716824001 100644
--- a/sw/source/core/doc/docfmt.cxx
+++ b/sw/source/core/doc/docfmt.cxx
@@ -267,7 +267,7 @@ void SwDoc::ResetAttrs( const SwPaM &rRg,
pTxtNd->GetTxt(), nPtPos,
g_pBreakIt->GetLocale( pTxtNd->GetLang( nPtPos ) ),
WordType::ANY_WORD /*ANYWORD_IGNOREWHITESPACES*/,
- sal_True );
+ true );
if( aBndry.startPos < nPtPos && nPtPos < aBndry.endPos )
{
diff --git a/sw/source/core/doc/docruby.cxx b/sw/source/core/doc/docruby.cxx
index 3ea510dea3e9..8e07ca24927d 100644
--- a/sw/source/core/doc/docruby.cxx
+++ b/sw/source/core/doc/docruby.cxx
@@ -236,7 +236,7 @@ bool SwDoc::_SelectNextRubyChars( SwPaM& rPam, SwRubyListEntry& rEntry, sal_uInt
rTxt, nStart,
g_pBreakIt->GetLocale( pTNd->GetLang( nStart )),
WordType::ANYWORD_IGNOREWHITESPACES,
- sal_True ).startPos;
+ true ).startPos;
if (nWordStt < nStart && nWordStt >= 0)
{
nStart = nWordStt;
@@ -306,7 +306,7 @@ bool SwDoc::_SelectNextRubyChars( SwPaM& rPam, SwRubyListEntry& rEntry, sal_uInt
rTxt, nStart,
g_pBreakIt->GetLocale( pTNd->GetLang( nStart )),
WordType::ANYWORD_IGNOREWHITESPACES,
- sal_True ).endPos;
+ true ).endPos;
if( 0 > nWordEnd || nWordEnd > nEnd || nWordEnd == nStart )
nWordEnd = nEnd;
}
diff --git a/sw/source/core/txtnode/txtedt.cxx b/sw/source/core/txtnode/txtedt.cxx
index a7ea3cf9f2d7..58164c668e17 100644
--- a/sw/source/core/txtnode/txtedt.cxx
+++ b/sw/source/core/txtnode/txtedt.cxx
@@ -681,7 +681,7 @@ OUString SwTxtNode::GetCurWord( sal_Int32 nPos ) const
(void)bEnd;
#endif
aBndry =
- rxBreak->getWordBoundary( m_Text, nPos, aLocale, nWordType, sal_True );
+ rxBreak->getWordBoundary( m_Text, nPos, aLocale, nWordType, true );
// if no word was found use previous word (if any)
if (aBndry.startPos == aBndry.endPos)
@@ -836,7 +836,7 @@ bool SwScanner::NextWord()
// get the word boundaries
aBound = g_pBreakIt->GetBreakIter()->getWordBoundary( aText, nBegin,
- g_pBreakIt->GetLocale( aCurrLang ), nWordType, sal_True );
+ g_pBreakIt->GetLocale( aCurrLang ), nWordType, true );
OSL_ENSURE( aBound.endPos >= aBound.startPos, "broken aBound result" );
// we don't want to include preceding text
@@ -1286,7 +1286,7 @@ SwRect SwTxtFrm::_AutoSpell( const SwCntntNode* pActNode, const SwViewOption& rV
Boundary aBound =
g_pBreakIt->GetBreakIter()->getWordBoundary( pNode->GetTxt(), nBegin,
g_pBreakIt->GetLocale( eActLang ),
- WordType::DICTIONARY_WORD, sal_True );
+ WordType::DICTIONARY_WORD, true );
nBegin = aBound.startPos;
}
@@ -1678,12 +1678,12 @@ void SwTxtNode::TransliterateText(
GetTxt(), nStt,
g_pBreakIt->GetLocale( GetLang( nStt ) ),
nWordType,
- sal_True /*prefer forward direction*/);
+ true /*prefer forward direction*/);
aEndBndry = g_pBreakIt->GetBreakIter()->getWordBoundary(
GetTxt(), nEnd,
g_pBreakIt->GetLocale( GetLang( nEnd ) ),
nWordType,
- sal_False /*prefer backward direction*/);
+ false /*prefer backward direction*/);
// prevent backtracking to the previous word if selection is at word boundary
if (aSttBndry.endPos <= nStt)
diff --git a/sw/source/uibase/lingu/hhcwrp.cxx b/sw/source/uibase/lingu/hhcwrp.cxx
index 917a778cdbb2..3061cb9b24c4 100644
--- a/sw/source/uibase/lingu/hhcwrp.cxx
+++ b/sw/source/uibase/lingu/hhcwrp.cxx
@@ -597,7 +597,7 @@ void SwHHCWrapper::Convert()
const sal_Int32 nPos = m_pConvArgs->pStartIdx->GetIndex();
Boundary aBoundary( g_pBreakIt->GetBreakIter()->
getWordBoundary( aText, nPos, g_pBreakIt->GetLocale( m_pConvArgs->nConvSrcLang ),
- WordType::DICTIONARY_WORD, sal_True ) );
+ WordType::DICTIONARY_WORD, true ) );
// valid result found?
if (aBoundary.startPos < aText.getLength() &&