summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-03-24 17:49:07 +0100
committerMichael Stahl <mstahl@redhat.com>2017-03-24 18:00:46 +0100
commit125ca372c1d0821139b4c682a02494294b322473 (patch)
treeec1940d4bb0ac10a920cb30e8cf98d433898283d
parentd9c2ba239d0b3d71aa64fc9319b7b1025517170f (diff)
sw: just remove SwAccesibleContext must-override methods
What's the point? Change-Id: Ifdff4aae85282d213f82bd2d69f61f96f8b5e40c
-rw-r--r--sw/source/core/access/acccontext.cxx18
-rw-r--r--sw/source/core/access/acccontext.hxx13
2 files changed, 2 insertions, 29 deletions
diff --git a/sw/source/core/access/acccontext.cxx b/sw/source/core/access/acccontext.cxx
index 9263e150a681..bedbb8c7a813 100644
--- a/sw/source/core/access/acccontext.cxx
+++ b/sw/source/core/access/acccontext.cxx
@@ -678,12 +678,6 @@ sal_Int16 SAL_CALL SwAccessibleContext::getAccessibleRole()
return m_nRole;
}
-OUString SAL_CALL SwAccessibleContext::getAccessibleDescription()
-{
- assert(!"description needs to be overridden");
- throw uno::RuntimeException("description needs to be overridden");
-}
-
OUString SAL_CALL SwAccessibleContext::getAccessibleName()
{
return m_sName;
@@ -975,23 +969,11 @@ sal_Int32 SAL_CALL SwAccessibleContext::getBackground()
return COL_WHITE;
}
-OUString SAL_CALL SwAccessibleContext::getImplementationName()
-{
- assert(!"implementation name needs to be overridden");
- throw uno::RuntimeException("implementation name needs to be overridden");
-}
-
sal_Bool SAL_CALL SwAccessibleContext::supportsService (const OUString& ServiceName)
{
return cppu::supportsService(this, ServiceName);
}
-uno::Sequence< OUString > SAL_CALL SwAccessibleContext::getSupportedServiceNames()
-{
- assert(!"supported services names needs to be overridden");
- throw uno::RuntimeException("supported services names needs to be overridden");
-}
-
void SwAccessibleContext::DisposeShape( const SdrObject *pObj,
::accessibility::AccessibleShape *pAccImpl )
{
diff --git a/sw/source/core/access/acccontext.hxx b/sw/source/core/access/acccontext.hxx
index 4c006266c475..1dc8b1972168 100644
--- a/sw/source/core/access/acccontext.hxx
+++ b/sw/source/core/access/acccontext.hxx
@@ -230,9 +230,7 @@ public:
virtual sal_Int16 SAL_CALL
getAccessibleRole() override;
- // Return this object's description.
- virtual OUString SAL_CALL
- getAccessibleDescription() override;
+ // getAccessibleDescription() is abstract
// Return the object's current name.
virtual OUString SAL_CALL
@@ -282,19 +280,12 @@ public:
// XServiceInfo
- /** Returns an identifier for the implementation of this object. */
- virtual OUString SAL_CALL
- getImplementationName() override;
+ // getImplementationName() and getSupportedServiceNames are abstract
/** Return whether the specified service is supported by this class. */
virtual sal_Bool SAL_CALL
supportsService (const OUString& sServiceName) override;
- /** Returns a list of all supported services. In this case that is just
- the AccessibleContext service. */
- virtual css::uno::Sequence< OUString> SAL_CALL
- getSupportedServiceNames() override;
-
// thread safe C++ interface
// The object is not visible an longer and should be destroyed