diff options
-rw-r--r-- | editeng/source/uno/unoedprx.cxx | 14 | ||||
-rw-r--r-- | editeng/source/uno/unoviwou.cxx | 20 | ||||
-rw-r--r-- | include/editeng/unoedprx.hxx | 10 | ||||
-rw-r--r-- | include/editeng/unoedsrc.hxx | 20 | ||||
-rw-r--r-- | include/editeng/unoviwou.hxx | 10 | ||||
-rw-r--r-- | sc/source/ui/Accessibility/AccessibleText.cxx | 40 | ||||
-rw-r--r-- | starmath/source/accessibility.cxx | 30 | ||||
-rw-r--r-- | starmath/source/accessibility.hxx | 10 |
8 files changed, 77 insertions, 77 deletions
diff --git a/editeng/source/uno/unoedprx.cxx b/editeng/source/uno/unoedprx.cxx index dcc35000838e..04b6ffd6c9dd 100644 --- a/editeng/source/uno/unoedprx.cxx +++ b/editeng/source/uno/unoedprx.cxx @@ -1202,14 +1202,14 @@ Point SvxAccessibleTextEditViewAdapter::PixelToLogic( const Point& rPoint, const return mpViewForwarder->PixelToLogic(rPoint, rMapMode); } -sal_Bool SvxAccessibleTextEditViewAdapter::GetSelection( ESelection& rSel ) const +bool SvxAccessibleTextEditViewAdapter::GetSelection( ESelection& rSel ) const { DBG_ASSERT(mpViewForwarder, "SvxAccessibleTextEditViewAdapter: no forwarder"); ESelection aSelection; if( !mpViewForwarder->GetSelection( aSelection ) ) - return sal_False; + return false; SvxAccessibleTextIndex aStartIndex; SvxAccessibleTextIndex aEndIndex; @@ -1224,10 +1224,10 @@ sal_Bool SvxAccessibleTextEditViewAdapter::GetSelection( ESelection& rSel ) cons rSel = ESelection( aStartIndex.GetParagraph(), aStartIndex.GetIndex(), aEndIndex.GetParagraph(), aEndIndex.GetIndex() ); - return sal_True; + return true; } -sal_Bool SvxAccessibleTextEditViewAdapter::SetSelection( const ESelection& rSel ) +bool SvxAccessibleTextEditViewAdapter::SetSelection( const ESelection& rSel ) { DBG_ASSERT(mpViewForwarder, "SvxAccessibleTextEditViewAdapter: no forwarder"); @@ -1240,21 +1240,21 @@ sal_Bool SvxAccessibleTextEditViewAdapter::SetSelection( const ESelection& rSel return mpViewForwarder->SetSelection( MakeEESelection(aStartIndex, aEndIndex) ); } -sal_Bool SvxAccessibleTextEditViewAdapter::Copy() +bool SvxAccessibleTextEditViewAdapter::Copy() { DBG_ASSERT(mpViewForwarder, "SvxAccessibleTextEditViewAdapter: no forwarder"); return mpViewForwarder->Copy(); } -sal_Bool SvxAccessibleTextEditViewAdapter::Cut() +bool SvxAccessibleTextEditViewAdapter::Cut() { DBG_ASSERT(mpViewForwarder, "SvxAccessibleTextEditViewAdapter: no forwarder"); return mpViewForwarder->Cut(); } -sal_Bool SvxAccessibleTextEditViewAdapter::Paste() +bool SvxAccessibleTextEditViewAdapter::Paste() { DBG_ASSERT(mpViewForwarder, "SvxAccessibleTextEditViewAdapter: no forwarder"); diff --git a/editeng/source/uno/unoviwou.cxx b/editeng/source/uno/unoviwou.cxx index a3554e572995..106002919d30 100644 --- a/editeng/source/uno/unoviwou.cxx +++ b/editeng/source/uno/unoviwou.cxx @@ -124,34 +124,34 @@ Point SvxDrawOutlinerViewForwarder::PixelToLogic( const Point& rPoint, const Map return Point(); } -sal_Bool SvxDrawOutlinerViewForwarder::GetSelection( ESelection& rSelection ) const +bool SvxDrawOutlinerViewForwarder::GetSelection( ESelection& rSelection ) const { rSelection = mrOutlinerView.GetSelection(); - return sal_True; + return true; } -sal_Bool SvxDrawOutlinerViewForwarder::SetSelection( const ESelection& rSelection ) +bool SvxDrawOutlinerViewForwarder::SetSelection( const ESelection& rSelection ) { mrOutlinerView.SetSelection( rSelection ); - return sal_True; + return true; } -sal_Bool SvxDrawOutlinerViewForwarder::Copy() +bool SvxDrawOutlinerViewForwarder::Copy() { mrOutlinerView.Copy(); - return sal_True; + return true; } -sal_Bool SvxDrawOutlinerViewForwarder::Cut() +bool SvxDrawOutlinerViewForwarder::Cut() { mrOutlinerView.Cut(); - return sal_True; + return true; } -sal_Bool SvxDrawOutlinerViewForwarder::Paste() +bool SvxDrawOutlinerViewForwarder::Paste() { mrOutlinerView.Paste(); - return sal_True; + return true; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/editeng/unoedprx.hxx b/include/editeng/unoedprx.hxx index e716dc92c952..5fe0f6f8a609 100644 --- a/include/editeng/unoedprx.hxx +++ b/include/editeng/unoedprx.hxx @@ -123,11 +123,11 @@ public: virtual Point PixelToLogic( const Point& rPoint, const MapMode& rMapMode ) const; // SvxEditViewForwarder interface - virtual sal_Bool GetSelection( ESelection& rSelection ) const; - virtual sal_Bool SetSelection( const ESelection& rSelection ); - virtual sal_Bool Copy(); - virtual sal_Bool Cut(); - virtual sal_Bool Paste(); + virtual bool GetSelection( ESelection& rSelection ) const; + virtual bool SetSelection( const ESelection& rSelection ); + virtual bool Copy(); + virtual bool Cut(); + virtual bool Paste(); void SetForwarder( SvxEditViewForwarder&, SvxAccessibleTextAdapter& ); diff --git a/include/editeng/unoedsrc.hxx b/include/editeng/unoedsrc.hxx index 8f117169b7ee..5f4a7865cc4d 100644 --- a/include/editeng/unoedsrc.hxx +++ b/include/editeng/unoedsrc.hxx @@ -503,37 +503,37 @@ public: @param rSelection Contains the current selection after method call - @return sal_False, if there is no view or no selection (the empty selection _is_ a selection) + @return false, if there is no view or no selection (the empty selection _is_ a selection) */ - virtual sal_Bool GetSelection( ESelection& rSelection ) const = 0; + virtual bool GetSelection( ESelection& rSelection ) const = 0; /** Set selection in view. @param rSelection The selection to set - @return sal_False, if there is no view or selection is invalid + @return false, if there is no view or selection is invalid */ - virtual sal_Bool SetSelection( const ESelection& rSelection ) = 0; + virtual bool SetSelection( const ESelection& rSelection ) = 0; /** Copy current selection to clipboard. - @return sal_False if no selection or no view (the empty selection _is_ a selection) + @return false if no selection or no view (the empty selection _is_ a selection) */ - virtual sal_Bool Copy() = 0; + virtual bool Copy() = 0; /** Cut current selection to clipboard. - @eturn sal_False if no selection or no view (the empty selection _is_ a selection) + @eturn balse if no selection or no view (the empty selection _is_ a selection) */ - virtual sal_Bool Cut() = 0; + virtual bool Cut() = 0; /** Paste clipboard into current selection. - @return sal_False if no view or no selection (the empty selection _is_ a selection) + @return false if no view or no selection (the empty selection _is_ a selection) */ - virtual sal_Bool Paste() = 0; + virtual bool Paste() = 0; virtual sal_Bool IsWrongSpelledWordAtPos( sal_Int32, sal_Int32 ) { return sal_False; }; virtual sal_Bool IsShapeParaFocusable( ) { return sal_True; }; diff --git a/include/editeng/unoviwou.hxx b/include/editeng/unoviwou.hxx index 3c6ebe927d1c..50f4c68f4d93 100644 --- a/include/editeng/unoviwou.hxx +++ b/include/editeng/unoviwou.hxx @@ -45,11 +45,11 @@ public: virtual Point LogicToPixel( const Point& rPoint, const MapMode& rMapMode ) const; virtual Point PixelToLogic( const Point& rPoint, const MapMode& rMapMode ) const; - virtual sal_Bool GetSelection( ESelection& rSelection ) const; - virtual sal_Bool SetSelection( const ESelection& rSelection ); - virtual sal_Bool Copy(); - virtual sal_Bool Cut(); - virtual sal_Bool Paste(); + virtual bool GetSelection( ESelection& rSelection ) const; + virtual bool SetSelection( const ESelection& rSelection ); + virtual bool Copy(); + virtual bool Cut(); + virtual bool Paste(); }; #endif diff --git a/sc/source/ui/Accessibility/AccessibleText.cxx b/sc/source/ui/Accessibility/AccessibleText.cxx index a3da6e364b89..87e533ccc353 100644 --- a/sc/source/ui/Accessibility/AccessibleText.cxx +++ b/sc/source/ui/Accessibility/AccessibleText.cxx @@ -560,11 +560,11 @@ public: virtual Rectangle GetVisArea() const; virtual Point LogicToPixel( const Point& rPoint, const MapMode& rMapMode ) const; virtual Point PixelToLogic( const Point& rPoint, const MapMode& rMapMode ) const; - virtual sal_Bool GetSelection( ESelection& rSelection ) const; - virtual sal_Bool SetSelection( const ESelection& rSelection ); - virtual sal_Bool Copy(); - virtual sal_Bool Cut(); - virtual sal_Bool Paste(); + virtual bool GetSelection( ESelection& rSelection ) const; + virtual bool SetSelection( const ESelection& rSelection ); + virtual bool Copy(); + virtual bool Cut(); + virtual bool Paste(); void GrabFocus(); @@ -625,13 +625,13 @@ Point ScEditViewForwarder::PixelToLogic( const Point& rPoint, const MapMode& rMa return Point(); } -sal_Bool ScEditViewForwarder::GetSelection( ESelection& rSelection ) const +bool ScEditViewForwarder::GetSelection( ESelection& rSelection ) const { - sal_Bool bResult(false); + bool bResult(false); if (IsValid()) { rSelection = mpEditView->GetSelection(); - bResult = sal_True; + bResult = true; } else { @@ -640,13 +640,13 @@ sal_Bool ScEditViewForwarder::GetSelection( ESelection& rSelection ) const return bResult; } -sal_Bool ScEditViewForwarder::SetSelection( const ESelection& rSelection ) +bool ScEditViewForwarder::SetSelection( const ESelection& rSelection ) { - sal_Bool bResult(false); + bool bResult(false); if (IsValid()) { mpEditView->SetSelection(rSelection); - bResult = sal_True; + bResult = true; } else { @@ -655,13 +655,13 @@ sal_Bool ScEditViewForwarder::SetSelection( const ESelection& rSelection ) return bResult; } -sal_Bool ScEditViewForwarder::Copy() +bool ScEditViewForwarder::Copy() { - sal_Bool bResult(false); + bool bResult(false); if (IsValid()) { mpEditView->Copy(); - bResult = sal_True; + bResult = true; } else { @@ -670,13 +670,13 @@ sal_Bool ScEditViewForwarder::Copy() return bResult; } -sal_Bool ScEditViewForwarder::Cut() +bool ScEditViewForwarder::Cut() { - sal_Bool bResult(false); + bool bResult(false); if (IsValid()) { mpEditView->Cut(); - bResult = sal_True; + bResult = true; } else { @@ -685,13 +685,13 @@ sal_Bool ScEditViewForwarder::Cut() return bResult; } -sal_Bool ScEditViewForwarder::Paste() +bool ScEditViewForwarder::Paste() { - sal_Bool bResult(false); + bool bResult(false); if (IsValid()) { mpEditView->Paste(); - bResult = sal_True; + bResult = true; } else { diff --git a/starmath/source/accessibility.cxx b/starmath/source/accessibility.cxx index 58b67eab60ee..284dd2d167e0 100644 --- a/starmath/source/accessibility.cxx +++ b/starmath/source/accessibility.cxx @@ -1561,62 +1561,62 @@ Point SmEditViewForwarder::PixelToLogic( const Point& rPoint, const MapMode& rMa return Point(); } -sal_Bool SmEditViewForwarder::GetSelection( ESelection& rSelection ) const +bool SmEditViewForwarder::GetSelection( ESelection& rSelection ) const { - sal_Bool bRes = sal_False; + bool bRes = false; EditView *pEditView = rEditAcc.GetEditView(); if (pEditView) { rSelection = pEditView->GetSelection(); - bRes = sal_True; + bRes = true; } return bRes; } -sal_Bool SmEditViewForwarder::SetSelection( const ESelection& rSelection ) +bool SmEditViewForwarder::SetSelection( const ESelection& rSelection ) { - sal_Bool bRes = sal_False; + bool bRes = false; EditView *pEditView = rEditAcc.GetEditView(); if (pEditView) { pEditView->SetSelection( rSelection ); - bRes = sal_True; + bRes = true; } return bRes; } -sal_Bool SmEditViewForwarder::Copy() +bool SmEditViewForwarder::Copy() { - sal_Bool bRes = sal_False; + bool bRes = false; EditView *pEditView = rEditAcc.GetEditView(); if (pEditView) { pEditView->Copy(); - bRes = sal_True; + bRes = true; } return bRes; } -sal_Bool SmEditViewForwarder::Cut() +bool SmEditViewForwarder::Cut() { - sal_Bool bRes = sal_False; + bool bRes = false; EditView *pEditView = rEditAcc.GetEditView(); if (pEditView) { pEditView->Cut(); - bRes = sal_True; + bRes = true; } return bRes; } -sal_Bool SmEditViewForwarder::Paste() +bool SmEditViewForwarder::Paste() { - sal_Bool bRes = sal_False; + bool bRes = false; EditView *pEditView = rEditAcc.GetEditView(); if (pEditView) { pEditView->Paste(); - bRes = sal_True; + bRes = true; } return bRes; } diff --git a/starmath/source/accessibility.hxx b/starmath/source/accessibility.hxx index dc3025e0e377..ec04727148d8 100644 --- a/starmath/source/accessibility.hxx +++ b/starmath/source/accessibility.hxx @@ -274,11 +274,11 @@ public: virtual Point LogicToPixel( const Point& rPoint, const MapMode& rMapMode ) const; virtual Point PixelToLogic( const Point& rPoint, const MapMode& rMapMode ) const; - virtual sal_Bool GetSelection( ESelection& rSelection ) const; - virtual sal_Bool SetSelection( const ESelection& rSelection ); - virtual sal_Bool Copy(); - virtual sal_Bool Cut(); - virtual sal_Bool Paste(); + virtual bool GetSelection( ESelection& rSelection ) const; + virtual bool SetSelection( const ESelection& rSelection ); + virtual bool Copy(); + virtual bool Cut(); + virtual bool Paste(); }; |