diff options
author | Noel Grandin <noel@peralex.com> | 2014-03-24 09:42:33 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-03-25 14:32:53 +0200 |
commit | f5864e8ff4958268b50b15bc4c60c3d0fcfe20d9 (patch) | |
tree | be313acab5cc630c26ef0266ac363a51b62a8226 /include | |
parent | 514d33fa3a409681be93bed3fb33f940a5549d88 (diff) |
svtools: sal_Bool->bool
Change-Id: Ia0280d3d4f2d5b8a93a37a93847951391e928028
Diffstat (limited to 'include')
-rw-r--r-- | include/svtools/roadmap.hxx | 20 | ||||
-rw-r--r-- | include/svtools/roadmapwizard.hxx | 2 | ||||
-rw-r--r-- | include/svtools/rtfout.hxx | 4 | ||||
-rw-r--r-- | include/svtools/ruler.hxx | 44 |
4 files changed, 35 insertions, 35 deletions
diff --git a/include/svtools/roadmap.hxx b/include/svtools/roadmap.hxx index 154a392f7215..2a7b0e44cff4 100644 --- a/include/svtools/roadmap.hxx +++ b/include/svtools/roadmap.hxx @@ -59,28 +59,28 @@ namespace svt ORoadmap( Window* _pParent, WinBits _nWinStyle = 0 ); ~ORoadmap( ); - void SetRoadmapBitmap( const BitmapEx& maBitmap, sal_Bool _bInvalidate = sal_True ); + void SetRoadmapBitmap( const BitmapEx& maBitmap, bool _bInvalidate = true ); - void EnableRoadmapItem( ItemId _nItemId, sal_Bool _bEnable, ItemIndex _nStartIndex = 0 ); + void EnableRoadmapItem( ItemId _nItemId, bool _bEnable, ItemIndex _nStartIndex = 0 ); void ChangeRoadmapItemLabel( ItemId _nID, const OUString& sLabel, ItemIndex _nStartIndex = 0 ); void ChangeRoadmapItemID( ItemId _nID, ItemId _NewID, ItemIndex _nStartIndex = 0 ); - void SetRoadmapInteractive( sal_Bool _bInteractive ); - sal_Bool IsRoadmapInteractive(); + void SetRoadmapInteractive( bool _bInteractive ); + bool IsRoadmapInteractive(); - void SetRoadmapComplete( sal_Bool _bComplete ); - sal_Bool IsRoadmapComplete() const; + void SetRoadmapComplete( bool _bComplete ); + bool IsRoadmapComplete() const; ItemIndex GetItemCount() const; ItemId GetItemID( ItemIndex _nIndex ) const; - void InsertRoadmapItem( ItemIndex _Index, const OUString& _RoadmapItem, ItemId _nUniqueId, sal_Bool _bEnabled = sal_True ); - void ReplaceRoadmapItem( ItemIndex _Index, const OUString& _RoadmapItem, ItemId _nUniqueId, sal_Bool _bEnabled ); + void InsertRoadmapItem( ItemIndex _Index, const OUString& _RoadmapItem, ItemId _nUniqueId, bool _bEnabled = true ); + void ReplaceRoadmapItem( ItemIndex _Index, const OUString& _RoadmapItem, ItemId _nUniqueId, bool _bEnabled ); void DeleteRoadmapItem( ItemIndex _nIndex ); ItemId GetCurrentRoadmapItemID() const; - sal_Bool SelectRoadmapItemByID( ItemId _nItemID ); + bool SelectRoadmapItemByID( ItemId _nItemID ); void SetItemSelectHdl( const Link& _rHdl ); Link GetItemSelectHdl( ) const; @@ -110,7 +110,7 @@ namespace svt ItemId GetNextAvailableItemId( ItemIndex _NewIndex ); ItemId GetPreviousAvailableItemId( ItemIndex _NewIndex ); RoadmapItem* GetByPointer(Window* pWindow); - RoadmapItem* InsertHyperLabel( ItemIndex _Index, const OUString& _aStr, ItemId _RMID, sal_Bool _bEnabled = sal_True ); + RoadmapItem* InsertHyperLabel( ItemIndex _Index, const OUString& _aStr, ItemId _RMID, bool _bEnabled = true ); void UpdatefollowingHyperLabels( ItemIndex _Index ); }; diff --git a/include/svtools/roadmapwizard.hxx b/include/svtools/roadmapwizard.hxx index 03ec7696618d..f8165a1204f9 100644 --- a/include/svtools/roadmapwizard.hxx +++ b/include/svtools/roadmapwizard.hxx @@ -81,7 +81,7 @@ namespace svt void SetRoadmapHelpId( const OString& _rId ); - void SetRoadmapInteractive( sal_Bool _bInteractive ); + void SetRoadmapInteractive( bool _bInteractive ); virtual void Resize(); virtual void StateChanged( StateChangedType nStateChange ); diff --git a/include/svtools/rtfout.hxx b/include/svtools/rtfout.hxx index 42c0a7a8ede0..504a6482542a 100644 --- a/include/svtools/rtfout.hxx +++ b/include/svtools/rtfout.hxx @@ -36,10 +36,10 @@ public: static SvStream& Out_Char( SvStream&, sal_Unicode cChar, int *pUCMode, rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252, - sal_Bool bWriteHelpFile = sal_False ); + bool bWriteHelpFile = false ); static SvStream& Out_String( SvStream&, const rtl::OUString&, rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252, - sal_Bool bWriteHelpFile = sal_False ); + bool bWriteHelpFile = false ); static SvStream& Out_Hex( SvStream&, sal_uLong nHex, sal_uInt8 nLen ); }; diff --git a/include/svtools/ruler.hxx b/include/svtools/ruler.hxx index 8301316d9cf5..1924153b3d55 100644 --- a/include/svtools/ruler.hxx +++ b/include/svtools/ruler.hxx @@ -645,13 +645,13 @@ private: MapUnit meSourceUnit; FieldUnit meUnit; Fraction maZoom; - sal_Bool mbCalc; - sal_Bool mbFormat; - sal_Bool mbDrag; - sal_Bool mbDragDelete; - sal_Bool mbDragCanceled; - sal_Bool mbAutoWinWidth; - sal_Bool mbActive; + bool mbCalc; + bool mbFormat; + bool mbDrag; + bool mbDragDelete; + bool mbDragCanceled; + bool mbAutoWinWidth; + bool mbActive; sal_uInt8 mnUpdateFlags; RulerSelection maHoverSelection; @@ -681,22 +681,22 @@ private: using Window::ImplInit; SVT_DLLPRIVATE void ImplInit( WinBits nWinBits ); - SVT_DLLPRIVATE void ImplInitSettings( sal_Bool bFont, sal_Bool bForeground, sal_Bool bBackground ); + SVT_DLLPRIVATE void ImplInitSettings( bool bFont, bool bForeground, bool bBackground ); SVT_DLLPRIVATE void ImplCalc(); SVT_DLLPRIVATE void ImplFormat(); - SVT_DLLPRIVATE void ImplInitExtraField( sal_Bool bUpdate ); - SVT_DLLPRIVATE void ImplInvertLines( sal_Bool bErase = sal_False ); + SVT_DLLPRIVATE void ImplInitExtraField( bool bUpdate ); + SVT_DLLPRIVATE void ImplInvertLines( bool bErase = false ); SVT_DLLPRIVATE void ImplDraw(); - SVT_DLLPRIVATE void ImplDrawExtra( sal_Bool bPaint = sal_False ); - SVT_DLLPRIVATE void ImplUpdate( sal_Bool bMustCalc = sal_False ); + SVT_DLLPRIVATE void ImplDrawExtra( bool bPaint = false ); + SVT_DLLPRIVATE void ImplUpdate( bool bMustCalc = false ); using Window::ImplHitTest; - SVT_DLLPRIVATE sal_Bool ImplHitTest( const Point& rPosition, + SVT_DLLPRIVATE bool ImplHitTest( const Point& rPosition, RulerSelection* pHitTest, - sal_Bool bRequiredStyle = sal_False, + bool bRequiredStyle = false, sal_uInt16 nRequiredStyle = 0 ) const; - SVT_DLLPRIVATE sal_Bool ImplDocHitTest( const Point& rPos, RulerType eDragType, RulerSelection* pHitTest ) const; - SVT_DLLPRIVATE sal_Bool ImplStartDrag( RulerSelection* pHitTest, sal_uInt16 nModifier ); + SVT_DLLPRIVATE bool ImplDocHitTest( const Point& rPos, RulerType eDragType, RulerSelection* pHitTest ) const; + SVT_DLLPRIVATE bool ImplStartDrag( RulerSelection* pHitTest, sal_uInt16 nModifier ); SVT_DLLPRIVATE void ImplDrag( const Point& rPos ); SVT_DLLPRIVATE void ImplEndDrag(); @@ -732,7 +732,7 @@ public: void Activate(); void Deactivate(); - sal_Bool IsActive() const { return mbActive; } + bool IsActive() const { return mbActive; } void SetWinPos( long nOff = 0, long nWidth = 0 ); long GetWinOffset() const { return mnWinOff; } @@ -757,17 +757,17 @@ public: sal_uInt16 GetExtraClicks() const { return mnExtraClicks; } sal_uInt16 GetExtraModifier() const { return mnExtraModifier; } - sal_Bool StartDocDrag( const MouseEvent& rMEvt, + bool StartDocDrag( const MouseEvent& rMEvt, RulerType eDragType = RULER_TYPE_DONTKNOW ); RulerType GetDragType() const { return meDragType; } long GetDragPos() const { return mnDragPos; } sal_uInt16 GetDragAryPos() const { return mnDragAryPos; } sal_uInt16 GetDragSize() const { return mnDragSize; } - sal_Bool IsDragDelete() const { return mbDragDelete; } - sal_Bool IsDragCanceled() const { return mbDragCanceled; } + bool IsDragDelete() const { return mbDragDelete; } + bool IsDragCanceled() const { return mbDragCanceled; } sal_uInt16 GetDragScroll() const { return mnDragScroll; } sal_uInt16 GetDragModifier() const { return mnDragModifier; } - sal_Bool IsDrag() const { return mbDrag; } + bool IsDrag() const { return mbDrag; } void CancelDrag(); long GetClickPos() const { return mnDragPos; } RulerType GetClickType() const { return meDragType; } @@ -816,7 +816,7 @@ public: void SetExtraDownHdl( const Link& rLink ) { maExtraDownHdl = rLink; } const Link& GetExtraDownHdl() const { return maExtraDownHdl; } - void SetTextRTL(sal_Bool bRTL); + void SetTextRTL(bool bRTL); bool GetTextRTL(); void SetCharWidth( long nWidth ) { mnCharWidth = nWidth ; } void SetLineHeight( long nHeight ) { mnLineHeight = nHeight ; } |