summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2012-10-16 18:29:11 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2012-10-16 18:33:24 +0900
commitb1167e125076c8d088119585672105fd0bcbd6ee (patch)
tree84322e510a9b4fdbe96adbb69a73af6cab8717b5 /sw
parent20e7a9bda9ae9eae2af47402903e17f95ae3510a (diff)
sal_Bool to bool
Change-Id: I89050a1aa899b1a6cd49800f805af9611fd0a9a7
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/acmplwrd.hxx2
-rw-r--r--sw/inc/bparr.hxx2
-rw-r--r--sw/inc/doc.hxx2
-rw-r--r--sw/inc/ndarr.hxx2
-rw-r--r--sw/inc/swmodule.hxx4
-rw-r--r--sw/qa/core/Test-BigPtrArray.cxx2
-rw-r--r--sw/source/core/bastyp/SwSmartTagMgr.cxx4
-rw-r--r--sw/source/core/doc/acmplwrd.cxx2
-rw-r--r--sw/source/core/doc/doc.cxx14
-rw-r--r--sw/source/core/doc/docedt.cxx6
-rw-r--r--sw/source/core/doc/docfmt.cxx12
-rw-r--r--sw/source/core/docnode/nodes.cxx6
-rw-r--r--sw/source/core/inc/rootfrm.hxx2
-rw-r--r--sw/source/core/layout/newfrm.cxx2
-rw-r--r--sw/source/ui/app/docsh2.cxx4
-rw-r--r--sw/source/ui/app/swmodul1.cxx8
-rw-r--r--sw/source/ui/docvw/edtwin.cxx8
-rw-r--r--sw/source/ui/inc/edtwin.hxx2
-rw-r--r--sw/source/ui/uiview/view0.cxx2
-rw-r--r--sw/source/ui/uiview/view2.cxx2
-rw-r--r--sw/source/ui/uno/dlelstnr.cxx14
21 files changed, 50 insertions, 52 deletions
diff --git a/sw/inc/acmplwrd.hxx b/sw/inc/acmplwrd.hxx
index 09586c8fddc2..b26721330d39 100644
--- a/sw/inc/acmplwrd.hxx
+++ b/sw/inc/acmplwrd.hxx
@@ -91,7 +91,7 @@ public:
// Returns all words matching a given prefix aMatch. If bIgnoreCurrentPos is set, the current
// position within the tree is ignored and replaced by aMatch.
- bool GetWordsMatching(String aMatch, std::vector<String>& aWords, sal_Bool bIgnoreCurrentPos) const;
+ bool GetWordsMatching(String aMatch, std::vector<String>& aWords, bool bIgnoreCurrentPos) const;
};
diff --git a/sw/inc/bparr.hxx b/sw/inc/bparr.hxx
index e5035a805547..2a644d385988 100644
--- a/sw/inc/bparr.hxx
+++ b/sw/inc/bparr.hxx
@@ -54,7 +54,7 @@ protected:
typedef BigPtrEntry* ElementPtr;
-typedef sal_Bool (*FnForEach)( const ElementPtr&, void* pArgs );
+typedef bool (*FnForEach)( const ElementPtr&, void* pArgs );
// 1000 entries per Block = a bit less then 4K
#define MAXENTRY 1000
diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx
index 76a7ef4767dd..9649c7ea39c1 100644
--- a/sw/inc/doc.hxx
+++ b/sw/inc/doc.hxx
@@ -1795,7 +1795,7 @@ public:
sal_Bool DeleteSelection( SwDrawView& );
/// Invalidates OnlineSpell-WrongLists.
- void SpellItAgainSam( sal_Bool bInvalid, sal_Bool bOnlyWrong, sal_Bool bSmartTags );
+ void SpellItAgainSam( bool bInvalid, bool bOnlyWrong, bool bSmartTags );
void InvalidateAutoCompleteFlag();
void SetCalcFieldValueHdl(Outliner* pOutliner);
diff --git a/sw/inc/ndarr.hxx b/sw/inc/ndarr.hxx
index 2f393af73bd0..a7401a02badc 100644
--- a/sw/inc/ndarr.hxx
+++ b/sw/inc/ndarr.hxx
@@ -79,7 +79,7 @@ struct SwPosition;
// --------------------
typedef SwNode * SwNodePtr;
-typedef sal_Bool (*FnForEach_SwNodes)( const SwNodePtr&, void* pArgs );
+typedef bool (*FnForEach_SwNodes)( const SwNodePtr&, void* pArgs );
typedef struct _xmlTextWriter *xmlTextWriterPtr;
struct CompareSwOutlineNodes
diff --git a/sw/inc/swmodule.hxx b/sw/inc/swmodule.hxx
index 64584f5651f3..e11ac4759b4d 100644
--- a/sw/inc/swmodule.hxx
+++ b/sw/inc/swmodule.hxx
@@ -232,8 +232,8 @@ public:
void RemoveAttrPool();
// Invalidates online spell-wrong-lists if necessary.
- void CheckSpellChanges( sal_Bool bOnlineSpelling,
- sal_Bool bIsSpellWrongAgain, sal_Bool bIsSpellAllAgain, sal_Bool bSmartTags );
+ void CheckSpellChanges( bool bOnlineSpelling,
+ bool bIsSpellWrongAgain, bool bIsSpellAllAgain, bool bSmartTags );
inline ::com::sun::star::uno::Reference<
::com::sun::star::linguistic2::XLinguServiceEventListener >
diff --git a/sw/qa/core/Test-BigPtrArray.cxx b/sw/qa/core/Test-BigPtrArray.cxx
index 117c79a96623..d295238d4172 100644
--- a/sw/qa/core/Test-BigPtrArray.cxx
+++ b/sw/qa/core/Test-BigPtrArray.cxx
@@ -78,7 +78,7 @@ namespace /* private */
sal_uLong count_;
};
- sal_Bool AddToCount(const ElementPtr& rElem, void* pArgs)
+ bool AddToCount(const ElementPtr& rElem, void* pArgs)
{
BigPtrEntryMock* const pbem = static_cast<BigPtrEntryMock* const>(rElem);
pbem->setCount(pbem->getCount() + *((sal_uLong*)pArgs));
diff --git a/sw/source/core/bastyp/SwSmartTagMgr.cxx b/sw/source/core/bastyp/SwSmartTagMgr.cxx
index b2caf307a1cb..c35b6464ba9f 100644
--- a/sw/source/core/bastyp/SwSmartTagMgr.cxx
+++ b/sw/source/core/bastyp/SwSmartTagMgr.cxx
@@ -62,7 +62,7 @@ void SwSmartTagMgr::modified( const lang::EventObject& rEO ) throw( RuntimeExcep
SolarMutexGuard aGuard;
// Installed recognizers have changed. We remove all existing smart tags:
- SW_MOD()->CheckSpellChanges( sal_False, sal_True, sal_True, sal_True );
+ SW_MOD()->CheckSpellChanges( false, true, true, true );
SmartTagMgr::modified( rEO );
}
@@ -72,7 +72,7 @@ void SwSmartTagMgr::changesOccurred( const util::ChangesEvent& rEvent ) throw( R
SolarMutexGuard aGuard;
// Configuration has changed. We remove all existing smart tags:
- SW_MOD()->CheckSpellChanges( sal_False, sal_True, sal_True, sal_True );
+ SW_MOD()->CheckSpellChanges( false, true, true, true );
SmartTagMgr::changesOccurred( rEvent );
}
diff --git a/sw/source/core/doc/acmplwrd.cxx b/sw/source/core/doc/acmplwrd.cxx
index 5b86147a61f0..80bf708cc6a4 100644
--- a/sw/source/core/doc/acmplwrd.cxx
+++ b/sw/source/core/doc/acmplwrd.cxx
@@ -381,7 +381,7 @@ void SwAutoCompleteWord::goBack()
// Returns all words matching a given prefix aMatch. If bIgnoreCurrentPos is set, the current
// position within the tree is ignored and replaced by aMatch.
-bool SwAutoCompleteWord::GetWordsMatching(String aMatch, std::vector<String>& aWords, sal_Bool bIgnoreCurrentPos) const
+bool SwAutoCompleteWord::GetWordsMatching(String aMatch, std::vector<String>& aWords, bool bIgnoreCurrentPos) const
{
OUString aStringRoot = OUString( aMatch );
diff --git a/sw/source/core/doc/doc.cxx b/sw/source/core/doc/doc.cxx
index fc7b9bf9920d..3216c17533f8 100644
--- a/sw/source/core/doc/doc.cxx
+++ b/sw/source/core/doc/doc.cxx
@@ -1979,7 +1979,7 @@ void SwDoc::ReRead( SwPaM& rPam, const String& rGrfName,
}
}
-static sal_Bool lcl_SpellAndGrammarAgain( const SwNodePtr& rpNd, void* pArgs )
+static bool lcl_SpellAndGrammarAgain( const SwNodePtr& rpNd, void* pArgs )
{
SwTxtNode *pTxtNode = (SwTxtNode*)rpNd->GetTxtNode();
sal_Bool bOnlyWrong = *(sal_Bool*)pArgs;
@@ -2004,10 +2004,10 @@ static sal_Bool lcl_SpellAndGrammarAgain( const SwNodePtr& rpNd, void* pArgs )
pTxtNode->GetGrammarCheck()->SetInvalid( 0, STRING_LEN );
}
}
- return sal_True;
+ return true;
}
-static sal_Bool lcl_CheckSmartTagsAgain( const SwNodePtr& rpNd, void* )
+static bool lcl_CheckSmartTagsAgain( const SwNodePtr& rpNd, void* )
{
SwTxtNode *pTxtNode = (SwTxtNode*)rpNd->GetTxtNode();
// sal_Bool bOnlyWrong = *(sal_Bool*)pArgs;
@@ -2022,18 +2022,16 @@ static sal_Bool lcl_CheckSmartTagsAgain( const SwNodePtr& rpNd, void* )
pTxtNode->SetSmartTags( NULL );
}
}
- return sal_True;
+ return true;
}
/*************************************************************************
- * SwDoc::SpellItAgainSam( sal_Bool bInvalid, sal_Bool bOnlyWrong )
- *
* Re-triggers spelling in the idle handler.
- * If bInvalid is passed with sal_True, the WrongLists in all nodes are invalidated
+ * If bInvalid is passed with true, the WrongLists in all nodes are invalidated
* and the SpellInvalid flag is set on all pages.
* bOnlyWrong controls whether only the areas with wrong words are checked or the whole area.
************************************************************************/
-void SwDoc::SpellItAgainSam( sal_Bool bInvalid, sal_Bool bOnlyWrong, sal_Bool bSmartTags )
+void SwDoc::SpellItAgainSam( bool bInvalid, bool bOnlyWrong, bool bSmartTags )
{
std::set<SwRootFrm*> aAllLayouts = GetAllLayouts();//swmod 080307
OSL_ENSURE( GetCurrentLayout(), "SpellAgain: Where's my RootFrm?" );
diff --git a/sw/source/core/doc/docedt.cxx b/sw/source/core/doc/docedt.cxx
index 89398e439e19..851eeeafc542 100644
--- a/sw/source/core/doc/docedt.cxx
+++ b/sw/source/core/doc/docedt.cxx
@@ -2100,7 +2100,7 @@ void SwHyphArgs::SetPam( SwPaM *pPam ) const
}
// Returns sal_True if we can proceed.
-static sal_Bool lcl_HyphenateNode( const SwNodePtr& rpNd, void* pArgs )
+static bool lcl_HyphenateNode( const SwNodePtr& rpNd, void* pArgs )
{
// Hyphenate returns true if there is a hyphenation point and sets pPam
SwTxtNode *pNode = rpNd->GetTxtNode();
@@ -2129,12 +2129,12 @@ static sal_Bool lcl_HyphenateNode( const SwNodePtr& rpNd, void* pArgs )
if( pNode->Hyphenate( *pHyphArgs ) )
{
pHyphArgs->SetNode( rpNd );
- return sal_False;
+ return false;
}
}
}
pHyphArgs->NextNode();
- return sal_True;
+ return true;
}
uno::Reference< XHyphenatedWord > SwDoc::Hyphenate(
diff --git a/sw/source/core/doc/docfmt.cxx b/sw/source/core/doc/docfmt.cxx
index 1ace41932064..dfaaffc56c1a 100644
--- a/sw/source/core/doc/docfmt.cxx
+++ b/sw/source/core/doc/docfmt.cxx
@@ -143,7 +143,7 @@ struct ParaRstFmt
* Is need for selections at the beginning/end and with no SSelection.
*/
-static sal_Bool lcl_RstTxtAttr( const SwNodePtr& rpNd, void* pArgs )
+static bool lcl_RstTxtAttr( const SwNodePtr& rpNd, void* pArgs )
{
ParaRstFmt* pPara = (ParaRstFmt*)pArgs;
SwTxtNode * pTxtNode = (SwTxtNode*)rpNd->GetTxtNode();
@@ -173,10 +173,10 @@ static sal_Bool lcl_RstTxtAttr( const SwNodePtr& rpNd, void* pArgs )
pTxtNode->RstAttr( aSt, nEnd - aSt.GetIndex(), pPara->nWhich,
pPara->pDelSet, pPara->bInclRefToxMark );
}
- return sal_True;
+ return true;
}
-static sal_Bool lcl_RstAttr( const SwNodePtr& rpNd, void* pArgs )
+static bool lcl_RstAttr( const SwNodePtr& rpNd, void* pArgs )
{
ParaRstFmt* pPara = (ParaRstFmt*)pArgs;
SwCntntNode* pNode = (SwCntntNode*)rpNd->GetCntntNode();
@@ -307,7 +307,7 @@ static sal_Bool lcl_RstAttr( const SwNodePtr& rpNd, void* pArgs )
pNode->UnlockModify();
}
}
- return sal_True;
+ return true;
}
void SwDoc::RstTxtAttrs(const SwPaM &rRg, sal_Bool bInclRefToxMark )
@@ -1611,7 +1611,7 @@ void SwDoc::DelTxtFmtColl( SwTxtFmtColl *pColl, sal_Bool bBroadcast )
DelTxtFmtColl( nFmt, bBroadcast );
}
-static sal_Bool lcl_SetTxtFmtColl( const SwNodePtr& rpNode, void* pArgs )
+static bool lcl_SetTxtFmtColl( const SwNodePtr& rpNode, void* pArgs )
{
// ParaSetFmtColl * pPara = (ParaSetFmtColl*)pArgs;
SwCntntNode* pCNd = (SwCntntNode*)rpNode->GetTxtNode();
@@ -1681,7 +1681,7 @@ static sal_Bool lcl_SetTxtFmtColl( const SwNodePtr& rpNode, void* pArgs )
pPara->nWhich++;
}
- return sal_True;
+ return true;
}
sal_Bool SwDoc::SetTxtFmtColl( const SwPaM &rRg,
diff --git a/sw/source/core/docnode/nodes.cxx b/sw/source/core/docnode/nodes.cxx
index f65f02a508f8..ba33af77396d 100644
--- a/sw/source/core/docnode/nodes.cxx
+++ b/sw/source/core/docnode/nodes.cxx
@@ -1567,7 +1567,7 @@ struct HighLevel
};
-sal_Bool _HighestLevel( const SwNodePtr& rpNode, void * pPara )
+static bool lcl_HighestLevel( const SwNodePtr& rpNode, void * pPara )
{
HighLevel * pHL = (HighLevel*)pPara;
if( rpNode->GetStartNode() )
@@ -1576,14 +1576,14 @@ sal_Bool _HighestLevel( const SwNodePtr& rpNode, void * pPara )
pHL->nLevel--;
if( pHL->nTop > pHL->nLevel )
pHL->nTop = pHL->nLevel;
- return sal_True;
+ return true;
}
sal_uInt16 HighestLevel( SwNodes & rNodes, const SwNodeRange & rRange )
{
HighLevel aPara( rNodes.GetSectionLevel( rRange.aStart ));
- rNodes.ForEach( rRange.aStart, rRange.aEnd, _HighestLevel, &aPara );
+ rNodes.ForEach( rRange.aStart, rRange.aEnd, lcl_HighestLevel, &aPara );
return aPara.nTop;
}
diff --git a/sw/source/core/inc/rootfrm.hxx b/sw/source/core/inc/rootfrm.hxx
index bd7242195425..fafdb0c762ff 100644
--- a/sw/source/core/inc/rootfrm.hxx
+++ b/sw/source/core/inc/rootfrm.hxx
@@ -163,7 +163,7 @@ public:
void AllInvalidateAutoCompleteWords() const;//swmod 080305
void AllAddPaintRect() const;
void AllRemoveFtns() ;//swmod 080305
- void AllInvalidateSmartTagsOrSpelling(sal_Bool bSmartTags) const;//swmod 080307
+ void AllInvalidateSmartTagsOrSpelling(bool bSmartTags) const;//swmod 080307
//Virtuelles Device ausgeben (z.B. wenn Animationen ins Spiel kommen)
static sal_Bool FlushVout();
//Clipping sparen, wenn im Vout eh genau das Cliprechteck ausgegeben wird
diff --git a/sw/source/core/layout/newfrm.cxx b/sw/source/core/layout/newfrm.cxx
index 14f8ecff180a..307c724c4f72 100644
--- a/sw/source/core/layout/newfrm.cxx
+++ b/sw/source/core/layout/newfrm.cxx
@@ -679,7 +679,7 @@ void SwRootFrm::AllRemoveFtns()
{
RemoveFtns();
}
-void SwRootFrm::AllInvalidateSmartTagsOrSpelling(sal_Bool bSmartTags) const
+void SwRootFrm::AllInvalidateSmartTagsOrSpelling(bool bSmartTags) const
{
SwPageFrm *pPage = (SwPageFrm*)this->Lower();
while ( pPage )
diff --git a/sw/source/ui/app/docsh2.cxx b/sw/source/ui/app/docsh2.cxx
index 2422085d4154..c0ec5984e71d 100644
--- a/sw/source/ui/app/docsh2.cxx
+++ b/sw/source/ui/app/docsh2.cxx
@@ -1124,8 +1124,8 @@ void SwDocShell::Execute(SfxRequest& rReq)
}
break;
case SID_SPELLCHECKER_CHANGED:
- //! sal_False, sal_True, sal_True is on the save side but a probably overdone
- SW_MOD()->CheckSpellChanges(sal_False, sal_True, sal_True, sal_False );
+ //! false, true, true is on the save side but a probably overdone
+ SW_MOD()->CheckSpellChanges(false, true, true, false );
break;
case SID_MAIL_PREPAREEXPORT:
diff --git a/sw/source/ui/app/swmodul1.cxx b/sw/source/ui/app/swmodul1.cxx
index eb98808b6aa7..0e5027a7c0b7 100644
--- a/sw/source/ui/app/swmodul1.cxx
+++ b/sw/source/ui/app/swmodul1.cxx
@@ -613,11 +613,11 @@ void SwModule::ApplyLinkMode(sal_Int32 nNewLinkMode)
pUsrPref->SetUpdateLinkMode(nNewLinkMode);
}
-void SwModule::CheckSpellChanges( sal_Bool bOnlineSpelling,
- sal_Bool bIsSpellWrongAgain, sal_Bool bIsSpellAllAgain, sal_Bool bSmartTags )
+void SwModule::CheckSpellChanges( bool bOnlineSpelling,
+ bool bIsSpellWrongAgain, bool bIsSpellAllAgain, bool bSmartTags )
{
- sal_Bool bOnlyWrong = bIsSpellWrongAgain && !bIsSpellAllAgain;
- sal_Bool bInvalid = bOnlyWrong || bIsSpellAllAgain;
+ bool bOnlyWrong = bIsSpellWrongAgain && !bIsSpellAllAgain;
+ bool bInvalid = bOnlyWrong || bIsSpellAllAgain;
if( bOnlineSpelling || bInvalid )
{
TypeId aType = TYPE(SwDocShell);
diff --git a/sw/source/ui/docvw/edtwin.cxx b/sw/source/ui/docvw/edtwin.cxx
index 77aadcf2d82d..3fce582be95f 100644
--- a/sw/source/ui/docvw/edtwin.cxx
+++ b/sw/source/ui/docvw/edtwin.cxx
@@ -316,7 +316,7 @@ struct QuickHelpData
}
// Fills internal structures with hopefully helpful information.
- void FillStrArr( SwWrtShell& rSh, const String& rWord, sal_Bool bIgnoreCurrentPos );
+ void FillStrArr( SwWrtShell& rSh, const String& rWord, bool bIgnoreCurrentPos );
void SortAndFilter();
};
@@ -5179,7 +5179,7 @@ void SwEditWin::Command( const CommandEvent& rCEvt )
rSh.GetPrevAutoCorrWord( *pACorr, sWord ) )
{
// ... request for auto completion help to be shown.
- ShowAutoTextCorrectQuickHelp(sWord, &rACfg, pACorr, sal_True);
+ ShowAutoTextCorrectQuickHelp(sWord, &rACfg, pACorr, true);
}
}
}
@@ -5700,7 +5700,7 @@ void QuickHelpData::Stop( SwWrtShell& rSh )
ClearCntnt();
}
-void QuickHelpData::FillStrArr( SwWrtShell& rSh, const String& rWord, sal_Bool bIgnoreCurrentPos )
+void QuickHelpData::FillStrArr( SwWrtShell& rSh, const String& rWord, bool bIgnoreCurrentPos )
{
enum Capitalization { CASE_LOWER, CASE_UPPER, CASE_SENTENCE, CASE_OTHER };
@@ -5827,7 +5827,7 @@ void QuickHelpData::SortAndFilter()
void SwEditWin::ShowAutoTextCorrectQuickHelp(
const String& rWord, SvxAutoCorrCfg* pACfg, SvxAutoCorrect* pACorr,
- sal_Bool bFromIME )
+ bool bFromIME )
{
SwWrtShell& rSh = rView.GetWrtShell();
pQuickHlpData->ClearCntnt();
diff --git a/sw/source/ui/inc/edtwin.hxx b/sw/source/ui/inc/edtwin.hxx
index 01f100aa9b78..2ff4e436638e 100644
--- a/sw/source/ui/inc/edtwin.hxx
+++ b/sw/source/ui/inc/edtwin.hxx
@@ -223,7 +223,7 @@ protected:
virtual Selection GetSurroundingTextSelection() const;
void ShowAutoTextCorrectQuickHelp( const String& rWord, SvxAutoCorrCfg* pACfg,
- SvxAutoCorrect* pACorr, sal_Bool bFromIME = sal_False );
+ SvxAutoCorrect* pACorr, bool bFromIME = false );
/// Returns true if in header/footer area, or in the header/footer control.
bool IsInHeaderFooter( const Point &rDocPt, FrameControlType &rControl ) const;
diff --git a/sw/source/ui/uiview/view0.cxx b/sw/source/ui/uiview/view0.cxx
index cde54d516ef4..fd2e384f09e6 100644
--- a/sw/source/ui/uiview/view0.cxx
+++ b/sw/source/ui/uiview/view0.cxx
@@ -561,7 +561,7 @@ void SwView::ExecViewOptions(SfxRequest &rReq)
//Die UsrPref muessen als Modified gekennzeichnet werden.
//call for initialization
pModule->GetUsrPref(bWebView);
- pModule->CheckSpellChanges( pOpt->IsOnlineSpell(), sal_False, sal_False, sal_False );
+ pModule->CheckSpellChanges( pOpt->IsOnlineSpell(), false, false, false );
}
//OS: Modified wieder zuruecksetzen, weil Ansicht/Felder
// das Doc modified setzt.
diff --git a/sw/source/ui/uiview/view2.cxx b/sw/source/ui/uiview/view2.cxx
index 950a03db3f63..8f47d9bcae8a 100644
--- a/sw/source/ui/uiview/view2.cxx
+++ b/sw/source/ui/uiview/view2.cxx
@@ -1054,7 +1054,7 @@ void SwView::Execute(SfxRequest &rReq)
xGCIterator->resetIgnoreRules();
}
// reset ignore lists
- pDoc->SpellItAgainSam( sal_True, sal_False, sal_False );
+ pDoc->SpellItAgainSam( true, false, false );
// clear ignore dictionary
uno::Reference< linguistic2::XDictionary > xDictionary( SvxGetIgnoreAllList(), uno::UNO_QUERY );
if( xDictionary.is() )
diff --git a/sw/source/ui/uno/dlelstnr.cxx b/sw/source/ui/uno/dlelstnr.cxx
index e790d96847b1..5dd5eb33ca23 100644
--- a/sw/source/ui/uno/dlelstnr.cxx
+++ b/sw/source/ui/uno/dlelstnr.cxx
@@ -105,16 +105,16 @@ void SwLinguServiceEventListener::processDictionaryListEvent(
DictionaryListEventFlags::DEL_NEG_ENTRY |
DictionaryListEventFlags::ACTIVATE_POS_DIC |
DictionaryListEventFlags::DEACTIVATE_NEG_DIC;
- sal_Bool bIsSpellWrong = 0 != (nEvt & nSpellWrongFlags);
+ bool bIsSpellWrong = 0 != (nEvt & nSpellWrongFlags);
sal_Int16 nSpellAllFlags =
DictionaryListEventFlags::ADD_NEG_ENTRY |
DictionaryListEventFlags::DEL_POS_ENTRY |
DictionaryListEventFlags::ACTIVATE_NEG_DIC |
DictionaryListEventFlags::DEACTIVATE_POS_DIC;
- sal_Bool bIsSpellAll = 0 != (nEvt & nSpellAllFlags);
+ bool bIsSpellAll = 0 != (nEvt & nSpellAllFlags);
if (bIsSpellWrong || bIsSpellAll)
- SW_MOD()->CheckSpellChanges( sal_False, bIsSpellWrong, bIsSpellAll, sal_False );
+ SW_MOD()->CheckSpellChanges( false, bIsSpellWrong, bIsSpellAll, false );
}
void SAL_CALL SwLinguServiceEventListener::processLinguServiceEvent(
@@ -123,13 +123,13 @@ void SAL_CALL SwLinguServiceEventListener::processLinguServiceEvent(
{
SolarMutexGuard aGuard;
- sal_Bool bIsSpellWrong = 0 != (rLngSvcEvent.nEvent & SPELL_WRONG_WORDS_AGAIN);
- sal_Bool bIsSpellAll = 0 != (rLngSvcEvent.nEvent & SPELL_CORRECT_WORDS_AGAIN);
+ bool bIsSpellWrong = 0 != (rLngSvcEvent.nEvent & SPELL_WRONG_WORDS_AGAIN);
+ bool bIsSpellAll = 0 != (rLngSvcEvent.nEvent & SPELL_CORRECT_WORDS_AGAIN);
if (0 != (rLngSvcEvent.nEvent & PROOFREAD_AGAIN))
- bIsSpellWrong = bIsSpellAll = sal_True; // have all spelling and grammar checked...
+ bIsSpellWrong = bIsSpellAll = true; // have all spelling and grammar checked...
if (bIsSpellWrong || bIsSpellAll)
{
- SW_MOD()->CheckSpellChanges( sal_False, bIsSpellWrong, bIsSpellAll, sal_False );
+ SW_MOD()->CheckSpellChanges( false, bIsSpellWrong, bIsSpellAll, false );
}
if (rLngSvcEvent.nEvent & HYPHENATE_AGAIN)
{