29#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
30#include <com/sun/star/drawing/XShape.hpp>
31#include <com/sun/star/drawing/XShapeDescriptor.hpp>
39AccessibleOLEShape::AccessibleOLEShape (
60 throw lang::IndexOutOfBoundsException();
66 throw lang::IndexOutOfBoundsException();
72 throw lang::IndexOutOfBoundsException();
80 if ( ! aReturn.hasValue())
81 aReturn = ::cppu::queryInterface (rType,
82 static_cast<XAccessibleAction*
>(
this));
106 return "AccessibleOLEShape";
110css::uno::Sequence< OUString> SAL_CALL
114 const css::uno::Sequence<OUString> vals {
"com.sun.star.drawing.AccessibleOLEShape" };
150 sName =
"AppletOLEShape";
153 sName =
"FrameOLEShape";
159 sName =
"PluginOLEShape";
163 sName =
"UnknownAccessibleOLEShape";
164 uno::Reference<drawing::XShapeDescriptor> xDescriptor (
mxShape);
165 if (xDescriptor.is())
166 sName +=
": " + xDescriptor->getShapeType();
virtual css::uno::Any SAL_CALL getExtendedAttributes() override
virtual void SAL_CALL acquire() noexcept override
virtual OUString CreateAccessibleBaseName() override
Create a name string that contains the accessible name.
sal_Bool SAL_CALL doAccessibleAction(sal_Int32 nIndex) override
css::uno::Reference< css::accessibility::XAccessibleKeyBinding > SAL_CALL getAccessibleActionKeyBinding(sal_Int32 nIndex) override
virtual ~AccessibleOLEShape() override
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
virtual OUString SAL_CALL getImplementationName() override
Returns an identifier for the implementation of this object.
virtual void SAL_CALL release() noexcept override
sal_Int32 SAL_CALL getAccessibleActionCount() override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
OUString SAL_CALL getAccessibleActionDescription(sal_Int32 nIndex) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
@descr This class is a container for the information specific for a single shape that is passed to th...
This class bundles all information that is passed down the tree of accessible shapes so that each sha...
This base class provides a base implementation for all shapes.
css::uno::Reference< css::drawing::XShape > mxShape
Reference to the actual shape.
virtual void SAL_CALL release() noexcept override
virtual void SAL_CALL acquire() noexcept override
SdrObject * m_pShape
This object can be removed when we have an extra interface to ask if the shape is selected.
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
ShapeTypeId GetTypeId(const OUString &aServiceName) const
Determines the type id of a shape with the given service name.
static ShapeTypeHandler & Instance()
This function returns a reference to the only instance of this class.
css::uno::Type const & get()
int ShapeTypeId
Use an integer to represent shape type ids.
css::uno::Sequence< T > concatSequences(const css::uno::Sequence< T > &rS1, const Ss &... rSn)