summaryrefslogtreecommitdiff
path: root/sw/inc/fmthdft.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-04-25 14:00:35 +0200
committerNoel Grandin <noel@peralex.com>2014-04-30 08:44:42 +0200
commit6aa35db39311dcd7965c9c9c21fcf4143a1f9b43 (patch)
tree04320eaf8c7481c1b496460624ee20ec11360ac2 /sw/inc/fmthdft.hxx
parent1417061d1b2c110e7e690523a544b58e7ffd05c0 (diff)
sw: sal_Bool->bool
Change-Id: I324a0ffde2ddcca105451c19e7aadcfad15211d8
Diffstat (limited to 'sw/inc/fmthdft.hxx')
-rw-r--r--sw/inc/fmthdft.hxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/sw/inc/fmthdft.hxx b/sw/inc/fmthdft.hxx
index ce0574650fb4..ca09e16ece7e 100644
--- a/sw/inc/fmthdft.hxx
+++ b/sw/inc/fmthdft.hxx
@@ -33,10 +33,10 @@ class SwFmt;
class SW_DLLPUBLIC SwFmtHeader: public SfxPoolItem, public SwClient
{
- sal_Bool bActive; ///< Only for controlling (creation of content).
+ bool bActive; ///< Only for controlling (creation of content).
public:
- SwFmtHeader( sal_Bool bOn = sal_False );
+ SwFmtHeader( bool bOn = false );
SwFmtHeader( SwFrmFmt *pHeaderFmt );
SwFmtHeader( const SwFmtHeader &rCpy );
virtual ~SwFmtHeader();
@@ -57,8 +57,8 @@ public:
SwFrmFmt *GetHeaderFmt() { return (SwFrmFmt*)GetRegisteredIn(); }
void RegisterToFormat( SwFmt& rFmt );
- sal_Bool IsActive() const { return bActive; }
- void SetActive( sal_Bool bNew = sal_True ) { bActive = bNew; }
+ bool IsActive() const { return bActive; }
+ void SetActive( bool bNew = true ) { bActive = bNew; }
};
/**Footer, for pageformats
@@ -66,10 +66,10 @@ public:
class SW_DLLPUBLIC SwFmtFooter: public SfxPoolItem, public SwClient
{
- sal_Bool bActive; // Only for controlling (creation of content).
+ bool bActive; // Only for controlling (creation of content).
public:
- SwFmtFooter( sal_Bool bOn = sal_False );
+ SwFmtFooter( bool bOn = false );
SwFmtFooter( SwFrmFmt *pFooterFmt );
SwFmtFooter( const SwFmtFooter &rCpy );
virtual ~SwFmtFooter();
@@ -90,18 +90,18 @@ public:
SwFrmFmt *GetFooterFmt() { return (SwFrmFmt*)GetRegisteredIn(); }
void RegisterToFormat( SwFmt& rFmt );
- sal_Bool IsActive() const { return bActive; }
- void SetActive( sal_Bool bNew = sal_True ) { bActive = bNew; }
+ bool IsActive() const { return bActive; }
+ void SetActive( bool bNew = true ) { bActive = bNew; }
};
-inline const SwFmtHeader &SwAttrSet::GetHeader(sal_Bool bInP) const
+inline const SwFmtHeader &SwAttrSet::GetHeader(bool bInP) const
{ return (const SwFmtHeader&)Get( RES_HEADER,bInP); }
-inline const SwFmtFooter &SwAttrSet::GetFooter(sal_Bool bInP) const
+inline const SwFmtFooter &SwAttrSet::GetFooter(bool bInP) const
{ return (const SwFmtFooter&)Get( RES_FOOTER,bInP); }
-inline const SwFmtHeader &SwFmt::GetHeader(sal_Bool bInP) const
+inline const SwFmtHeader &SwFmt::GetHeader(bool bInP) const
{ return aSet.GetHeader(bInP); }
-inline const SwFmtFooter &SwFmt::GetFooter(sal_Bool bInP) const
+inline const SwFmtFooter &SwFmt::GetFooter(bool bInP) const
{ return aSet.GetFooter(bInP); }
#endif