diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2010-10-05 07:57:51 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2010-10-07 19:06:03 -0500 |
commit | 118323a96c21135d553bf7fc1ccc5337868e835d (patch) | |
tree | 882c2f78093e38a50b553c195a268b1d63d3af1f /sd | |
parent | 2bbe25827196f104285db69a6fe12adb0f28c036 (diff) |
FASTBOOL to bool conversion
Diffstat (limited to 'sd')
-rw-r--r-- | sd/inc/drawdoc.hxx | 8 | ||||
-rw-r--r-- | sd/inc/pglink.hxx | 2 | ||||
-rw-r--r-- | sd/inc/sderror.hxx | 4 | ||||
-rw-r--r-- | sd/inc/sdpage.hxx | 2 | ||||
-rw-r--r-- | sd/source/core/drawdoc.cxx | 4 | ||||
-rw-r--r-- | sd/source/core/drawdoc2.cxx | 13 | ||||
-rw-r--r-- | sd/source/core/drawdoc3.cxx | 6 | ||||
-rw-r--r-- | sd/source/core/sdpage2.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/animations/motionpathtag.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/func/fupoor.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/view/drviews4.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/view/drviews7.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/view/drviewsa.cxx | 2 |
13 files changed, 26 insertions, 27 deletions
diff --git a/sd/inc/drawdoc.hxx b/sd/inc/drawdoc.hxx index 6811da762934..a9ec76dd47d3 100644 --- a/sd/inc/drawdoc.hxx +++ b/sd/inc/drawdoc.hxx @@ -224,10 +224,10 @@ public: ~SdDrawDocument(); virtual SdrModel* AllocModel() const; - virtual SdrPage* AllocPage(FASTBOOL bMasterPage); + virtual SdrPage* AllocPage(bool bMasterPage); virtual const SdrModel* LoadModel(const String& rFileName); virtual void DisposeLoadedModels(); - virtual FASTBOOL IsReadOnly() const; + virtual bool IsReadOnly() const; virtual void SetChanged(sal_Bool bFlag = sal_True); virtual SvStream* GetDocumentStream(SdrDocumentStreamInfo& rStreamInfo) const; @@ -449,8 +449,8 @@ public: void Merge(SdrModel& rSourceModel, USHORT nFirstPageNum=0, USHORT nLastPageNum=0xFFFF, USHORT nDestPos=0xFFFF, - FASTBOOL bMergeMasterPages=FALSE, FASTBOOL bAllMasterPages=FALSE, - FASTBOOL bUndo=TRUE, FASTBOOL bTreadSourceAsConst=FALSE); + bool bMergeMasterPages = false, bool bAllMasterPages = false, + bool bUndo = true, bool bTreadSourceAsConst = false); SD_DLLPUBLIC ::com::sun::star::text::WritingMode GetDefaultWritingMode() const; void SetDefaultWritingMode( ::com::sun::star::text::WritingMode eMode ); diff --git a/sd/inc/pglink.hxx b/sd/inc/pglink.hxx index 8f8eff565d42..00c3e4e9aa08 100644 --- a/sd/inc/pglink.hxx +++ b/sd/inc/pglink.hxx @@ -47,7 +47,7 @@ public: virtual void Closed(); virtual void DataChanged( const String& , const ::com::sun::star::uno::Any & ); - FASTBOOL Connect() { return 0 != SvBaseLink::GetRealObject(); } + bool Connect() { return 0 != SvBaseLink::GetRealObject(); } }; #else diff --git a/sd/inc/sderror.hxx b/sd/inc/sderror.hxx index 2564584cb3eb..ee2908027e51 100644 --- a/sd/inc/sderror.hxx +++ b/sd/inc/sderror.hxx @@ -49,12 +49,12 @@ #ifndef __RSC -inline FASTBOOL IsWarning( ULONG nErr ) +inline bool IsWarning( ULONG nErr ) { return 0 != ( nErr & ERRCODE_WARNING_MASK & nErr ); } -inline FASTBOOL IsError( ULONG nErr ) +inline bool IsError( ULONG nErr ) { return nErr && 0 == ( ERRCODE_WARNING_MASK & nErr ); } diff --git a/sd/inc/sdpage.hxx b/sd/inc/sdpage.hxx index 3999b220a1f3..bb68811687f3 100644 --- a/sd/inc/sdpage.hxx +++ b/sd/inc/sdpage.hxx @@ -184,7 +184,7 @@ public: virtual void SetUppBorder(INT32 nBorder); virtual void SetLwrBorder(INT32 nBorder); virtual void SetModel(SdrModel* pNewModel); - virtual FASTBOOL IsReadOnly() const; + virtual bool IsReadOnly() const; sd::ShapeList& GetPresentationShapeList() { return maPresentationShapeList; } diff --git a/sd/source/core/drawdoc.cxx b/sd/source/core/drawdoc.cxx index 4aec32bd17ca..6809a028b9ed 100644 --- a/sd/source/core/drawdoc.cxx +++ b/sd/source/core/drawdoc.cxx @@ -532,9 +532,9 @@ SdrModel* SdDrawDocument::AllocModel() const |* \************************************************************************/ -SdrPage* SdDrawDocument::AllocPage(FASTBOOL bMasterPage) +SdrPage* SdDrawDocument::AllocPage(bool bMasterPage) { - return new SdPage(*this, NULL, (BOOL)bMasterPage); + return new SdPage(*this, NULL, bMasterPage); } /************************************************************************* diff --git a/sd/source/core/drawdoc2.cxx b/sd/source/core/drawdoc2.cxx index 1758b1d95c1b..87cc38c3b6d1 100644 --- a/sd/source/core/drawdoc2.cxx +++ b/sd/source/core/drawdoc2.cxx @@ -566,8 +566,7 @@ void SdDrawDocument::CreateFirstPages( SdDrawDocument* pRefDocument /* = 0 */ ) /********************************************************************** * Handzettel-Seite einfuegen **********************************************************************/ - BOOL bMasterPage; - SdPage* pHandoutPage = dynamic_cast< SdPage* >( AllocPage(bMasterPage=FALSE) ); + SdPage* pHandoutPage = dynamic_cast< SdPage* >( AllocPage(FALSE) ); SdPage* pRefPage = NULL; @@ -592,7 +591,7 @@ void SdDrawDocument::CreateFirstPages( SdDrawDocument* pRefDocument /* = 0 */ ) /********************************************************************** * MasterPage einfuegen und an der Handzettel-Seite vermerken **********************************************************************/ - SdPage* pHandoutMPage = (SdPage*) AllocPage(bMasterPage=TRUE); + SdPage* pHandoutMPage = (SdPage*) AllocPage(TRUE); pHandoutMPage->SetSize( pHandoutPage->GetSize() ); pHandoutMPage->SetPageKind(PK_HANDOUT); pHandoutMPage->SetBorder( pHandoutPage->GetLftBorder(), @@ -615,7 +614,7 @@ void SdDrawDocument::CreateFirstPages( SdDrawDocument* pRefDocument /* = 0 */ ) if (nPageCount == 0) { - pPage = dynamic_cast< SdPage* >( AllocPage(bMasterPage=FALSE) ); + pPage = dynamic_cast< SdPage* >( AllocPage(FALSE) ); if( pRefPage ) { @@ -671,7 +670,7 @@ void SdDrawDocument::CreateFirstPages( SdDrawDocument* pRefDocument /* = 0 */ ) /********************************************************************** * MasterPage einfuegen und an der Seite vermerken **********************************************************************/ - SdPage* pMPage = (SdPage*) AllocPage(bMasterPage=TRUE); + SdPage* pMPage = (SdPage*) AllocPage(TRUE); pMPage->SetSize( pPage->GetSize() ); pMPage->SetBorder( pPage->GetLftBorder(), pPage->GetUppBorder(), @@ -685,7 +684,7 @@ void SdDrawDocument::CreateFirstPages( SdDrawDocument* pRefDocument /* = 0 */ ) /********************************************************************** * Notizen-Seite einfuegen **********************************************************************/ - SdPage* pNotesPage = (SdPage*) AllocPage(bMasterPage=FALSE); + SdPage* pNotesPage = (SdPage*) AllocPage(FALSE); if( pRefDocument ) pRefPage = pRefDocument->GetSdPage( 0, PK_NOTES ); @@ -717,7 +716,7 @@ void SdDrawDocument::CreateFirstPages( SdDrawDocument* pRefDocument /* = 0 */ ) /********************************************************************** * MasterPage einfuegen und an der Notizen-Seite vermerken **********************************************************************/ - SdPage* pNotesMPage = (SdPage*) AllocPage(bMasterPage=TRUE); + SdPage* pNotesMPage = (SdPage*) AllocPage(TRUE); pNotesMPage->SetSize( pNotesPage->GetSize() ); pNotesMPage->SetPageKind(PK_NOTES); pNotesMPage->SetBorder( pNotesPage->GetLftBorder(), diff --git a/sd/source/core/drawdoc3.cxx b/sd/source/core/drawdoc3.cxx index 103a197d5a1f..8690cdad5c94 100644 --- a/sd/source/core/drawdoc3.cxx +++ b/sd/source/core/drawdoc3.cxx @@ -1205,7 +1205,7 @@ void SdDrawDocument::DisposeLoadedModels() |* \************************************************************************/ -FASTBOOL SdDrawDocument::IsReadOnly() const +bool SdDrawDocument::IsReadOnly() const { return FALSE; } @@ -2034,8 +2034,8 @@ void SdDrawDocument::SetMasterPage(USHORT nSdPageNum, void SdDrawDocument::Merge(SdrModel& rSourceModel, USHORT nFirstPageNum, USHORT nLastPageNum, USHORT nDestPos, - FASTBOOL bMergeMasterPages, FASTBOOL bAllMasterPages, - FASTBOOL bUndo, FASTBOOL bTreadSourceAsConst) + bool bMergeMasterPages, bool bAllMasterPages, + bool bUndo, bool bTreadSourceAsConst) { sal_uInt16 nMasterPageCount = GetMasterPageCount(); SdrModel::Merge( rSourceModel, nFirstPageNum, nLastPageNum, nDestPos, bMergeMasterPages, bAllMasterPages, bUndo, bTreadSourceAsConst ); diff --git a/sd/source/core/sdpage2.cxx b/sd/source/core/sdpage2.cxx index 5a5d266c4182..77987bdd6b52 100644 --- a/sd/source/core/sdpage2.cxx +++ b/sd/source/core/sdpage2.cxx @@ -312,9 +312,9 @@ void SdPage::SetModel(SdrModel* pNewModel) |* \************************************************************************/ -FASTBOOL SdPage::IsReadOnly() const +bool SdPage::IsReadOnly() const { - return FALSE; + return false; } /************************************************************************* diff --git a/sd/source/ui/animations/motionpathtag.cxx b/sd/source/ui/animations/motionpathtag.cxx index 30992f913705..050dd08e373a 100644 --- a/sd/source/ui/animations/motionpathtag.cxx +++ b/sd/source/ui/animations/motionpathtag.cxx @@ -798,7 +798,7 @@ bool MotionPathTag::OnMove( const KeyEvent& rKEvt ) if(mrView.IsDragObj()) { - FASTBOOL bWasNoSnap = mrView.GetDragStat().IsNoSnap(); + bool bWasNoSnap = mrView.GetDragStat().IsNoSnap(); BOOL bWasSnapEnabled = mrView.IsSnapEnabled(); // switch snapping off diff --git a/sd/source/ui/func/fupoor.cxx b/sd/source/ui/func/fupoor.cxx index 0f0730218610..414b9881d7c4 100644 --- a/sd/source/ui/func/fupoor.cxx +++ b/sd/source/ui/func/fupoor.cxx @@ -816,7 +816,7 @@ BOOL FuPoor::KeyInput(const KeyEvent& rKEvt) if(mpView->IsDragObj()) { - FASTBOOL bWasNoSnap = rDragStat.IsNoSnap(); + bool bWasNoSnap = rDragStat.IsNoSnap(); BOOL bWasSnapEnabled = mpView->IsSnapEnabled(); // switch snapping off diff --git a/sd/source/ui/view/drviews4.cxx b/sd/source/ui/view/drviews4.cxx index a60b8885ead7..6eee24083a80 100644 --- a/sd/source/ui/view/drviews4.cxx +++ b/sd/source/ui/view/drviews4.cxx @@ -432,7 +432,7 @@ void DrawViewShell::MouseButtonUp(const MouseEvent& rMEvt, ::sd::Window* pWin) { if ( !IsInputLocked() ) { - FASTBOOL bIsSetPageOrg = mpDrawView->IsSetPageOrg(); + bool bIsSetPageOrg = mpDrawView->IsSetPageOrg(); if (mbIsRulerDrag) { diff --git a/sd/source/ui/view/drviews7.cxx b/sd/source/ui/view/drviews7.cxx index 81e2d65aa2b8..01ca2346a941 100644 --- a/sd/source/ui/view/drviews7.cxx +++ b/sd/source/ui/view/drviews7.cxx @@ -236,7 +236,7 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) rSet.DisableItem( SID_DRAW_TEXT_VERTICAL ); } - FASTBOOL bConvertToPathPossible = mpDrawView->IsConvertToPathObjPossible(FALSE); + bool bConvertToPathPossible = mpDrawView->IsConvertToPathObjPossible(FALSE); const SdrMarkList& rMarkList = mpDrawView->GetMarkedObjectList(); const ULONG nMarkCount = rMarkList.GetMarkCount(); diff --git a/sd/source/ui/view/drviewsa.cxx b/sd/source/ui/view/drviewsa.cxx index 589d3ee4f1ad..087e7bd083df 100644 --- a/sd/source/ui/view/drviewsa.cxx +++ b/sd/source/ui/view/drviewsa.cxx @@ -769,7 +769,7 @@ void DrawViewShell::GetStatusBarState(SfxItemSet& rSet) SdrObject* pObj = NULL; const SdrMarkList& rMarkList = mpDrawView->GetMarkedObjectList(); ULONG nMarkCount = rMarkList.GetMarkCount(); - FASTBOOL bOneLayer = TRUE; + bool bOneLayer = TRUE; // Use the first ten selected shapes as a (hopefully // representative) sample of all shapes of the current page. |