diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-10 21:57:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-12 09:09:59 +0100 |
commit | 07f9a847f027139d75ac5eb7c8b48a8bb8cb1324 (patch) | |
tree | 1a28b42b812d579b65ae3d6f41d393c46ae06fbc /editeng | |
parent | 3127405547d3d4fa5f1f98bab187e7ac19d76b73 (diff) |
callcatcher: various unused methods
Diffstat (limited to 'editeng')
8 files changed, 0 insertions, 122 deletions
diff --git a/editeng/inc/editeng/AccessibleEditableTextPara.hxx b/editeng/inc/editeng/AccessibleEditableTextPara.hxx index dac131aefc01..e87fb1ac9e84 100644 --- a/editeng/inc/editeng/AccessibleEditableTextPara.hxx +++ b/editeng/inc/editeng/AccessibleEditableTextPara.hxx @@ -246,8 +246,6 @@ namespace accessibility /// Calls all Listener objects to tell them the change. Don't hold locks when calling this! virtual void FireEvent(const sal_Int16 nEventId, const ::com::sun::star::uno::Any& rNewValue = ::com::sun::star::uno::Any(), const ::com::sun::star::uno::Any& rOldValue = ::com::sun::star::uno::Any() ) const; - /// Queries the given state on the internal state set - bool HasState( const sal_Int16 nStateId ); /// Sets the given state on the internal state set and fires STATE_CHANGE event. Don't hold locks when calling this! void SetState( const sal_Int16 nStateId ); /// Unsets the given state on the internal state set and fires STATE_CHANGE event. Don't hold locks when calling this! @@ -326,29 +324,14 @@ namespace accessibility void GotPropertyEvent( const ::com::sun::star::uno::Any& rNewValue, const sal_Int16 nEventId ) const; void LostPropertyEvent( const ::com::sun::star::uno::Any& rOldValue, const sal_Int16 nEventId ) const; - /** Query the visibility state - - @attention This method does not lock the SolarMutex, - leaving that to the calling code. This is because only - there potential deadlock situations can be resolved. Thus, - make sure SolarMutex is locked when calling this. - - @return the visibility state. Per definition, a defunc object is no longer visible - */ - sal_Bool IsVisible() const; - int getNotifierClientId() const; /// Do we have children? This is the case for image bullets sal_Bool HaveChildren(); - /// Is the underlying object in edit mode - sal_Bool IsActive() const SAL_THROW((::com::sun::star::uno::RuntimeException)); - const Point& GetEEOffset() const; // Get text from forwarder - String GetText( sal_Int32 nIndex ) SAL_THROW((::com::sun::star::uno::RuntimeException)); String GetTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) SAL_THROW((::com::sun::star::uno::RuntimeException)); sal_uInt16 GetTextLen() const SAL_THROW((::com::sun::star::uno::RuntimeException)); diff --git a/editeng/inc/editeng/AccessibleImageBullet.hxx b/editeng/inc/editeng/AccessibleImageBullet.hxx index aa470ea65ab3..50ee57e65251 100644 --- a/editeng/inc/editeng/AccessibleImageBullet.hxx +++ b/editeng/inc/editeng/AccessibleImageBullet.hxx @@ -114,15 +114,6 @@ namespace accessibility */ void SetIndexInParent( sal_Int32 nIndex ); - /** Get the current index in the accessibility parent - - @attention This method does not lock the SolarMutex, - leaving that to the calling code. This is because only - there potential deadlock situations can be resolved. Thus, - make sure SolarMutex is locked when calling this. - */ - sal_Int32 GetIndexInParent() const; - /** Set the edit engine offset @attention This method does not lock the SolarMutex, diff --git a/editeng/inc/editeng/AccessibleParaManager.hxx b/editeng/inc/editeng/AccessibleParaManager.hxx index a84af9700b14..e1a5873ad083 100644 --- a/editeng/inc/editeng/AccessibleParaManager.hxx +++ b/editeng/inc/editeng/AccessibleParaManager.hxx @@ -211,8 +211,6 @@ namespace accessibility void UnSetState( const sal_Int16 nStateId ); /// Set offset to edit engine for all children void SetEEOffset ( const Point& rOffset ); - /// Change edit source on all living children - void SetEditSource ( SvxEditSourceAdapter* pEditSource ); /// Dispose all living children void Dispose (); diff --git a/editeng/inc/editeng/AccessibleStaticTextBase.hxx b/editeng/inc/editeng/AccessibleStaticTextBase.hxx index 5dbd8a729580..ec93d5dd60bc 100644 --- a/editeng/inc/editeng/AccessibleStaticTextBase.hxx +++ b/editeng/inc/editeng/AccessibleStaticTextBase.hxx @@ -265,9 +265,6 @@ namespace accessibility protected: Rectangle GetParagraphBoundingBox() const; - sal_Int32 GetParagraphCount() const; - sal_Int32 GetParagraphIndex() const; - sal_Int32 GetLineCount( sal_Int32 nParagraph ) const; private: diff --git a/editeng/source/accessibility/AccessibleEditableTextPara.cxx b/editeng/source/accessibility/AccessibleEditableTextPara.cxx index 7214662f83e7..fb6cab056134 100644 --- a/editeng/source/accessibility/AccessibleEditableTextPara.cxx +++ b/editeng/source/accessibility/AccessibleEditableTextPara.cxx @@ -502,13 +502,6 @@ namespace accessibility return sal_True; } - String AccessibleEditableTextPara::GetText( sal_Int32 nIndex ) SAL_THROW((uno::RuntimeException)) - { - DBG_CHKTHIS( AccessibleEditableTextPara, NULL ); - - return GetTextForwarder().GetText( MakeSelection(nIndex) ); - } - String AccessibleEditableTextPara::GetTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) SAL_THROW((uno::RuntimeException)) { DBG_CHKTHIS( AccessibleEditableTextPara, NULL ); @@ -523,13 +516,6 @@ namespace accessibility return GetTextForwarder().GetTextLen( static_cast< sal_uInt16 >( GetParagraphIndex() ) ); } - sal_Bool AccessibleEditableTextPara::IsVisible() const - { - DBG_CHKTHIS( AccessibleEditableTextPara, NULL ); - - return mpEditSource ? sal_True : sal_False ; - } - SvxEditSourceAdapter& AccessibleEditableTextPara::GetEditSource() const SAL_THROW((uno::RuntimeException)) { DBG_CHKTHIS( AccessibleEditableTextPara, NULL ); @@ -653,22 +639,6 @@ namespace accessibility return GetTextForwarder().HaveImageBullet( static_cast< sal_uInt16 >(GetParagraphIndex()) ); } - sal_Bool AccessibleEditableTextPara::IsActive() const SAL_THROW((uno::RuntimeException)) - { - DBG_CHKTHIS( AccessibleEditableTextPara, NULL ); - - SvxEditSource& rEditSource = GetEditSource(); - SvxEditViewForwarder* pViewForwarder = rEditSource.GetEditViewForwarder(); - - if( !pViewForwarder ) - return sal_False; - - if( pViewForwarder->IsValid() ) - return sal_False; - else - return sal_True; - } - Rectangle AccessibleEditableTextPara::LogicToPixel( const Rectangle& rRect, const MapMode& rMapMode, SvxViewForwarder& rForwarder ) { // convert to screen coordinates @@ -726,17 +696,6 @@ namespace accessibility FireEvent( nEventId, uno::Any(), rOldValue ); } - bool AccessibleEditableTextPara::HasState( const sal_Int16 nStateId ) - { - DBG_CHKTHIS( AccessibleEditableTextPara, NULL ); - - ::utl::AccessibleStateSetHelper* pStateSet = static_cast< ::utl::AccessibleStateSetHelper*>(mxStateSet.get()); - if( pStateSet != NULL ) - return pStateSet->contains(nStateId) ? true : false; - - return false; - } - void AccessibleEditableTextPara::SetState( const sal_Int16 nStateId ) { DBG_CHKTHIS( AccessibleEditableTextPara, NULL ); diff --git a/editeng/source/accessibility/AccessibleImageBullet.cxx b/editeng/source/accessibility/AccessibleImageBullet.cxx index 1a4bd5603307..23ec937d240d 100644 --- a/editeng/source/accessibility/AccessibleImageBullet.cxx +++ b/editeng/source/accessibility/AccessibleImageBullet.cxx @@ -425,13 +425,6 @@ namespace accessibility mnIndexInParent = nIndex; } - sal_Int32 AccessibleImageBullet::GetIndexInParent() const - { - DBG_CHKTHIS( AccessibleImageBullet, NULL ); - - return mnIndexInParent; - } - void AccessibleImageBullet::SetEEOffset( const Point& rOffset ) { DBG_CHKTHIS( AccessibleImageBullet, NULL ); diff --git a/editeng/source/accessibility/AccessibleParaManager.cxx b/editeng/source/accessibility/AccessibleParaManager.cxx index 3c9898f85e8c..d7ee0efa56b5 100644 --- a/editeng/source/accessibility/AccessibleParaManager.cxx +++ b/editeng/source/accessibility/AccessibleParaManager.cxx @@ -301,12 +301,6 @@ namespace accessibility nStateId ) ); } - void AccessibleParaManager::SetEditSource( SvxEditSourceAdapter* pEditSource ) - { - MemFunAdapter< SvxEditSourceAdapter* > aAdapter( &::accessibility::AccessibleEditableTextPara::SetEditSource, pEditSource ); - ::std::for_each( begin(), end(), aAdapter ); - } - // not generic yet, no arguments... class AccessibleParaManager_DisposeChildren : public ::std::unary_function< ::accessibility::AccessibleEditableTextPara&, void > { diff --git a/editeng/source/accessibility/AccessibleStaticTextBase.cxx b/editeng/source/accessibility/AccessibleStaticTextBase.cxx index fe5bab90f099..0af51fcef399 100644 --- a/editeng/source/accessibility/AccessibleStaticTextBase.cxx +++ b/editeng/source/accessibility/AccessibleStaticTextBase.cxx @@ -171,8 +171,6 @@ namespace accessibility AccessibleEditableTextPara& GetParagraph( sal_Int32 nPara ) const; sal_Int32 GetParagraphCount() const; - sal_Int32 GetParagraphIndex() const; - sal_Int32 GetLineCount( sal_Int32 nParagraph ) const; EPosition Index2Internal( sal_Int32 nFlatIndex ) const { @@ -329,26 +327,6 @@ namespace accessibility return mpTextParagraph->GetTextForwarder().GetParagraphCount(); } - sal_Int32 AccessibleStaticTextBase_Impl::GetParagraphIndex() const - { - DBG_CHKTHIS( AccessibleStaticTextBase_Impl, NULL ); - - sal_Int32 nIndex = -1; - if( mpTextParagraph ) - nIndex = mpTextParagraph->GetParagraphIndex(); - return nIndex; - } - - sal_Int32 AccessibleStaticTextBase_Impl::GetLineCount( sal_Int32 nParagraph ) const - { - DBG_CHKTHIS( AccessibleStaticTextBase_Impl, NULL ); - - sal_Int32 nIndex = 0; - if( mpTextParagraph ) - nIndex = mpTextParagraph->GetTextForwarder().GetLineCount( static_cast< sal_uInt16 >(nParagraph) ); - return nIndex; - } - sal_Int32 AccessibleStaticTextBase_Impl::Internal2Index( EPosition nEEIndex ) const { sal_Int32 aRes(0); @@ -1028,21 +1006,6 @@ namespace accessibility return mpImpl->GetParagraphBoundingBox(); } - sal_Int32 AccessibleStaticTextBase::GetParagraphIndex() const - { - return mpImpl->GetParagraphIndex(); - } - - sal_Int32 AccessibleStaticTextBase::GetParagraphCount() const - { - return mpImpl->GetParagraphCount(); - } - - sal_Int32 AccessibleStaticTextBase::GetLineCount( sal_Int32 nParagraph ) const - { - return mpImpl->GetLineCount( nParagraph ); - } - } // end of namespace accessibility //------------------------------------------------------------------------ |