diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-02-19 21:49:02 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-02-20 08:17:00 +0100 |
commit | 12f1faf7bf7b236f54f740a9f65646749fc266ee (patch) | |
tree | 92b570339a02ac977907be12dc8e2e49291d177d /include | |
parent | 9e183fbfdbfbe364d17f9d36a0b33d2fae89862d (diff) |
svl: sal_Bool -> bool
Change-Id: Ic31455a1f5ffffa35d4fdde901dd70734207b6f4
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/crossedoutitem.hxx | 2 | ||||
-rw-r--r-- | include/editeng/postitem.hxx | 2 | ||||
-rw-r--r-- | include/editeng/udlnitem.hxx | 2 | ||||
-rw-r--r-- | include/editeng/wghtitem.hxx | 2 | ||||
-rw-r--r-- | include/svl/aeitem.hxx | 2 | ||||
-rw-r--r-- | include/svl/cenumitm.hxx | 4 | ||||
-rw-r--r-- | include/svl/cjkoptions.hxx | 22 | ||||
-rw-r--r-- | include/svl/fstathelper.hxx | 6 | ||||
-rw-r--r-- | include/svl/inethist.hxx | 12 | ||||
-rw-r--r-- | include/svl/itemiter.hxx | 4 | ||||
-rw-r--r-- | include/svl/itempool.hxx | 14 | ||||
-rw-r--r-- | include/svl/itemprop.hxx | 2 | ||||
-rw-r--r-- | include/svl/itemset.hxx | 6 | ||||
-rw-r--r-- | include/svl/languageoptions.hxx | 26 | ||||
-rw-r--r-- | include/svl/lstner.hxx | 6 | ||||
-rw-r--r-- | include/svl/macitem.hxx | 10 | ||||
-rw-r--r-- | include/svl/poolcach.hxx | 2 | ||||
-rw-r--r-- | include/svl/poolitem.hxx | 6 | ||||
-rw-r--r-- | include/svl/rngitem.hxx | 2 | ||||
-rw-r--r-- | include/svl/sharecontrolfile.hxx | 2 | ||||
-rw-r--r-- | include/svl/style.hxx | 2 | ||||
-rw-r--r-- | include/svl/visitem.hxx | 6 | ||||
-rw-r--r-- | include/svx/sdtfsitm.hxx | 2 |
23 files changed, 72 insertions, 72 deletions
diff --git a/include/editeng/crossedoutitem.hxx b/include/editeng/crossedoutitem.hxx index 6163545edaef..badb98b0e4e4 100644 --- a/include/editeng/crossedoutitem.hxx +++ b/include/editeng/crossedoutitem.hxx @@ -58,7 +58,7 @@ public: {SfxEnumItem::SetValue(nNewVal); } virtual bool HasBoolValue() const; - virtual sal_Bool GetBoolValue() const; + virtual bool GetBoolValue() const; virtual void SetBoolValue( sal_Bool bVal ); inline SvxCrossedOutItem& operator=(const SvxCrossedOutItem& rCross) diff --git a/include/editeng/postitem.hxx b/include/editeng/postitem.hxx index 88a9651b0e72..8b2636685feb 100644 --- a/include/editeng/postitem.hxx +++ b/include/editeng/postitem.hxx @@ -56,7 +56,7 @@ public: virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ); virtual bool HasBoolValue() const; - virtual sal_Bool GetBoolValue() const; + virtual bool GetBoolValue() const; virtual void SetBoolValue( sal_Bool bVal ); inline SvxPostureItem& operator=(const SvxPostureItem& rPost) { diff --git a/include/editeng/udlnitem.hxx b/include/editeng/udlnitem.hxx index 8b6499758ccd..19367483f746 100644 --- a/include/editeng/udlnitem.hxx +++ b/include/editeng/udlnitem.hxx @@ -58,7 +58,7 @@ public: void SetValue( sal_uInt16 nNewVal ) {SfxEnumItem::SetValue(nNewVal); } virtual bool HasBoolValue() const; - virtual sal_Bool GetBoolValue() const; + virtual bool GetBoolValue() const; virtual void SetBoolValue( sal_Bool bVal ); virtual bool operator==( const SfxPoolItem& ) const; diff --git a/include/editeng/wghtitem.hxx b/include/editeng/wghtitem.hxx index c4dc9ac26a58..f8946508f1b5 100644 --- a/include/editeng/wghtitem.hxx +++ b/include/editeng/wghtitem.hxx @@ -56,7 +56,7 @@ public: virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ); virtual bool HasBoolValue() const; - virtual sal_Bool GetBoolValue() const; + virtual bool GetBoolValue() const; virtual void SetBoolValue( sal_Bool bVal ); inline SvxWeightItem& operator=(const SvxWeightItem& rWeight) { diff --git a/include/svl/aeitem.hxx b/include/svl/aeitem.hxx index 220f27cac2c7..8250197120cc 100644 --- a/include/svl/aeitem.hxx +++ b/include/svl/aeitem.hxx @@ -54,7 +54,7 @@ public: virtual OUString GetValueTextByPos( sal_uInt16 nPos ) const; virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; virtual SfxPoolItem* Create(SvStream &, sal_uInt16 nVersion) const; - virtual sal_Bool IsEnabled( sal_uInt16 ) const; + virtual bool IsEnabled( sal_uInt16 ) const; void DisableValue( sal_uInt16 ); }; diff --git a/include/svl/cenumitm.hxx b/include/svl/cenumitm.hxx index e9507292a1cf..87a0b36716b3 100644 --- a/include/svl/cenumitm.hxx +++ b/include/svl/cenumitm.hxx @@ -68,7 +68,7 @@ public: /// if not included. virtual sal_uInt16 GetPosByValue(sal_uInt16 nValue) const; - virtual sal_Bool IsEnabled(sal_uInt16 nValue) const; + virtual bool IsEnabled(sal_uInt16 nValue) const; virtual sal_uInt16 GetEnumValue() const = 0; @@ -76,7 +76,7 @@ public: virtual bool HasBoolValue() const; - virtual sal_Bool GetBoolValue() const; + virtual bool GetBoolValue() const; virtual void SetBoolValue(sal_Bool bValue); }; diff --git a/include/svl/cjkoptions.hxx b/include/svl/cjkoptions.hxx index 5acbb7e49988..a599e8406882 100644 --- a/include/svl/cjkoptions.hxx +++ b/include/svl/cjkoptions.hxx @@ -49,20 +49,20 @@ public: }; // bDontLoad is for referencing purposes only - SvtCJKOptions(sal_Bool bDontLoad = sal_False); + SvtCJKOptions(bool bDontLoad = false); virtual ~SvtCJKOptions(); - sal_Bool IsCJKFontEnabled() const; - sal_Bool IsVerticalTextEnabled() const; - sal_Bool IsAsianTypographyEnabled() const; - sal_Bool IsJapaneseFindEnabled() const; - sal_Bool IsRubyEnabled() const; - sal_Bool IsChangeCaseMapEnabled() const; - sal_Bool IsDoubleLinesEnabled() const; + bool IsCJKFontEnabled() const; + bool IsVerticalTextEnabled() const; + bool IsAsianTypographyEnabled() const; + bool IsJapaneseFindEnabled() const; + bool IsRubyEnabled() const; + bool IsChangeCaseMapEnabled() const; + bool IsDoubleLinesEnabled() const; - void SetAll(sal_Bool bSet); - sal_Bool IsAnyEnabled() const; - sal_Bool IsReadOnly(EOption eOption) const; + void SetAll(bool bSet); + bool IsAnyEnabled() const; + bool IsReadOnly(EOption eOption) const; }; #endif // INCLUDED_SVL_CJKOPTIONS_HXX diff --git a/include/svl/fstathelper.hxx b/include/svl/fstathelper.hxx index 6f92c01fe117..feb43cefa7fa 100644 --- a/include/svl/fstathelper.hxx +++ b/include/svl/fstathelper.hxx @@ -38,18 +38,18 @@ namespace FStatHelper { @return it was be able to get the date/time stamp */ -SVL_DLLPUBLIC sal_Bool GetModifiedDateTimeOfFile( const OUString& rURL, +SVL_DLLPUBLIC bool GetModifiedDateTimeOfFile( const OUString& rURL, Date* pDate, Time* pTime ); /** Return if under the URL a document exist. This is only a wrapper for the UCB.IsContent. */ -SVL_DLLPUBLIC sal_Bool IsDocument( const OUString& rURL ); +SVL_DLLPUBLIC bool IsDocument( const OUString& rURL ); /** Return if under the URL a folder exist. This is only a wrapper for the UCB.isFolder. */ -SVL_DLLPUBLIC sal_Bool IsFolder( const OUString& rURL ); +SVL_DLLPUBLIC bool IsFolder( const OUString& rURL ); } diff --git a/include/svl/inethist.hxx b/include/svl/inethist.hxx index 0e7216bbac8e..96e728a2fecd 100644 --- a/include/svl/inethist.hxx +++ b/include/svl/inethist.hxx @@ -47,7 +47,7 @@ class INetURLHistory : public SfxBroadcaster static void NormalizeUrl_Impl (INetURLObject &rUrl); SVL_DLLPUBLIC void PutUrl_Impl (const INetURLObject &rUrl); - SVL_DLLPUBLIC sal_Bool QueryUrl_Impl (const INetURLObject &rUrl); + SVL_DLLPUBLIC bool QueryUrl_Impl (const INetURLObject &rUrl); /** Not implemented. */ @@ -61,7 +61,7 @@ public: /** QueryProtocol. */ - sal_Bool QueryProtocol (INetProtocol eProto) const + bool QueryProtocol (INetProtocol eProto) const { return ((eProto == INET_PROT_FILE ) || (eProto == INET_PROT_FTP ) || @@ -71,22 +71,22 @@ public: /** QueryUrl. */ - sal_Bool QueryUrl (const INetURLObject &rUrl) + bool QueryUrl (const INetURLObject &rUrl) { if (QueryProtocol (rUrl.GetProtocol())) return QueryUrl_Impl (rUrl); else - return sal_False; + return false; } - sal_Bool QueryUrl (const OUString &rUrl) + bool QueryUrl (const OUString &rUrl) { INetProtocol eProto = INetURLObject::CompareProtocolScheme (rUrl); if (QueryProtocol (eProto)) return QueryUrl_Impl (INetURLObject (rUrl)); else - return sal_False; + return false; } /** PutUrl. diff --git a/include/svl/itemiter.hxx b/include/svl/itemiter.hxx index bc6cca2a36fa..a779449468d7 100644 --- a/include/svl/itemiter.hxx +++ b/include/svl/itemiter.hxx @@ -47,8 +47,8 @@ public: { return _rSet._nCount ? *(_rSet._aItems+_nAkt) : 0; } const SfxPoolItem* NextItem(); - sal_Bool IsAtStart() const { return _nAkt == _nStt; } - sal_Bool IsAtEnd() const { return _nAkt == _nEnd; } + bool IsAtStart() const { return _nAkt == _nStt; } + bool IsAtEnd() const { return _nAkt == _nEnd; } sal_uInt16 GetCurPos() const { return _nAkt; } sal_uInt16 GetFirstPos() const { return _nStt; } diff --git a/include/svl/itempool.hxx b/include/svl/itempool.hxx index 8f380da9d233..4b8e421d095d 100644 --- a/include/svl/itempool.hxx +++ b/include/svl/itempool.hxx @@ -102,7 +102,7 @@ protected: public: SfxItemPool( const SfxItemPool &rPool, - sal_Bool bCloneStaticDefaults = sal_False ); + bool bCloneStaticDefaults = false ); SfxItemPool( const OUString &rName, sal_uInt16 nStart, sal_uInt16 nEnd, const SfxItemInfo *pItemInfos, @@ -122,8 +122,8 @@ public: void ResetPoolDefaultItem( sal_uInt16 nWhich ); void SetDefaults( SfxPoolItem **pDefaults ); - void ReleaseDefaults( sal_Bool bDelete = sal_False ); - static void ReleaseDefaults( SfxPoolItem **pDefaults, sal_uInt16 nCount, sal_Bool bDelete = sal_False ); + void ReleaseDefaults( bool bDelete = false ); + static void ReleaseDefaults( SfxPoolItem **pDefaults, sal_uInt16 nCount, bool bDelete = false ); virtual SfxMapUnit GetMetric( sal_uInt16 nWhich ) const; void SetDefaultMetric( SfxMapUnit eNewMetric ); @@ -203,10 +203,10 @@ public: bool IsItemFlag( const SfxPoolItem &rItem, sal_uInt16 nFlag ) const { return IsItemFlag( rItem.Which(), nFlag ); } void SetItemInfos( const SfxItemInfo *pInfos ); - sal_uInt16 GetWhich( sal_uInt16 nSlot, sal_Bool bDeep = sal_True ) const; - sal_uInt16 GetSlotId( sal_uInt16 nWhich, sal_Bool bDeep = sal_True ) const; - sal_uInt16 GetTrueWhich( sal_uInt16 nSlot, sal_Bool bDeep = sal_True ) const; - sal_uInt16 GetTrueSlotId( sal_uInt16 nWhich, sal_Bool bDeep = sal_True ) const; + sal_uInt16 GetWhich( sal_uInt16 nSlot, bool bDeep = true ) const; + sal_uInt16 GetSlotId( sal_uInt16 nWhich, bool bDeep = true ) const; + sal_uInt16 GetTrueWhich( sal_uInt16 nSlot, bool bDeep = true ) const; + sal_uInt16 GetTrueSlotId( sal_uInt16 nWhich, bool bDeep = true ) const; void SetVersionMap( sal_uInt16 nVer, sal_uInt16 nOldStart, sal_uInt16 nOldEnd, diff --git a/include/svl/itemprop.hxx b/include/svl/itemprop.hxx index 64f4afd00452..a38d91f58b24 100644 --- a/include/svl/itemprop.hxx +++ b/include/svl/itemprop.hxx @@ -106,7 +106,7 @@ class SVL_DLLPUBLIC SfxItemPropertySet SfxItemPropertyMap m_aMap; mutable com::sun::star::uno::Reference<com::sun::star::beans::XPropertySetInfo> m_xInfo; protected: - virtual sal_Bool FillItem(SfxItemSet& rSet, sal_uInt16 nWhich, sal_Bool bGetProperty) const; + virtual bool FillItem(SfxItemSet& rSet, sal_uInt16 nWhich, sal_Bool bGetProperty) const; public: SfxItemPropertySet( const SfxItemPropertyMapEntry *pMap ) : diff --git a/include/svl/itemset.hxx b/include/svl/itemset.hxx index b1a00c76e1eb..18298f2216a8 100644 --- a/include/svl/itemset.hxx +++ b/include/svl/itemset.hxx @@ -81,7 +81,7 @@ protected: public: SfxItemSet( const SfxItemSet& ); - SfxItemSet( SfxItemPool&, sal_Bool bTotalPoolRanges = sal_False ); + SfxItemSet( SfxItemPool&, bool bTotalPoolRanges = false ); SfxItemSet( SfxItemPool&, sal_uInt16 nWhich1, sal_uInt16 nWhich2 ); SfxItemSet( SfxItemPool&, USHORT_ARG nWh1, USHORT_ARG nWh2, USHORT_ARG nNull, ... ); SfxItemSet( SfxItemPool&, const sal_uInt16* nWhichPairTable ); @@ -94,7 +94,7 @@ public: sal_uInt16 TotalCount() const; virtual const SfxPoolItem& Get( sal_uInt16 nWhich, sal_Bool bSrchInParent = sal_True ) const; - const SfxPoolItem* GetItem( sal_uInt16 nWhich, sal_Bool bSrchInParent = sal_True, + const SfxPoolItem* GetItem( sal_uInt16 nWhich, bool bSrchInParent = true, TypeId aItemType = 0 ) const; // Which-Wert des Items an der Position nPos erfragen @@ -102,7 +102,7 @@ public: // Item-Status erfragen SfxItemState GetItemState( sal_uInt16 nWhich, - sal_Bool bSrchInParent = sal_True, + bool bSrchInParent = true, const SfxPoolItem **ppItem = 0 ) const; bool HasItem(sal_uInt16 nWhich, const SfxPoolItem** ppItem = NULL) const; diff --git a/include/svl/languageoptions.hxx b/include/svl/languageoptions.hxx index 36d426bcf302..a05b978aade5 100644 --- a/include/svl/languageoptions.hxx +++ b/include/svl/languageoptions.hxx @@ -65,28 +65,28 @@ public: }; // bDontLoad is for referencing purposes only - SvtLanguageOptions( sal_Bool _bDontLoad = sal_False ); + SvtLanguageOptions( bool _bDontLoad = false ); ~SvtLanguageOptions(); // CJK options - sal_Bool IsCJKFontEnabled() const; - sal_Bool IsVerticalTextEnabled() const; - sal_Bool IsAsianTypographyEnabled() const; - sal_Bool IsJapaneseFindEnabled() const; - void SetAll( sal_Bool _bSet ); - sal_Bool IsAnyEnabled() const; + bool IsCJKFontEnabled() const; + bool IsVerticalTextEnabled() const; + bool IsAsianTypographyEnabled() const; + bool IsJapaneseFindEnabled() const; + void SetAll( bool _bSet ); + bool IsAnyEnabled() const; // CTL options - void SetCTLFontEnabled( sal_Bool _bEnabled ); - sal_Bool IsCTLFontEnabled() const; + void SetCTLFontEnabled( bool _bEnabled ); + bool IsCTLFontEnabled() const; - void SetCTLSequenceChecking( sal_Bool _bEnabled ); + void SetCTLSequenceChecking( bool _bEnabled ); - void SetCTLSequenceCheckingRestricted( sal_Bool _bEnable ); + void SetCTLSequenceCheckingRestricted( bool _bEnable ); - void SetCTLSequenceCheckingTypeAndReplace( sal_Bool _bEnable ); + void SetCTLSequenceCheckingTypeAndReplace( bool _bEnable ); - sal_Bool IsReadOnly(EOption eOption) const; + bool IsReadOnly(EOption eOption) const; // returns for a language the scripttype static sal_uInt16 GetScriptTypeOfLanguage( sal_uInt16 nLang ); diff --git a/include/svl/lstner.hxx b/include/svl/lstner.hxx index 41b89d00a600..b7f2b47650e4 100644 --- a/include/svl/lstner.hxx +++ b/include/svl/lstner.hxx @@ -47,10 +47,10 @@ public: SfxListener( const SfxListener &rCopy ); virtual ~SfxListener(); - sal_Bool StartListening( SfxBroadcaster& rBroadcaster, sal_Bool bPreventDups = sal_False ); - sal_Bool EndListening( SfxBroadcaster& rBroadcaster, sal_Bool bAllDups = sal_False ); + bool StartListening( SfxBroadcaster& rBroadcaster, bool bPreventDups = false ); + bool EndListening( SfxBroadcaster& rBroadcaster, bool bAllDups = false ); void EndListeningAll(); - sal_Bool IsListening( SfxBroadcaster& rBroadcaster ) const; + bool IsListening( SfxBroadcaster& rBroadcaster ) const; sal_uInt16 GetBroadcasterCount() const { return aBCs.size(); } diff --git a/include/svl/macitem.hxx b/include/svl/macitem.hxx index 0b5eb8202b29..4fc986ae62b2 100644 --- a/include/svl/macitem.hxx +++ b/include/svl/macitem.hxx @@ -120,7 +120,7 @@ public: // This stores a copy of the rMacro parameter SvxMacro& Insert(sal_uInt16 nEvent, const SvxMacro& rMacro); // If the entry exists, remove it from the map and release it's storage - sal_Bool Erase(sal_uInt16 nEvent); + bool Erase(sal_uInt16 nEvent); }; @@ -152,9 +152,9 @@ public: inline void SetMacroTable( const SvxMacroTableDtor& rTbl ) { aMacroTable = rTbl; } inline const SvxMacro& GetMacro( sal_uInt16 nEvent ) const; - inline sal_Bool HasMacro( sal_uInt16 nEvent ) const; + inline bool HasMacro( sal_uInt16 nEvent ) const; void SetMacro( sal_uInt16 nEvent, const SvxMacro& ); - inline sal_Bool DelMacro( sal_uInt16 nEvent ); + inline bool DelMacro( sal_uInt16 nEvent ); private: SvxMacroTableDtor aMacroTable; @@ -171,7 +171,7 @@ inline SvxMacroItem::SvxMacroItem( const SvxMacroItem &rCpy ) aMacroTable( rCpy.GetMacroTable() ) {} -inline sal_Bool SvxMacroItem::HasMacro( sal_uInt16 nEvent ) const +inline bool SvxMacroItem::HasMacro( sal_uInt16 nEvent ) const { return aMacroTable.IsKeyValid( nEvent ); } @@ -179,7 +179,7 @@ inline const SvxMacro& SvxMacroItem::GetMacro( sal_uInt16 nEvent ) const { return *(aMacroTable.Get(nEvent)); } -inline sal_Bool SvxMacroItem::DelMacro( sal_uInt16 nEvent ) +inline bool SvxMacroItem::DelMacro( sal_uInt16 nEvent ) { return aMacroTable.Erase(nEvent); } diff --git a/include/svl/poolcach.hxx b/include/svl/poolcach.hxx index f987b9b2e2c2..df2fce746fe5 100644 --- a/include/svl/poolcach.hxx +++ b/include/svl/poolcach.hxx @@ -50,7 +50,7 @@ public: const SfxItemSet *pPutSet ); ~SfxItemPoolCache(); - const SfxSetItem& ApplyTo( const SfxSetItem& rSetItem, sal_Bool bNew = sal_False ); + const SfxSetItem& ApplyTo( const SfxSetItem& rSetItem, bool bNew = false ); }; diff --git a/include/svl/poolitem.hxx b/include/svl/poolitem.hxx index 37838caf542a..0d2ce2722071 100644 --- a/include/svl/poolitem.hxx +++ b/include/svl/poolitem.hxx @@ -58,9 +58,9 @@ static const sal_uInt32 SFX_ITEMS_DEFAULT= 0xfffffffe; // UNO3 shortcuts // warning, if there is no boolean inside the any this will always return the value false -inline sal_Bool Any2Bool( const ::com::sun::star::uno::Any&rValue ) +inline bool Any2Bool( const ::com::sun::star::uno::Any&rValue ) { - sal_Bool nValue = sal_False; + bool nValue = false; if( rValue.hasValue() ) { if( rValue.getValueType() == ::getCppuBooleanType() ) @@ -78,7 +78,7 @@ inline sal_Bool Any2Bool( const ::com::sun::star::uno::Any&rValue ) return nValue; } -inline ::com::sun::star::uno::Any Bool2Any( sal_Bool bValue ) +inline ::com::sun::star::uno::Any Bool2Any( bool bValue ) { return ::com::sun::star::uno::Any( &bValue, ::getCppuBooleanType() ); } diff --git a/include/svl/rngitem.hxx b/include/svl/rngitem.hxx index 069929e197b7..daaad28eeb2b 100644 --- a/include/svl/rngitem.hxx +++ b/include/svl/rngitem.hxx @@ -48,7 +48,7 @@ public: inline sal_uInt16 From() const { return nFrom; } inline sal_uInt16& To() { return nTo; } inline sal_uInt16 To() const { return nTo; } - inline sal_Bool HasRange() const { return nTo>nFrom; } + inline bool HasRange() const { return nTo>nFrom; } virtual SfxPoolItem* Create( SvStream &, sal_uInt16 nVersion ) const; virtual SvStream& Store( SvStream &, sal_uInt16 nItemVersion ) const; }; diff --git a/include/svl/sharecontrolfile.hxx b/include/svl/sharecontrolfile.hxx index 87520fdddee2..04f46d7a6b7c 100644 --- a/include/svl/sharecontrolfile.hxx +++ b/include/svl/sharecontrolfile.hxx @@ -51,7 +51,7 @@ class SVL_DLLPUBLIC ShareControlFile : public LockFileCommon void OpenStream(); void Close(); - sal_Bool IsValid() + bool IsValid() { return ( m_xStream.is() && m_xInputStream.is() && m_xOutputStream.is() && m_xSeekable.is() && m_xTruncate.is() ); } diff --git a/include/svl/style.hxx b/include/svl/style.hxx index ccd0a33aa1cf..4db5f5c41889 100644 --- a/include/svl/style.hxx +++ b/include/svl/style.hxx @@ -134,7 +134,7 @@ public: bool IsUserDefined() const { return ( nMask & SFXSTYLEBIT_USERDEF) != 0; } - virtual sal_Bool IsHidden() const { return bHidden; } + virtual bool IsHidden() const { return bHidden; } virtual void SetHidden( sal_Bool bValue ); virtual sal_uLong GetHelpId( OUString& rFile ); diff --git a/include/svl/visitem.hxx b/include/svl/visitem.hxx index 7d98b199fa01..3549cd65af27 100644 --- a/include/svl/visitem.hxx +++ b/include/svl/visitem.hxx @@ -35,7 +35,7 @@ class SVL_DLLPUBLIC SfxVisibilityItem: public SfxPoolItem public: TYPEINFO(); - explicit SfxVisibilityItem(sal_uInt16 which = 0, sal_Bool bVisible = sal_True): + explicit SfxVisibilityItem(sal_uInt16 which = 0, bool bVisible = true): SfxPoolItem(which) { m_nValue.bVisible = bVisible; @@ -77,9 +77,9 @@ public: virtual OUString GetValueTextByVal(sal_Bool bTheValue) const; - sal_Bool GetValue() const { return m_nValue.bVisible; } + bool GetValue() const { return m_nValue.bVisible; } - void SetValue(sal_Bool bVisible) { m_nValue.bVisible = bVisible; } + void SetValue(bool bVisible) { m_nValue.bVisible = bVisible; } }; #endif // INCLUDED_SVL_VISITEM_HXX diff --git a/include/svx/sdtfsitm.hxx b/include/svx/sdtfsitm.hxx index 89a74d57ec61..a6a7782d23cc 100644 --- a/include/svx/sdtfsitm.hxx +++ b/include/svx/sdtfsitm.hxx @@ -58,7 +58,7 @@ public: virtual OUString GetValueTextByPos(sal_uInt16 nPos) const; virtual SfxItemPresentation GetPresentation(SfxItemPresentation ePres, SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, OUString& rText, const IntlWrapper * = 0) const; virtual bool HasBoolValue() const; - virtual sal_Bool GetBoolValue() const; + virtual bool GetBoolValue() const; virtual void SetBoolValue(sal_Bool bVal); }; |