accessibility/inc/extended/AccessibleBrowseBoxBase.hxx | 13 accessibility/inc/extended/AccessibleBrowseBoxCheckBoxCell.hxx | 2 accessibility/inc/extended/AccessibleBrowseBoxHeaderCell.hxx | 7 accessibility/inc/extended/AccessibleBrowseBoxTableCell.hxx | 7 accessibility/inc/extended/AccessibleGridControlBase.hxx | 14 accessibility/inc/extended/AccessibleGridControlHeaderCell.hxx | 7 accessibility/inc/extended/AccessibleGridControlTableCell.hxx | 7 accessibility/inc/extended/accessibleeditbrowseboxcell.hxx | 2 accessibility/inc/extended/accessibleiconchoicectrl.hxx | 2 accessibility/inc/extended/accessibleiconchoicectrlentry.hxx | 3 accessibility/inc/extended/accessiblelistbox.hxx | 2 accessibility/inc/extended/accessiblelistboxentry.hxx | 3 accessibility/inc/extended/accessibletabbar.hxx | 8 accessibility/inc/extended/accessibletabbarpage.hxx | 8 accessibility/inc/extended/accessibletabbarpagelist.hxx | 8 accessibility/inc/extended/textwindowaccessibility.hxx | 6 accessibility/inc/pch/precompiled_acc.hxx | 2 accessibility/inc/standard/accessiblemenubasecomponent.hxx | 9 accessibility/inc/standard/accessiblemenucomponent.hxx | 2 accessibility/inc/standard/accessiblemenuitemcomponent.hxx | 2 accessibility/inc/standard/vclxaccessiblebox.hxx | 2 accessibility/inc/standard/vclxaccessiblebutton.hxx | 2 accessibility/inc/standard/vclxaccessiblecheckbox.hxx | 2 accessibility/inc/standard/vclxaccessibleedit.hxx | 2 accessibility/inc/standard/vclxaccessiblefixedtext.hxx | 2 accessibility/inc/standard/vclxaccessibleheaderbaritem.hxx | 8 accessibility/inc/standard/vclxaccessiblelist.hxx | 2 accessibility/inc/standard/vclxaccessiblelistitem.hxx | 3 accessibility/inc/standard/vclxaccessiblemenuitem.hxx | 2 accessibility/inc/standard/vclxaccessibleradiobutton.hxx | 2 accessibility/inc/standard/vclxaccessiblescrollbar.hxx | 2 accessibility/inc/standard/vclxaccessiblestatusbaritem.hxx | 8 accessibility/inc/standard/vclxaccessibletabcontrol.hxx | 2 accessibility/inc/standard/vclxaccessibletabpage.hxx | 9 accessibility/inc/standard/vclxaccessibletoolbox.hxx | 2 accessibility/inc/standard/vclxaccessibletoolboxitem.hxx | 3 accessibility/source/extended/AccessibleBrowseBoxBase.cxx | 17 accessibility/source/extended/AccessibleBrowseBoxCheckBoxCell.cxx | 11 accessibility/source/extended/AccessibleBrowseBoxHeaderCell.cxx | 28 - accessibility/source/extended/AccessibleBrowseBoxTableCell.cxx | 18 accessibility/source/extended/AccessibleGridControlBase.cxx | 17 accessibility/source/extended/AccessibleGridControlHeaderCell.cxx | 26 - accessibility/source/extended/AccessibleGridControlTableCell.cxx | 18 accessibility/source/extended/accessibleeditbrowseboxcell.cxx | 2 accessibility/source/extended/accessibleiconchoicectrl.cxx | 9 accessibility/source/extended/accessibleiconchoicectrlentry.cxx | 23 - accessibility/source/extended/accessiblelistbox.cxx | 9 accessibility/source/extended/accessiblelistboxentry.cxx | 29 - accessibility/source/extended/accessibletabbar.cxx | 27 - accessibility/source/extended/accessibletabbarpage.cxx | 25 - accessibility/source/extended/accessibletabbarpagelist.cxx | 21 accessibility/source/extended/textwindowaccessibility.cxx | 35 - accessibility/source/standard/accessiblemenubasecomponent.cxx | 13 accessibility/source/standard/accessiblemenucomponent.cxx | 17 accessibility/source/standard/accessiblemenuitemcomponent.cxx | 13 accessibility/source/standard/vclxaccessiblebox.cxx | 7 accessibility/source/standard/vclxaccessiblebutton.cxx | 13 accessibility/source/standard/vclxaccessiblecheckbox.cxx | 9 accessibility/source/standard/vclxaccessibleedit.cxx | 9 accessibility/source/standard/vclxaccessiblefixedtext.cxx | 5 accessibility/source/standard/vclxaccessibleheaderbaritem.cxx | 21 accessibility/source/standard/vclxaccessiblelist.cxx | 13 accessibility/source/standard/vclxaccessiblelistitem.cxx | 23 - accessibility/source/standard/vclxaccessiblemenuitem.cxx | 13 accessibility/source/standard/vclxaccessibleradiobutton.cxx | 7 accessibility/source/standard/vclxaccessiblescrollbar.cxx | 7 accessibility/source/standard/vclxaccessiblestatusbaritem.cxx | 21 accessibility/source/standard/vclxaccessibletabcontrol.cxx | 5 accessibility/source/standard/vclxaccessibletabpage.cxx | 29 - accessibility/source/standard/vclxaccessibletoolbox.cxx | 9 accessibility/source/standard/vclxaccessibletoolboxitem.cxx | 25 - basctl/source/accessibility/accessibledialogcontrolshape.cxx | 29 - basctl/source/accessibility/accessibledialogwindow.cxx | 27 - basctl/source/inc/accessibledialogcontrolshape.hxx | 8 basctl/source/inc/accessibledialogwindow.hxx | 8 chart2/source/controller/accessibility/AccessibleBase.cxx | 34 - chart2/source/controller/accessibility/AccessibleTextHelper.cxx | 4 chart2/source/controller/inc/AccessibleBase.hxx | 14 chart2/source/controller/inc/AccessibleTextHelper.hxx | 2 comphelper/source/misc/accessiblewrapper.cxx | 9 dbaccess/source/ui/tabledesign/TableDesignView.cxx | 1 editeng/source/accessibility/AccessibleContextBase.cxx | 51 -- editeng/source/accessibility/AccessibleEditableTextPara.cxx | 53 -- editeng/source/accessibility/AccessibleImageBullet.cxx | 33 - editeng/source/accessibility/AccessibleImageBullet.hxx | 9 editeng/source/accessibility/AccessibleParaManager.cxx | 28 - include/IwyuFilter_include.yaml | 3 include/comphelper/accessiblecontexthelper.hxx | 2 include/comphelper/accessiblewrapper.hxx | 2 include/editeng/AccessibleContextBase.hxx | 13 include/editeng/AccessibleEditableTextPara.hxx | 9 include/editeng/AccessibleParaManager.hxx | 15 include/svtools/brwbox.hxx | 8 include/svx/AccessibleControlShape.hxx | 2 include/svx/AccessibleShape.hxx | 10 include/svx/AccessibleTextHelper.hxx | 4 include/toolkit/awt/vclxaccessiblecomponent.hxx | 7 include/unotools/accessiblestatesethelper.hxx | 137 ------ include/vcl/accessibletable.hxx | 5 include/vcl/accessibletableprovider.hxx | 5 include/vcl/toolkit/svtabbx.hxx | 4 include/vcl/toolkit/treelistbox.hxx | 6 offapi/UnoApi_offapi.mk | 1 offapi/com/sun/star/accessibility/AccessibleStateType.idl | 74 +-- offapi/com/sun/star/accessibility/XAccessibleContext.idl | 13 offapi/com/sun/star/accessibility/XAccessibleStateSet.idl | 90 ---- offapi/com/sun/star/drawing/AccessibleImageBullet.idl | 2 offapi/com/sun/star/text/AccessibleParagraphView.idl | 2 qadevOOo/runner/util/AccessibilityTools.java | 12 qadevOOo/tests/java/ifc/accessibility/_XAccessibleComponent.java | 4 qadevOOo/tests/java/ifc/accessibility/_XAccessibleContext.java | 13 qadevOOo/tests/java/ifc/accessibility/_XAccessibleEventBroadcaster.java | 8 qadevOOo/tests/java/ifc/accessibility/_XAccessibleExtendedComponent.java | 6 qadevOOo/tests/java/ifc/accessibility/_XAccessibleSelection.java | 8 qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeaderArea.java | 10 qadevOOo/tests/java/mod/_svtools/AccessibleIconChoiceCtrl.java | 4 sc/source/ui/Accessibility/AccessibleCell.cxx | 73 +-- sc/source/ui/Accessibility/AccessibleCellBase.cxx | 13 sc/source/ui/Accessibility/AccessibleContextBase.cxx | 5 sc/source/ui/Accessibility/AccessibleCsvControl.cxx | 60 +- sc/source/ui/Accessibility/AccessibleDocument.cxx | 30 - sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx | 28 - sc/source/ui/Accessibility/AccessibleEditObject.cxx | 35 - sc/source/ui/Accessibility/AccessiblePageHeader.cxx | 27 - sc/source/ui/Accessibility/AccessiblePageHeaderArea.cxx | 24 - sc/source/ui/Accessibility/AccessiblePreviewCell.cxx | 41 - sc/source/ui/Accessibility/AccessiblePreviewHeaderCell.cxx | 29 - sc/source/ui/Accessibility/AccessiblePreviewTable.cxx | 29 - sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx | 43 - sc/source/ui/Accessibility/AccessibleTableBase.cxx | 6 sc/source/ui/inc/AccessibleCell.hxx | 9 sc/source/ui/inc/AccessibleCellBase.hxx | 3 sc/source/ui/inc/AccessibleContextBase.hxx | 3 sc/source/ui/inc/AccessibleCsvControl.hxx | 11 sc/source/ui/inc/AccessibleDocument.hxx | 6 sc/source/ui/inc/AccessibleDocumentPagePreview.hxx | 7 sc/source/ui/inc/AccessibleEditObject.hxx | 7 sc/source/ui/inc/AccessiblePageHeader.hxx | 6 sc/source/ui/inc/AccessiblePageHeaderArea.hxx | 3 sc/source/ui/inc/AccessiblePreviewCell.hxx | 9 sc/source/ui/inc/AccessiblePreviewHeaderCell.hxx | 6 sc/source/ui/inc/AccessiblePreviewTable.hxx | 6 sc/source/ui/inc/AccessibleSpreadsheet.hxx | 5 sc/source/ui/inc/AccessibleTableBase.hxx | 2 sd/source/ui/accessibility/AccessibleSlideSorterObject.cxx | 25 - sd/source/ui/accessibility/AccessibleSlideSorterView.cxx | 26 - sd/source/ui/inc/AccessibleSlideSorterObject.hxx | 2 sd/source/ui/inc/AccessibleSlideSorterView.hxx | 4 sdext/source/presenter/PresenterAccessibility.cxx | 101 ---- sfx2/source/control/thumbnailviewacc.cxx | 39 - sfx2/source/control/thumbnailviewacc.hxx | 4 solenv/clang-format/excludelist | 1 starmath/source/accessibility.cxx | 24 - starmath/source/accessibility.hxx | 2 svtools/inc/pch/precompiled_svt.hxx | 1 svtools/inc/table/tablecontrol.hxx | 4 svtools/source/brwbox/brwbox3.cxx | 50 +- svtools/source/control/accessibleruler.cxx | 22 svtools/source/control/accessibleruler.hxx | 2 svtools/source/control/valueacc.cxx | 41 - svtools/source/control/valueimp.hxx | 4 svtools/source/table/tablecontrol.cxx | 68 +-- svx/inc/AccessibleTableShape.hxx | 10 svx/inc/pch/precompiled_svx.hxx | 1 svx/source/accessibility/AccessibleControlShape.cxx | 47 -- svx/source/accessibility/AccessibleFrameSelector.cxx | 84 +-- svx/source/accessibility/AccessibleShape.cxx | 65 -- svx/source/accessibility/AccessibleTextHelper.cxx | 10 svx/source/accessibility/GraphCtlAccessibleContext.cxx | 19 svx/source/accessibility/charmapacc.cxx | 43 - svx/source/accessibility/svxpixelctlaccessiblecontext.cxx | 59 +- svx/source/accessibility/svxrectctaccessiblecontext.cxx | 43 - svx/source/dialog/weldeditview.cxx | 31 - svx/source/inc/AccessibleFrameSelector.hxx | 4 svx/source/inc/GraphCtlAccessibleContext.hxx | 2 svx/source/inc/charmapacc.hxx | 4 svx/source/inc/svxpixelctlaccessiblecontext.hxx | 4 svx/source/inc/svxrectctaccessiblecontext.hxx | 4 svx/source/table/accessiblecell.cxx | 73 +-- svx/source/table/accessiblecell.hxx | 6 svx/source/table/accessibletableshape.cxx | 10 sw/IwyuFilter_sw.yaml | 3 sw/inc/pch/precompiled_sw.hxx | 1 sw/qa/complex/indeterminateState/CheckIndeterminateState.java | 5 sw/qa/extras/accessibility/accessible_relation_set.cxx | 2 sw/qa/uitest/table/tdf146145.py | 2 sw/source/core/access/acccell.cxx | 9 sw/source/core/access/acccell.hxx | 2 sw/source/core/access/acccontext.cxx | 35 - sw/source/core/access/acccontext.hxx | 11 sw/source/core/access/accdoc.cxx | 8 sw/source/core/access/accdoc.hxx | 2 sw/source/core/access/accframebase.cxx | 14 sw/source/core/access/accframebase.hxx | 2 sw/source/core/access/accpage.cxx | 8 sw/source/core/access/accpage.hxx | 2 sw/source/core/access/accpara.cxx | 12 sw/source/core/access/accpara.hxx | 2 sw/source/core/access/accselectionhelper.cxx | 11 sw/source/core/access/acctable.cxx | 12 sw/source/core/access/acctable.hxx | 2 toolkit/inc/controls/accessiblecontrolcontext.hxx | 2 toolkit/qa/complex/toolkit/accessibility/_XAccessibleContext.java | 4 toolkit/qa/complex/toolkit/accessibility/_XAccessibleEventBroadcaster.java | 11 toolkit/qa/cppunit/a11y/AccessibilityTools.cxx | 221 +++++----- toolkit/qa/cppunit/a11y/AccessibilityTools.hxx | 7 toolkit/qa/cppunit/a11y/XAccessibleComponentTester.cxx | 3 toolkit/qa/cppunit/a11y/XAccessibleContextTester.cxx | 6 toolkit/qa/cppunit/a11y/XAccessibleEventBroadcasterTester.cxx | 7 toolkit/source/awt/vclxaccessiblecomponent.cxx | 45 -- toolkit/source/controls/accessiblecontrolcontext.cxx | 11 toolkit/test/accessibility/AccessibleContextHandler.java | 19 toolkit/test/accessibility/CanvasShape.java | 10 toolkit/test/accessibility/ov/FocusView.java | 5 unotools/Library_utl.mk | 1 unotools/source/accessibility/accessiblestatesethelper.cxx | 170 ------- vcl/inc/unx/gtk/gtkdata.hxx | 4 vcl/osx/a11yfactory.mm | 2 vcl/osx/a11yfocustracker.cxx | 9 vcl/osx/a11yrolehelper.mm | 3 vcl/osx/a11ywrapper.mm | 38 - vcl/osx/documentfocuslistener.cxx | 22 vcl/osx/documentfocuslistener.hxx | 4 vcl/qt5/QtAccessibleEventListener.cxx | 2 vcl/qt5/QtAccessibleWidget.cxx | 16 vcl/source/treelist/svtabbx.cxx | 49 +- vcl/source/treelist/treelistbox.cxx | 21 vcl/source/window/accessibility.cxx | 17 vcl/unx/gtk3/a11y/atklistener.cxx | 11 vcl/unx/gtk3/a11y/atkutil.cxx | 35 - vcl/unx/gtk3/a11y/atkwrapper.cxx | 19 vcl/unx/gtk3/a11y/atkwrapper.hxx | 2 winaccessibility/inc/AccComponentEventListener.hxx | 4 winaccessibility/inc/AccContainerEventListener.hxx | 4 winaccessibility/inc/AccDialogEventListener.hxx | 2 winaccessibility/inc/AccEventListener.hxx | 4 winaccessibility/inc/AccFrameEventListener.hxx | 2 winaccessibility/inc/AccMenuEventListener.hxx | 2 winaccessibility/inc/AccObject.hxx | 6 winaccessibility/inc/AccObjectManagerAgent.hxx | 4 winaccessibility/inc/AccParagraphEventListener.hxx | 2 winaccessibility/inc/AccTextComponentEventListener.hxx | 2 winaccessibility/inc/AccWindowEventListener.hxx | 2 winaccessibility/source/UAccCOM/MAccessible.cxx | 53 -- winaccessibility/source/service/AccComponentEventListener.cxx | 4 winaccessibility/source/service/AccContainerEventListener.cxx | 20 winaccessibility/source/service/AccDialogEventListener.cxx | 2 winaccessibility/source/service/AccEventListener.cxx | 6 winaccessibility/source/service/AccFrameEventListener.cxx | 2 winaccessibility/source/service/AccMenuEventListener.cxx | 2 winaccessibility/source/service/AccObject.cxx | 40 - winaccessibility/source/service/AccObjectContainerEventListener.cxx | 2 winaccessibility/source/service/AccObjectManagerAgent.cxx | 4 winaccessibility/source/service/AccObjectWinManager.cxx | 11 winaccessibility/source/service/AccParagraphEventListener.cxx | 4 winaccessibility/source/service/AccTextComponentEventListener.cxx | 2 winaccessibility/source/service/AccWindowEventListener.cxx | 2 257 files changed, 1590 insertions(+), 2514 deletions(-)
New commits: commit 8d8e6c84e512c1a8b33aac75965b84481d1a1d13 Author: Noel Grandin <noelgran...@gmail.com> AuthorDate: Sun Jul 3 20:29:28 2022 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Fri Jul 8 10:10:11 2022 +0200 [API CHANGE] Drop css::accessibility::XAccessibleStateSet which is internal API, unused (as far as I can tell) by external users. This state is purely a bitset (as implemented by utl::AccessibleStateSetHelper) so we can just return it as a 64-bit value. This shaves significant time off the performance profiles of code that loads very complex shapes, because this state is frequently used, and we no longer need to allocate a return value on the heap for every call. Change-Id: Icf1b3bd367c256646ae9015f9127025f59459c2c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136786 Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/accessibility/inc/extended/AccessibleBrowseBoxBase.hxx b/accessibility/inc/extended/AccessibleBrowseBoxBase.hxx index 7e9ada30ab86..b10cb4d7bc7e 100644 --- a/accessibility/inc/extended/AccessibleBrowseBoxBase.hxx +++ b/accessibility/inc/extended/AccessibleBrowseBoxBase.hxx @@ -29,7 +29,6 @@ #include <cppuhelper/compbase5.hxx> #include <cppuhelper/implbase1.hxx> #include <cppuhelper/basemutex.hxx> -#include <unotools/accessiblestatesethelper.hxx> #include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/awt/XWindow.hpp> #include <com/sun/star/accessibility/XAccessible.hpp> @@ -43,10 +42,6 @@ namespace vcl { class Window; } -namespace utl { - class AccessibleStateSetHelper; -} - namespace vcl { class IAccessibleTableProvider; } @@ -131,7 +126,7 @@ public: virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet() override; /** @return The set of current states. */ - virtual css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet() override; + virtual sal_Int64 SAL_CALL getAccessibleStateSet() override; /** @return The parent's locale. */ virtual css::lang::Locale SAL_CALL getLocale() override; @@ -248,13 +243,13 @@ protected: @return The bounding box (VCL rect.) in screen coordinates. */ virtual tools::Rectangle implGetBoundingBoxOnScreen() = 0; - /** Creates a new AccessibleStateSetHelper and fills it with states of the + /** Creates a bitset of states of the current object. This method calls FillStateSet at the BrowseBox which fills it with more states depending on the object type. Derived classes may overwrite this method and add more states. @attention This method requires locked mutex's. - @return A filled AccessibleStateSetHelper. */ - virtual rtl::Reference<::utl::AccessibleStateSetHelper> implCreateStateSetHelper(); + */ + virtual sal_Int64 implCreateStateSet(); // internal helper methods diff --git a/accessibility/inc/extended/AccessibleBrowseBoxCheckBoxCell.hxx b/accessibility/inc/extended/AccessibleBrowseBoxCheckBoxCell.hxx index 76c70344096c..cb2a771100ae 100644 --- a/accessibility/inc/extended/AccessibleBrowseBoxCheckBoxCell.hxx +++ b/accessibility/inc/extended/AccessibleBrowseBoxCheckBoxCell.hxx @@ -39,7 +39,7 @@ namespace accessibility virtual ~AccessibleCheckBoxCell() override {} - virtual rtl::Reference<::utl::AccessibleStateSetHelper> implCreateStateSetHelper() override; + virtual sal_Int64 implCreateStateSet() override; public: AccessibleCheckBoxCell(const css::uno::Reference< css::accessibility::XAccessible >& _rxParent, diff --git a/accessibility/inc/extended/AccessibleBrowseBoxHeaderCell.hxx b/accessibility/inc/extended/AccessibleBrowseBoxHeaderCell.hxx index 1a895a045832..61e667d594c4 100644 --- a/accessibility/inc/extended/AccessibleBrowseBoxHeaderCell.hxx +++ b/accessibility/inc/extended/AccessibleBrowseBoxHeaderCell.hxx @@ -54,12 +54,9 @@ namespace accessibility */ virtual OUString SAL_CALL getImplementationName() override; - /** Creates a new AccessibleStateSetHelper and fills it with states of the - current object. - @return - A filled AccessibleStateSetHelper. + /** Return a bitset of states of the current object. */ - rtl::Reference<::utl::AccessibleStateSetHelper> implCreateStateSetHelper() override; + sal_Int64 implCreateStateSet() override; private: virtual tools::Rectangle implGetBoundingBox() override; diff --git a/accessibility/inc/extended/AccessibleBrowseBoxTableCell.hxx b/accessibility/inc/extended/AccessibleBrowseBoxTableCell.hxx index 2b7e28c7d48f..09ee9c62d26b 100644 --- a/accessibility/inc/extended/AccessibleBrowseBoxTableCell.hxx +++ b/accessibility/inc/extended/AccessibleBrowseBoxTableCell.hxx @@ -84,12 +84,9 @@ namespace accessibility virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 nChildIndex ) override; - /** Creates a new AccessibleStateSetHelper and fills it with states of the - current object. - @return - A filled AccessibleStateSetHelper. + /** Return a bitset of states of the current object. */ - rtl::Reference<::utl::AccessibleStateSetHelper> implCreateStateSetHelper() override; + sal_Int64 implCreateStateSet() override; // XAccessible ------------------------------------------------------------ diff --git a/accessibility/inc/extended/AccessibleGridControlBase.hxx b/accessibility/inc/extended/AccessibleGridControlBase.hxx index 8523b78926d6..6338d147d64f 100644 --- a/accessibility/inc/extended/AccessibleGridControlBase.hxx +++ b/accessibility/inc/extended/AccessibleGridControlBase.hxx @@ -27,7 +27,6 @@ #include <cppuhelper/compbase4.hxx> #include <cppuhelper/implbase1.hxx> #include <cppuhelper/basemutex.hxx> -#include <unotools/accessiblestatesethelper.hxx> #include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/accessibility/XAccessible.hpp> #include <com/sun/star/accessibility/XAccessibleContext.hpp> @@ -39,10 +38,6 @@ namespace vcl { class Window; } -namespace utl { - class AccessibleStateSetHelper; -} - namespace accessibility { @@ -103,8 +98,7 @@ public: getAccessibleRelationSet() override; /** @return The set of current states. */ - virtual css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL - getAccessibleStateSet() override; + virtual sal_Int64 SAL_CALL getAccessibleStateSet() override; /** @return The parent's locale. */ virtual css::lang::Locale SAL_CALL getLocale() override; @@ -212,13 +206,13 @@ protected: // @return The bounding box (VCL rect.) in screen coordinates. */ virtual tools::Rectangle implGetBoundingBoxOnScreen() = 0; - /** Creates a new AccessibleStateSetHelper and fills it with states of the + /** Creates a bitset of states of the current object. This method calls FillStateSet at the GridControl which fills it with more states depending on the object type. Derived classes may overwrite this method and add more states. @attention This method requires locked mutex's. - @return A filled AccessibleStateSetHelper. */ - virtual rtl::Reference<::utl::AccessibleStateSetHelper> implCreateStateSetHelper(); + */ + virtual sal_Int64 implCreateStateSet(); // internal helper methods diff --git a/accessibility/inc/extended/AccessibleGridControlHeaderCell.hxx b/accessibility/inc/extended/AccessibleGridControlHeaderCell.hxx index c9a0fde32032..003c3bbb4468 100644 --- a/accessibility/inc/extended/AccessibleGridControlHeaderCell.hxx +++ b/accessibility/inc/extended/AccessibleGridControlHeaderCell.hxx @@ -64,12 +64,9 @@ namespace accessibility */ virtual OUString SAL_CALL getImplementationName() override; - /** Creates a new AccessibleStateSetHelper and fills it with states of the - current object. - @return - A filled AccessibleStateSetHelper. + /** Return a bitset of states of the current object. */ - rtl::Reference<::utl::AccessibleStateSetHelper> implCreateStateSetHelper() override; + sal_Int64 implCreateStateSet() override; private: virtual tools::Rectangle implGetBoundingBox() override; diff --git a/accessibility/inc/extended/AccessibleGridControlTableCell.hxx b/accessibility/inc/extended/AccessibleGridControlTableCell.hxx index 6e3ee3367ae8..2d89d009153d 100644 --- a/accessibility/inc/extended/AccessibleGridControlTableCell.hxx +++ b/accessibility/inc/extended/AccessibleGridControlTableCell.hxx @@ -112,12 +112,9 @@ namespace accessibility virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 nChildIndex ) override; - /** Creates a new AccessibleStateSetHelper and fills it with states of the - current object. - @return - A filled AccessibleStateSetHelper. + /** Return a bitset of states of the current object. */ - rtl::Reference<::utl::AccessibleStateSetHelper> implCreateStateSetHelper() override; + sal_Int64 implCreateStateSet() override; // XAccessible ------------------------------------------------------------ diff --git a/accessibility/inc/extended/accessibleeditbrowseboxcell.hxx b/accessibility/inc/extended/accessibleeditbrowseboxcell.hxx index 093a3ade4587..ffb1cf5fb695 100644 --- a/accessibility/inc/extended/accessibleeditbrowseboxcell.hxx +++ b/accessibility/inc/extended/accessibleeditbrowseboxcell.hxx @@ -62,7 +62,7 @@ namespace accessibility virtual OUString SAL_CALL getAccessibleDescription( ) override; virtual OUString SAL_CALL getAccessibleName( ) override; virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) override; - virtual css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet( ) override; + virtual sal_Int64 SAL_CALL getAccessibleStateSet( ) override; sal_Int16 SAL_CALL getAccessibleRole() override; diff --git a/accessibility/inc/extended/accessibleiconchoicectrl.hxx b/accessibility/inc/extended/accessibleiconchoicectrl.hxx index 836956fc4121..9f3f64d2658f 100644 --- a/accessibility/inc/extended/accessibleiconchoicectrl.hxx +++ b/accessibility/inc/extended/accessibleiconchoicectrl.hxx @@ -46,7 +46,7 @@ namespace accessibility virtual void SAL_CALL disposing() override; virtual void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent ) override; - virtual void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) override; + virtual void FillAccessibleStateSet( sal_Int64& rStateSet ) override; VclPtr< SvtIconChoiceCtrl > getCtrl() const; diff --git a/accessibility/inc/extended/accessibleiconchoicectrlentry.hxx b/accessibility/inc/extended/accessibleiconchoicectrlentry.hxx index 915736e95c0e..93077f89bcf2 100644 --- a/accessibility/inc/extended/accessibleiconchoicectrlentry.hxx +++ b/accessibility/inc/extended/accessibleiconchoicectrlentry.hxx @@ -23,7 +23,6 @@ #include <com/sun/star/accessibility/XAccessible.hpp> #include <com/sun/star/accessibility/XAccessibleComponent.hpp> #include <com/sun/star/accessibility/XAccessibleContext.hpp> -#include <com/sun/star/accessibility/XAccessibleStateSet.hpp> #include <com/sun/star/accessibility/XAccessibleEventBroadcaster.hpp> #include <com/sun/star/accessibility/XAccessibleAction.hpp> #include <com/sun/star/lang/XEventListener.hpp> @@ -126,7 +125,7 @@ namespace accessibility virtual OUString SAL_CALL getAccessibleDescription( ) override; virtual OUString SAL_CALL getAccessibleName( ) override; virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) override; - virtual css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet( ) override; + virtual sal_Int64 SAL_CALL getAccessibleStateSet( ) override; virtual css::lang::Locale SAL_CALL getLocale( ) override; // XAccessibleComponent diff --git a/accessibility/inc/extended/accessiblelistbox.hxx b/accessibility/inc/extended/accessiblelistbox.hxx index 40b01ea180a5..abb09388c952 100644 --- a/accessibility/inc/extended/accessiblelistbox.hxx +++ b/accessibility/inc/extended/accessiblelistbox.hxx @@ -53,7 +53,7 @@ namespace accessibility // VCLXAccessibleComponent virtual void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent ) override; virtual void ProcessWindowChildEvent( const VclWindowEvent& rVclWindowEvent ) override; - virtual void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) override; + virtual void FillAccessibleStateSet( sal_Int64& rStateSet ) override; private: VclPtr< SvTreeListBox > getListBox() const; diff --git a/accessibility/inc/extended/accessiblelistboxentry.hxx b/accessibility/inc/extended/accessiblelistboxentry.hxx index 449803bc35b5..b065e8947c49 100644 --- a/accessibility/inc/extended/accessiblelistboxentry.hxx +++ b/accessibility/inc/extended/accessiblelistboxentry.hxx @@ -24,7 +24,6 @@ #include <com/sun/star/accessibility/XAccessible.hpp> #include <com/sun/star/accessibility/XAccessibleComponent.hpp> #include <com/sun/star/accessibility/XAccessibleContext.hpp> -#include <com/sun/star/accessibility/XAccessibleStateSet.hpp> #include <com/sun/star/accessibility/XAccessibleEventBroadcaster.hpp> #include <com/sun/star/accessibility/XAccessibleAction.hpp> #include <com/sun/star/accessibility/XAccessibleSelection.hpp> @@ -150,7 +149,7 @@ namespace accessibility virtual OUString SAL_CALL getAccessibleDescription( ) override; virtual OUString SAL_CALL getAccessibleName( ) override; virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) override; - virtual css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet( ) override; + virtual sal_Int64 SAL_CALL getAccessibleStateSet( ) override; virtual css::lang::Locale SAL_CALL getLocale( ) override; // XAccessibleComponent diff --git a/accessibility/inc/extended/accessibletabbar.hxx b/accessibility/inc/extended/accessibletabbar.hxx index 973bbbe2e474..f8a9bb2b5eb9 100644 --- a/accessibility/inc/extended/accessibletabbar.hxx +++ b/accessibility/inc/extended/accessibletabbar.hxx @@ -26,10 +26,6 @@ #include <vector> -namespace utl { -class AccessibleStateSetHelper; -} - namespace accessibility { @@ -49,7 +45,7 @@ namespace accessibility AccessibleChildren m_aAccessibleChildren; virtual void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent ) override; - void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ); + void FillAccessibleStateSet( sal_Int64& rStateSet ); // OCommonAccessibleComponent virtual css::awt::Rectangle implGetBounds( ) override; @@ -83,7 +79,7 @@ namespace accessibility virtual OUString SAL_CALL getAccessibleDescription( ) override; virtual OUString SAL_CALL getAccessibleName( ) override; virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) override; - virtual css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet( ) override; + virtual sal_Int64 SAL_CALL getAccessibleStateSet( ) override; virtual css::lang::Locale SAL_CALL getLocale( ) override; // XAccessibleComponent diff --git a/accessibility/inc/extended/accessibletabbarpage.hxx b/accessibility/inc/extended/accessibletabbarpage.hxx index 81bf83f24d68..35c0b9baf417 100644 --- a/accessibility/inc/extended/accessibletabbarpage.hxx +++ b/accessibility/inc/extended/accessibletabbarpage.hxx @@ -24,10 +24,6 @@ #include <cppuhelper/implbase2.hxx> #include <extended/accessibletabbarbase.hxx> -namespace utl { -class AccessibleStateSetHelper; -} - namespace accessibility { @@ -62,7 +58,7 @@ namespace accessibility sal_uInt16 GetPageId() const { return m_nPageId; } - void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ); + void FillAccessibleStateSet( sal_Int64& rStateSet ); // OCommonAccessibleComponent virtual css::awt::Rectangle implGetBounds( ) override; @@ -97,7 +93,7 @@ namespace accessibility virtual OUString SAL_CALL getAccessibleDescription( ) override; virtual OUString SAL_CALL getAccessibleName( ) override; virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) override; - virtual css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet( ) override; + virtual sal_Int64 SAL_CALL getAccessibleStateSet( ) override; virtual css::lang::Locale SAL_CALL getLocale( ) override; // XAccessibleComponent diff --git a/accessibility/inc/extended/accessibletabbarpagelist.hxx b/accessibility/inc/extended/accessibletabbarpagelist.hxx index 89a8c6310f95..18d964b11005 100644 --- a/accessibility/inc/extended/accessibletabbarpagelist.hxx +++ b/accessibility/inc/extended/accessibletabbarpagelist.hxx @@ -27,10 +27,6 @@ #include <vector> -namespace utl { -class AccessibleStateSetHelper; -} - namespace accessibility { @@ -61,7 +57,7 @@ namespace accessibility void MoveChild( sal_Int32 i, sal_Int32 j ); virtual void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent ) override; - void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ); + void FillAccessibleStateSet( sal_Int64& rStateSet ); // OCommonAccessibleComponent virtual css::awt::Rectangle implGetBounds( ) override; @@ -95,7 +91,7 @@ namespace accessibility virtual OUString SAL_CALL getAccessibleDescription( ) override; virtual OUString SAL_CALL getAccessibleName( ) override; virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) override; - virtual css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet( ) override; + virtual sal_Int64 SAL_CALL getAccessibleStateSet( ) override; virtual css::lang::Locale SAL_CALL getLocale( ) override; // XAccessibleComponent diff --git a/accessibility/inc/extended/textwindowaccessibility.hxx b/accessibility/inc/extended/textwindowaccessibility.hxx index f5696d8bfb61..2c8336b8181a 100644 --- a/accessibility/inc/extended/textwindowaccessibility.hxx +++ b/accessibility/inc/extended/textwindowaccessibility.hxx @@ -180,9 +180,7 @@ private: css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet() override; - virtual - css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL - getAccessibleStateSet() override; + virtual sal_Int64 SAL_CALL getAccessibleStateSet() override; virtual css::lang::Locale SAL_CALL getLocale() override; @@ -479,7 +477,7 @@ private: virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint(css::awt::Point const & rPoint) override; - virtual void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) override; + virtual void FillAccessibleStateSet( sal_Int64& rStateSet ) override; virtual void FillAccessibleRelationSet( utl::AccessibleRelationSetHelper& rRelationSet ) override; // ??? Will be called with both the external (Solar) and internal mutex diff --git a/accessibility/inc/pch/precompiled_acc.hxx b/accessibility/inc/pch/precompiled_acc.hxx index 80dd38d70c30..33dcf9125def 100644 --- a/accessibility/inc/pch/precompiled_acc.hxx +++ b/accessibility/inc/pch/precompiled_acc.hxx @@ -193,7 +193,6 @@ #include <com/sun/star/accessibility/XAccessibleExtendedComponent.hpp> #include <com/sun/star/accessibility/XAccessibleKeyBinding.hpp> #include <com/sun/star/accessibility/XAccessibleSelection.hpp> -#include <com/sun/star/accessibility/XAccessibleStateSet.hpp> #include <com/sun/star/accessibility/XAccessibleTable.hpp> #include <com/sun/star/accessibility/XAccessibleText.hpp> #include <com/sun/star/accessibility/XAccessibleValue.hpp> @@ -345,7 +344,6 @@ #include <uno/data.h> #include <uno/sequence2.h> #include <unotools/accessiblerelationsethelper.hxx> -#include <unotools/accessiblestatesethelper.hxx> #include <unotools/fontdefs.hxx> #include <unotools/unotoolsdllapi.h> #endif // PCH_LEVEL >= 3 diff --git a/accessibility/inc/standard/accessiblemenubasecomponent.hxx b/accessibility/inc/standard/accessiblemenubasecomponent.hxx index d6f4713cc284..2d0f838a52d6 100644 --- a/accessibility/inc/standard/accessiblemenubasecomponent.hxx +++ b/accessibility/inc/standard/accessiblemenubasecomponent.hxx @@ -33,11 +33,6 @@ class Menu; class VclSimpleEvent; class VclMenuEvent; -namespace utl { -class AccessibleStateSetHelper; -} - - typedef ::cppu::ImplHelper2< css::accessibility::XAccessible, @@ -106,7 +101,7 @@ protected: void ProcessMenuEvent( const VclMenuEvent& rVclMenuEvent ); - virtual void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) = 0; + virtual void FillAccessibleStateSet( sal_Int64& rStateSet ) = 0; // XComponent virtual void SAL_CALL disposing() override; @@ -130,7 +125,7 @@ public: virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) override; // XAccessibleContext - virtual css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet( ) override; + virtual sal_Int64 SAL_CALL getAccessibleStateSet( ) override; }; diff --git a/accessibility/inc/standard/accessiblemenucomponent.hxx b/accessibility/inc/standard/accessiblemenucomponent.hxx index f1559a46f062..b82a7c0ab57f 100644 --- a/accessibility/inc/standard/accessiblemenucomponent.hxx +++ b/accessibility/inc/standard/accessiblemenucomponent.hxx @@ -35,7 +35,7 @@ protected: virtual bool IsEnabled() override; virtual bool IsVisible() override; - virtual void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) override; + virtual void FillAccessibleStateSet( sal_Int64& rStateSet ) override; // OCommonAccessibleComponent virtual css::awt::Rectangle implGetBounds( ) override; diff --git a/accessibility/inc/standard/accessiblemenuitemcomponent.hxx b/accessibility/inc/standard/accessiblemenuitemcomponent.hxx index cad61500d117..55550d53a36e 100644 --- a/accessibility/inc/standard/accessiblemenuitemcomponent.hxx +++ b/accessibility/inc/standard/accessiblemenuitemcomponent.hxx @@ -48,7 +48,7 @@ protected: virtual bool IsMenuHideDisabledEntries() override; - virtual void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) override; + virtual void FillAccessibleStateSet( sal_Int64& rStateSet ) override; // OCommonAccessibleComponent virtual css::awt::Rectangle implGetBounds( ) override; diff --git a/accessibility/inc/standard/vclxaccessiblebox.hxx b/accessibility/inc/standard/vclxaccessiblebox.hxx index e92ab2bb2c24..dd3f6914c26c 100644 --- a/accessibility/inc/standard/vclxaccessiblebox.hxx +++ b/accessibility/inc/standard/vclxaccessiblebox.hxx @@ -150,7 +150,7 @@ protected: virtual void ProcessWindowChildEvent (const VclWindowEvent& rVclWindowEvent) override; virtual void ProcessWindowEvent (const VclWindowEvent& rVclWindowEvent) override; - virtual void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) override; + virtual void FillAccessibleStateSet( sal_Int64& rStateSet ) override; sal_Int32 implGetAccessibleChildCount(); }; diff --git a/accessibility/inc/standard/vclxaccessiblebutton.hxx b/accessibility/inc/standard/vclxaccessiblebutton.hxx index a786f8e0a778..282e7ed7e817 100644 --- a/accessibility/inc/standard/vclxaccessiblebutton.hxx +++ b/accessibility/inc/standard/vclxaccessiblebutton.hxx @@ -39,7 +39,7 @@ class VCLXAccessibleButton final : public VCLXAccessibleTextComponent, virtual ~VCLXAccessibleButton() override = default; virtual void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent ) override; - virtual void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) override; + virtual void FillAccessibleStateSet( sal_Int64& rStateSet ) override; public: using VCLXAccessibleTextComponent::VCLXAccessibleTextComponent; diff --git a/accessibility/inc/standard/vclxaccessiblecheckbox.hxx b/accessibility/inc/standard/vclxaccessiblecheckbox.hxx index f64f5ab980ea..81e36cd42403 100644 --- a/accessibility/inc/standard/vclxaccessiblecheckbox.hxx +++ b/accessibility/inc/standard/vclxaccessiblecheckbox.hxx @@ -51,7 +51,7 @@ private: void SetIndeterminate( bool bIndeterminate ); virtual void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent ) override; - virtual void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) override; + virtual void FillAccessibleStateSet( sal_Int64& rStateSet ) override; public: VCLXAccessibleCheckBox( VCLXWindow* pVCLXindow ); diff --git a/accessibility/inc/standard/vclxaccessibleedit.hxx b/accessibility/inc/standard/vclxaccessibleedit.hxx index 2f2ee88cc29b..81659d2c9ea3 100644 --- a/accessibility/inc/standard/vclxaccessibleedit.hxx +++ b/accessibility/inc/standard/vclxaccessibleedit.hxx @@ -45,7 +45,7 @@ protected: virtual ~VCLXAccessibleEdit() override = default; virtual void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent ) override; - virtual void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) override; + virtual void FillAccessibleStateSet( sal_Int64& rStateSet ) override; sal_Int16 implGetAccessibleRole(); // OCommonAccessibleText diff --git a/accessibility/inc/standard/vclxaccessiblefixedtext.hxx b/accessibility/inc/standard/vclxaccessiblefixedtext.hxx index 0a79530f2f2b..bce6ef6ec163 100644 --- a/accessibility/inc/standard/vclxaccessiblefixedtext.hxx +++ b/accessibility/inc/standard/vclxaccessiblefixedtext.hxx @@ -25,7 +25,7 @@ class VCLXAccessibleFixedText final : public VCLXAccessibleTextComponent { virtual ~VCLXAccessibleFixedText() override = default; - virtual void FillAccessibleStateSet(utl::AccessibleStateSetHelper& rStateSet) override; + virtual void FillAccessibleStateSet(sal_Int64& rStateSet) override; public: using VCLXAccessibleTextComponent::VCLXAccessibleTextComponent; diff --git a/accessibility/inc/standard/vclxaccessibleheaderbaritem.hxx b/accessibility/inc/standard/vclxaccessibleheaderbaritem.hxx index c7a460770b98..88bbc68e943b 100644 --- a/accessibility/inc/standard/vclxaccessibleheaderbaritem.hxx +++ b/accessibility/inc/standard/vclxaccessibleheaderbaritem.hxx @@ -29,10 +29,6 @@ class HeaderBar; class VclSimpleEvent; class VclWindowEvent; -namespace utl { -class AccessibleStateSetHelper; -} - // ---------------------------------------------------- // class VCLXAccessibleHeaderBarItem @@ -49,7 +45,7 @@ private: VclPtr<HeaderBar> m_pHeadBar; sal_Int32 m_nIndexInParent; - void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ); + void FillAccessibleStateSet( sal_Int64& rStateSet ); // OCommonAccessibleComponent virtual css::awt::Rectangle implGetBounds( ) override; @@ -81,7 +77,7 @@ public: virtual OUString SAL_CALL getAccessibleDescription( ) override; virtual OUString SAL_CALL getAccessibleName( ) override; virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) override; - virtual css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet( ) override; + virtual sal_Int64 SAL_CALL getAccessibleStateSet( ) override; virtual css::lang::Locale SAL_CALL getLocale( ) override; // XAccessibleComponent diff --git a/accessibility/inc/standard/vclxaccessiblelist.hxx b/accessibility/inc/standard/vclxaccessiblelist.hxx index 619fe23aada8..f1d5520a52da 100644 --- a/accessibility/inc/standard/vclxaccessiblelist.hxx +++ b/accessibility/inc/standard/vclxaccessiblelist.hxx @@ -151,7 +151,7 @@ private: AccessibleStateType::MULTI_SELECTABLE to the state set of the base classes. */ - virtual void FillAccessibleStateSet (utl::AccessibleStateSetHelper& rStateSet) override; + virtual void FillAccessibleStateSet (sal_Int64& rStateSet) override; /** Create the specified child and insert it into the list of children. Sets the child's states. diff --git a/accessibility/inc/standard/vclxaccessiblelistitem.hxx b/accessibility/inc/standard/vclxaccessiblelistitem.hxx index 6542d7b43425..6952bd5eea1e 100644 --- a/accessibility/inc/standard/vclxaccessiblelistitem.hxx +++ b/accessibility/inc/standard/vclxaccessiblelistitem.hxx @@ -23,7 +23,6 @@ #include <com/sun/star/accessibility/XAccessible.hpp> #include <com/sun/star/accessibility/XAccessibleComponent.hpp> #include <com/sun/star/accessibility/XAccessibleContext.hpp> -#include <com/sun/star/accessibility/XAccessibleStateSet.hpp> #include <com/sun/star/accessibility/XAccessibleText.hpp> #include <com/sun/star/accessibility/XAccessibleEventBroadcaster.hpp> #include <com/sun/star/lang/XServiceInfo.hpp> @@ -113,7 +112,7 @@ public: virtual OUString SAL_CALL getAccessibleDescription( ) override; virtual OUString SAL_CALL getAccessibleName( ) override; virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) override; - virtual css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet( ) override; + virtual sal_Int64 SAL_CALL getAccessibleStateSet( ) override; virtual css::lang::Locale SAL_CALL getLocale( ) override; // XAccessibleComponent diff --git a/accessibility/inc/standard/vclxaccessiblemenuitem.hxx b/accessibility/inc/standard/vclxaccessiblemenuitem.hxx index 646f87aa02c9..e67be7f09e53 100644 --- a/accessibility/inc/standard/vclxaccessiblemenuitem.hxx +++ b/accessibility/inc/standard/vclxaccessiblemenuitem.hxx @@ -47,7 +47,7 @@ protected: virtual bool IsHighlighted() override; - virtual void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) override; + virtual void FillAccessibleStateSet( sal_Int64& rStateSet ) override; // OCommonAccessibleText virtual OUString implGetText() final override; diff --git a/accessibility/inc/standard/vclxaccessibleradiobutton.hxx b/accessibility/inc/standard/vclxaccessibleradiobutton.hxx index a9b93b7ac67f..4bffbf267c62 100644 --- a/accessibility/inc/standard/vclxaccessibleradiobutton.hxx +++ b/accessibility/inc/standard/vclxaccessibleradiobutton.hxx @@ -40,7 +40,7 @@ class VCLXAccessibleRadioButton final : public VCLXAccessibleTextComponent, virtual void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent ) override; virtual void FillAccessibleRelationSet( utl::AccessibleRelationSetHelper& rRelationSet ) override; - virtual void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) override; + virtual void FillAccessibleStateSet( sal_Int64& rStateSet ) override; public: using VCLXAccessibleTextComponent::VCLXAccessibleTextComponent; diff --git a/accessibility/inc/standard/vclxaccessiblescrollbar.hxx b/accessibility/inc/standard/vclxaccessiblescrollbar.hxx index 0a9e0368ff8e..4476ed7c89a1 100644 --- a/accessibility/inc/standard/vclxaccessiblescrollbar.hxx +++ b/accessibility/inc/standard/vclxaccessiblescrollbar.hxx @@ -39,7 +39,7 @@ class VCLXAccessibleScrollBar final : public VCLXAccessibleComponent, virtual ~VCLXAccessibleScrollBar() override = default; virtual void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent ) override; - virtual void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) override; + virtual void FillAccessibleStateSet( sal_Int64& rStateSet ) override; public: using VCLXAccessibleComponent::VCLXAccessibleComponent; diff --git a/accessibility/inc/standard/vclxaccessiblestatusbaritem.hxx b/accessibility/inc/standard/vclxaccessiblestatusbaritem.hxx index 92c39dbd8501..5be9739722dc 100644 --- a/accessibility/inc/standard/vclxaccessiblestatusbaritem.hxx +++ b/accessibility/inc/standard/vclxaccessiblestatusbaritem.hxx @@ -27,10 +27,6 @@ #include <vcl/status.hxx> #include <vcl/vclptr.hxx> -namespace utl { -class AccessibleStateSetHelper; -} - @@ -60,7 +56,7 @@ private: OUString GetItemText(); sal_uInt16 GetItemId() const { return m_nItemId; } - void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ); + void FillAccessibleStateSet( sal_Int64& rStateSet ); // OCommonAccessibleComponent virtual css::awt::Rectangle implGetBounds( ) override; @@ -99,7 +95,7 @@ public: virtual OUString SAL_CALL getAccessibleDescription( ) override; virtual OUString SAL_CALL getAccessibleName( ) override; virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) override; - virtual css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet( ) override; + virtual sal_Int64 SAL_CALL getAccessibleStateSet( ) override; virtual css::lang::Locale SAL_CALL getLocale( ) override; // XAccessibleComponent diff --git a/accessibility/inc/standard/vclxaccessibletabcontrol.hxx b/accessibility/inc/standard/vclxaccessibletabcontrol.hxx index 7511e03ebe2a..ab6cdb620eb9 100644 --- a/accessibility/inc/standard/vclxaccessibletabcontrol.hxx +++ b/accessibility/inc/standard/vclxaccessibletabcontrol.hxx @@ -55,7 +55,7 @@ private: virtual void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent ) override; virtual void ProcessWindowChildEvent( const VclWindowEvent& rVclWindowEvent ) override; - virtual void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) override; + virtual void FillAccessibleStateSet( sal_Int64& rStateSet ) override; // XComponent virtual void SAL_CALL disposing() override; diff --git a/accessibility/inc/standard/vclxaccessibletabpage.hxx b/accessibility/inc/standard/vclxaccessibletabpage.hxx index 8e3c3c8f6c81..2d78f889264f 100644 --- a/accessibility/inc/standard/vclxaccessibletabpage.hxx +++ b/accessibility/inc/standard/vclxaccessibletabpage.hxx @@ -29,11 +29,6 @@ class TabControl; -namespace utl { -class AccessibleStateSetHelper; -} - - typedef ::comphelper::OAccessibleTextHelper AccessibleTextHelper_BASE; @@ -68,7 +63,7 @@ private: sal_uInt16 GetPageId() const { return m_nPageId; } - void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ); + void FillAccessibleStateSet( sal_Int64& rStateSet ); // OCommonAccessibleComponent virtual css::awt::Rectangle implGetBounds( ) override; @@ -108,7 +103,7 @@ public: virtual OUString SAL_CALL getAccessibleDescription( ) override; virtual OUString SAL_CALL getAccessibleName( ) override; virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) override; - virtual css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet( ) override; + virtual sal_Int64 SAL_CALL getAccessibleStateSet( ) override; virtual css::lang::Locale SAL_CALL getLocale( ) override; // XAccessibleComponent diff --git a/accessibility/inc/standard/vclxaccessibletoolbox.hxx b/accessibility/inc/standard/vclxaccessibletoolbox.hxx index 89bf0a99a011..7518f3f7a154 100644 --- a/accessibility/inc/standard/vclxaccessibletoolbox.hxx +++ b/accessibility/inc/standard/vclxaccessibletoolbox.hxx @@ -55,7 +55,7 @@ private: virtual ~VCLXAccessibleToolBox() override; - virtual void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) override; + virtual void FillAccessibleStateSet( sal_Int64& rStateSet ) override; virtual void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent ) override; virtual void ProcessWindowChildEvent( const VclWindowEvent& rVclWindowEvent ) override; diff --git a/accessibility/inc/standard/vclxaccessibletoolboxitem.hxx b/accessibility/inc/standard/vclxaccessibletoolboxitem.hxx index 6c60bf4a87c6..9f93f9658791 100644 --- a/accessibility/inc/standard/vclxaccessibletoolboxitem.hxx +++ b/accessibility/inc/standard/vclxaccessibletoolboxitem.hxx @@ -22,7 +22,6 @@ #include <com/sun/star/accessibility/XAccessible.hpp> #include <com/sun/star/accessibility/XAccessibleAction.hpp> #include <com/sun/star/accessibility/XAccessibleContext.hpp> -#include <com/sun/star/accessibility/XAccessibleStateSet.hpp> #include <com/sun/star/accessibility/XAccessibleValue.hpp> #include <com/sun/star/lang/XServiceInfo.hpp> #include <cppuhelper/implbase4.hxx> @@ -107,7 +106,7 @@ public: virtual OUString SAL_CALL getAccessibleDescription( ) override; virtual OUString SAL_CALL getAccessibleName( ) override; virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) override; - virtual css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet( ) override; + virtual sal_Int64 SAL_CALL getAccessibleStateSet( ) override; // XAccessibleText virtual OUString SAL_CALL getText() override; diff --git a/accessibility/source/extended/AccessibleBrowseBoxBase.cxx b/accessibility/source/extended/AccessibleBrowseBoxBase.cxx index 4b16293e5083..69981e9640aa 100644 --- a/accessibility/source/extended/AccessibleBrowseBoxBase.cxx +++ b/accessibility/source/extended/AccessibleBrowseBoxBase.cxx @@ -184,12 +184,12 @@ AccessibleBrowseBoxBase::getAccessibleRelationSet() return new utl::AccessibleRelationSetHelper; } -Reference< css::accessibility::XAccessibleStateSet > SAL_CALL +sal_Int64 SAL_CALL AccessibleBrowseBoxBase::getAccessibleStateSet() { SolarMethodGuard aGuard( getMutex() ); // don't check whether alive -> StateSet may contain DEFUNC - return implCreateStateSetHelper(); + return implCreateStateSet(); } lang::Locale SAL_CALL AccessibleBrowseBoxBase::getLocale() @@ -355,23 +355,22 @@ bool AccessibleBrowseBoxBase::implIsShowing() return bShowing; } -rtl::Reference<::utl::AccessibleStateSetHelper> AccessibleBrowseBoxBase::implCreateStateSetHelper() +sal_Int64 AccessibleBrowseBoxBase::implCreateStateSet() { - rtl::Reference<::utl::AccessibleStateSetHelper> - pStateSetHelper = new ::utl::AccessibleStateSetHelper; + sal_Int64 nStateSet = 0; if( isAlive() ) { // SHOWING done with mxParent if( implIsShowing() ) - pStateSetHelper->AddState( AccessibleStateType::SHOWING ); + nStateSet |= AccessibleStateType::SHOWING; // BrowseBox fills StateSet with states depending on object type - mpBrowseBox->FillAccessibleStateSet( *pStateSetHelper, getType() ); + mpBrowseBox->FillAccessibleStateSet( nStateSet, getType() ); } else - pStateSetHelper->AddState( AccessibleStateType::DEFUNC ); + nStateSet |= AccessibleStateType::DEFUNC; - return pStateSetHelper; + return nStateSet; } // internal helper methods diff --git a/accessibility/source/extended/AccessibleBrowseBoxCheckBoxCell.cxx b/accessibility/source/extended/AccessibleBrowseBoxCheckBoxCell.cxx index 2b29547bad92..6efbb5a1199a 100644 --- a/accessibility/source/extended/AccessibleBrowseBoxCheckBoxCell.cxx +++ b/accessibility/source/extended/AccessibleBrowseBoxCheckBoxCell.cxx @@ -52,18 +52,17 @@ namespace accessibility return this; } - rtl::Reference<::utl::AccessibleStateSetHelper> AccessibleCheckBoxCell::implCreateStateSetHelper() + sal_Int64 AccessibleCheckBoxCell::implCreateStateSet() { - rtl::Reference<::utl::AccessibleStateSetHelper> pStateSetHelper = - AccessibleBrowseBoxCell::implCreateStateSetHelper(); + sal_Int64 nStateSet = AccessibleBrowseBoxCell::implCreateStateSet(); if( isAlive() ) { mpBrowseBox->FillAccessibleStateSetForCell( - *pStateSetHelper, getRowPos(), static_cast< sal_uInt16 >( getColumnPos() ) ); + nStateSet, getRowPos(), static_cast< sal_uInt16 >( getColumnPos() ) ); if ( m_eState == TRISTATE_TRUE ) - pStateSetHelper->AddState( AccessibleStateType::CHECKED ); + nStateSet |= AccessibleStateType::CHECKED; } - return pStateSetHelper; + return nStateSet; } // XAccessibleValue diff --git a/accessibility/source/extended/AccessibleBrowseBoxHeaderCell.cxx b/accessibility/source/extended/AccessibleBrowseBoxHeaderCell.cxx index 81b3bfa4e7e4..610d4f9fe4c5 100644 --- a/accessibility/source/extended/AccessibleBrowseBoxHeaderCell.cxx +++ b/accessibility/source/extended/AccessibleBrowseBoxHeaderCell.cxx @@ -43,38 +43,34 @@ AccessibleBrowseBoxHeaderCell::AccessibleBrowseBoxHeaderCell(sal_Int32 _nColumnR , m_nColumnRowId(_nColumnRowId) { } -/** Creates a new AccessibleStateSetHelper and fills it with states of the - current object. - @return - A filled AccessibleStateSetHelper. +/** Return a bitset of states of the current object. */ -rtl::Reference<::utl::AccessibleStateSetHelper> AccessibleBrowseBoxHeaderCell::implCreateStateSetHelper() +sal_Int64 AccessibleBrowseBoxHeaderCell::implCreateStateSet() { SolarMethodGuard aGuard( getMutex() ); - rtl::Reference<::utl::AccessibleStateSetHelper> - pStateSetHelper = new ::utl::AccessibleStateSetHelper; + sal_Int64 nStateSet = 0; if( isAlive() ) { // SHOWING done with mxParent if( implIsShowing() ) - pStateSetHelper->AddState( AccessibleStateType::SHOWING ); + nStateSet |= AccessibleStateType::SHOWING; - mpBrowseBox->FillAccessibleStateSet( *pStateSetHelper, getType() ); - pStateSetHelper->AddState( AccessibleStateType::VISIBLE ); - pStateSetHelper->AddState( AccessibleStateType::FOCUSABLE ); - pStateSetHelper->AddState( AccessibleStateType::TRANSIENT ); - pStateSetHelper->AddState( AccessibleStateType::SELECTABLE ); + mpBrowseBox->FillAccessibleStateSet( nStateSet, getType() ); + nStateSet |= AccessibleStateType::VISIBLE; + nStateSet |= AccessibleStateType::FOCUSABLE; + nStateSet |= AccessibleStateType::TRANSIENT; + nStateSet |= AccessibleStateType::SELECTABLE; bool bSelected = isRowBarCell() ? mpBrowseBox->IsRowSelected(m_nColumnRowId) : mpBrowseBox->IsColumnSelected(m_nColumnRowId); if ( bSelected ) - pStateSetHelper->AddState( AccessibleStateType::SELECTED ); + nStateSet |= AccessibleStateType::SELECTED; } else - pStateSetHelper->AddState( AccessibleStateType::DEFUNC ); + nStateSet |= AccessibleStateType::DEFUNC; - return pStateSetHelper; + return nStateSet; } /** @return diff --git a/accessibility/source/extended/AccessibleBrowseBoxTableCell.cxx b/accessibility/source/extended/AccessibleBrowseBoxTableCell.cxx index 13cdb63e24dd..9ebda45ddc8c 100644 --- a/accessibility/source/extended/AccessibleBrowseBoxTableCell.cxx +++ b/accessibility/source/extended/AccessibleBrowseBoxTableCell.cxx @@ -41,7 +41,6 @@ namespace accessibility } } using namespace ::com::sun::star::lang; - using namespace utl; using namespace comphelper; using namespace ::com::sun::star::uno; using ::com::sun::star::accessibility::XAccessible; @@ -155,29 +154,26 @@ namespace accessibility throw css::lang::IndexOutOfBoundsException(); } - /** Creates a new AccessibleStateSetHelper and fills it with states of the - current object. - @return - A filled AccessibleStateSetHelper. + /** Return a bitset of states of the current object. */ - rtl::Reference<::utl::AccessibleStateSetHelper> AccessibleBrowseBoxTableCell::implCreateStateSetHelper() + sal_Int64 AccessibleBrowseBoxTableCell::implCreateStateSet() { SolarMethodGuard aGuard(getMutex()); - rtl::Reference<::utl::AccessibleStateSetHelper> pStateSetHelper = new ::utl::AccessibleStateSetHelper; + sal_Int64 nStateSet = 0; if( isAlive() ) { // SHOWING done with mxParent if( implIsShowing() ) - pStateSetHelper->AddState( AccessibleStateType::SHOWING ); + nStateSet |= AccessibleStateType::SHOWING; - mpBrowseBox->FillAccessibleStateSetForCell( *pStateSetHelper, getRowPos(), static_cast< sal_uInt16 >( getColumnPos() ) ); + mpBrowseBox->FillAccessibleStateSetForCell( nStateSet, getRowPos(), static_cast< sal_uInt16 >( getColumnPos() ) ); } else - pStateSetHelper->AddState( AccessibleStateType::DEFUNC ); + nStateSet |= AccessibleStateType::DEFUNC; - return pStateSetHelper; + return nStateSet; } diff --git a/accessibility/source/extended/AccessibleGridControlBase.cxx b/accessibility/source/extended/AccessibleGridControlBase.cxx index 6b7ce3fad417..79a57029259d 100644 --- a/accessibility/source/extended/AccessibleGridControlBase.cxx +++ b/accessibility/source/extended/AccessibleGridControlBase.cxx @@ -155,13 +155,13 @@ AccessibleGridControlBase::getAccessibleRelationSet() return new utl::AccessibleRelationSetHelper; } -css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL +sal_Int64 SAL_CALL AccessibleGridControlBase::getAccessibleStateSet() { SolarMutexGuard aSolarGuard; // don't check whether alive -> StateSet may contain DEFUNC - return implCreateStateSetHelper(); + return implCreateStateSet(); } lang::Locale SAL_CALL AccessibleGridControlBase::getLocale() @@ -278,22 +278,21 @@ bool AccessibleGridControlBase::implIsShowing() return bShowing; } -rtl::Reference<::utl::AccessibleStateSetHelper> AccessibleGridControlBase::implCreateStateSetHelper() +sal_Int64 AccessibleGridControlBase::implCreateStateSet() { - rtl::Reference<::utl::AccessibleStateSetHelper> - pStateSetHelper = new ::utl::AccessibleStateSetHelper; + sal_Int64 nStateSet = 0; if( isAlive() ) { // SHOWING done with m_xParent if( implIsShowing() ) - pStateSetHelper->AddState( AccessibleStateType::SHOWING ); + nStateSet |= AccessibleStateType::SHOWING; // GridControl fills StateSet with states depending on object type - m_aTable.FillAccessibleStateSet( *pStateSetHelper, getType() ); + m_aTable.FillAccessibleStateSet( nStateSet, getType() ); } else - pStateSetHelper->AddState( AccessibleStateType::DEFUNC ); - return pStateSetHelper; + nStateSet |= AccessibleStateType::DEFUNC; + return nStateSet; } // internal helper methods diff --git a/accessibility/source/extended/AccessibleGridControlHeaderCell.cxx b/accessibility/source/extended/AccessibleGridControlHeaderCell.cxx index 72333d3405c5..8bcf4b830fbb 100644 --- a/accessibility/source/extended/AccessibleGridControlHeaderCell.cxx +++ b/accessibility/source/extended/AccessibleGridControlHeaderCell.cxx @@ -39,34 +39,30 @@ AccessibleGridControlHeaderCell::AccessibleGridControlHeaderCell(sal_Int32 _nCol , m_nColumnRowId(_nColumnRowId) { } -/** Creates a new AccessibleStateSetHelper and fills it with states of the - current object. - @return - A filled AccessibleStateSetHelper. +/** Return a bitset of states of the current object. */ -rtl::Reference<::utl::AccessibleStateSetHelper> AccessibleGridControlHeaderCell::implCreateStateSetHelper() +sal_Int64 AccessibleGridControlHeaderCell::implCreateStateSet() { - rtl::Reference<::utl::AccessibleStateSetHelper> - pStateSetHelper = new ::utl::AccessibleStateSetHelper; + sal_Int64 nStateSet = 0; if( isAlive() ) { // SHOWING done with mxParent if( implIsShowing() ) - pStateSetHelper->AddState( AccessibleStateType::SHOWING ); + nStateSet |= AccessibleStateType::SHOWING; - pStateSetHelper->AddState( AccessibleStateType::VISIBLE ); - pStateSetHelper->AddState( AccessibleStateType::FOCUSABLE ); - pStateSetHelper->AddState( AccessibleStateType::TRANSIENT ); - pStateSetHelper->AddState( AccessibleStateType::SELECTABLE ); + nStateSet |= AccessibleStateType::VISIBLE; + nStateSet |= AccessibleStateType::FOCUSABLE; + nStateSet |= AccessibleStateType::TRANSIENT; + nStateSet |= AccessibleStateType::SELECTABLE; if ( m_aTable.IsRowSelected(m_nColumnRowId) ) - pStateSetHelper->AddState( AccessibleStateType::SELECTED ); + nStateSet |= AccessibleStateType::SELECTED; } else - pStateSetHelper->AddState( AccessibleStateType::DEFUNC ); + nStateSet |= AccessibleStateType::DEFUNC; - return pStateSetHelper; + return nStateSet; } /** @return diff --git a/accessibility/source/extended/AccessibleGridControlTableCell.cxx b/accessibility/source/extended/AccessibleGridControlTableCell.cxx index 20bf37698e9d..317a6ac6acd6 100644 --- a/accessibility/source/extended/AccessibleGridControlTableCell.cxx +++ b/accessibility/source/extended/AccessibleGridControlTableCell.cxx @@ -40,7 +40,6 @@ namespace accessibility } } using namespace ::com::sun::star::lang; - using namespace utl; using namespace comphelper; using namespace ::com::sun::star::uno; using ::com::sun::star::accessibility::XAccessible; @@ -177,27 +176,24 @@ namespace accessibility throw css::lang::IndexOutOfBoundsException(); } - /** Creates a new AccessibleStateSetHelper and fills it with states of the - current object. - @return - A filled AccessibleStateSetHelper. + /** Return a bitset of states of the current object. */ - rtl::Reference<::utl::AccessibleStateSetHelper> AccessibleGridControlTableCell::implCreateStateSetHelper() + sal_Int64 AccessibleGridControlTableCell::implCreateStateSet() { - rtl::Reference<::utl::AccessibleStateSetHelper> pStateSetHelper = new ::utl::AccessibleStateSetHelper; + sal_Int64 nStateSet = 0; if( isAlive() ) { // SHOWING done with mxParent if( implIsShowing() ) - pStateSetHelper->AddState( AccessibleStateType::SHOWING ); + nStateSet |= AccessibleStateType::SHOWING; - m_aTable.FillAccessibleStateSetForCell( *pStateSetHelper, getRowPos(), static_cast< sal_uInt16 >( getColumnPos() ) ); + m_aTable.FillAccessibleStateSetForCell( nStateSet, getRowPos(), static_cast< sal_uInt16 >( getColumnPos() ) ); } else - pStateSetHelper->AddState( AccessibleStateType::DEFUNC ); + nStateSet |= AccessibleStateType::DEFUNC; - return pStateSetHelper; + return nStateSet; } diff --git a/accessibility/source/extended/accessibleeditbrowseboxcell.cxx b/accessibility/source/extended/accessibleeditbrowseboxcell.cxx index 54f0696735f5..8e18b96b7cb8 100644 --- a/accessibility/source/extended/accessibleeditbrowseboxcell.cxx +++ b/accessibility/source/extended/accessibleeditbrowseboxcell.cxx @@ -123,7 +123,7 @@ namespace accessibility return baseGetAccessibleRelationSet( ); } - css::uno::Reference<css::accessibility::XAccessibleStateSet > SAL_CALL EditBrowseBoxTableCell::getAccessibleStateSet() + sal_Int64 SAL_CALL EditBrowseBoxTableCell::getAccessibleStateSet() { SolarMethodGuard aGuard(getMutex()); ensureIsAlive(); diff --git a/accessibility/source/extended/accessibleiconchoicectrl.cxx b/accessibility/source/extended/accessibleiconchoicectrl.cxx index 9ad90c3879eb..9632a6665ab4 100644 --- a/accessibility/source/extended/accessibleiconchoicectrl.cxx +++ b/accessibility/source/extended/accessibleiconchoicectrl.cxx @@ -23,7 +23,6 @@ #include <com/sun/star/accessibility/AccessibleRole.hpp> #include <com/sun/star/accessibility/AccessibleStateType.hpp> #include <com/sun/star/lang/IndexOutOfBoundsException.hpp> -#include <unotools/accessiblestatesethelper.hxx> #include <vcl/toolkit/ivctrl.hxx> #include <cppuhelper/supportsservice.hxx> @@ -318,14 +317,14 @@ namespace accessibility pCtrl->SetNoSelection(); } - void AccessibleIconChoiceCtrl::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) + void AccessibleIconChoiceCtrl::FillAccessibleStateSet( sal_Int64& rStateSet ) { VCLXAccessibleComponent::FillAccessibleStateSet( rStateSet ); if ( isAlive() ) { - rStateSet.AddState( AccessibleStateType::FOCUSABLE ); - rStateSet.AddState( AccessibleStateType::MANAGES_DESCENDANTS ); - rStateSet.AddState( AccessibleStateType::SELECTABLE ); + rStateSet |= AccessibleStateType::FOCUSABLE; + rStateSet |= AccessibleStateType::MANAGES_DESCENDANTS; + rStateSet |= AccessibleStateType::SELECTABLE; } } diff --git a/accessibility/source/extended/accessibleiconchoicectrlentry.cxx b/accessibility/source/extended/accessibleiconchoicectrlentry.cxx index 5a995a94fc91..86abc128eb28 100644 --- a/accessibility/source/extended/accessibleiconchoicectrlentry.cxx +++ b/accessibility/source/extended/accessibleiconchoicectrlentry.cxx @@ -26,7 +26,6 @@ #include <vcl/svapp.hxx> #include <vcl/settings.hxx> #include <toolkit/helper/convert.hxx> -#include <unotools/accessiblestatesethelper.hxx> #include <unotools/accessiblerelationsethelper.hxx> #include <cppuhelper/supportsservice.hxx> #include <svtools/stringtransfer.hxx> @@ -296,32 +295,32 @@ namespace accessibility return new utl::AccessibleRelationSetHelper; } - Reference< XAccessibleStateSet > SAL_CALL AccessibleIconChoiceCtrlEntry::getAccessibleStateSet( ) + sal_Int64 SAL_CALL AccessibleIconChoiceCtrlEntry::getAccessibleStateSet( ) { SolarMutexGuard aSolarGuard; ::osl::MutexGuard aGuard( m_aMutex ); - rtl::Reference<utl::AccessibleStateSetHelper> pStateSetHelper = new utl::AccessibleStateSetHelper; + sal_Int64 nStateSet = 0; if ( IsAlive_Impl() ) { - pStateSetHelper->AddState( AccessibleStateType::TRANSIENT ); - pStateSetHelper->AddState( AccessibleStateType::SELECTABLE ); - pStateSetHelper->AddState( AccessibleStateType::ENABLED ); - pStateSetHelper->AddState( AccessibleStateType::SENSITIVE ); + nStateSet |= AccessibleStateType::TRANSIENT; + nStateSet |= AccessibleStateType::SELECTABLE; + nStateSet |= AccessibleStateType::ENABLED; + nStateSet |= AccessibleStateType::SENSITIVE; if ( IsShowing_Impl() ) { - pStateSetHelper->AddState( AccessibleStateType::SHOWING ); - pStateSetHelper->AddState( AccessibleStateType::VISIBLE ); + nStateSet |= AccessibleStateType::SHOWING; + nStateSet |= AccessibleStateType::VISIBLE; } if ( m_pIconCtrl && m_pIconCtrl->GetCursor() == m_pIconCtrl->GetEntry( m_nIndex ) ) - pStateSetHelper->AddState( AccessibleStateType::SELECTED ); + nStateSet |= AccessibleStateType::SELECTED; } else - pStateSetHelper->AddState( AccessibleStateType::DEFUNC ); + nStateSet |= AccessibleStateType::DEFUNC; - return pStateSetHelper; + return nStateSet; } Locale SAL_CALL AccessibleIconChoiceCtrlEntry::getLocale( ) diff --git a/accessibility/source/extended/accessiblelistbox.cxx b/accessibility/source/extended/accessiblelistbox.cxx index 462f28664086..21d58fa8da5e 100644 --- a/accessibility/source/extended/accessiblelistbox.cxx +++ b/accessibility/source/extended/accessiblelistbox.cxx @@ -26,7 +26,6 @@ #include <com/sun/star/accessibility/AccessibleStateType.hpp> #include <com/sun/star/lang/IndexOutOfBoundsException.hpp> #include <cppuhelper/supportsservice.hxx> -#include <unotools/accessiblestatesethelper.hxx> namespace accessibility @@ -490,15 +489,15 @@ namespace accessibility getListBox()->Select( pEntry, false ); } - void AccessibleListBox::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) + void AccessibleListBox::FillAccessibleStateSet( sal_Int64& rStateSet ) { VCLXAccessibleComponent::FillAccessibleStateSet( rStateSet ); if ( getListBox() && isAlive() ) { - rStateSet.AddState( AccessibleStateType::FOCUSABLE ); - rStateSet.AddState( AccessibleStateType::MANAGES_DESCENDANTS ); + rStateSet |= AccessibleStateType::FOCUSABLE; + rStateSet |= AccessibleStateType::MANAGES_DESCENDANTS; if ( getListBox()->GetSelectionMode() == SelectionMode::Multiple ) - rStateSet.AddState( AccessibleStateType::MULTI_SELECTABLE ); + rStateSet |= AccessibleStateType::MULTI_SELECTABLE; } } diff --git a/accessibility/source/extended/accessiblelistboxentry.cxx b/accessibility/source/extended/accessiblelistboxentry.cxx index 2fff77b03699..b3aa55f7e154 100644 --- a/accessibility/source/extended/accessiblelistboxentry.cxx +++ b/accessibility/source/extended/accessiblelistboxentry.cxx @@ -31,7 +31,6 @@ #include <vcl/svapp.hxx> #include <vcl/settings.hxx> #include <toolkit/helper/convert.hxx> -#include <unotools/accessiblestatesethelper.hxx> #include <unotools/accessiblerelationsethelper.hxx> #include <cppuhelper/supportsservice.hxx> #include <comphelper/accessibleeventnotifier.hxx> @@ -473,41 +472,41 @@ namespace accessibility return xRelSet; } - Reference< XAccessibleStateSet > SAL_CALL AccessibleListBoxEntry::getAccessibleStateSet( ) + sal_Int64 SAL_CALL AccessibleListBoxEntry::getAccessibleStateSet( ) { ::osl::MutexGuard aGuard( m_aMutex ); - rtl::Reference<utl::AccessibleStateSetHelper> pStateSetHelper = new utl::AccessibleStateSetHelper; + sal_Int64 nStateSet = 0; if ( IsAlive_Impl() ) { switch(getAccessibleRole()) { case AccessibleRole::LABEL: - pStateSetHelper->AddState( AccessibleStateType::TRANSIENT ); - pStateSetHelper->AddState( AccessibleStateType::SELECTABLE ); - pStateSetHelper->AddState( AccessibleStateType::ENABLED ); + nStateSet |= AccessibleStateType::TRANSIENT; + nStateSet |= AccessibleStateType::SELECTABLE; + nStateSet |= AccessibleStateType::ENABLED; if (m_pTreeListBox->IsInplaceEditingEnabled()) - pStateSetHelper->AddState( AccessibleStateType::EDITABLE ); + nStateSet |= AccessibleStateType::EDITABLE; if (IsShowing_Impl()) - pStateSetHelper->AddState( AccessibleStateType::SHOWING ); + nStateSet |= AccessibleStateType::SHOWING; break; case AccessibleRole::CHECK_BOX: - pStateSetHelper->AddState( AccessibleStateType::TRANSIENT ); - pStateSetHelper->AddState( AccessibleStateType::SELECTABLE ); - pStateSetHelper->AddState( AccessibleStateType::ENABLED ); + nStateSet |= AccessibleStateType::TRANSIENT; + nStateSet |= AccessibleStateType::SELECTABLE; + nStateSet |= AccessibleStateType::ENABLED; if (IsShowing_Impl()) - pStateSetHelper->AddState( AccessibleStateType::SHOWING ); + nStateSet |= AccessibleStateType::SHOWING; break; } SvTreeListEntry *pEntry = m_pTreeListBox->GetEntryFromPath(m_aEntryPath); if (pEntry) - m_pTreeListBox->FillAccessibleEntryStateSet(pEntry, *pStateSetHelper); + m_pTreeListBox->FillAccessibleEntryStateSet(pEntry, nStateSet); } else - pStateSetHelper->AddState( AccessibleStateType::DEFUNC ); + nStateSet |= AccessibleStateType::DEFUNC; - return pStateSetHelper; + return nStateSet; } Locale SAL_CALL AccessibleListBoxEntry::getLocale( ) diff --git a/accessibility/source/extended/accessibletabbar.cxx b/accessibility/source/extended/accessibletabbar.cxx index 8bf2d7addc1d..c1809ade84f0 100644 --- a/accessibility/source/extended/accessibletabbar.cxx +++ b/accessibility/source/extended/accessibletabbar.cxx @@ -27,7 +27,6 @@ #include <com/sun/star/awt/XWindowPeer.hpp> #include <com/sun/star/lang/IndexOutOfBoundsException.hpp> #include <cppuhelper/supportsservice.hxx> -#include <unotools/accessiblestatesethelper.hxx> #include <unotools/accessiblerelationsethelper.hxx> #include <i18nlangtag/languagetag.hxx> #include <o3tl/safeint.hxx> @@ -113,29 +112,29 @@ namespace accessibility } - void AccessibleTabBar::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) + void AccessibleTabBar::FillAccessibleStateSet( sal_Int64& rStateSet ) { if ( !m_pTabBar ) return; if ( m_pTabBar->IsEnabled() ) { - rStateSet.AddState( AccessibleStateType::ENABLED ); - rStateSet.AddState( AccessibleStateType::SENSITIVE ); + rStateSet |= AccessibleStateType::ENABLED; + rStateSet |= AccessibleStateType::SENSITIVE; } - rStateSet.AddState( AccessibleStateType::FOCUSABLE ); + rStateSet |= AccessibleStateType::FOCUSABLE; if ( m_pTabBar->HasFocus() ) - rStateSet.AddState( AccessibleStateType::FOCUSED ); + rStateSet |= AccessibleStateType::FOCUSED; - rStateSet.AddState( AccessibleStateType::VISIBLE ); + rStateSet |= AccessibleStateType::VISIBLE; if ( m_pTabBar->IsVisible() ) - rStateSet.AddState( AccessibleStateType::SHOWING ); + rStateSet |= AccessibleStateType::SHOWING; if ( m_pTabBar->GetStyle() & WB_SIZEABLE ) - rStateSet.AddState( AccessibleStateType::RESIZABLE ); + rStateSet |= AccessibleStateType::RESIZABLE; } @@ -341,22 +340,22 @@ namespace accessibility } - Reference< XAccessibleStateSet > AccessibleTabBar::getAccessibleStateSet( ) + sal_Int64 AccessibleTabBar::getAccessibleStateSet( ) { OExternalLockGuard aGuard( this ); - rtl::Reference<utl::AccessibleStateSetHelper> pStateSetHelper = new utl::AccessibleStateSetHelper; + sal_Int64 nStateSet = 0; if ( !rBHelper.bDisposed && !rBHelper.bInDispose ) { - FillAccessibleStateSet( *pStateSetHelper ); + FillAccessibleStateSet( nStateSet ); } else { - pStateSetHelper->AddState( AccessibleStateType::DEFUNC ); + nStateSet |= AccessibleStateType::DEFUNC; } - return pStateSetHelper; + return nStateSet; } diff --git a/accessibility/source/extended/accessibletabbarpage.cxx b/accessibility/source/extended/accessibletabbarpage.cxx index 197ad78d9777..400530983764 100644 --- a/accessibility/source/extended/accessibletabbarpage.cxx +++ b/accessibility/source/extended/accessibletabbarpage.cxx @@ -24,7 +24,6 @@ #include <com/sun/star/accessibility/AccessibleStateType.hpp> #include <com/sun/star/lang/IndexOutOfBoundsException.hpp> #include <cppuhelper/supportsservice.hxx> -#include <unotools/accessiblestatesethelper.hxx> #include <unotools/accessiblerelationsethelper.hxx> #include <vcl/svapp.hxx> #include <vcl/settings.hxx> @@ -135,23 +134,23 @@ namespace accessibility } - void AccessibleTabBarPage::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) + void AccessibleTabBarPage::FillAccessibleStateSet( sal_Int64& rStateSet ) { if ( IsEnabled() ) { - rStateSet.AddState( AccessibleStateType::ENABLED ); - rStateSet.AddState( AccessibleStateType::SENSITIVE ); + rStateSet |= AccessibleStateType::ENABLED; + rStateSet |= AccessibleStateType::SENSITIVE; } - rStateSet.AddState( AccessibleStateType::VISIBLE ); + rStateSet |= AccessibleStateType::VISIBLE; if ( IsShowing() ) - rStateSet.AddState( AccessibleStateType::SHOWING ); + rStateSet |= AccessibleStateType::SHOWING; - rStateSet.AddState( AccessibleStateType::SELECTABLE ); + rStateSet |= AccessibleStateType::SELECTABLE; if ( IsSelected() ) - rStateSet.AddState( AccessibleStateType::SELECTED ); + rStateSet |= AccessibleStateType::SELECTED; } @@ -311,22 +310,22 @@ namespace accessibility } - Reference< XAccessibleStateSet > AccessibleTabBarPage::getAccessibleStateSet( ) + sal_Int64 AccessibleTabBarPage::getAccessibleStateSet( ) { OExternalLockGuard aGuard( this ); - rtl::Reference<utl::AccessibleStateSetHelper> pStateSetHelper = new utl::AccessibleStateSetHelper; + sal_Int64 nStateSet = 0; if ( !rBHelper.bDisposed && !rBHelper.bInDispose ) { - FillAccessibleStateSet( *pStateSetHelper ); + FillAccessibleStateSet( nStateSet ); } else { - pStateSetHelper->AddState( AccessibleStateType::DEFUNC ); + nStateSet |= AccessibleStateType::DEFUNC; } - return pStateSetHelper; + return nStateSet; } diff --git a/accessibility/source/extended/accessibletabbarpagelist.cxx b/accessibility/source/extended/accessibletabbarpagelist.cxx index a65750fbd4b3..6070db1eb95b 100644 --- a/accessibility/source/extended/accessibletabbarpagelist.cxx +++ b/accessibility/source/extended/accessibletabbarpagelist.cxx @@ -26,7 +26,6 @@ #include <com/sun/star/lang/IndexOutOfBoundsException.hpp> #include <cppuhelper/supportsservice.hxx> #include <o3tl/safeint.hxx> -#include <unotools/accessiblestatesethelper.hxx> #include <unotools/accessiblerelationsethelper.hxx> #include <vcl/svapp.hxx> #include <vcl/settings.hxx> @@ -295,21 +294,21 @@ namespace accessibility } - void AccessibleTabBarPageList::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) + void AccessibleTabBarPageList::FillAccessibleStateSet( sal_Int64& rStateSet ) { if ( !m_pTabBar ) return; if ( m_pTabBar->IsEnabled() ) { - rStateSet.AddState( AccessibleStateType::ENABLED ); - rStateSet.AddState( AccessibleStateType::SENSITIVE ); + rStateSet |= AccessibleStateType::ENABLED; + rStateSet |= AccessibleStateType::SENSITIVE; } - rStateSet.AddState( AccessibleStateType::VISIBLE ); + rStateSet |= AccessibleStateType::VISIBLE; if ( m_pTabBar->IsVisible() ) - rStateSet.AddState( AccessibleStateType::SHOWING ); + rStateSet |= AccessibleStateType::SHOWING; } @@ -470,22 +469,22 @@ namespace accessibility } - Reference< XAccessibleStateSet > AccessibleTabBarPageList::getAccessibleStateSet( ) + sal_Int64 AccessibleTabBarPageList::getAccessibleStateSet( ) { OExternalLockGuard aGuard( this ); - rtl::Reference<utl::AccessibleStateSetHelper> pStateSetHelper = new utl::AccessibleStateSetHelper; + sal_Int64 nStateSet = 0; if ( !rBHelper.bDisposed && !rBHelper.bInDispose ) { - FillAccessibleStateSet( *pStateSetHelper ); + FillAccessibleStateSet( nStateSet ); } else { - pStateSetHelper->AddState( AccessibleStateType::DEFUNC ); + nStateSet |= AccessibleStateType::DEFUNC; } - return pStateSetHelper; + return nStateSet; } diff --git a/accessibility/source/extended/textwindowaccessibility.cxx b/accessibility/source/extended/textwindowaccessibility.cxx index 218ba33e6bae..b374a880ead5 100644 --- a/accessibility/source/extended/textwindowaccessibility.cxx +++ b/accessibility/source/extended/textwindowaccessibility.cxx @@ -32,7 +32,6 @@ #include <extended/textwindowaccessibility.hxx> #include <comphelper/accessibleeventnotifier.hxx> #include <unotools/accessiblerelationsethelper.hxx> -#include <unotools/accessiblestatesethelper.hxx> #include <utility> #include <vcl/svapp.hxx> #include <vcl/txtattr.hxx> @@ -193,15 +192,13 @@ SAL_CALL Paragraph::getAccessibleRelationSet() } // virtual -css::uno::Reference< css::accessibility::XAccessibleStateSet > -SAL_CALL Paragraph::getAccessibleStateSet() +sal_Int64 SAL_CALL Paragraph::getAccessibleStateSet() { checkDisposed(); // FIXME Notification of changes (STATE_CHANGED) missing when // m_rView.IsReadOnly() changes: - return new ::utl::AccessibleStateSetHelper( - m_xDocument->retrieveParagraphState(this)); + return m_xDocument->retrieveParagraphState(this); } // virtual @@ -748,29 +745,21 @@ css::lang::Locale Document::retrieveLocale() // happen that this Paragraph lies outside the range from m_aVisibleBegin // to m_aVisibleEnd. In that case, it is neither VISIBLE nor SHOWING: ::sal_Int64 nState - = (static_cast< ::sal_Int64 >(1) - << css::accessibility::AccessibleStateType::ENABLED) - | (static_cast< ::sal_Int64 >(1) - << css::accessibility::AccessibleStateType::SENSITIVE) - | (static_cast< ::sal_Int64 >(1) - << css::accessibility::AccessibleStateType::FOCUSABLE) - | (static_cast< ::sal_Int64 >(1) - << css::accessibility::AccessibleStateType::MULTI_LINE); + = css::accessibility::AccessibleStateType::ENABLED + | css::accessibility::AccessibleStateType::SENSITIVE + | css::accessibility::AccessibleStateType::FOCUSABLE + | css::accessibility::AccessibleStateType::MULTI_LINE; if (!m_rView.IsReadOnly()) - nState |= (static_cast< ::sal_Int64 >(1) - << css::accessibility::AccessibleStateType::EDITABLE); + nState |= css::accessibility::AccessibleStateType::EDITABLE; Paragraphs::iterator aPara(m_xParagraphs->begin() + pParagraph->getNumber()); if (aPara >= m_aVisibleBegin && aPara < m_aVisibleEnd) { nState - |= (static_cast< ::sal_Int64 >(1) - << css::accessibility::AccessibleStateType::VISIBLE) - | (static_cast< ::sal_Int64 >(1) - << css::accessibility::AccessibleStateType::SHOWING); + |= css::accessibility::AccessibleStateType::VISIBLE + | css::accessibility::AccessibleStateType::SHOWING; if (aPara == m_aFocused) - nState |= (static_cast< ::sal_Int64 >(1) - << css::accessibility::AccessibleStateType::FOCUSED); + nState |= css::accessibility::AccessibleStateType::FOCUSED; } return nState; }; @@ -1369,11 +1358,11 @@ Document::getAccessibleAtPoint(css::awt::Point const & rPoint) } return nullptr; } -void Document::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) +void Document::FillAccessibleStateSet( sal_Int64& rStateSet ) { VCLXAccessibleComponent::FillAccessibleStateSet( rStateSet ); if (!m_rView.IsReadOnly()) - rStateSet.AddState( css::accessibility::AccessibleStateType::EDITABLE ); + rStateSet |= css::accessibility::AccessibleStateType::EDITABLE; } void Document::FillAccessibleRelationSet( utl::AccessibleRelationSetHelper& rRelationSet ) diff --git a/accessibility/source/standard/accessiblemenubasecomponent.cxx b/accessibility/source/standard/accessiblemenubasecomponent.cxx index f28bf8ad0570..65d26c199c12 100644 --- a/accessibility/source/standard/accessiblemenubasecomponent.cxx +++ b/accessibility/source/standard/accessiblemenubasecomponent.cxx @@ -28,7 +28,6 @@ #include <com/sun/star/accessibility/AccessibleStateType.hpp> #include <cppuhelper/supportsservice.hxx> #include <o3tl/safeint.hxx> -#include <unotools/accessiblestatesethelper.hxx> #include <vcl/menu.hxx> #include <vcl/vclevent.hxx> @@ -112,7 +111,7 @@ void OAccessibleMenuBaseComponent::SetEnabled( bool bEnabled ) if ( m_bEnabled == bEnabled ) return; - sal_Int16 nStateType=AccessibleStateType::ENABLED; + sal_Int64 nStateType=AccessibleStateType::ENABLED; if (IsMenuHideDisabledEntries()) { nStateType = AccessibleStateType::VISIBLE; @@ -689,22 +688,22 @@ Reference< XAccessibleContext > OAccessibleMenuBaseComponent::getAccessibleConte // XAccessibleContext -Reference< XAccessibleStateSet > OAccessibleMenuBaseComponent::getAccessibleStateSet( ) +sal_Int64 OAccessibleMenuBaseComponent::getAccessibleStateSet( ) { OExternalLockGuard aGuard( this ); - rtl::Reference<utl::AccessibleStateSetHelper> pStateSetHelper = new utl::AccessibleStateSetHelper; + sal_Int64 nStateSet = 0; if ( !rBHelper.bDisposed && !rBHelper.bInDispose ) { - FillAccessibleStateSet( *pStateSetHelper ); + FillAccessibleStateSet( nStateSet ); } else { - pStateSetHelper->AddState( AccessibleStateType::DEFUNC ); + nStateSet |= AccessibleStateType::DEFUNC; } - return pStateSetHelper; + return nStateSet; } diff --git a/accessibility/source/standard/accessiblemenucomponent.cxx b/accessibility/source/standard/accessiblemenucomponent.cxx index be9b1e6f453e..d7ee80027579 100644 --- a/accessibility/source/standard/accessiblemenucomponent.cxx +++ b/accessibility/source/standard/accessiblemenucomponent.cxx @@ -27,7 +27,6 @@ #include <com/sun/star/awt/XDevice.hpp> #include <com/sun/star/awt/XWindowPeer.hpp> #include <com/sun/star/lang/IndexOutOfBoundsException.hpp> -#include <unotools/accessiblestatesethelper.hxx> #include <unotools/accessiblerelationsethelper.hxx> #include <vcl/svapp.hxx> #include <vcl/window.hxx> @@ -61,26 +60,26 @@ bool OAccessibleMenuComponent::IsVisible() } -void OAccessibleMenuComponent::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) +void OAccessibleMenuComponent::FillAccessibleStateSet( sal_Int64& rStateSet ) { if ( IsEnabled() ) { - rStateSet.AddState( AccessibleStateType::ENABLED ); - rStateSet.AddState( AccessibleStateType::SENSITIVE ); + rStateSet |= AccessibleStateType::ENABLED; + rStateSet |= AccessibleStateType::SENSITIVE; } - rStateSet.AddState( AccessibleStateType::FOCUSABLE ); + rStateSet |= AccessibleStateType::FOCUSABLE; if ( IsFocused() ) - rStateSet.AddState( AccessibleStateType::FOCUSED ); + rStateSet |= AccessibleStateType::FOCUSED; if ( IsVisible() ) { - rStateSet.AddState( AccessibleStateType::VISIBLE ); - rStateSet.AddState( AccessibleStateType::SHOWING ); + rStateSet |= AccessibleStateType::VISIBLE; + rStateSet |= AccessibleStateType::SHOWING; } - rStateSet.AddState( AccessibleStateType::OPAQUE ); + rStateSet |= AccessibleStateType::OPAQUE; } diff --git a/accessibility/source/standard/accessiblemenuitemcomponent.cxx b/accessibility/source/standard/accessiblemenuitemcomponent.cxx index e61c7452e9ec..b599a66a7282 100644 --- a/accessibility/source/standard/accessiblemenuitemcomponent.cxx +++ b/accessibility/source/standard/accessiblemenuitemcomponent.cxx @@ -26,7 +26,6 @@ #include <com/sun/star/accessibility/AccessibleRole.hpp> #include <com/sun/star/accessibility/AccessibleStateType.hpp> #include <com/sun/star/lang/IndexOutOfBoundsException.hpp> -#include <unotools/accessiblestatesethelper.hxx> #include <unotools/accessiblerelationsethelper.hxx> #include <comphelper/accessibletexthelper.hxx> #include <vcl/svapp.hxx> @@ -212,22 +211,22 @@ OUString OAccessibleMenuItemComponent::GetItemText() } -void OAccessibleMenuItemComponent::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) +void OAccessibleMenuItemComponent::FillAccessibleStateSet( sal_Int64& rStateSet ) { bool bEnabled = IsEnabled(); if ( bEnabled ) { - rStateSet.AddState( AccessibleStateType::ENABLED ); - rStateSet.AddState( AccessibleStateType::SENSITIVE ); + rStateSet |= AccessibleStateType::ENABLED; + rStateSet |= AccessibleStateType::SENSITIVE; } if ( IsVisible() ) { - rStateSet.AddState( AccessibleStateType::SHOWING ); + rStateSet |= AccessibleStateType::SHOWING; if( !IsMenuHideDisabledEntries() || bEnabled ) - rStateSet.AddState( AccessibleStateType::VISIBLE ); + rStateSet |= AccessibleStateType::VISIBLE; } - rStateSet.AddState( AccessibleStateType::OPAQUE ); + rStateSet |= AccessibleStateType::OPAQUE; } diff --git a/accessibility/source/standard/vclxaccessiblebox.cxx b/accessibility/source/standard/vclxaccessiblebox.cxx index ce81c254c59a..91fc9191c00f 100644 --- a/accessibility/source/standard/vclxaccessiblebox.cxx +++ b/accessibility/source/standard/vclxaccessiblebox.cxx @@ -22,7 +22,6 @@ #include <standard/vclxaccessibleedit.hxx> #include <standard/vclxaccessiblelist.hxx> -#include <unotools/accessiblestatesethelper.hxx> #include <com/sun/star/accessibility/AccessibleStateType.hpp> #include <com/sun/star/accessibility/AccessibleEventId.hpp> #include <com/sun/star/accessibility/AccessibleRole.hpp> @@ -492,7 +491,7 @@ Any VCLXAccessibleBox::getMinimumIncrement( ) } // Set the INDETERMINATE state when there is no selected item for combobox -void VCLXAccessibleBox::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) +void VCLXAccessibleBox::FillAccessibleStateSet( sal_Int64& rStateSet ) { VCLXAccessibleComponent::FillAccessibleStateSet(rStateSet); if (m_aBoxType == COMBOBOX ) @@ -508,7 +507,7 @@ void VCLXAccessibleBox::FillAccessibleStateSet( utl::AccessibleStateSetHelper& r nEntryCount = pComboBox->GetEntryCount(); } if ( sText.isEmpty() && nEntryCount > 0 ) - rStateSet.AddState(AccessibleStateType::INDETERMINATE); + rStateSet |= AccessibleStateType::INDETERMINATE; } else if (m_aBoxType == LISTBOX && m_bIsDropDownBox) { @@ -517,7 +516,7 @@ void VCLXAccessibleBox::FillAccessibleStateSet( utl::AccessibleStateSetHelper& r { sal_Int32 nSelectedEntryCount = pListBox->GetSelectedEntryCount(); if ( nSelectedEntryCount == 0) - rStateSet.AddState(AccessibleStateType::INDETERMINATE); + rStateSet |= AccessibleStateType::INDETERMINATE; } } } diff --git a/accessibility/source/standard/vclxaccessiblebutton.cxx b/accessibility/source/standard/vclxaccessiblebutton.cxx index d5ffb68bbf2e..3cc94edde3f0 100644 --- a/accessibility/source/standard/vclxaccessiblebutton.cxx +++ b/accessibility/source/standard/vclxaccessiblebutton.cxx @@ -21,7 +21,6 @@ #include <helper/accresmgr.hxx> #include <strings.hrc> -#include <unotools/accessiblestatesethelper.hxx> #include <comphelper/accessiblekeybindinghelper.hxx> #include <com/sun/star/awt/KeyModifier.hpp> #include <com/sun/star/accessibility/AccessibleStateType.hpp> @@ -68,7 +67,7 @@ void VCLXAccessibleButton::ProcessWindowEvent( const VclWindowEvent& rVclWindowE } -void VCLXAccessibleButton::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) +void VCLXAccessibleButton::FillAccessibleStateSet( sal_Int64& rStateSet ) { VCLXAccessibleTextComponent::FillAccessibleStateSet( rStateSet ); @@ -76,22 +75,22 @@ void VCLXAccessibleButton::FillAccessibleStateSet( utl::AccessibleStateSetHelper if ( !pButton ) return; - rStateSet.AddState( AccessibleStateType::FOCUSABLE ); + rStateSet |= AccessibleStateType::FOCUSABLE; if ( pButton->GetState() == TRISTATE_TRUE ) - rStateSet.AddState( AccessibleStateType::CHECKED ); + rStateSet |= AccessibleStateType::CHECKED; if ( pButton->IsPressed() ) - rStateSet.AddState( AccessibleStateType::PRESSED ); + rStateSet |= AccessibleStateType::PRESSED; // IA2 CWS: if the button has a popup menu, it should has the state EXPANDABLE if( pButton->GetType() == WindowType::MENUBUTTON ) { - rStateSet.AddState( AccessibleStateType::EXPANDABLE ); + rStateSet |= AccessibleStateType::EXPANDABLE; } if( pButton->GetStyle() & WB_DEFBUTTON ) { - rStateSet.AddState( AccessibleStateType::DEFAULT ); + rStateSet |= AccessibleStateType::DEFAULT; } } diff --git a/accessibility/source/standard/vclxaccessiblecheckbox.cxx b/accessibility/source/standard/vclxaccessiblecheckbox.cxx index 20cf2138bc06..18816fd17799 100644 --- a/accessibility/source/standard/vclxaccessiblecheckbox.cxx +++ b/accessibility/source/standard/vclxaccessiblecheckbox.cxx @@ -23,7 +23,6 @@ #include <helper/accresmgr.hxx> #include <strings.hrc> -#include <unotools/accessiblestatesethelper.hxx> #include <comphelper/accessiblekeybindinghelper.hxx> #include <com/sun/star/awt/KeyModifier.hpp> #include <com/sun/star/accessibility/AccessibleStateType.hpp> @@ -123,17 +122,17 @@ void VCLXAccessibleCheckBox::ProcessWindowEvent( const VclWindowEvent& rVclWindo } -void VCLXAccessibleCheckBox::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) +void VCLXAccessibleCheckBox::FillAccessibleStateSet( sal_Int64& rStateSet ) { VCLXAccessibleTextComponent::FillAccessibleStateSet( rStateSet ); - rStateSet.AddState( AccessibleStateType::FOCUSABLE ); + rStateSet |= AccessibleStateType::FOCUSABLE; if ( IsChecked() ) - rStateSet.AddState( AccessibleStateType::CHECKED ); + rStateSet |= AccessibleStateType::CHECKED; if ( IsIndeterminate() ) - rStateSet.AddState( AccessibleStateType::INDETERMINATE ); + rStateSet |= AccessibleStateType::INDETERMINATE; } diff --git a/accessibility/source/standard/vclxaccessibleedit.cxx b/accessibility/source/standard/vclxaccessibleedit.cxx index d41c29737d62..4dc19a3e12bf 100644 --- a/accessibility/source/standard/vclxaccessibleedit.cxx +++ b/accessibility/source/standard/vclxaccessibleedit.cxx @@ -22,7 +22,6 @@ #include <toolkit/awt/vclxwindows.hxx> #include <toolkit/helper/convert.hxx> -#include <unotools/accessiblestatesethelper.hxx> #include <com/sun/star/accessibility/AccessibleStateType.hpp> #include <com/sun/star/accessibility/AccessibleEventId.hpp> #include <com/sun/star/accessibility/AccessibleRole.hpp> @@ -103,17 +102,17 @@ void VCLXAccessibleEdit::ProcessWindowEvent( const VclWindowEvent& rVclWindowEve } -void VCLXAccessibleEdit::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) +void VCLXAccessibleEdit::FillAccessibleStateSet( sal_Int64& rStateSet ) { VCLXAccessibleTextComponent::FillAccessibleStateSet( rStateSet ); VCLXEdit* pVCLXEdit = static_cast< VCLXEdit* >( GetVCLXWindow() ); if ( pVCLXEdit ) { - rStateSet.AddState( AccessibleStateType::FOCUSABLE ); - rStateSet.AddState( AccessibleStateType::SINGLE_LINE ); + rStateSet |= AccessibleStateType::FOCUSABLE; + rStateSet |= AccessibleStateType::SINGLE_LINE; if ( pVCLXEdit->isEditable() ) - rStateSet.AddState( AccessibleStateType::EDITABLE ); + rStateSet |= AccessibleStateType::EDITABLE; } } diff --git a/accessibility/source/standard/vclxaccessiblefixedtext.cxx b/accessibility/source/standard/vclxaccessiblefixedtext.cxx index b62faded5580..56105c5d1c87 100644 --- a/accessibility/source/standard/vclxaccessiblefixedtext.cxx +++ b/accessibility/source/standard/vclxaccessiblefixedtext.cxx @@ -19,7 +19,6 @@ #include <standard/vclxaccessiblefixedtext.hxx> -#include <unotools/accessiblestatesethelper.hxx> #include <vcl/window.hxx> #include <com/sun/star/accessibility/AccessibleStateType.hpp> @@ -31,12 +30,12 @@ using namespace ::com::sun::star::accessibility; // VCLXAccessibleFixedText -void VCLXAccessibleFixedText::FillAccessibleStateSet(utl::AccessibleStateSetHelper& rStateSet) +void VCLXAccessibleFixedText::FillAccessibleStateSet(sal_Int64& rStateSet) { VCLXAccessibleTextComponent::FillAccessibleStateSet(rStateSet); if (GetWindow() && GetWindow()->GetStyle() & WB_WORDBREAK) - rStateSet.AddState(AccessibleStateType::MULTI_LINE); + rStateSet |= AccessibleStateType::MULTI_LINE; } // XServiceInfo diff --git a/accessibility/source/standard/vclxaccessibleheaderbaritem.cxx b/accessibility/source/standard/vclxaccessibleheaderbaritem.cxx index 5c9bf5c9ad58..18abc095b0d8 100644 --- a/accessibility/source/standard/vclxaccessibleheaderbaritem.cxx +++ b/accessibility/source/standard/vclxaccessibleheaderbaritem.cxx @@ -25,7 +25,6 @@ #include <com/sun/star/lang/IndexOutOfBoundsException.hpp> #include <cppuhelper/supportsservice.hxx> -#include <unotools/accessiblestatesethelper.hxx> #include <unotools/accessiblerelationsethelper.hxx> #include <vcl/svapp.hxx> #include <vcl/settings.hxx> @@ -52,19 +51,19 @@ VCLXAccessibleHeaderBarItem::~VCLXAccessibleHeaderBarItem() { } -void VCLXAccessibleHeaderBarItem::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) +void VCLXAccessibleHeaderBarItem::FillAccessibleStateSet( sal_Int64& rStateSet ) { if ( m_pHeadBar ) { if ( m_pHeadBar->IsEnabled() ) - rStateSet.AddState( AccessibleStateType::ENABLED ); + rStateSet |= AccessibleStateType::ENABLED; if ( m_pHeadBar->IsVisible() ) { - rStateSet.AddState( AccessibleStateType::VISIBLE ); + rStateSet |= AccessibleStateType::VISIBLE; } - rStateSet.AddState( AccessibleStateType::SELECTABLE ); - rStateSet.AddState( AccessibleStateType::RESIZABLE ); + rStateSet |= AccessibleStateType::SELECTABLE; + rStateSet |= AccessibleStateType::RESIZABLE; } } @@ -188,22 +187,22 @@ Reference< XAccessibleRelationSet > VCLXAccessibleHeaderBarItem::getAccessibleRe } -Reference< XAccessibleStateSet > VCLXAccessibleHeaderBarItem::getAccessibleStateSet( ) +sal_Int64 VCLXAccessibleHeaderBarItem::getAccessibleStateSet( ) { OExternalLockGuard aGuard( this ); - rtl::Reference<utl::AccessibleStateSetHelper> pStateSetHelper = new utl::AccessibleStateSetHelper; + sal_Int64 nStateSet = 0; if ( !rBHelper.bDisposed && !rBHelper.bInDispose ) { - FillAccessibleStateSet( *pStateSetHelper ); + FillAccessibleStateSet( nStateSet ); } else { - pStateSetHelper->AddState( AccessibleStateType::DEFUNC ); + nStateSet |= AccessibleStateType::DEFUNC; } - return pStateSetHelper; + return nStateSet; } diff --git a/accessibility/source/standard/vclxaccessiblelist.cxx b/accessibility/source/standard/vclxaccessiblelist.cxx index bb81350f5dd0..6d491b4550ec 100644 --- a/accessibility/source/standard/vclxaccessiblelist.cxx +++ b/accessibility/source/standard/vclxaccessiblelist.cxx @@ -22,7 +22,6 @@ #include <helper/listboxhelper.hxx> #include <unotools/accessiblerelationsethelper.hxx> -#include <unotools/accessiblestatesethelper.hxx> #include <com/sun/star/accessibility/AccessibleStateType.hpp> #include <com/sun/star/accessibility/AccessibleEventId.hpp> #include <com/sun/star/accessibility/AccessibleRelationType.hpp> @@ -114,7 +113,7 @@ void SAL_CALL VCLXAccessibleList::disposing() } -void VCLXAccessibleList::FillAccessibleStateSet (utl::AccessibleStateSetHelper& rStateSet) +void VCLXAccessibleList::FillAccessibleStateSet (sal_Int64& rStateSet) { SolarMutexGuard aSolarGuard; @@ -124,8 +123,8 @@ void VCLXAccessibleList::FillAccessibleStateSet (utl::AccessibleStateSetHelper& && (m_pListBoxHelper->GetStyle() & WB_DROPDOWN ) == WB_DROPDOWN && !m_pListBoxHelper->IsInDropDown() ) { - rStateSet.RemoveState (AccessibleStateType::VISIBLE); - rStateSet.RemoveState (AccessibleStateType::SHOWING); + rStateSet &= ~AccessibleStateType::VISIBLE; + rStateSet &= ~AccessibleStateType::SHOWING; m_bVisible = false; } @@ -135,10 +134,10 @@ void VCLXAccessibleList::FillAccessibleStateSet (utl::AccessibleStateSetHelper& if ( m_pListBoxHelper ) { if ( m_pListBoxHelper->IsMultiSelectionEnabled() ) - rStateSet.AddState( AccessibleStateType::MULTI_SELECTABLE); - rStateSet.AddState (AccessibleStateType::FOCUSABLE); + rStateSet |= AccessibleStateType::MULTI_SELECTABLE; + rStateSet |= AccessibleStateType::FOCUSABLE; // All children are transient. - rStateSet.AddState (AccessibleStateType::MANAGES_DESCENDANTS); + rStateSet |= AccessibleStateType::MANAGES_DESCENDANTS; } } diff --git a/accessibility/source/standard/vclxaccessiblelistitem.cxx b/accessibility/source/standard/vclxaccessiblelistitem.cxx index 81a5cd1a2fcc..d9792724dc88 100644 --- a/accessibility/source/standard/vclxaccessiblelistitem.cxx +++ b/accessibility/source/standard/vclxaccessiblelistitem.cxx @@ -34,7 +34,6 @@ #include <vcl/toolkit/lstbox.hxx> #include <vcl/unohelp2.hxx> #include <vcl/settings.hxx> -#include <unotools/accessiblestatesethelper.hxx> #include <unotools/accessiblerelationsethelper.hxx> #include <comphelper/accessibleeventnotifier.hxx> #include <i18nlangtag/languagetag.hxx> @@ -241,36 +240,36 @@ Reference< XAccessibleRelationSet > SAL_CALL VCLXAccessibleListItem::getAccessib return new utl::AccessibleRelationSetHelper; } -Reference< XAccessibleStateSet > SAL_CALL VCLXAccessibleListItem::getAccessibleStateSet( ) +sal_Int64 SAL_CALL VCLXAccessibleListItem::getAccessibleStateSet( ) { ::osl::MutexGuard aGuard( m_aMutex ); - rtl::Reference<utl::AccessibleStateSetHelper> pStateSetHelper = new utl::AccessibleStateSetHelper; + sal_Int64 nStateSet = 0; if ( !rBHelper.bDisposed && !rBHelper.bInDispose ) { - pStateSetHelper->AddState( AccessibleStateType::TRANSIENT ); + nStateSet |= AccessibleStateType::TRANSIENT; ::accessibility::IComboListBoxHelper* pListBoxHelper = m_xParent.is() ? m_xParent->getListBoxHelper() : nullptr; if (pListBoxHelper && pListBoxHelper->IsEnabled()) { - pStateSetHelper->AddState( AccessibleStateType::SELECTABLE ); - pStateSetHelper->AddState( AccessibleStateType::ENABLED ); - pStateSetHelper->AddState( AccessibleStateType::SENSITIVE ); + nStateSet |= AccessibleStateType::SELECTABLE; + nStateSet |= AccessibleStateType::ENABLED; + nStateSet |= AccessibleStateType::SENSITIVE; } if ( m_bSelected ) - pStateSetHelper->AddState( AccessibleStateType::SELECTED ); + nStateSet |= AccessibleStateType::SELECTED; if ( m_bVisible ) { - pStateSetHelper->AddState( AccessibleStateType::VISIBLE ); - pStateSetHelper->AddState( AccessibleStateType::SHOWING ); + nStateSet |= AccessibleStateType::VISIBLE; + nStateSet |= AccessibleStateType::SHOWING; } } else - pStateSetHelper->AddState( AccessibleStateType::DEFUNC ); + nStateSet |= AccessibleStateType::DEFUNC; - return pStateSetHelper; + return nStateSet; } Locale SAL_CALL VCLXAccessibleListItem::getLocale( ) diff --git a/accessibility/source/standard/vclxaccessiblemenuitem.cxx b/accessibility/source/standard/vclxaccessiblemenuitem.cxx index 96e31c0074b1..faa9acbf97b1 100644 --- a/accessibility/source/standard/vclxaccessiblemenuitem.cxx +++ b/accessibility/source/standard/vclxaccessiblemenuitem.cxx @@ -28,7 +28,6 @@ #include <com/sun/star/datatransfer/clipboard/XClipboard.hpp> #include <com/sun/star/datatransfer/clipboard/XFlushableClipboard.hpp> #include <com/sun/star/lang/IndexOutOfBoundsException.hpp> -#include <unotools/accessiblestatesethelper.hxx> #include <comphelper/sequence.hxx> #include <i18nlangtag/languagetag.hxx> #include <vcl/event.hxx> @@ -93,22 +92,22 @@ bool VCLXAccessibleMenuItem::IsHighlighted() } -void VCLXAccessibleMenuItem::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) +void VCLXAccessibleMenuItem::FillAccessibleStateSet( sal_Int64& rStateSet ) { OAccessibleMenuItemComponent::FillAccessibleStateSet( rStateSet ); - rStateSet.AddState( AccessibleStateType::FOCUSABLE ); + rStateSet |= AccessibleStateType::FOCUSABLE; if ( IsFocused() ) - rStateSet.AddState( AccessibleStateType::FOCUSED ); + rStateSet |= AccessibleStateType::FOCUSED; - rStateSet.AddState( AccessibleStateType::SELECTABLE ); + rStateSet |= AccessibleStateType::SELECTABLE; if ( IsSelected() ) - rStateSet.AddState( AccessibleStateType::SELECTED ); + rStateSet |= AccessibleStateType::SELECTED; if ( IsChecked() ) - rStateSet.AddState( AccessibleStateType::CHECKED ); + rStateSet |= AccessibleStateType::CHECKED; } diff --git a/accessibility/source/standard/vclxaccessibleradiobutton.cxx b/accessibility/source/standard/vclxaccessibleradiobutton.cxx index c1a23ede2ede..e065a75e09cb 100644 --- a/accessibility/source/standard/vclxaccessibleradiobutton.cxx +++ b/accessibility/source/standard/vclxaccessibleradiobutton.cxx @@ -22,7 +22,6 @@ #include <toolkit/awt/vclxwindows.hxx> #include <unotools/accessiblerelationsethelper.hxx> -#include <unotools/accessiblestatesethelper.hxx> #include <comphelper/accessiblekeybindinghelper.hxx> #include <com/sun/star/awt/KeyModifier.hpp> #include <com/sun/star/accessibility/AccessibleRelationType.hpp> @@ -91,16 +90,16 @@ void VCLXAccessibleRadioButton::FillAccessibleRelationSet( utl::AccessibleRelati } -void VCLXAccessibleRadioButton::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) +void VCLXAccessibleRadioButton::FillAccessibleStateSet( sal_Int64& rStateSet ) { VCLXAccessibleTextComponent::FillAccessibleStateSet( rStateSet ); VCLXRadioButton* pVCLXRadioButton = static_cast< VCLXRadioButton* >( GetVCLXWindow() ); if ( pVCLXRadioButton ) { - rStateSet.AddState( AccessibleStateType::FOCUSABLE ); + rStateSet |= AccessibleStateType::FOCUSABLE; if ( pVCLXRadioButton->getState() ) - rStateSet.AddState( AccessibleStateType::CHECKED ); + rStateSet |= AccessibleStateType::CHECKED; } } diff --git a/accessibility/source/standard/vclxaccessiblescrollbar.cxx b/accessibility/source/standard/vclxaccessiblescrollbar.cxx index 9ddb5e12a8c3..57ea5365b141 100644 --- a/accessibility/source/standard/vclxaccessiblescrollbar.cxx +++ b/accessibility/source/standard/vclxaccessiblescrollbar.cxx @@ -23,7 +23,6 @@ #include <helper/accresmgr.hxx> #include <strings.hrc> -#include <unotools/accessiblestatesethelper.hxx> #include <com/sun/star/accessibility/AccessibleStateType.hpp> #include <com/sun/star/accessibility/AccessibleEventId.hpp> #include <com/sun/star/awt/ScrollBarOrientation.hpp> @@ -59,7 +58,7 @@ void VCLXAccessibleScrollBar::ProcessWindowEvent( const VclWindowEvent& rVclWind } -void VCLXAccessibleScrollBar::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) +void VCLXAccessibleScrollBar::FillAccessibleStateSet( sal_Int64& rStateSet ) { VCLXAccessibleComponent::FillAccessibleStateSet( rStateSet ); @@ -69,9 +68,9 @@ void VCLXAccessibleScrollBar::FillAccessibleStateSet( utl::AccessibleStateSetHel // IA2 CWS: scroll bar should not have FOCUSABLE state. // rStateSet.AddState( AccessibleStateType::FOCUSABLE ); if ( pVCLXScrollBar->getOrientation() == ScrollBarOrientation::HORIZONTAL ) - rStateSet.AddState( AccessibleStateType::HORIZONTAL ); + rStateSet |= AccessibleStateType::HORIZONTAL; else if ( pVCLXScrollBar->getOrientation() == ScrollBarOrientation::VERTICAL ) - rStateSet.AddState( AccessibleStateType::VERTICAL ); + rStateSet |= AccessibleStateType::VERTICAL; } } diff --git a/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx b/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx index 8406742060ac..a643c92f35e2 100644 --- a/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx +++ b/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx @@ -28,7 +28,6 @@ #include <com/sun/star/datatransfer/clipboard/XFlushableClipboard.hpp> #include <com/sun/star/lang/IndexOutOfBoundsException.hpp> #include <cppuhelper/supportsservice.hxx> -#include <unotools/accessiblestatesethelper.hxx> #include <unotools/accessiblerelationsethelper.hxx> #include <vcl/ctrl.hxx> #include <vcl/svapp.hxx> @@ -128,15 +127,15 @@ OUString VCLXAccessibleStatusBarItem::GetItemText() } -void VCLXAccessibleStatusBarItem::FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) +void VCLXAccessibleStatusBarItem::FillAccessibleStateSet( sal_Int64& rStateSet ) { - rStateSet.AddState( AccessibleStateType::ENABLED ); - rStateSet.AddState( AccessibleStateType::SENSITIVE ); + rStateSet |= AccessibleStateType::ENABLED; + rStateSet |= AccessibleStateType::SENSITIVE; - rStateSet.AddState( AccessibleStateType::VISIBLE ); + rStateSet |= AccessibleStateType::VISIBLE; if ( IsShowing() ) - rStateSet.AddState( AccessibleStateType::SHOWING ); + rStateSet |= AccessibleStateType::SHOWING; } @@ -310,22 +309,22 @@ Reference< XAccessibleRelationSet > VCLXAccessibleStatusBarItem::getAccessibleRe } -Reference< XAccessibleStateSet > VCLXAccessibleStatusBarItem::getAccessibleStateSet( ) +sal_Int64 VCLXAccessibleStatusBarItem::getAccessibleStateSet( ) { OExternalLockGuard aGuard( this ); ... etc. - the rest is truncated