diff options
author | Samuel Thibault <sthibault@hypra.fr> | 2018-03-21 15:30:00 +0100 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2018-08-21 03:12:21 +0200 |
commit | 5732db01795df90df95944cffc8566ea11e6c389 (patch) | |
tree | dcc1f9cfd5b627ebf49f25fbee3104a6ef0c5777 /include | |
parent | 414ef6cb187dd3bbcc917dbedf3c0c1cc8668f60 (diff) |
tdf#116542 a11y: Implement .ui ways of setting widget role
Atk-LO correspondance in getRoleFromName() was built on
vcl/unx/gtk/a11y/atkwrapper.cxx's correspondance, with the same "?"
uncertainties, plus some approximations.
Change-Id: I2e3a5042d4c9dabbab5407397373a373ee1caa6d
Reviewed-on: https://gerrit.libreoffice.org/58767
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/builder.hxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/vcl/builder.hxx b/include/vcl/builder.hxx index ed62d61eb397..25380a6ec5af 100644 --- a/include/vcl/builder.hxx +++ b/include/vcl/builder.hxx @@ -354,7 +354,8 @@ private: void applyPackingProperty(vcl::Window *pCurrent, vcl::Window *pParent, xmlreader::XmlReader &reader); void collectProperty(xmlreader::XmlReader &reader, stringmap &rVec) const; static void collectPangoAttribute(xmlreader::XmlReader &reader, stringmap &rMap); - static void collectAtkAttribute(xmlreader::XmlReader &reader, stringmap &rMap); + static void collectAtkRelationAttribute(xmlreader::XmlReader &reader, stringmap &rMap); + static void collectAtkRoleAttribute(xmlreader::XmlReader &reader, stringmap &rMap); static void collectAccelerator(xmlreader::XmlReader &reader, accelmap &rMap); void insertMenuObject( @@ -411,6 +412,9 @@ namespace BuilderUtils //Helpers to retrofit all the existing code to the builder VCL_DLLPUBLIC void reorderWithinParent(std::vector< vcl::Window*>& rChilds, bool bIsButtonBox); VCL_DLLPUBLIC void reorderWithinParent(vcl::Window &rWindow, sal_uInt16 nNewPosition); + + //Convert an accessibility role name to accessibility role number + VCL_DLLPUBLIC sal_Int16 getRoleFromName(const OString& roleName); } template <typename T> |