diff options
author | Noel Grandin <noel@peralex.com> | 2014-02-13 14:29:17 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-02-14 14:15:17 +0200 |
commit | f30f646e1e132fb3e5019669657ebc1a33ccb1fc (patch) | |
tree | 82513cf0e2605299df258c2e71baacfa4bb19b36 /sc | |
parent | 27042facc6e2c21be630c709d4818962db63352d (diff) |
sal_Bool->bool
Change-Id: Ib0f6699e994f5a71603779b8227bf081b71a5dd6
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/Accessibility/AccessibleDocument.cxx | 28 | ||||
-rw-r--r-- | sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/inc/AccessibleDocument.hxx | 14 |
3 files changed, 23 insertions, 23 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleDocument.cxx b/sc/source/ui/Accessibility/AccessibleDocument.cxx index fc2a0ca452a9..eaaf6f7bebf5 100644 --- a/sc/source/ui/Accessibility/AccessibleDocument.cxx +++ b/sc/source/ui/Accessibility/AccessibleDocument.cxx @@ -1496,7 +1496,7 @@ IMPL_LINK( ScAccessibleDocument, WindowChildEventListener, VclSimpleEvent*, pEve Window* pChildWin = static_cast < Window * >( pVclEvent->GetData() ); if( pChildWin && AccessibleRole::EMBEDDED_OBJECT == pChildWin->GetAccessibleRole() ) { - AddChild( pChildWin->GetAccessible(), sal_True ); + AddChild( pChildWin->GetAccessible(), true ); } } break; @@ -1505,7 +1505,7 @@ IMPL_LINK( ScAccessibleDocument, WindowChildEventListener, VclSimpleEvent*, pEve Window* pChildWin = static_cast < Window * >( pVclEvent->GetData() ); if( pChildWin && AccessibleRole::EMBEDDED_OBJECT == pChildWin->GetAccessibleRole() ) { - RemoveChild( pChildWin->GetAccessible(), sal_True ); + RemoveChild( pChildWin->GetAccessible(), true ); } } break; @@ -1605,7 +1605,7 @@ void ScAccessibleDocument::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) OUString(ScResId(STR_ACC_EDITLINE_DESCR)), ScAccessibleEditObject::CellInEditMode); uno::Reference<XAccessible> xAcc = mpTempAccEdit; - AddChild(xAcc, sal_True); + AddChild(xAcc, true); if (mpAccessibleSpreadsheet) mpAccessibleSpreadsheet->LostFocus(); @@ -1624,7 +1624,7 @@ void ScAccessibleDocument::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) mpTempAccEdit->LostFocus(); mpTempAccEdit = NULL; - RemoveChild(mxTempAcc, sal_True); + RemoveChild(mxTempAcc, true); if (mpAccessibleSpreadsheet && mpViewShell->IsActive()) mpAccessibleSpreadsheet->GotFocus(); else if( mpViewShell->IsActive()) @@ -1668,7 +1668,7 @@ void SAL_CALL ScAccessibleDocument::selectionChanged( const lang::EventObject& / sal_Bool bSelectionChanged(false); if (mpAccessibleSpreadsheet) { - sal_Bool bOldSelected(mbCompleteSheetSelected); + bool bOldSelected(mbCompleteSheetSelected); mbCompleteSheetSelected = IsTableSelected(); if (bOldSelected != mbCompleteSheetSelected) { @@ -2112,7 +2112,7 @@ uno::Sequence<sal_Int8> SAL_CALL ///===== IAccessibleViewForwarder ======================================== -sal_Bool ScAccessibleDocument::IsValid (void) const +bool ScAccessibleDocument::IsValid (void) const { SolarMutexGuard aGuard; IsObjectValid(); @@ -2280,9 +2280,9 @@ void ScAccessibleDocument::FreeAccessibleSpreadsheet() } } -sal_Bool ScAccessibleDocument::IsTableSelected() const +bool ScAccessibleDocument::IsTableSelected() const { - sal_Bool bResult (false); + bool bResult (false); if(mpViewShell) { SCTAB nTab(getVisibleTable()); @@ -2290,26 +2290,26 @@ sal_Bool ScAccessibleDocument::IsTableSelected() const ScMarkData aMarkData(mpViewShell->GetViewData()->GetMarkData()); aMarkData.MarkToMulti(); if (aMarkData.IsAllMarked(ScRange(ScAddress(0, 0, nTab),ScAddress(MAXCOL, MAXROW, nTab)))) - bResult = sal_True; + bResult = true; } return bResult; } -sal_Bool ScAccessibleDocument::IsDefunc( +bool ScAccessibleDocument::IsDefunc( const uno::Reference<XAccessibleStateSet>& rxParentStates) { return ScAccessibleContextBase::IsDefunc() || (mpViewShell == NULL) || !getAccessibleParent().is() || (rxParentStates.is() && rxParentStates->contains(AccessibleStateType::DEFUNC)); } -sal_Bool ScAccessibleDocument::IsEditable( +bool ScAccessibleDocument::IsEditable( const uno::Reference<XAccessibleStateSet>& /* rxParentStates */) { // what is with document protection or readonly documents? - return sal_True; + return true; } -void ScAccessibleDocument::AddChild(const uno::Reference<XAccessible>& xAcc, sal_Bool bFireEvent) +void ScAccessibleDocument::AddChild(const uno::Reference<XAccessible>& xAcc, bool bFireEvent) { OSL_ENSURE(!mxTempAcc.is(), "this object should be removed before"); if (xAcc.is()) @@ -2326,7 +2326,7 @@ void ScAccessibleDocument::AddChild(const uno::Reference<XAccessible>& xAcc, sal } } -void ScAccessibleDocument::RemoveChild(const uno::Reference<XAccessible>& xAcc, sal_Bool bFireEvent) +void ScAccessibleDocument::RemoveChild(const uno::Reference<XAccessible>& xAcc, bool bFireEvent) { OSL_ENSURE(mxTempAcc.is(), "this object should be added before"); if (xAcc.is()) diff --git a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx index 305ce15318d6..4b90eaa0640a 100644 --- a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx +++ b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx @@ -512,7 +512,7 @@ public: ///===== IAccessibleViewForwarder ======================================== - virtual sal_Bool IsValid (void) const; + virtual bool IsValid (void) const; virtual Rectangle GetVisibleArea() const; virtual Point LogicToPixel (const Point& rPoint) const; virtual Size LogicToPixel (const Size& rSize) const; @@ -547,7 +547,7 @@ ScIAccessibleViewForwarder::~ScIAccessibleViewForwarder() ///===== IAccessibleViewForwarder ======================================== -sal_Bool ScIAccessibleViewForwarder::IsValid (void) const +bool ScIAccessibleViewForwarder::IsValid (void) const { SolarMutexGuard aGuard; return mbValid; diff --git a/sc/source/ui/inc/AccessibleDocument.hxx b/sc/source/ui/inc/AccessibleDocument.hxx index 46441a6a70af..7f96300e0f50 100644 --- a/sc/source/ui/inc/AccessibleDocument.hxx +++ b/sc/source/ui/inc/AccessibleDocument.hxx @@ -204,7 +204,7 @@ public: @return Return <true/> if the view forwarder is valid and <false/> else. */ - virtual sal_Bool IsValid (void) const; + virtual bool IsValid (void) const; /** Returns the area of the underlying document that is visible in the * corresponding window. @@ -296,7 +296,7 @@ private: ScAccessibleEditObject* mpTempAccEdit; com::sun::star::uno::Reference<com::sun::star::accessibility::XAccessible> mxTempAcc; Rectangle maVisArea; - sal_Bool mbCompleteSheetSelected; + bool mbCompleteSheetSelected; public: SCTAB getVisibleTable() const; // use it in ScChildrenShapes @@ -304,17 +304,17 @@ public: private: void FreeAccessibleSpreadsheet(); - sal_Bool IsTableSelected() const; + bool IsTableSelected() const; - sal_Bool IsDefunc( + bool IsDefunc( const com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet>& rxParentStates); - sal_Bool IsEditable( + bool IsEditable( const com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet>& rxParentStates); - void AddChild(const com::sun::star::uno::Reference<com::sun::star::accessibility::XAccessible>& xAcc, sal_Bool bFireEvent); - void RemoveChild(const com::sun::star::uno::Reference<com::sun::star::accessibility::XAccessible>& xAcc, sal_Bool bFireEvent); + void AddChild(const com::sun::star::uno::Reference<com::sun::star::accessibility::XAccessible>& xAcc, bool bFireEvent); + void RemoveChild(const com::sun::star::uno::Reference<com::sun::star::accessibility::XAccessible>& xAcc, bool bFireEvent); OUString GetCurrentCellName() const; OUString GetCurrentCellDescription() const; |