namespace tools { class Rectangle; } class AbsoluteScreenPixelRectangle;
class ScAccessibleContextBase
: public cppu::ImplInheritanceHelper<comphelper::OAccessibleComponentHelper,
css::accessibility::XAccessible, css::lang::XServiceInfo>, public SfxListener
{
/// Return a reference to the parent. virtual css::uno::Reference< css::accessibility::XAccessible> SAL_CALL
getAccessibleParent() override;
/// Return this object's role. virtual sal_Int16 SAL_CALL
getAccessibleRole() override;
/// Return this object's description. virtual OUString SAL_CALL
getAccessibleDescription() override;
/// Return the object's current name. virtual OUString SAL_CALL
getAccessibleName() override;
/// Return NULL to indicate that an empty relation set. virtual css::uno::Reference<css::accessibility::XAccessibleRelationSet> SAL_CALL
getAccessibleRelationSet() override;
/// Return the set of current states. virtual sal_Int64 SAL_CALL getAccessibleStateSet() override;
/** Return the parents locale or throw exception if this object has no parentyet/anymore.
*/ virtual css::lang::Locale SAL_CALL
getLocale() override;
/** Returns an identifier for the implementation of this object.
*/ virtual OUString SAL_CALL
getImplementationName() override;
/** 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 theAccessibleContextandAccessibleservice.
*/ virtual css::uno::Sequence< OUString> SAL_CALL
getSupportedServiceNames() override;
/// Return the object's current name. /// /// @throws css::uno::RuntimeException virtual OUString
createAccessibleName();
/// Return the object's current bounding box relative to the desktop. /// /// @throws css::uno::RuntimeException virtual AbsoluteScreenPixelRectangle GetBoundingBoxOnScreen() = 0;
/// Return the object's current bounding box relative to the parent object. /// /// @throws css::uno::RuntimeException virtual tools::Rectangle GetBoundingBox() = 0;
public: /// Calls all listeners to notify them about the change. void CommitChange(const sal_Int16 nEventId, const css::uno::Any& rOldValue, const css::uno::Any& rNewValue, sal_Int32 nIndexHint = -1);
/// Use this method to set initial Name without notification void SetName(const OUString& rName) { msName = rName; }
/// Use this method to set initial Description without notification void SetDescription(const OUString& rDesc) { msDescription = rDesc; }
/// Reference to the parent object.
css::uno::Reference<css::accessibility::XAccessible> mxParent;
private: /** Description of this object. This is not a constant because it can besetfromtheoutside.Furthermore,itchangesaccordingtothe drawpage'sdisplaymode.
*/
OUString msDescription;
/** Name of this object. It changes according the draw page's displaymode.
*/
OUString msName;
/** This is the role of this object.
*/
sal_Int16 maRole;
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.