namespace utl { class AccessibleRelationSetHelper; }
namespace accessibility {
class EDITENG_DLLPUBLIC AccessibleContextBase
: public cppu::ImplInheritanceHelper<comphelper::OAccessibleComponentHelper,
css::lang::XServiceInfo, css::accessibility::XAccessible>
{ public:
/** Call all accessibility event listeners to inform them about the specifiedevent. @paramaEventId Idoftheeventtype. @paramrNewValue Newvalueofthemodifiedattribute.Passemptystructureif notapplicable. @paramrOldValue Oldvalueofthemodifiedattribute.Passemptystructureif notapplicable.
*/ void CommitChange (sal_Int16 aEventId, const css::uno::Any& rNewValue, const css::uno::Any& rOldValue,
sal_Int32 nValueIndex);
/** Set a new description and, provided that the new name differs from theoldone,broadcastanaccessibilityevent. @paramrsDescription Thenewdescription. @parameDescriptionOrigin Theoriginofthedescription.Thisisusedtodetermine whetherthegivendescriptionoverrulestheexistingone.An originwithalowernumericalvalueoverridesonewithahigher value. @throwscss::uno::RuntimeException
*/ void SetAccessibleDescription ( const OUString& rsDescription,
StringOrigin eDescriptionOrigin);
/** Set a new description and, provided that the new name differs from theoldone,broadcastanaccessibilityevent. @paramrsName Thenewname. @parameNameOrigin Theoriginofthename.Thisisusedtodeterminewhetherthe givennameoverrulestheexistingone.Anoriginwithalower numericalvalueoverridesonewithahighervalue. @throwscss::uno::RuntimeException
*/ void SetAccessibleName ( const OUString& rsName,
StringOrigin eNameOrigin);
/** Set the specified state (turn it on) and send events to all listenerstoinformthemofthechange.
/** 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 final;
/** Returns a list of all supported services. In this case that is just theAccessibleContextservice.
*/ virtual css::uno::Sequence< OUString> SAL_CALL
getSupportedServiceNames() override;
protected: /** The state set.
*/
sal_Int64 mnStateSet;
/** The relation set. Relations can be set or removed by calling the <member>AddRelation</member>and<member>RemoveRelation</member>methods.
*/
rtl::Reference<utl::AccessibleRelationSetHelper> mxRelationSet;
// This method is called from the component helper base class while disposing. virtualvoid SAL_CALL disposing() override;
/** Create the accessible object's name. This method may be called more thanonceforasingleobject. @return Thereturnedstringisaunique(amongtheaccessibleobject's siblings)name. @throwscss::uno::RuntimeException
*/ virtual OUString CreateAccessibleName();
/** sets the role as returned by XaccessibleContext::getAccessibleRole
private: /// Reference to the parent object.
css::uno::Reference< css::accessibility::XAccessible> mxParent;
/** Description of this object. This is not a constant because it can besetfromtheoutside.Furthermore,itchangesaccordingtothe drawpage'sdisplaymode.
*/
OUString msDescription;
/** The origin of the description is used to determine whether new descriptionsgiventotheSetAccessibleDescriptionisignoredor whetherthatreplacestheoldvalueinmsDescription.
*/
StringOrigin meDescriptionOrigin;
/** Name of this object. It changes according the draw page's displaymode.
*/
OUString msName;
/** The origin of the name is used to determine whether new namegiventotheSetAccessibleNameisignoredor whetherthatreplacestheoldvalueinmsName.
*/
StringOrigin meNameOrigin;
/** 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.