[Libreoffice-commits] .: sw/inc sw/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Nov 6 17:58:38 PST 2012


 sw/inc/calbck.hxx                  |    6 +++---
 sw/inc/docufld.hxx                 |    2 +-
 sw/inc/fchrfmt.hxx                 |    2 +-
 sw/inc/fmtfld.hxx                  |    2 +-
 sw/inc/format.hxx                  |    2 +-
 sw/inc/frmfmt.hxx                  |    2 +-
 sw/inc/node.hxx                    |    2 +-
 sw/inc/pagedesc.hxx                |    2 +-
 sw/inc/paratr.hxx                  |    2 +-
 sw/inc/section.hxx                 |    2 +-
 sw/inc/swtable.hxx                 |    2 +-
 sw/inc/tox.hxx                     |    2 +-
 sw/inc/txtatr.hxx                  |    2 +-
 sw/inc/txtinet.hxx                 |    2 +-
 sw/source/core/attr/calbck.cxx     |   14 +++++++-------
 sw/source/core/attr/format.cxx     |    5 ++---
 sw/source/core/doc/doctxm.cxx      |    6 +++---
 sw/source/core/docnode/node.cxx    |    8 ++++----
 sw/source/core/docnode/section.cxx |    6 +++---
 sw/source/core/fields/docufld.cxx  |    6 +++---
 sw/source/core/inc/flyfrm.hxx      |    2 +-
 sw/source/core/inc/pagefrm.hxx     |    2 +-
 sw/source/core/inc/tabfrm.hxx      |    2 +-
 sw/source/core/inc/txtfrm.hxx      |    2 +-
 sw/source/core/layout/atrfrm.cxx   |    4 ++--
 sw/source/core/layout/fly.cxx      |    6 +++---
 sw/source/core/layout/pagechg.cxx  |    6 +++---
 sw/source/core/layout/pagedesc.cxx |    4 ++--
 sw/source/core/layout/tabfrm.cxx   |    6 +++---
 sw/source/core/para/paratr.cxx     |    4 ++--
 sw/source/core/table/swtable.cxx   |    8 ++++----
 sw/source/core/text/txtfrm.cxx     |    6 +++---
 sw/source/core/txtnode/atrfld.cxx  |    6 +++---
 sw/source/core/txtnode/fmtatr2.cxx |    4 ++--
 sw/source/core/txtnode/txtatr2.cxx |   12 ++++++------
 35 files changed, 75 insertions(+), 76 deletions(-)

New commits:
commit eb020150e174335a9956f5259ddced0026163373
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Wed Nov 7 10:56:27 2012 +0900

    sal_Bool to bool
    
    Change-Id: Ia1001ff0f4778bdf5e22bf2800f533dfba80c048

diff --git a/sw/inc/calbck.hxx b/sw/inc/calbck.hxx
index d360c51..75e3ead 100644
--- a/sw/inc/calbck.hxx
+++ b/sw/inc/calbck.hxx
@@ -118,7 +118,7 @@ public:
     TYPEINFO();
 
     // get information about attribute
-    virtual sal_Bool GetInfo( SfxPoolItem& ) const;
+    virtual bool GetInfo( SfxPoolItem& ) const;
 };
 
 inline SwClient::SwClient() :
@@ -165,7 +165,7 @@ public:
     const SwClient* GetDepends() const  { return pRoot; }
 
     // get information about attribute
-    virtual sal_Bool GetInfo( SfxPoolItem& ) const;
+    virtual bool GetInfo( SfxPoolItem& ) const;
 
     void LockModify()                   { bModifyLocked = sal_True;  }
     void UnlockModify()                 { bModifyLocked = sal_False; }
@@ -199,7 +199,7 @@ public:
     SwClient* GetToTell() { return pToTell; }
 
     /** get Client information */
-    virtual sal_Bool GetInfo( SfxPoolItem & ) const;
+    virtual bool GetInfo( SfxPoolItem & ) const;
 protected:
     virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNewValue );
     virtual void SwClientNotify( const SwModify& rModify, const SfxHint& rHint );
diff --git a/sw/inc/docufld.hxx b/sw/inc/docufld.hxx
index 0f6158b..23233cd 100644
--- a/sw/inc/docufld.hxx
+++ b/sw/inc/docufld.hxx
@@ -152,7 +152,7 @@ class SwPageNumberFieldType : public SwFieldType
 {
     sal_Int16   nNumberingType;
     sal_uInt16          nNum, nMax;
-    sal_Bool            bVirtuell;
+    bool            bVirtuell;
 
 public:
     SwPageNumberFieldType();
diff --git a/sw/inc/fchrfmt.hxx b/sw/inc/fchrfmt.hxx
index 0a911f0..7253ec5 100644
--- a/sw/inc/fchrfmt.hxx
+++ b/sw/inc/fchrfmt.hxx
@@ -76,7 +76,7 @@ public:
     virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
     virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
 
-    virtual sal_Bool    GetInfo( SfxPoolItem& rInfo ) const;
+    virtual bool    GetInfo( SfxPoolItem& rInfo ) const;
 
     void SetCharFmt( SwFmt* pFmt ) { pFmt->Add(this); }
     SwCharFmt* GetCharFmt() const { return (SwCharFmt*)GetRegisteredIn(); }
diff --git a/sw/inc/fmtfld.hxx b/sw/inc/fmtfld.hxx
index 5cc7ddb..850de3f 100644
--- a/sw/inc/fmtfld.hxx
+++ b/sw/inc/fmtfld.hxx
@@ -75,7 +75,7 @@ public:
     virtual int             operator==( const SfxPoolItem& ) const;
     virtual SfxPoolItem*    Clone( SfxItemPool* pPool = 0 ) const;
 
-    virtual sal_Bool GetInfo( SfxPoolItem& rInfo ) const;
+    virtual bool GetInfo( SfxPoolItem& rInfo ) const;
 
     const SwField *GetFld() const   { return pField; }
     SwField *GetFld()               { return pField; }
diff --git a/sw/inc/format.hxx b/sw/inc/format.hxx
index 593cb55..8b8b61b 100644
--- a/sw/inc/format.hxx
+++ b/sw/inc/format.hxx
@@ -81,7 +81,7 @@ public:
 
 
     /// Query format information.
-    virtual sal_Bool GetInfo( SfxPoolItem& ) const;
+    virtual bool GetInfo( SfxPoolItem& ) const;
 
     /// Copy attributes even among documents.
     void CopyAttrs( const SwFmt&, sal_Bool bReplace=sal_True );
diff --git a/sw/inc/frmfmt.hxx b/sw/inc/frmfmt.hxx
index 0a139fc..cd544d9 100644
--- a/sw/inc/frmfmt.hxx
+++ b/sw/inc/frmfmt.hxx
@@ -183,7 +183,7 @@ public:
 
     virtual Graphic MakeGraphic( ImageMap* pMap = NULL );
 
-    virtual sal_Bool GetInfo( SfxPoolItem& rInfo ) const;
+    virtual bool GetInfo( SfxPoolItem& rInfo ) const;
 
     const String GetObjTitle() const;
     void SetObjTitle( const String& rTitle,
diff --git a/sw/inc/node.hxx b/sw/inc/node.hxx
index 35ba3f2..f12e760 100644
--- a/sw/inc/node.hxx
+++ b/sw/inc/node.hxx
@@ -440,7 +440,7 @@ public:
     virtual SwCntntNode* MakeCopy( SwDoc*, const SwNodeIndex& ) const = 0;
 
     /// Get information from Client.
-    virtual sal_Bool GetInfo( SfxPoolItem& ) const;
+    virtual bool GetInfo( SfxPoolItem& ) const;
 
     /// SS for PoolItems: hard attributation.
 
diff --git a/sw/inc/pagedesc.hxx b/sw/inc/pagedesc.hxx
index a7f8f3b..1de2561 100644
--- a/sw/inc/pagedesc.hxx
+++ b/sw/inc/pagedesc.hxx
@@ -238,7 +238,7 @@ public:
     void SetPoolHlpFileId( sal_uInt8 nId )  { aMaster.SetPoolHlpFileId( nId ); }
 
     /// Query information from Client.
-    virtual sal_Bool GetInfo( SfxPoolItem& ) const;
+    virtual bool GetInfo( SfxPoolItem& ) const;
 
     const SwFrmFmt* GetPageFmtOfNode( const SwNode& rNd,
                                     sal_Bool bCheckForThisPgDc = sal_True ) const;
diff --git a/sw/inc/paratr.hxx b/sw/inc/paratr.hxx
index f03b39b..2035d89 100644
--- a/sw/inc/paratr.hxx
+++ b/sw/inc/paratr.hxx
@@ -99,7 +99,7 @@ public:
     inline SwCharFmt *GetCharFmt()       { return (SwCharFmt*)GetRegisteredIn(); }
     void SetCharFmt( SwCharFmt *pNew );
     /// Get information from Client.
-    virtual sal_Bool GetInfo( SfxPoolItem& ) const;
+    virtual bool GetInfo( SfxPoolItem& ) const;
 
     /// Get and set Modify pointer.
     inline const SwModify* GetDefinedIn() const { return pDefinedIn; }
diff --git a/sw/inc/section.hxx b/sw/inc/section.hxx
index e095d6f..252d00c 100644
--- a/sw/inc/section.hxx
+++ b/sw/inc/section.hxx
@@ -323,7 +323,7 @@ public:
     virtual void MakeFrms();
 
     // Get information from Format.
-    virtual sal_Bool GetInfo( SfxPoolItem& ) const;
+    virtual bool GetInfo( SfxPoolItem& ) const;
 
     SwSection* GetSection() const;
     inline SwSectionFmt* GetParent() const;
diff --git a/sw/inc/swtable.hxx b/sw/inc/swtable.hxx
index d6192c3..c1f81a6 100644
--- a/sw/inc/swtable.hxx
+++ b/sw/inc/swtable.hxx
@@ -313,7 +313,7 @@ public:
                             SwSelBoxes& rBoxes, sal_Bool bToTop = sal_True ) const;
 
     // Get information from client.
-    virtual sal_Bool GetInfo( SfxPoolItem& ) const;
+    virtual bool GetInfo( SfxPoolItem& ) const;
 
     // Search in format for registered table.
     static SwTable * FindTable( SwFrmFmt const*const pFmt );
diff --git a/sw/inc/tox.hxx b/sw/inc/tox.hxx
index c6a33c3..c7e3cc4 100644
--- a/sw/inc/tox.hxx
+++ b/sw/inc/tox.hxx
@@ -489,7 +489,7 @@ public:
     SwTOXBase( const SwTOXBase& rCopy, SwDoc* pDoc = 0 );
     virtual ~SwTOXBase();
 
-    virtual sal_Bool GetInfo( SfxPoolItem& rInfo ) const;
+    virtual bool GetInfo( SfxPoolItem& rInfo ) const;
 
     // a kind of CopyCtor - check if the TOXBase is at TOXType of the doc.
     // If not, so create it an copy all other used things. The return is this
diff --git a/sw/inc/txtatr.hxx b/sw/inc/txtatr.hxx
index f15e4e7..b8a34f9 100644
--- a/sw/inc/txtatr.hxx
+++ b/sw/inc/txtatr.hxx
@@ -105,7 +105,7 @@ public:
     virtual ~SwTxtRuby();
     TYPEINFO();
 
-    virtual sal_Bool GetInfo( SfxPoolItem& rInfo ) const;
+    virtual bool GetInfo( SfxPoolItem& rInfo ) const;
 
     SW_DLLPRIVATE void InitRuby(SwTxtNode & rNode);
 
diff --git a/sw/inc/txtinet.hxx b/sw/inc/txtinet.hxx
index f6e35ad..6008496 100644
--- a/sw/inc/txtinet.hxx
+++ b/sw/inc/txtinet.hxx
@@ -51,7 +51,7 @@ public:
     virtual ~SwTxtINetFmt();
     TYPEINFO();
 
-    virtual sal_Bool GetInfo( SfxPoolItem& rInfo ) const;
+    virtual bool GetInfo( SfxPoolItem& rInfo ) const;
 
     SW_DLLPRIVATE void InitINetFmt(SwTxtNode & rNode);
 
diff --git a/sw/source/core/attr/calbck.cxx b/sw/source/core/attr/calbck.cxx
index 44373ed..6b25b72 100644
--- a/sw/source/core/attr/calbck.cxx
+++ b/sw/source/core/attr/calbck.cxx
@@ -88,9 +88,9 @@ SwClient::~SwClient()
         pRegisteredIn->Remove( this );
 }
 
-sal_Bool SwClient::GetInfo( SfxPoolItem& ) const
+bool SwClient::GetInfo( SfxPoolItem& ) const
 {
-    return sal_True;
+    return true;
 }
 
 // ----------
@@ -207,9 +207,9 @@ void SwModify::NotifyClients( const SfxPoolItem* pOldValue, const SfxPoolItem* p
     UnlockModify();
 }
 
-sal_Bool SwModify::GetInfo( SfxPoolItem& rInfo ) const
+bool SwModify::GetInfo( SfxPoolItem& rInfo ) const
 {
-    sal_Bool bRet = sal_True;       // means: continue with next
+    bool bRet = true;       // means: continue with next
 
     if( pRoot )
     {
@@ -218,7 +218,7 @@ sal_Bool SwModify::GetInfo( SfxPoolItem& rInfo ) const
         SwClient* pLast = aIter.GoStart();
         if( pLast )
         {
-            while( 0 != ( bRet = pLast->GetInfo( rInfo ) ) &&
+            while( ( bRet = pLast->GetInfo( rInfo ) ) &&
                    0 != ( pLast = aIter++ ) )
                 ;
         }
@@ -392,9 +392,9 @@ void SwDepend::SwClientNotify( const SwModify& rMod, const SfxHint& rHint )
         pToTell->SwClientNotifyCall( rMod, rHint );
 }
 
-sal_Bool SwDepend::GetInfo( SfxPoolItem& rInfo ) const
+bool SwDepend::GetInfo( SfxPoolItem& rInfo ) const
 {
-    return pToTell ? pToTell->GetInfo( rInfo ) : sal_True;
+    return pToTell ? pToTell->GetInfo( rInfo ) : true;
 }
 
 // ------------
diff --git a/sw/source/core/attr/format.cxx b/sw/source/core/attr/format.cxx
index c2e4fbe..f9287c3 100644
--- a/sw/source/core/attr/format.cxx
+++ b/sw/source/core/attr/format.cxx
@@ -539,10 +539,9 @@ sal_uInt16 SwFmt::ResetAllFmtAttr()
     return aNew.Count();
 }
 
-sal_Bool SwFmt::GetInfo( SfxPoolItem& rInfo ) const
+bool SwFmt::GetInfo( SfxPoolItem& rInfo ) const
 {
-    sal_Bool bRet = SwModify::GetInfo( rInfo );
-    return bRet;
+    return SwModify::GetInfo( rInfo );
 }
 
 void SwFmt::DelDiffs( const SfxItemSet& rSet )
diff --git a/sw/source/core/doc/doctxm.cxx b/sw/source/core/doc/doctxm.cxx
index d9b786a..0d04f3d 100644
--- a/sw/source/core/doc/doctxm.cxx
+++ b/sw/source/core/doc/doctxm.cxx
@@ -2327,7 +2327,7 @@ void SwTOXBase::SetAttrSet( const SfxItemSet& rSet )
         pSect->GetFmt()->SetFmtAttr( rSet );
 }
 
-sal_Bool SwTOXBase::GetInfo( SfxPoolItem& rInfo ) const
+bool SwTOXBase::GetInfo( SfxPoolItem& rInfo ) const
 {
     switch( rInfo.Which() )
     {
@@ -2337,9 +2337,9 @@ sal_Bool SwTOXBase::GetInfo( SfxPoolItem& rInfo ) const
             if( pSect && pSect->GetFmt() )
                 pSect->GetFmt()->GetInfo( rInfo );
         }
-        return sal_False;
+        return false;
     }
-    return sal_True;
+    return true;
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/core/docnode/node.cxx b/sw/source/core/docnode/node.cxx
index eea21de..779dad5 100644
--- a/sw/source/core/docnode/node.cxx
+++ b/sw/source/core/docnode/node.cxx
@@ -1309,7 +1309,7 @@ SwCntntNode *SwCntntNode::JoinPrev()
 
 
 // Get info from Modify
-sal_Bool SwCntntNode::GetInfo( SfxPoolItem& rInfo ) const
+bool SwCntntNode::GetInfo( SfxPoolItem& rInfo ) const
 {
     switch( rInfo.Which() )
     {
@@ -1317,21 +1317,21 @@ sal_Bool SwCntntNode::GetInfo( SfxPoolItem& rInfo ) const
         if( &GetNodes() == ((SwAutoFmtGetDocNode&)rInfo).pNodes )
         {
             ((SwAutoFmtGetDocNode&)rInfo).pCntntNode = this;
-            return sal_False;
+            return false;
         }
         break;
 
     case RES_FINDNEARESTNODE:
         if( ((SwFmtPageDesc&)GetAttr( RES_PAGEDESC )).GetPageDesc() )
             ((SwFindNearestNode&)rInfo).CheckNode( *this );
-        return sal_True;
+        return true;
 
     case RES_CONTENT_VISIBLE:
         {
             ((SwPtrMsgPoolItem&)rInfo).pObject =
                 SwIterator<SwFrm,SwCntntNode>::FirstElement(*this);
         }
-        return sal_False;
+        return false;
     }
 
     return SwModify::GetInfo( rInfo );
diff --git a/sw/source/core/docnode/section.cxx b/sw/source/core/docnode/section.cxx
index 4a16a78..1625561 100644
--- a/sw/source/core/docnode/section.cxx
+++ b/sw/source/core/docnode/section.cxx
@@ -856,7 +856,7 @@ void SwSectionFmt::Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNew )
 }
 
 // Get info from the Format
-sal_Bool SwSectionFmt::GetInfo( SfxPoolItem& rInfo ) const
+bool SwSectionFmt::GetInfo( SfxPoolItem& rInfo ) const
 {
     switch( rInfo.Which() )
     {
@@ -867,7 +867,7 @@ sal_Bool SwSectionFmt::GetInfo( SfxPoolItem& rInfo ) const
             if( pNd )
                 ((SwFindNearestNode&)rInfo).CheckNode( *pNd );
         }
-        return sal_True;
+        return true;
 
     case RES_CONTENT_VISIBLE:
         {
@@ -885,7 +885,7 @@ sal_Bool SwSectionFmt::GetInfo( SfxPoolItem& rInfo ) const
             }
             ((SwPtrMsgPoolItem&)rInfo).pObject = pFrm;
         }
-        return sal_False;
+        return false;
     }
     return SwModify::GetInfo( rInfo );
 }
diff --git a/sw/source/core/fields/docufld.cxx b/sw/source/core/fields/docufld.cxx
index 181f474..d3550fd 100644
--- a/sw/source/core/fields/docufld.cxx
+++ b/sw/source/core/fields/docufld.cxx
@@ -118,7 +118,7 @@ SwPageNumberFieldType::SwPageNumberFieldType()
     nNumberingType( SVX_NUM_ARABIC ),
     nNum( 0 ),
     nMax( USHRT_MAX ),
-    bVirtuell( sal_False )
+    bVirtuell( false )
 {
 }
 
@@ -162,7 +162,7 @@ void SwPageNumberFieldType::ChangeExpansion( SwDoc* pDoc, sal_uInt16 nPage,
     if( pNumFmt )
         nNumberingType = *pNumFmt;
 
-    bVirtuell = sal_False;
+    bVirtuell = false;
     if( bVirt )
     {
         // dann muss das Flag ueberprueft werden, denn das Layout setzt
@@ -178,7 +178,7 @@ void SwPageNumberFieldType::ChangeExpansion( SwDoc* pDoc, sal_uInt16 nPage,
                 if( pNd )
                 {
                     if ( SwIterator<SwFrm,SwCntntNode>::FirstElement(*pNd) )
-                        bVirtuell = sal_True;
+                        bVirtuell = true;
                 }
                 else if( pDesc->GetDefinedIn()->ISA( SwFmt ))
                 {
diff --git a/sw/source/core/inc/flyfrm.hxx b/sw/source/core/inc/flyfrm.hxx
index 5373eb3..d3f62a6 100644
--- a/sw/source/core/inc/flyfrm.hxx
+++ b/sw/source/core/inc/flyfrm.hxx
@@ -162,7 +162,7 @@ public:
 
     virtual ~SwFlyFrm();
     // get client information
-    virtual sal_Bool GetInfo( SfxPoolItem& ) const;
+    virtual bool GetInfo( SfxPoolItem& ) const;
     virtual void Paint( SwRect const&,
                         SwPrintData const*const pPrintData = NULL ) const;
     virtual Size ChgSize( const Size& aNewSize );
diff --git a/sw/source/core/inc/pagefrm.hxx b/sw/source/core/inc/pagefrm.hxx
index ea2ee13..271e161 100644
--- a/sw/source/core/inc/pagefrm.hxx
+++ b/sw/source/core/inc/pagefrm.hxx
@@ -182,7 +182,7 @@ public:
     virtual sal_Bool GetCrsrOfst( SwPosition *, Point&,
                               SwCrsrMoveState* = 0 ) const;
         // erfrage vom Client Informationen
-    virtual sal_Bool GetInfo( SfxPoolItem& ) const;
+    virtual bool GetInfo( SfxPoolItem& ) const;
 
     virtual void Cut();
     virtual void Paste( SwFrm* pParent, SwFrm* pSibling = 0 );
diff --git a/sw/source/core/inc/tabfrm.hxx b/sw/source/core/inc/tabfrm.hxx
index 1806680..47f3321 100644
--- a/sw/source/core/inc/tabfrm.hxx
+++ b/sw/source/core/inc/tabfrm.hxx
@@ -127,7 +127,7 @@ public:
     inline       SwTabFrm *GetFollow();
     SwTabFrm* FindMaster( bool bFirstMaster = false ) const;
 
-    virtual sal_Bool GetInfo( SfxPoolItem &rHnt ) const;
+    virtual bool GetInfo( SfxPoolItem &rHnt ) const;
     virtual void Paint( SwRect const&,
                         SwPrintData const*const pPrintData = NULL ) const;
     virtual void  CheckDirection( sal_Bool bVert );
diff --git a/sw/source/core/inc/txtfrm.hxx b/sw/source/core/inc/txtfrm.hxx
index f056fd7..3942759 100644
--- a/sw/source/core/inc/txtfrm.hxx
+++ b/sw/source/core/inc/txtfrm.hxx
@@ -288,7 +288,7 @@ public:
     SwRect Paint();
     virtual void Paint( SwRect const&,
                         SwPrintData const*const pPrintData = NULL ) const;
-    virtual sal_Bool GetInfo( SfxPoolItem & ) const;
+    virtual bool GetInfo( SfxPoolItem & ) const;
 
     //Layoutorientiertes Cursortravelling: Linker, rechter Rand,
     //vorhergehende/naechste Zeile, gleiche horizontale Position.
diff --git a/sw/source/core/layout/atrfrm.cxx b/sw/source/core/layout/atrfrm.cxx
index 5e6768e..8d180ae 100644
--- a/sw/source/core/layout/atrfrm.cxx
+++ b/sw/source/core/layout/atrfrm.cxx
@@ -2933,7 +2933,7 @@ SwAnchoredObject* SwFlyFrmFmt::GetAnchoredObj( const Point* pPoint, const sal_Bo
 }
 
 
-sal_Bool SwFlyFrmFmt::GetInfo( SfxPoolItem& rInfo ) const
+bool SwFlyFrmFmt::GetInfo( SfxPoolItem& rInfo ) const
 {
     switch( rInfo.Which() )
     {
@@ -2941,7 +2941,7 @@ sal_Bool SwFlyFrmFmt::GetInfo( SfxPoolItem& rInfo ) const
         {
             ((SwPtrMsgPoolItem&)rInfo).pObject = SwIterator<SwFrm,SwFmt>::FirstElement( *this );
         }
-        return sal_False;
+        return false;
 
     default:
         return SwFrmFmt::GetInfo( rInfo );
diff --git a/sw/source/core/layout/fly.cxx b/sw/source/core/layout/fly.cxx
index 2172dbe..5a1c9fe 100644
--- a/sw/source/core/layout/fly.cxx
+++ b/sw/source/core/layout/fly.cxx
@@ -1148,11 +1148,11 @@ void SwFlyFrm::_UpdateAttr( const SfxPoolItem *pOld, const SfxPoolItem *pNew,
 *************************************************************************/
 
     // erfrage vom Modify Informationen
-sal_Bool SwFlyFrm::GetInfo( SfxPoolItem & rInfo ) const
+bool SwFlyFrm::GetInfo( SfxPoolItem & rInfo ) const
 {
     if( RES_AUTOFMT_DOCNODE == rInfo.Which() )
-        return sal_False;   // es gibt einen FlyFrm also wird er benutzt
-    return sal_True;        // weiter suchen
+        return false;   // es gibt einen FlyFrm also wird er benutzt
+    return true;        // weiter suchen
 }
 
 /*************************************************************************
diff --git a/sw/source/core/layout/pagechg.cxx b/sw/source/core/layout/pagechg.cxx
index 53a329f..40b3b7a 100644
--- a/sw/source/core/layout/pagechg.cxx
+++ b/sw/source/core/layout/pagechg.cxx
@@ -752,14 +752,14 @@ void SwPageFrm::_UpdateAttr( const SfxPoolItem *pOld, const SfxPoolItem *pNew,
 |*
 *************************************************************************/
     // erfrage vom Modify Informationen
-sal_Bool SwPageFrm::GetInfo( SfxPoolItem & rInfo ) const
+bool SwPageFrm::GetInfo( SfxPoolItem & rInfo ) const
 {
     if( RES_AUTOFMT_DOCNODE == rInfo.Which() )
     {
         // es gibt einen PageFrm also wird er benutzt
-        return sal_False;
+        return false;
     }
-    return sal_True;        // weiter suchen
+    return true;        // weiter suchen
 }
 
 /*************************************************************************
diff --git a/sw/source/core/layout/pagedesc.cxx b/sw/source/core/layout/pagedesc.cxx
index 1fa5c31..d48517e 100644
--- a/sw/source/core/layout/pagedesc.cxx
+++ b/sw/source/core/layout/pagedesc.cxx
@@ -162,10 +162,10 @@ void SwPageDesc::ResetAllAttr( sal_Bool bLeft )
 
 
     // gets information from Modify
-sal_Bool SwPageDesc::GetInfo( SfxPoolItem & rInfo ) const
+bool SwPageDesc::GetInfo( SfxPoolItem & rInfo ) const
 {
     if( !aMaster.GetInfo( rInfo ) )
-            return sal_False;       // found
+            return false;       // found
     return aLeft.GetInfo( rInfo );
 }
 
diff --git a/sw/source/core/layout/tabfrm.cxx b/sw/source/core/layout/tabfrm.cxx
index af3373a..7e21769 100644
--- a/sw/source/core/layout/tabfrm.cxx
+++ b/sw/source/core/layout/tabfrm.cxx
@@ -3278,7 +3278,7 @@ void SwTabFrm::_UpdateAttr( const SfxPoolItem *pOld, const SfxPoolItem *pNew,
 |*    SwTabFrm::GetInfo()
 |*
 |*************************************************************************/
-sal_Bool SwTabFrm::GetInfo( SfxPoolItem &rHnt ) const
+bool SwTabFrm::GetInfo( SfxPoolItem &rHnt ) const
 {
     if ( RES_VIRTPAGENUM_INFO == rHnt.Which() && IsInDocBody() && !IsFollow() )
     {
@@ -3291,7 +3291,7 @@ sal_Bool SwTabFrm::GetInfo( SfxPoolItem &rHnt ) const
                 //Here it should be (can temporary be different, should we be
                 //                    concerned about this?)
                 rInfo.SetInfo( pPage, this );
-                return sal_False;
+                return false;
             }
             if ( pPage->GetPhyPageNum() < rInfo.GetOrigPage()->GetPhyPageNum() &&
                  (!rInfo.GetPage() || pPage->GetPhyPageNum() > rInfo.GetPage()->GetPhyPageNum()))
@@ -3301,7 +3301,7 @@ sal_Bool SwTabFrm::GetInfo( SfxPoolItem &rHnt ) const
             }
         }
     }
-    return sal_True;
+    return true;
 }
 
 /*************************************************************************
diff --git a/sw/source/core/para/paratr.cxx b/sw/source/core/para/paratr.cxx
index 2b8138d..dc07e9f 100644
--- a/sw/source/core/para/paratr.cxx
+++ b/sw/source/core/para/paratr.cxx
@@ -126,9 +126,9 @@ void SwFmtDrop::Modify( const SfxPoolItem*, const SfxPoolItem * )
     }
 }
 
-sal_Bool SwFmtDrop::GetInfo( SfxPoolItem& ) const
+bool SwFmtDrop::GetInfo( SfxPoolItem& ) const
 {
-    return sal_True;    // weiter
+    return true;    // weiter
 }
 
 int SwFmtDrop::operator==( const SfxPoolItem& rAttr ) const
diff --git a/sw/source/core/table/swtable.cxx b/sw/source/core/table/swtable.cxx
index b727954..b790bbe 100644
--- a/sw/source/core/table/swtable.cxx
+++ b/sw/source/core/table/swtable.cxx
@@ -1951,7 +1951,7 @@ sal_uLong SwTableBox::GetSttIdx() const
 }
 
     // retrieve informations from the client
-sal_Bool SwTable::GetInfo( SfxPoolItem& rInfo ) const
+bool SwTable::GetInfo( SfxPoolItem& rInfo ) const
 {
     switch( rInfo.Which() )
     {
@@ -1966,7 +1966,7 @@ sal_Bool SwTable::GetInfo( SfxPoolItem& rInfo ) const
                 ((SwAutoFmtGetDocNode&)rInfo).pCntntNode =
                                 GetFrmFmt()->GetDoc()->GetNodes().GoNext( &aIdx );
             }
-            return sal_False;
+            return false;
         }
         break;
     }
@@ -1983,9 +1983,9 @@ sal_Bool SwTable::GetInfo( SfxPoolItem& rInfo ) const
         {
             ((SwPtrMsgPoolItem&)rInfo).pObject = SwIterator<SwFrm,SwFmt>::FirstElement( *GetFrmFmt() );
         }
-        return sal_False;
+        return false;
     }
-    return sal_True;
+    return true;
 }
 
 SwTable * SwTable::FindTable( SwFrmFmt const*const pFmt )
diff --git a/sw/source/core/text/txtfrm.cxx b/sw/source/core/text/txtfrm.cxx
index 870741b..27b034b 100644
--- a/sw/source/core/text/txtfrm.cxx
+++ b/sw/source/core/text/txtfrm.cxx
@@ -1358,7 +1358,7 @@ void SwTxtFrm::Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew )
         CalcFtnFlag();
 }
 
-sal_Bool SwTxtFrm::GetInfo( SfxPoolItem &rHnt ) const
+bool SwTxtFrm::GetInfo( SfxPoolItem &rHnt ) const
 {
     if ( RES_VIRTPAGENUM_INFO == rHnt.Which() && IsInDocBody() && ! IsFollow() )
     {
@@ -1371,7 +1371,7 @@ sal_Bool SwTxtFrm::GetInfo( SfxPoolItem &rHnt ) const
                 //Das sollte er sein (kann allenfalls temporaer anders sein,
                 //                    sollte uns das beunruhigen?)
                 rInfo.SetInfo( pPage, this );
-                return sal_False;
+                return false;
             }
             if ( pPage->GetPhyPageNum() < rInfo.GetOrigPage()->GetPhyPageNum() &&
                  (!rInfo.GetPage() || pPage->GetPhyPageNum() > rInfo.GetPage()->GetPhyPageNum()))
@@ -1381,7 +1381,7 @@ sal_Bool SwTxtFrm::GetInfo( SfxPoolItem &rHnt ) const
             }
         }
     }
-    return sal_True;
+    return true;
 }
 
 /*************************************************************************
diff --git a/sw/source/core/txtnode/atrfld.cxx b/sw/source/core/txtnode/atrfld.cxx
index b0b0757..dccc014 100644
--- a/sw/source/core/txtnode/atrfld.cxx
+++ b/sw/source/core/txtnode/atrfld.cxx
@@ -248,16 +248,16 @@ void SwFmtFld::Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNew )
     pTxtAttr->Expand();
 }
 
-sal_Bool SwFmtFld::GetInfo( SfxPoolItem& rInfo ) const
+bool SwFmtFld::GetInfo( SfxPoolItem& rInfo ) const
 {
     const SwTxtNode* pTxtNd;
     if( RES_AUTOFMT_DOCNODE != rInfo.Which() ||
         !pTxtAttr || 0 == ( pTxtNd = pTxtAttr->GetpTxtNode() ) ||
         &pTxtNd->GetNodes() != ((SwAutoFmtGetDocNode&)rInfo).pNodes )
-        return sal_True;
+        return true;
 
     ((SwAutoFmtGetDocNode&)rInfo).pCntntNode = pTxtNd;
-    return sal_False;
+    return false;
 }
 
 
diff --git a/sw/source/core/txtnode/fmtatr2.cxx b/sw/source/core/txtnode/fmtatr2.cxx
index c8f8f01..6c53257 100644
--- a/sw/source/core/txtnode/fmtatr2.cxx
+++ b/sw/source/core/txtnode/fmtatr2.cxx
@@ -119,9 +119,9 @@ void SwFmtCharFmt::Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNew )
 
 
 // weiterleiten an das TextAttribut
-sal_Bool SwFmtCharFmt::GetInfo( SfxPoolItem& rInfo ) const
+bool SwFmtCharFmt::GetInfo( SfxPoolItem& rInfo ) const
 {
-    return pTxtAttr ? pTxtAttr->GetInfo( rInfo ) : sal_False;
+    return pTxtAttr ? pTxtAttr->GetInfo( rInfo ) : false;
 }
 bool SwFmtCharFmt::QueryValue( uno::Any& rVal, sal_uInt8 ) const
 {
diff --git a/sw/source/core/txtnode/txtatr2.cxx b/sw/source/core/txtnode/txtatr2.cxx
index 8e5b65d..73df9bf 100644
--- a/sw/source/core/txtnode/txtatr2.cxx
+++ b/sw/source/core/txtnode/txtatr2.cxx
@@ -199,16 +199,16 @@ void SwTxtINetFmt::Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNew )
 }
 
     // erfrage vom Modify Informationen
-sal_Bool SwTxtINetFmt::GetInfo( SfxPoolItem& rInfo ) const
+bool SwTxtINetFmt::GetInfo( SfxPoolItem& rInfo ) const
 {
     if ( RES_AUTOFMT_DOCNODE != rInfo.Which() || !m_pTxtNode ||
         &m_pTxtNode->GetNodes() != static_cast<SwAutoFmtGetDocNode&>(rInfo).pNodes )
     {
-        return sal_True;
+        return true;
     }
 
     static_cast<SwAutoFmtGetDocNode&>(rInfo).pCntntNode = m_pTxtNode;
-    return sal_False;
+    return false;
 }
 
 sal_Bool SwTxtINetFmt::IsProtect( ) const
@@ -247,16 +247,16 @@ void SwTxtRuby::Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew )
     }
 }
 
-sal_Bool SwTxtRuby::GetInfo( SfxPoolItem& rInfo ) const
+bool SwTxtRuby::GetInfo( SfxPoolItem& rInfo ) const
 {
     if( RES_AUTOFMT_DOCNODE != rInfo.Which() || !m_pTxtNode ||
         &m_pTxtNode->GetNodes() != static_cast<SwAutoFmtGetDocNode&>(rInfo).pNodes )
     {
-        return sal_True;
+        return true;
     }
 
     static_cast<SwAutoFmtGetDocNode&>(rInfo).pCntntNode = m_pTxtNode;
-    return sal_False;
+    return false;
 }
 
 SwCharFmt* SwTxtRuby::GetCharFmt()


More information about the Libreoffice-commits mailing list