diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2012-12-29 14:52:30 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2012-12-29 14:53:40 +0900 |
commit | ebfc9d5fed1f88b72aca718fc0092bf26b6dc8bd (patch) | |
tree | 209433910e2970129c568b3f8e9d166f8b99c449 /sw/source/filter/xml/xmlfmt.cxx | |
parent | 11ce98e1b9d2523bb64a49d3c2dc941b70be4ef6 (diff) |
sal_Bool to bool
Change-Id: I68cbf5f58eb5e8d1595d4c2a0e5656a154df3b0e
Diffstat (limited to 'sw/source/filter/xml/xmlfmt.cxx')
-rw-r--r-- | sw/source/filter/xml/xmlfmt.cxx | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/sw/source/filter/xml/xmlfmt.cxx b/sw/source/filter/xml/xmlfmt.cxx index dc53cb9e9eb9..819c64b09607 100644 --- a/sw/source/filter/xml/xmlfmt.cxx +++ b/sw/source/filter/xml/xmlfmt.cxx @@ -75,7 +75,7 @@ public: SwXMLConditionParser_Impl( const OUString& rInp ); - sal_Bool IsValid() const { return 0 != nCondition; } + bool IsValid() const { return 0 != nCondition; } sal_uInt32 GetCondition() const { return nCondition; } sal_uInt32 GetSubCondition() const { return nSubCondition; } @@ -136,14 +136,14 @@ SwXMLConditionParser_Impl::SwXMLConditionParser_Impl( const OUString& rInp ) : nLength( rInp.getLength() ) { OUString sFunc; - sal_Bool bHasSub = sal_False; + bool bHasSub = false; sal_uInt32 nSub = 0; sal_Bool bOK = SkipWS() && MatchName( sFunc ) && SkipWS() && MatchChar( '(' ) && SkipWS() && MatchChar( ')' ) && SkipWS(); if( bOK && MatchChar( '=' ) ) { bOK = SkipWS() && MatchNumber( nSub ) && SkipWS(); - bHasSub = sal_True; + bHasSub = true; } bOK &= nPos == nLength; @@ -210,7 +210,7 @@ public: TYPEINFO(); - sal_Bool IsValid() const { return 0 != nCondition; } + bool IsValid() const { return 0 != nCondition; } sal_uInt32 GetCondition() const { return nCondition; } sal_uInt32 GetSubCondition() const { return nSubCondition; } @@ -438,9 +438,9 @@ class SwXMLItemSetStyleContext_Impl : public SvXMLStyleContext OUString sDataStyleName; - sal_Bool bHasMasterPageName : 1; - sal_Bool bPageDescConnected : 1; - sal_Bool bDataStyleIsResolved; + bool bHasMasterPageName : 1; + bool bPageDescConnected : 1; + bool bDataStyleIsResolved; SvXMLImportContext *CreateItemSetContext( sal_uInt16 nPrefix, @@ -480,12 +480,12 @@ public: const SfxItemSet *GetItemSet() const { return pItemSet; } const OUString& GetMasterPageName() const { return sMasterPageName; } - sal_Bool HasMasterPageName() const { return bHasMasterPageName; } + bool HasMasterPageName() const { return bHasMasterPageName; } - sal_Bool IsPageDescConnected() const { return bPageDescConnected; } + bool IsPageDescConnected() const { return bPageDescConnected; } void ConnectPageDesc(); - sal_Bool ResolveDataStyleName(); + bool ResolveDataStyleName(); }; void SwXMLItemSetStyleContext_Impl::SetAttribute( sal_uInt16 nPrefixKey, @@ -497,7 +497,7 @@ void SwXMLItemSetStyleContext_Impl::SetAttribute( sal_uInt16 nPrefixKey, if ( IsXMLToken( rLocalName, XML_MASTER_PAGE_NAME ) ) { sMasterPageName = rValue; - bHasMasterPageName = sal_True; + bHasMasterPageName = true; } else if ( IsXMLToken( rLocalName, XML_DATA_STYLE_NAME ) ) { @@ -505,7 +505,7 @@ void SwXMLItemSetStyleContext_Impl::SetAttribute( sal_uInt16 nPrefixKey, if (!rValue.isEmpty()) { sDataStyleName = rValue; - bDataStyleIsResolved = sal_False; // needs to be resolved + bDataStyleIsResolved = false; // needs to be resolved } } else @@ -574,9 +574,9 @@ SwXMLItemSetStyleContext_Impl::SwXMLItemSetStyleContext_Impl( SwXMLImport& rImpo pItemSet( 0 ), pTextStyle( 0 ), rStyles( rStylesC ), - bHasMasterPageName( sal_False ), - bPageDescConnected( sal_False ), - bDataStyleIsResolved( sal_True ) + bHasMasterPageName( false ), + bPageDescConnected( false ), + bDataStyleIsResolved( true ) { } @@ -636,7 +636,7 @@ void SwXMLItemSetStyleContext_Impl::ConnectPageDesc() { if( bPageDescConnected || !HasMasterPageName() ) return; - bPageDescConnected = sal_True; + bPageDescConnected = true; SwDoc *pDoc = SwImport::GetDocFromXMLImport( GetSwImport() ); @@ -687,7 +687,7 @@ void SwXMLItemSetStyleContext_Impl::ConnectPageDesc() } } -sal_Bool SwXMLItemSetStyleContext_Impl::ResolveDataStyleName() +bool SwXMLItemSetStyleContext_Impl::ResolveDataStyleName() { // resolve, if not already done if (! bDataStyleIsResolved) @@ -711,13 +711,13 @@ sal_Bool SwXMLItemSetStyleContext_Impl::ResolveDataStyleName() } // now resolved - bDataStyleIsResolved = sal_True; - return sal_True; + bDataStyleIsResolved = true; + return true; } else { // was already resolved; nothing to do - return sal_False; + return false; } } @@ -1045,7 +1045,7 @@ void SwXMLImport::UpdateTxtCollConditions( SwDoc *pDoc ) { const SwFmtCollConditions& rConditions = ((const SwConditionTxtFmtColl *)pColl)->GetCondColls(); - sal_Bool bSendModify = sal_False; + bool bSendModify = false; for( sal_uInt16 j=0; j < rConditions.size() && !bSendModify; j++ ) { const SwCollCondition& rCond = rConditions[j]; @@ -1055,7 +1055,7 @@ void SwXMLImport::UpdateTxtCollConditions( SwDoc *pDoc ) case PARA_IN_TABLEBODY: case PARA_IN_FOOTER: case PARA_IN_HEADER: - bSendModify = sal_True; + bSendModify = true; break; } } |