diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-29 09:35:22 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-29 14:45:43 +0200 |
commit | 73e6a7975b3508c5cfccb3df7c35b0303f87d9bb (patch) | |
tree | 0b9a2c93b1db01dd476be1479022ac5066980db9 /sd | |
parent | 3138abfb052a4241cfca4b8d430c139cca50a85c (diff) |
loplugin:unusedmethods
Change-Id: I7805ac9bc6f8c0aa5ba4804777e7d7c2c29a78f3
Reviewed-on: https://gerrit.libreoffice.org/52066
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
6 files changed, 0 insertions, 108 deletions
diff --git a/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx b/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx index 690c69e7f952..470aa565e4ea 100644 --- a/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx +++ b/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx @@ -607,30 +607,6 @@ OUString return OUString ("AccessibleDocumentViewBase"); } -/** Create a description for this view. Use the model's description or URL - if a description is not available. -*/ -OUString - AccessibleDocumentViewBase::CreateAccessibleDescription() -{ - OUString sDescription; - - uno::Reference<lang::XServiceInfo> xInfo (mxController, uno::UNO_QUERY); - if (xInfo.is()) - { - OUString sFirstService = xInfo->getSupportedServiceNames()[0]; - if ( sFirstService == "com.sun.star.drawing.DrawingDocumentDrawView" ) - { - sDescription = "Draw Document"; - } - else - sDescription = sFirstService; - } - else - sDescription = "Accessible Draw Document"; - return sDescription; -} - void AccessibleDocumentViewBase::Activated() { // Empty. Overwrite to do something useful. diff --git a/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx b/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx index f4dd53e5eb15..7899d7e03fa1 100644 --- a/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx +++ b/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx @@ -574,58 +574,6 @@ OUString AccessibleDrawDocumentView::CreateAccessibleName() return sName; } -/** Create a description for this view. Use the model's description or URL - if a description is not available. -*/ -OUString - AccessibleDrawDocumentView::CreateAccessibleDescription() -{ - OUString sDescription; - - uno::Reference<lang::XServiceInfo> xInfo (mxController, uno::UNO_QUERY); - if (xInfo.is()) - { - uno::Sequence< OUString > aServices( xInfo->getSupportedServiceNames() ); - OUString sFirstService = aServices[0]; - if ( sFirstService == "com.sun.star.drawing.DrawingDocumentDrawView" ) - { - if( aServices.getLength() >= 2 && aServices[1] == "com.sun.star.presentation.PresentationView") - { - SolarMutexGuard aGuard; - - sDescription = SdResId(SID_SD_A11Y_I_DRAWVIEW_D); - } - else - { - SolarMutexGuard aGuard; - - sDescription = SdResId(SID_SD_A11Y_D_DRAWVIEW_D); - } - } - else if ( sFirstService == "com.sun.star.presentation.NotesView" ) - { - SolarMutexGuard aGuard; - - sDescription = SdResId(SID_SD_A11Y_I_NOTESVIEW_D); - } - else if ( sFirstService == "com.sun.star.presentation.HandoutView" ) - { - SolarMutexGuard aGuard; - - sDescription = SdResId(SID_SD_A11Y_I_HANDOUTVIEW_D); - } - else - { - sDescription = sFirstService; - } - } - else - { - sDescription = "Accessible Draw Document"; - } - return sDescription; -} - /** Return selection state of specified child */ bool diff --git a/sd/source/ui/accessibility/AccessibleOutlineView.cxx b/sd/source/ui/accessibility/AccessibleOutlineView.cxx index a704c8190de7..96e35b4436e4 100644 --- a/sd/source/ui/accessibility/AccessibleOutlineView.cxx +++ b/sd/source/ui/accessibility/AccessibleOutlineView.cxx @@ -243,17 +243,6 @@ OUString return SdResId(SID_SD_A11Y_I_OUTLINEVIEW_N); } -/** Create a description for this view. Use the model's description or URL - if a description is not available. -*/ -OUString - AccessibleOutlineView::CreateAccessibleDescription() -{ - SolarMutexGuard aGuard; - - return SdResId(SID_SD_A11Y_I_OUTLINEVIEW_D); -} - void AccessibleOutlineView::UpdateChildren() { SolarMutexGuard aGuard; diff --git a/sd/source/ui/inc/AccessibleDocumentViewBase.hxx b/sd/source/ui/inc/AccessibleDocumentViewBase.hxx index 31d7c0db0ccc..516b4630db89 100644 --- a/sd/source/ui/inc/AccessibleDocumentViewBase.hxx +++ b/sd/source/ui/inc/AccessibleDocumentViewBase.hxx @@ -286,16 +286,6 @@ protected: virtual OUString CreateAccessibleName () override; - /** Create a description string. The current description is not - modified and, therefore, no events are send. This method is usually - called once by the <member>getAccessibleDescription</member> method - of the base class. - @return - A description string. - */ - virtual OUString - CreateAccessibleDescription (); - /** This method is called when (after) the frame containing this document has been activated. Can be used to send FOCUSED state changes for the currently selected element. diff --git a/sd/source/ui/inc/AccessibleDrawDocumentView.hxx b/sd/source/ui/inc/AccessibleDrawDocumentView.hxx index ecde467c37ae..df03a3eee460 100644 --- a/sd/source/ui/inc/AccessibleDrawDocumentView.hxx +++ b/sd/source/ui/inc/AccessibleDrawDocumentView.hxx @@ -143,12 +143,6 @@ private: virtual OUString CreateAccessibleName () override; - /** Create an accessible description that contains the current - view mode. - */ - virtual OUString - CreateAccessibleDescription () override; - /** Make sure that the currently focused shape sends a FOCUSED state change event indicating that it has (regained) the focus. */ diff --git a/sd/source/ui/inc/AccessibleOutlineView.hxx b/sd/source/ui/inc/AccessibleOutlineView.hxx index 7972ad684df3..b7cd34d114c6 100644 --- a/sd/source/ui/inc/AccessibleOutlineView.hxx +++ b/sd/source/ui/inc/AccessibleOutlineView.hxx @@ -108,11 +108,6 @@ private: virtual OUString CreateAccessibleName () override; - /// Create an accessible description that contains the current - /// view mode. - virtual OUString - CreateAccessibleDescription () override; - /// Invalidate text helper, updates visible children void UpdateChildren(); |