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 /svx/source/accessibility | |
parent | 3127405547d3d4fa5f1f98bab187e7ac19d76b73 (diff) |
callcatcher: various unused methods
Diffstat (limited to 'svx/source/accessibility')
-rw-r--r-- | svx/source/accessibility/AccessibleShapeTreeInfo.cxx | 24 | ||||
-rw-r--r-- | svx/source/accessibility/AccessibleTextEventQueue.cxx | 10 | ||||
-rw-r--r-- | svx/source/accessibility/AccessibleTextEventQueue.hxx | 5 | ||||
-rw-r--r-- | svx/source/accessibility/ChildrenManagerImpl.cxx | 39 | ||||
-rw-r--r-- | svx/source/accessibility/ChildrenManagerImpl.hxx | 29 | ||||
-rw-r--r-- | svx/source/accessibility/DescriptionGenerator.cxx | 31 | ||||
-rw-r--r-- | svx/source/accessibility/ShapeTypeHandler.cxx | 8 |
7 files changed, 0 insertions, 146 deletions
diff --git a/svx/source/accessibility/AccessibleShapeTreeInfo.cxx b/svx/source/accessibility/AccessibleShapeTreeInfo.cxx index af361abc27ad..6c747284cf31 100644 --- a/svx/source/accessibility/AccessibleShapeTreeInfo.cxx +++ b/svx/source/accessibility/AccessibleShapeTreeInfo.cxx @@ -37,21 +37,6 @@ using ::com::sun::star::uno::Reference; namespace accessibility { -AccessibleShapeTreeInfo::AccessibleShapeTreeInfo ( - const Reference<XAccessibleComponent>& rxDocumentWindow, - const Reference<document::XEventBroadcaster>& rxModelBroadcaster) - : mxDocumentWindow (rxDocumentWindow), - mxModelBroadcaster (rxModelBroadcaster), - mpView (NULL), - mpWindow (NULL), - mpViewForwarder (NULL) -{ - // Empty. -} - - - - AccessibleShapeTreeInfo::AccessibleShapeTreeInfo (void) : mpView (NULL), mpWindow (NULL), @@ -112,15 +97,6 @@ void AccessibleShapeTreeInfo::SetDocumentWindow ( -uno::Reference<XAccessibleComponent> - AccessibleShapeTreeInfo::GetDocumentWindow (void) const -{ - return mxDocumentWindow; -} - - - - void AccessibleShapeTreeInfo::SetControllerBroadcaster ( const uno::Reference<document::XEventBroadcaster>& rxControllerBroadcaster) { diff --git a/svx/source/accessibility/AccessibleTextEventQueue.cxx b/svx/source/accessibility/AccessibleTextEventQueue.cxx index 57460bb71972..b051b8bf468f 100644 --- a/svx/source/accessibility/AccessibleTextEventQueue.cxx +++ b/svx/source/accessibility/AccessibleTextEventQueue.cxx @@ -58,21 +58,11 @@ namespace accessibility Clear(); } - void AccessibleTextEventQueue::Append( const SfxHint& rHint ) - { - maEventQueue.push_back( new SfxHint( rHint ) ); - } - void AccessibleTextEventQueue::Append( const SdrHint& rHint ) { maEventQueue.push_back( new SdrHint( rHint ) ); } - void AccessibleTextEventQueue::Append( const SfxSimpleHint& rHint ) - { - maEventQueue.push_back( new SfxSimpleHint( rHint ) ); - } - void AccessibleTextEventQueue::Append( const TextHint& rHint ) { maEventQueue.push_back( new TextHint( rHint ) ); diff --git a/svx/source/accessibility/AccessibleTextEventQueue.hxx b/svx/source/accessibility/AccessibleTextEventQueue.hxx index f8564afa47c1..526b672157a0 100644 --- a/svx/source/accessibility/AccessibleTextEventQueue.hxx +++ b/svx/source/accessibility/AccessibleTextEventQueue.hxx @@ -37,7 +37,6 @@ class SfxHint; class SdrHint; -class SfxSimpleHint; class TextHint; class SvxViewHint; class SvxEditSourceHint; @@ -59,12 +58,8 @@ namespace accessibility ~AccessibleTextEventQueue(); /// Append event to end of queue - void Append( const SfxHint& rHint ); - /// Append event to end of queue void Append( const SdrHint& rHint ); /// Append event to end of queue - void Append( const SfxSimpleHint& rHint ); - /// Append event to end of queue void Append( const TextHint& rHint ); /// Append event to end of queue void Append( const SvxViewHint& rHint ); diff --git a/svx/source/accessibility/ChildrenManagerImpl.cxx b/svx/source/accessibility/ChildrenManagerImpl.cxx index 9927424c32ce..d993536db6b4 100644 --- a/svx/source/accessibility/ChildrenManagerImpl.cxx +++ b/svx/source/accessibility/ChildrenManagerImpl.cxx @@ -187,22 +187,6 @@ uno::Reference<XAccessible> -uno::Reference<XAccessible> - ChildrenManagerImpl::GetChild (const uno::Reference<drawing::XShape>& xShape) - throw (uno::RuntimeException) -{ - ChildDescriptorListType::iterator I, aEnd = maVisibleChildren.end(); - for (I = maVisibleChildren.begin(); I != aEnd; ++I) - { - if ( I->mxShape.get() == xShape.get() ) - return I->mxAccessibleShape; - } - return uno::Reference<XAccessible> (); -} - - - - /** Find all shapes among the specified shapes that lie fully or partially inside the visible area. Put those shapes into the cleared cache. The corresponding accessible objects will be created on demand. @@ -773,29 +757,6 @@ void SAL_CALL ChildrenManagerImpl::disposing (void) impl_dispose(); } - - - -// This method is experimental. Use with care. -long int ChildrenManagerImpl::GetChildIndex (const ::com::sun::star::uno::Reference< - ::com::sun::star::accessibility::XAccessible>& xChild) const - throw (::com::sun::star::uno::RuntimeException) -{ - ::osl::MutexGuard aGuard (maMutex); - sal_Int32 nCount = maVisibleChildren.size(); - for (sal_Int32 i=0; i < nCount; ++i) - { - // Is this equality comparison valid? - if (maVisibleChildren[i].mxAccessibleShape == xChild) - return i; - } - - return -1; -} - - - - //===== IAccessibleViewForwarderListener ==================================== void ChildrenManagerImpl::ViewForwarderChanged (ChangeType aChangeType, diff --git a/svx/source/accessibility/ChildrenManagerImpl.hxx b/svx/source/accessibility/ChildrenManagerImpl.hxx index 3716f243ad20..b1cb2a0b4723 100644 --- a/svx/source/accessibility/ChildrenManagerImpl.hxx +++ b/svx/source/accessibility/ChildrenManagerImpl.hxx @@ -166,24 +166,6 @@ public: GetChild (ChildDescriptor& aChildDescriptor,sal_Int32 _nIndex) throw (::com::sun::star::uno::RuntimeException); - /** Return the requested accessible child given a shape. This method - searches the list of descriptors for the one that holds the - association of the given shape to the requested accessible object - and returns that. If no such descriptor is found that is - interpreted so that the specified shape is not visible at the moment. - @param xShape - The shape for which to return the associated accessible object. - @return - Returns a reference to the requested accessible child. The - reference is empty if there is no shape descriptor that - associates the shape with an accessible object. - */ - ::com::sun::star::uno::Reference< - ::com::sun::star::accessibility::XAccessible> - GetChild (const ::com::sun::star::uno::Reference< - ::com::sun::star::drawing::XShape>& xShape) - throw (::com::sun::star::uno::RuntimeException); - /** Update the child manager. Take care of a modified set of children and modified visible area. This method can optimize the update process with respect seperate updates of a modified children list @@ -360,17 +342,6 @@ protected: */ virtual void SAL_CALL disposing (void); - /** Experimental: Get the index of the specified accessible object with - respect to the list of children maintained by this object. - - @return - Return the index of the given child or -1 to indicate that the - child is unknown. - */ - long GetChildIndex (const ::com::sun::star::uno::Reference< - ::com::sun::star::accessibility::XAccessible>& xChild) const - throw (::com::sun::star::uno::RuntimeException); - void impl_dispose (void); private: diff --git a/svx/source/accessibility/DescriptionGenerator.cxx b/svx/source/accessibility/DescriptionGenerator.cxx index 8b01c30215d6..4d0dc1d884c2 100644 --- a/svx/source/accessibility/DescriptionGenerator.cxx +++ b/svx/source/accessibility/DescriptionGenerator.cxx @@ -303,16 +303,6 @@ void DescriptionGenerator::AddColor (const OUString& sPropertyName, -void DescriptionGenerator::AddUnknown (const OUString& /*sPropertyName*/, - const OUString& sLocalizedName) -{ - // uno::Any aValue = mxSet->getPropertyValue (sPropertyName); - msDescription.append (sLocalizedName); -} - - - - void DescriptionGenerator::AddInteger (const OUString& sPropertyName, const OUString& sLocalizedName) { @@ -459,27 +449,6 @@ void DescriptionGenerator::AddFillStyle (const OUString& sPropertyName, } } - - - -void DescriptionGenerator::AddPropertyNames (void) -{ - if (mxSet.is()) - { - uno::Reference<beans::XPropertySetInfo> xInfo (mxSet->getPropertySetInfo()); - if (xInfo.is()) - { - uno::Sequence<beans::Property> aPropertyList (xInfo->getProperties ()); - for (int i=0; i<aPropertyList.getLength(); i++) - { - msDescription.append (aPropertyList[i].Name); - msDescription.append (sal_Unicode(',')); - } - } - } -} - - } // end of namespace accessibility /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/accessibility/ShapeTypeHandler.cxx b/svx/source/accessibility/ShapeTypeHandler.cxx index 01c8d124870c..8747c5fd6848 100644 --- a/svx/source/accessibility/ShapeTypeHandler.cxx +++ b/svx/source/accessibility/ShapeTypeHandler.cxx @@ -117,14 +117,6 @@ ShapeTypeId ShapeTypeHandler::GetTypeId (const uno::Reference<drawing::XShape>& -const OUString& ShapeTypeHandler::GetServiceName (ShapeTypeId aTypeId) const -{ - return maShapeTypeDescriptorList[aTypeId].msServiceName; -} - - - - /** This factory method determines the type descriptor for the type of the given shape, then calls the descriptor's create function, and finally initializes the new object. |