summaryrefslogtreecommitdiff
path: root/accessibility/inc/standard
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2022-07-03 20:29:28 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-07-08 10:10:11 +0200
commit8d8e6c84e512c1a8b33aac75965b84481d1a1d13 (patch)
tree9ed209d057081d4283eb44b51c0d9af18f976eab /accessibility/inc/standard
parent911ac42485b690df5cbbff6e3c04b111c1723aca (diff)
[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.weghorn@posteo.de> Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'accessibility/inc/standard')
-rw-r--r--accessibility/inc/standard/accessiblemenubasecomponent.hxx9
-rw-r--r--accessibility/inc/standard/accessiblemenucomponent.hxx2
-rw-r--r--accessibility/inc/standard/accessiblemenuitemcomponent.hxx2
-rw-r--r--accessibility/inc/standard/vclxaccessiblebox.hxx2
-rw-r--r--accessibility/inc/standard/vclxaccessiblebutton.hxx2
-rw-r--r--accessibility/inc/standard/vclxaccessiblecheckbox.hxx2
-rw-r--r--accessibility/inc/standard/vclxaccessibleedit.hxx2
-rw-r--r--accessibility/inc/standard/vclxaccessiblefixedtext.hxx2
-rw-r--r--accessibility/inc/standard/vclxaccessibleheaderbaritem.hxx8
-rw-r--r--accessibility/inc/standard/vclxaccessiblelist.hxx2
-rw-r--r--accessibility/inc/standard/vclxaccessiblelistitem.hxx3
-rw-r--r--accessibility/inc/standard/vclxaccessiblemenuitem.hxx2
-rw-r--r--accessibility/inc/standard/vclxaccessibleradiobutton.hxx2
-rw-r--r--accessibility/inc/standard/vclxaccessiblescrollbar.hxx2
-rw-r--r--accessibility/inc/standard/vclxaccessiblestatusbaritem.hxx8
-rw-r--r--accessibility/inc/standard/vclxaccessibletabcontrol.hxx2
-rw-r--r--accessibility/inc/standard/vclxaccessibletabpage.hxx9
-rw-r--r--accessibility/inc/standard/vclxaccessibletoolbox.hxx2
-rw-r--r--accessibility/inc/standard/vclxaccessibletoolboxitem.hxx3
19 files changed, 23 insertions, 43 deletions
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;