dbaccess/source/ui/uno/ColumnControl.cxx     |    2 -
 dbaccess/source/ui/uno/ColumnControl.hxx     |    2 -
 forms/source/component/Filter.cxx            |    2 -
 forms/source/component/Filter.hxx            |    2 -
 include/svx/fmgridif.hxx                     |    2 -
 include/toolkit/controls/unocontrol.hxx      |    2 -
 include/toolkit/controls/unocontrolbase.hxx  |    2 -
 include/toolkit/controls/unocontrols.hxx     |   36 +++++++++++++--------------
 svx/source/fmcomp/fmgridif.cxx               |    2 -
 svx/source/form/formcontroller.cxx           |    2 -
 toolkit/inc/controls/dialogcontrol.hxx       |    8 +++---
 toolkit/inc/controls/formattedcontrol.hxx    |    2 -
 toolkit/inc/controls/roadmapcontrol.hxx      |    2 -
 toolkit/inc/controls/tabpagecontainer.hxx    |    2 -
 toolkit/inc/controls/tabpagemodel.hxx        |    2 -
 toolkit/inc/controls/tkscrollbar.hxx         |    2 -
 toolkit/source/controls/animatedimages.cxx   |    4 +--
 toolkit/source/controls/dialogcontrol.cxx    |    8 +++---
 toolkit/source/controls/formattedcontrol.cxx |    2 -
 toolkit/source/controls/grid/gridcontrol.cxx |    2 -
 toolkit/source/controls/grid/gridcontrol.hxx |    2 -
 toolkit/source/controls/roadmapcontrol.cxx   |    2 -
 toolkit/source/controls/tabpagecontainer.cxx |    2 -
 toolkit/source/controls/tabpagemodel.cxx     |    2 -
 toolkit/source/controls/tkscrollbar.cxx      |    2 -
 toolkit/source/controls/tkspinbutton.cxx     |    4 +--
 toolkit/source/controls/tree/treecontrol.cxx |    4 +--
 toolkit/source/controls/unocontrol.cxx       |    2 -
 toolkit/source/controls/unocontrolbase.cxx   |    2 -
 toolkit/source/controls/unocontrols.cxx      |   36 +++++++++++++--------------
 30 files changed, 73 insertions(+), 73 deletions(-)

New commits:
commit 492098417a590521506e41c05d3ab0f09628d39a
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Sat Mar 5 09:16:53 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Sat Mar 5 15:19:15 2022 +0100

    GetComponentServiceName can be const
    
    Change-Id: Iac61eec0b27660dd2ff45f70c92de5a8cdc2c301
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131044
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/dbaccess/source/ui/uno/ColumnControl.cxx 
b/dbaccess/source/ui/uno/ColumnControl.cxx
index 0d26048f8e32..9295b9954333 100644
--- a/dbaccess/source/ui/uno/ColumnControl.cxx
+++ b/dbaccess/source/ui/uno/ColumnControl.cxx
@@ -61,7 +61,7 @@ css::uno::Sequence< OUString > SAL_CALL 
OColumnControl::getSupportedServiceNames
     return { 
"com.sun.star.awt.UnoControl","com.sun.star.sdb.ColumnDescriptorControl" };
 }
 
-OUString OColumnControl::GetComponentServiceName()
+OUString OColumnControl::GetComponentServiceName() const
 {
     return "com.sun.star.sdb.ColumnDescriptorControl";
 }
diff --git a/dbaccess/source/ui/uno/ColumnControl.hxx 
b/dbaccess/source/ui/uno/ColumnControl.hxx
index 9c6054d623e2..63f06651284c 100644
--- a/dbaccess/source/ui/uno/ColumnControl.hxx
+++ b/dbaccess/source/ui/uno/ColumnControl.hxx
@@ -33,7 +33,7 @@ namespace dbaui
         explicit OColumnControl(const css::uno::Reference< 
css::uno::XComponentContext>& rxContext);
 
         // UnoControl
-        virtual OUString GetComponentServiceName() override;
+        virtual OUString GetComponentServiceName() const override;
 
         // XServiceInfo
         DECLARE_SERVICE_INFO();
diff --git a/forms/source/component/Filter.cxx 
b/forms/source/component/Filter.cxx
index cc57cecf027a..46666713f6b4 100644
--- a/forms/source/component/Filter.cxx
+++ b/forms/source/component/Filter.cxx
@@ -135,7 +135,7 @@ namespace frm
     }
 
 
-    OUString OFilterControl::GetComponentServiceName()
+    OUString OFilterControl::GetComponentServiceName() const
     {
         OUString aServiceName;
         switch (m_nControlClass)
diff --git a/forms/source/component/Filter.hxx 
b/forms/source/component/Filter.hxx
index 8561d2f5d5af..8815f5f11a02 100644
--- a/forms/source/component/Filter.hxx
+++ b/forms/source/component/Filter.hxx
@@ -80,7 +80,7 @@ namespace frm
         DECLARE_UNO3_AGG_DEFAULTS(OFilterControl,OWeakAggObject)
         css::uno::Any  SAL_CALL queryAggregation( const css::uno::Type & rType 
) override;
 
-        virtual OUString GetComponentServiceName() override;
+        virtual OUString GetComponentServiceName() const override;
         virtual void SAL_CALL   createPeer( const css::uno::Reference< 
css::awt::XToolkit > & rxToolkit, const css::uno::Reference< 
css::awt::XWindowPeer >  & rParentPeer ) override;
 
     // css::lang::XComponent
diff --git a/include/svx/fmgridif.hxx b/include/svx/fmgridif.hxx
index e0f43fcf069c..668eb13350fe 100644
--- a/include/svx/fmgridif.hxx
+++ b/include/svx/fmgridif.hxx
@@ -277,7 +277,7 @@ public:
     virtual css::uno::Sequence< css::uno::Any > SAL_CALL queryFieldData( 
sal_Int32 nRow, const css::uno::Type& xType ) override;
 
 // UnoControl
-    virtual OUString GetComponentServiceName() override;
+    virtual OUString GetComponentServiceName() const override;
 
 // css::util::XModifyBroadcaster
     virtual void SAL_CALL addModifyListener(const css::uno::Reference< 
css::util::XModifyListener >& l) override;
diff --git a/include/toolkit/controls/unocontrol.hxx 
b/include/toolkit/controls/unocontrol.hxx
index e2ed655d180e..cbde0b659348 100644
--- a/include/toolkit/controls/unocontrol.hxx
+++ b/include/toolkit/controls/unocontrol.hxx
@@ -138,7 +138,7 @@ public:
                 UnoControlComponentInfos&           GetComponentInfos() { 
return maComponentInfos; }
 
 
-    virtual OUString GetComponentServiceName();
+    virtual OUString GetComponentServiceName() const;
 
     // css::lang::XTypeProvider
     css::uno::Sequence< sal_Int8 >                     SAL_CALL 
getImplementationId() override;
diff --git a/include/toolkit/controls/unocontrolbase.hxx 
b/include/toolkit/controls/unocontrolbase.hxx
index 160510b1322c..06e57067d8fd 100644
--- a/include/toolkit/controls/unocontrolbase.hxx
+++ b/include/toolkit/controls/unocontrolbase.hxx
@@ -38,7 +38,7 @@ protected:
     bool                    ImplHasProperty( const OUString& aPropertyName );
     void                        ImplSetPropertyValue( const OUString& 
aPropertyName, const css::uno::Any& aValue, bool bUpdateThis );
     void                        ImplSetPropertyValues( const 
css::uno::Sequence< OUString >& aPropertyNames, const css::uno::Sequence< 
css::uno::Any >& aValues, bool bUpdateThis );
-    css::uno::Any  ImplGetPropertyValue( const OUString& aPropertyName );
+    css::uno::Any  ImplGetPropertyValue( const OUString& aPropertyName ) const;
 
     template <typename T> T ImplGetPropertyValuePOD( sal_uInt16 nProp );
     template <typename T> T ImplGetPropertyValueClass( sal_uInt16 nProp );
diff --git a/include/toolkit/controls/unocontrols.hxx 
b/include/toolkit/controls/unocontrols.hxx
index 390f9451a47f..121bdec42eb3 100644
--- a/include/toolkit/controls/unocontrols.hxx
+++ b/include/toolkit/controls/unocontrols.hxx
@@ -126,7 +126,7 @@ private:
 public:
 
                                 UnoEditControl();
-    OUString             GetComponentServiceName() override;
+    OUString             GetComponentServiceName() const override;
     TextListenerMultiplexer&    GetTextListeners()  { return maTextListeners; }
 
     void                        ImplSetPeerProperty( const OUString& 
rPropName, const css::uno::Any& rVal ) override;
@@ -208,7 +208,7 @@ class UnoFileControl final : public UnoEditControl
 {
 public:
                         UnoFileControl();
-    OUString     GetComponentServiceName() override;
+    OUString     GetComponentServiceName() const override;
 
     // css::lang::XServiceInfo
     OUString SAL_CALL getImplementationName() override;
@@ -286,7 +286,7 @@ private:
 public:
 
                         UnoButtonControl();
-    OUString     GetComponentServiceName() override;
+    OUString     GetComponentServiceName() const override;
 
     void SAL_CALL createPeer( const css::uno::Reference< css::awt::XToolkit >& 
Toolkit, const css::uno::Reference< css::awt::XWindowPeer >& Parent ) override;
     void SAL_CALL dispose(  ) override;
@@ -363,7 +363,7 @@ private:
 public:
 
                             UnoImageControlControl();
-    OUString         GetComponentServiceName() override;
+    OUString         GetComponentServiceName() const override;
 
     void SAL_CALL dispose(  ) override;
 
@@ -424,7 +424,7 @@ private:
 public:
 
                             UnoRadioButtonControl();
-    OUString         GetComponentServiceName() override;
+    OUString         GetComponentServiceName() const override;
 
     void SAL_CALL createPeer( const css::uno::Reference< css::awt::XToolkit >& 
Toolkit, const css::uno::Reference< css::awt::XWindowPeer >& Parent ) override;
     void SAL_CALL dispose(  ) override;
@@ -502,7 +502,7 @@ private:
 public:
 
                             UnoCheckBoxControl();
-    OUString         GetComponentServiceName() override;
+    OUString         GetComponentServiceName() const override;
 
     void SAL_CALL createPeer( const css::uno::Reference< css::awt::XToolkit >& 
Toolkit, const css::uno::Reference< css::awt::XWindowPeer >& Parent ) override;
     void SAL_CALL dispose(  ) override;
@@ -574,7 +574,7 @@ private:
 public:
     UnoFixedHyperlinkControl();
 
-    OUString     GetComponentServiceName() override;
+    OUString     GetComponentServiceName() const override;
 
     css::uno::Any  SAL_CALL queryInterface( const css::uno::Type & rType ) 
override { return UnoControlBase::queryInterface(rType); }
     css::uno::Any  SAL_CALL queryAggregation( const css::uno::Type & rType ) 
override;
@@ -643,7 +643,7 @@ class UnoFixedTextControl final : public UnoControlBase,
 {
 public:
                         UnoFixedTextControl();
-    OUString     GetComponentServiceName() override;
+    OUString     GetComponentServiceName() const override;
 
     css::uno::Any  SAL_CALL queryInterface( const css::uno::Type & rType ) 
override { return UnoControlBase::queryInterface(rType); }
     css::uno::Any  SAL_CALL queryAggregation( const css::uno::Type & rType ) 
override;
@@ -705,7 +705,7 @@ class UnoGroupBoxControl final : public UnoControlBase
 {
 public:
                         UnoGroupBoxControl();
-    OUString     GetComponentServiceName() override;
+    OUString     GetComponentServiceName() const override;
 
     sal_Bool SAL_CALL isTransparent(  ) override;
 
@@ -831,7 +831,7 @@ class UnoListBoxControl final : public 
UnoListBoxControl_Base
 {
 public:
                         UnoListBoxControl();
-    OUString     GetComponentServiceName() override;
+    OUString     GetComponentServiceName() const override;
 
     void SAL_CALL createPeer( const css::uno::Reference< css::awt::XToolkit >& 
Toolkit, const css::uno::Reference< css::awt::XWindowPeer >& Parent ) override;
     void SAL_CALL dispose(  ) override;
@@ -937,7 +937,7 @@ private:
 public:
 
                         UnoComboBoxControl();
-    OUString     GetComponentServiceName() override;
+    OUString     GetComponentServiceName() const override;
 
     void SAL_CALL createPeer( const css::uno::Reference< css::awt::XToolkit >& 
Toolkit, const css::uno::Reference< css::awt::XWindowPeer >& Parent ) override;
     void SAL_CALL disposing( const css::lang::EventObject& Source ) override { 
UnoEditControl::disposing( Source ); }
@@ -1062,7 +1062,7 @@ private:
     TriState         mbLongFormat;
 public:
                             UnoDateFieldControl();
-    OUString         GetComponentServiceName() override;
+    OUString         GetComponentServiceName() const override;
 
     css::uno::Any  SAL_CALL queryInterface( const css::uno::Type & rType ) 
override { return UnoSpinFieldControl::queryInterface(rType); }
     css::uno::Any  SAL_CALL queryAggregation( const css::uno::Type & rType ) 
override;
@@ -1138,7 +1138,7 @@ private:
 
 public:
                         UnoTimeFieldControl();
-    OUString     GetComponentServiceName() override;
+    OUString     GetComponentServiceName() const override;
 
     css::uno::Any  SAL_CALL queryInterface( const css::uno::Type & rType ) 
override { return UnoSpinFieldControl::queryInterface(rType); }
     css::uno::Any  SAL_CALL queryAggregation( const css::uno::Type & rType ) 
override;
@@ -1212,7 +1212,7 @@ private:
 
 public:
                         UnoNumericFieldControl();
-    OUString     GetComponentServiceName() override;
+    OUString     GetComponentServiceName() const override;
 
     css::uno::Any  SAL_CALL queryInterface( const css::uno::Type & rType ) 
override { return UnoSpinFieldControl::queryInterface(rType); }
     css::uno::Any  SAL_CALL queryAggregation( const css::uno::Type & rType ) 
override;
@@ -1288,7 +1288,7 @@ private:
 
 public:
                         UnoCurrencyFieldControl();
-    OUString     GetComponentServiceName() override;
+    OUString     GetComponentServiceName() const override;
 
     css::uno::Any  SAL_CALL queryInterface( const css::uno::Type & rType ) 
override { return UnoSpinFieldControl::queryInterface(rType); }
     css::uno::Any  SAL_CALL queryAggregation( const css::uno::Type & rType ) 
override;
@@ -1362,7 +1362,7 @@ class UnoPatternFieldControl final : public 
UnoSpinFieldControl,
 
 public:
                         UnoPatternFieldControl();
-    OUString     GetComponentServiceName() override;
+    OUString     GetComponentServiceName() const override;
 
     css::uno::Any  SAL_CALL queryInterface( const css::uno::Type & rType ) 
override { return UnoSpinFieldControl::queryInterface(rType); }
     css::uno::Any  SAL_CALL queryAggregation( const css::uno::Type & rType ) 
override;
@@ -1419,7 +1419,7 @@ class UnoProgressBarControl final : public UnoControlBase,
 {
 public:
                                 UnoProgressBarControl();
-    OUString             GetComponentServiceName() override;
+    OUString             GetComponentServiceName() const override;
 
     css::uno::Any  SAL_CALL queryInterface( const css::uno::Type & rType ) 
override { return UnoControlBase::queryInterface(rType); }
     css::uno::Any  SAL_CALL queryAggregation( const css::uno::Type & rType ) 
override;
@@ -1474,7 +1474,7 @@ class UnoFixedLineControl final : public UnoControlBase
 {
 public:
                         UnoFixedLineControl();
-    OUString     GetComponentServiceName() override;
+    OUString     GetComponentServiceName() const override;
 
     sal_Bool SAL_CALL isTransparent(  ) override;
 
diff --git a/svx/source/fmcomp/fmgridif.cxx b/svx/source/fmcomp/fmgridif.cxx
index bc008f01f7ce..fb6067663a62 100644
--- a/svx/source/fmcomp/fmgridif.cxx
+++ b/svx/source/fmcomp/fmgridif.cxx
@@ -399,7 +399,7 @@ void SAL_CALL FmXGridControl::dispose()
 }
 
 
-OUString FmXGridControl::GetComponentServiceName()
+OUString FmXGridControl::GetComponentServiceName() const
 {
     return "DBGrid";
 }
diff --git a/svx/source/form/formcontroller.cxx 
b/svx/source/form/formcontroller.cxx
index 71be6e43fe21..fd66a5f0f9bb 100644
--- a/svx/source/form/formcontroller.cxx
+++ b/svx/source/form/formcontroller.cxx
@@ -454,7 +454,7 @@ public:
     {
     }
 
-    virtual OUString GetComponentServiceName() override {return "Edit";}
+    virtual OUString GetComponentServiceName() const override {return "Edit";}
     virtual void SAL_CALL createPeer( const Reference< XToolkit > & rxToolkit, 
const Reference< XWindowPeer >  & rParentPeer ) override;
 
 protected:
diff --git a/toolkit/inc/controls/dialogcontrol.hxx 
b/toolkit/inc/controls/dialogcontrol.hxx
index 68dbdc61bdf1..b23c60f445f5 100644
--- a/toolkit/inc/controls/dialogcontrol.hxx
+++ b/toolkit/inc/controls/dialogcontrol.hxx
@@ -42,7 +42,7 @@ public:
 
                                 UnoDialogControl( const css::uno::Reference< 
css::uno::XComponentContext >& rxContext );
                                 virtual ~UnoDialogControl() override;
-    OUString             GetComponentServiceName() override;
+    OUString             GetComponentServiceName() const override;
 
     void SAL_CALL createPeer( const css::uno::Reference< css::awt::XToolkit >& 
Toolkit, const css::uno::Reference< css::awt::XWindowPeer >& Parent ) override;
     void SAL_CALL disposing( const css::lang::EventObject& Source ) override;
@@ -193,7 +193,7 @@ class UnoMultiPageControl final : public 
ControlContainerBase
 public:
     UnoMultiPageControl( const css::uno::Reference< 
css::uno::XComponentContext >& rxContext );
     virtual ~UnoMultiPageControl() override;
-    OUString     GetComponentServiceName() override;
+    OUString     GetComponentServiceName() const override;
 
     // css::lang::XServiceInfo
     DECLIMPL_SERVICEINFO_DERIVED( UnoMultiPageControl, ControlContainerBase, 
"com.sun.star.awt.UnoControlMultiPage" )
@@ -266,7 +266,7 @@ class UnoPageControl final : public ControlContainerBase
 public:
     UnoPageControl( const css::uno::Reference< css::uno::XComponentContext >& 
rxContext );
     virtual ~UnoPageControl() override;
-    OUString     GetComponentServiceName() override;
+    OUString     GetComponentServiceName() const override;
 
 
     // css::lang::XServiceInfo
@@ -302,7 +302,7 @@ class UnoFrameControl final : public ControlContainerBase
 public:
     UnoFrameControl( const css::uno::Reference< css::uno::XComponentContext >& 
rxContext );
     virtual ~UnoFrameControl() override;
-    OUString     GetComponentServiceName() override;
+    OUString     GetComponentServiceName() const override;
 
 // css::lang::XServiceInfo
 DECLIMPL_SERVICEINFO_DERIVED( UnoFrameControl, ControlContainerBase, 
"com.sun.star.awt.UnoControlFrame" )
diff --git a/toolkit/inc/controls/formattedcontrol.hxx 
b/toolkit/inc/controls/formattedcontrol.hxx
index 234d34224cfd..388d94312aab 100644
--- a/toolkit/inc/controls/formattedcontrol.hxx
+++ b/toolkit/inc/controls/formattedcontrol.hxx
@@ -104,7 +104,7 @@ namespace toolkit
     {
     public:
                             UnoFormattedFieldControl();
-        OUString     GetComponentServiceName() override;
+        OUString     GetComponentServiceName() const override;
 
         // css::awt::XTextListener
         void SAL_CALL textChanged( const css::awt::TextEvent& rEvent ) 
override;
diff --git a/toolkit/inc/controls/roadmapcontrol.hxx 
b/toolkit/inc/controls/roadmapcontrol.hxx
index eea7c1b2d84d..2a4a1021e0ad 100644
--- a/toolkit/inc/controls/roadmapcontrol.hxx
+++ b/toolkit/inc/controls/roadmapcontrol.hxx
@@ -145,7 +145,7 @@ namespace toolkit
         ItemListenerMultiplexer                 maItemListeners;
     public:
                             UnoRoadmapControl();
-        OUString     GetComponentServiceName() override;
+        OUString     GetComponentServiceName() const override;
 
     void SAL_CALL disposing( const css::lang::EventObject& Source ) override { 
UnoControlBase::disposing( Source ); }
 
diff --git a/toolkit/inc/controls/tabpagecontainer.hxx 
b/toolkit/inc/controls/tabpagecontainer.hxx
index e00c0bd89e58..d8cc32664406 100644
--- a/toolkit/inc/controls/tabpagecontainer.hxx
+++ b/toolkit/inc/controls/tabpagecontainer.hxx
@@ -93,7 +93,7 @@ class UnoControlTabPageContainer final : public 
UnoControlTabPageContainer_Base
 {
 public:
     UnoControlTabPageContainer( const css::uno::Reference< 
css::uno::XComponentContext >& rxContext );
-    OUString             GetComponentServiceName() override;
+    OUString             GetComponentServiceName() const override;
 
     // css::lang::XComponent
     void SAL_CALL dispose(  ) override;
diff --git a/toolkit/inc/controls/tabpagemodel.hxx 
b/toolkit/inc/controls/tabpagemodel.hxx
index 9aba10d08b5d..6c12981b28e9 100644
--- a/toolkit/inc/controls/tabpagemodel.hxx
+++ b/toolkit/inc/controls/tabpagemodel.hxx
@@ -58,7 +58,7 @@ public:
 
     UnoControlTabPage( const css::uno::Reference< css::uno::XComponentContext 
>& rxContext );
     virtual ~UnoControlTabPage() override;
-    OUString             GetComponentServiceName() override;
+    OUString             GetComponentServiceName() const override;
 
     void SAL_CALL createPeer( const css::uno::Reference< css::awt::XToolkit >& 
Toolkit, const css::uno::Reference< css::awt::XWindowPeer >& Parent ) override;
     void SAL_CALL disposing( const css::lang::EventObject& Source ) override;
diff --git a/toolkit/inc/controls/tkscrollbar.hxx 
b/toolkit/inc/controls/tkscrollbar.hxx
index 74014cf6d18a..ec774fa9dfb3 100644
--- a/toolkit/inc/controls/tkscrollbar.hxx
+++ b/toolkit/inc/controls/tkscrollbar.hxx
@@ -65,7 +65,7 @@ namespace toolkit
 
     public:
                                     UnoScrollBarControl();
-        OUString             GetComponentServiceName() override;
+        OUString             GetComponentServiceName() const override;
 
         css::uno::Any  SAL_CALL queryInterface( const css::uno::Type & rType ) 
override { return UnoControlBase::queryInterface(rType); }
         css::uno::Any  SAL_CALL queryAggregation( const css::uno::Type & rType 
) override;
diff --git a/toolkit/source/controls/animatedimages.cxx 
b/toolkit/source/controls/animatedimages.cxx
index 3e335a1a661f..8626bdd45156 100644
--- a/toolkit/source/controls/animatedimages.cxx
+++ b/toolkit/source/controls/animatedimages.cxx
@@ -55,7 +55,7 @@ class AnimatedImagesControl : public 
AnimatedImagesControl_Base
 {
 public:
     AnimatedImagesControl();
-    OUString GetComponentServiceName() override;
+    OUString GetComponentServiceName() const override;
 
     // XAnimation
     virtual void SAL_CALL startAnimation(  ) override;
@@ -85,7 +85,7 @@ public:
     }
 
 
-    OUString AnimatedImagesControl::GetComponentServiceName()
+    OUString AnimatedImagesControl::GetComponentServiceName() const
     {
         return "AnimatedImages";
     }
diff --git a/toolkit/source/controls/dialogcontrol.cxx 
b/toolkit/source/controls/dialogcontrol.cxx
index cb5446e7a8ce..e9e563956b6b 100644
--- a/toolkit/source/controls/dialogcontrol.cxx
+++ b/toolkit/source/controls/dialogcontrol.cxx
@@ -315,7 +315,7 @@ UnoDialogControl::~UnoDialogControl()
 {
 }
 
-OUString UnoDialogControl::GetComponentServiceName()
+OUString UnoDialogControl::GetComponentServiceName() const
 {
 
     bool bDecoration( true );
@@ -772,7 +772,7 @@ uno::Any UnoMultiPageControl::queryAggregation( const 
uno::Type & rType )
     return (aRet.hasValue() ? aRet : ControlContainerBase::queryAggregation( 
rType ));
 }
 
-OUString UnoMultiPageControl::GetComponentServiceName()
+OUString UnoMultiPageControl::GetComponentServiceName() const
 {
     bool bDecoration( true );
     ImplGetPropertyValue( GetPropertyName( BASEPROPERTY_DECORATION )) >>= 
bDecoration;
@@ -946,7 +946,7 @@ UnoPageControl::~UnoPageControl()
 {
 }
 
-OUString UnoPageControl::GetComponentServiceName()
+OUString UnoPageControl::GetComponentServiceName() const
 {
     return "tabpage";
 }
@@ -1039,7 +1039,7 @@ UnoFrameControl::~UnoFrameControl()
 {
 }
 
-OUString UnoFrameControl::GetComponentServiceName()
+OUString UnoFrameControl::GetComponentServiceName() const
 {
     return "frame";
 }
diff --git a/toolkit/source/controls/formattedcontrol.cxx 
b/toolkit/source/controls/formattedcontrol.cxx
index b21580a0554e..83359a614b58 100644
--- a/toolkit/source/controls/formattedcontrol.cxx
+++ b/toolkit/source/controls/formattedcontrol.cxx
@@ -417,7 +417,7 @@ namespace toolkit
     }
 
 
-    OUString UnoFormattedFieldControl::GetComponentServiceName()
+    OUString UnoFormattedFieldControl::GetComponentServiceName() const
     {
         return "FormattedField";
     }
diff --git a/toolkit/source/controls/grid/gridcontrol.cxx 
b/toolkit/source/controls/grid/gridcontrol.cxx
index 54504c91e13f..6dd25ef1f4bd 100644
--- a/toolkit/source/controls/grid/gridcontrol.cxx
+++ b/toolkit/source/controls/grid/gridcontrol.cxx
@@ -277,7 +277,7 @@ UnoGridControl::~UnoGridControl()
 }
 
 
-OUString UnoGridControl::GetComponentServiceName()
+OUString UnoGridControl::GetComponentServiceName() const
 {
     return "Grid";
 }
diff --git a/toolkit/source/controls/grid/gridcontrol.hxx 
b/toolkit/source/controls/grid/gridcontrol.hxx
index e62f706393b6..6b4f8152bbd0 100644
--- a/toolkit/source/controls/grid/gridcontrol.hxx
+++ b/toolkit/source/controls/grid/gridcontrol.hxx
@@ -86,7 +86,7 @@ class UnoGridControl : public UnoGridControl_Base
 {
 public:
     UnoGridControl();
-    OUString             GetComponentServiceName() override;
+    OUString             GetComponentServiceName() const override;
 
     // css::lang::XComponent
     void SAL_CALL dispose(  ) override;
diff --git a/toolkit/source/controls/roadmapcontrol.cxx 
b/toolkit/source/controls/roadmapcontrol.cxx
index 48dae2ef6748..8df570b64109 100644
--- a/toolkit/source/controls/roadmapcontrol.cxx
+++ b/toolkit/source/controls/roadmapcontrol.cxx
@@ -382,7 +382,7 @@ sal_Bool SAL_CALL UnoRoadmapControl::setModel(const 
Reference< XControlModel >&
     }
 
 
-    OUString UnoRoadmapControl::GetComponentServiceName()
+    OUString UnoRoadmapControl::GetComponentServiceName() const
     {
         return "Roadmap";
     }
diff --git a/toolkit/source/controls/tabpagecontainer.cxx 
b/toolkit/source/controls/tabpagecontainer.cxx
index f72ce4b11d3a..33dcaffffa2d 100644
--- a/toolkit/source/controls/tabpagecontainer.cxx
+++ b/toolkit/source/controls/tabpagecontainer.cxx
@@ -211,7 +211,7 @@ UnoControlTabPageContainer::UnoControlTabPageContainer( 
const uno::Reference< un
 {
 }
 
-OUString UnoControlTabPageContainer::GetComponentServiceName()
+OUString UnoControlTabPageContainer::GetComponentServiceName() const
 {
     return "TabPageContainer";
 }
diff --git a/toolkit/source/controls/tabpagemodel.cxx 
b/toolkit/source/controls/tabpagemodel.cxx
index d0de487af394..c82e54e417c6 100644
--- a/toolkit/source/controls/tabpagemodel.cxx
+++ b/toolkit/source/controls/tabpagemodel.cxx
@@ -166,7 +166,7 @@ UnoControlTabPage::~UnoControlTabPage()
 {
 }
 
-OUString UnoControlTabPage::GetComponentServiceName()
+OUString UnoControlTabPage::GetComponentServiceName() const
 {
     return "TabPageModel";
 }
diff --git a/toolkit/source/controls/tkscrollbar.cxx 
b/toolkit/source/controls/tkscrollbar.cxx
index 4848a109664a..968cfc5cc25d 100644
--- a/toolkit/source/controls/tkscrollbar.cxx
+++ b/toolkit/source/controls/tkscrollbar.cxx
@@ -103,7 +103,7 @@ namespace toolkit
     {
     }
 
-    OUString UnoScrollBarControl::GetComponentServiceName()
+    OUString UnoScrollBarControl::GetComponentServiceName() const
     {
         return "ScrollBar";
     }
diff --git a/toolkit/source/controls/tkspinbutton.cxx 
b/toolkit/source/controls/tkspinbutton.cxx
index 63e9171f3a8c..8c301f98a04e 100644
--- a/toolkit/source/controls/tkspinbutton.cxx
+++ b/toolkit/source/controls/tkspinbutton.cxx
@@ -75,7 +75,7 @@ private:
 
 public:
                                 UnoSpinButtonControl();
-    OUString             GetComponentServiceName() override;
+    OUString             GetComponentServiceName() const override;
 
     DECLARE_UNO3_AGG_DEFAULTS( UnoSpinButtonControl, UnoControlBase )
     css::uno::Any  SAL_CALL queryAggregation( const css::uno::Type & rType ) 
override;
@@ -201,7 +201,7 @@ public:
     }
 
 
-    OUString UnoSpinButtonControl::GetComponentServiceName()
+    OUString UnoSpinButtonControl::GetComponentServiceName() const
     {
         return "SpinButton";
     }
diff --git a/toolkit/source/controls/tree/treecontrol.cxx 
b/toolkit/source/controls/tree/treecontrol.cxx
index 76e3efd7a274..8a0dd61f2b33 100644
--- a/toolkit/source/controls/tree/treecontrol.cxx
+++ b/toolkit/source/controls/tree/treecontrol.cxx
@@ -125,7 +125,7 @@ class UnoTreeControl : public UnoTreeControl_Base
 {
 public:
     UnoTreeControl();
-    OUString GetComponentServiceName() override;
+    OUString GetComponentServiceName() const override;
 
     // css::lang::XComponent
     void SAL_CALL dispose(  ) override;
@@ -187,7 +187,7 @@ UnoTreeControl::UnoTreeControl()
 {
 }
 
-OUString UnoTreeControl::GetComponentServiceName()
+OUString UnoTreeControl::GetComponentServiceName() const
 {
     return "Tree";
 }
diff --git a/toolkit/source/controls/unocontrol.cxx 
b/toolkit/source/controls/unocontrol.cxx
index a87711ec025c..b1e80289902b 100644
--- a/toolkit/source/controls/unocontrol.cxx
+++ b/toolkit/source/controls/unocontrol.cxx
@@ -152,7 +152,7 @@ UnoControl::~UnoControl()
 {
 }
 
-OUString UnoControl::GetComponentServiceName()
+OUString UnoControl::GetComponentServiceName() const
 {
     return OUString();
 }
diff --git a/toolkit/source/controls/unocontrolbase.cxx 
b/toolkit/source/controls/unocontrolbase.cxx
index 8b9732bb1425..69cfbac5de66 100644
--- a/toolkit/source/controls/unocontrolbase.cxx
+++ b/toolkit/source/controls/unocontrolbase.cxx
@@ -100,7 +100,7 @@ void UnoControlBase::ImplSetPropertyValue( const OUString& 
aPropertyName, const
         ImplLockPropertyChangeNotification( aPropertyName, false );
 }
 
-css::uno::Any UnoControlBase::ImplGetPropertyValue( const OUString& 
aPropertyName )
+css::uno::Any UnoControlBase::ImplGetPropertyValue( const OUString& 
aPropertyName ) const
 {
     css::uno::Reference< css::beans::XPropertySet >  xPSet( mxModel, 
css::uno::UNO_QUERY );
     if ( xPSet.is() )
diff --git a/toolkit/source/controls/unocontrols.cxx 
b/toolkit/source/controls/unocontrols.cxx
index 3d528bd5e68b..143b866aeb30 100644
--- a/toolkit/source/controls/unocontrols.cxx
+++ b/toolkit/source/controls/unocontrols.cxx
@@ -187,7 +187,7 @@ void SAL_CALL UnoEditControl::release(  ) noexcept
 
 IMPLEMENT_FORWARD_XTYPEPROVIDER2( UnoEditControl, UnoControlBase, 
UnoEditControl_Base )
 
-OUString UnoEditControl::GetComponentServiceName()
+OUString UnoEditControl::GetComponentServiceName() const
 {
     // by default, we want a simple edit field
     OUString sName( "Edit" );
@@ -544,7 +544,7 @@ UnoFileControl::UnoFileControl()
 {
 }
 
-OUString UnoFileControl::GetComponentServiceName()
+OUString UnoFileControl::GetComponentServiceName() const
 {
     return "filecontrol";
 }
@@ -718,7 +718,7 @@ UnoButtonControl::UnoButtonControl()
     maComponentInfos.nHeight = 14;
 }
 
-OUString UnoButtonControl::GetComponentServiceName()
+OUString UnoButtonControl::GetComponentServiceName() const
 {
     OUString aName( "pushbutton" );
     uno::Any aVal = ImplGetPropertyValue( GetPropertyName( 
BASEPROPERTY_PUSHBUTTONTYPE ) );
@@ -972,7 +972,7 @@ UnoImageControlControl::UnoImageControlControl()
     maComponentInfos.nHeight = 100;
 }
 
-OUString UnoImageControlControl::GetComponentServiceName()
+OUString UnoImageControlControl::GetComponentServiceName() const
 {
     return "fixedimage";
 }
@@ -1099,7 +1099,7 @@ UnoRadioButtonControl::UnoRadioButtonControl()
     maComponentInfos.nHeight = 12;
 }
 
-OUString UnoRadioButtonControl::GetComponentServiceName()
+OUString UnoRadioButtonControl::GetComponentServiceName() const
 {
     return "radiobutton";
 }
@@ -1330,7 +1330,7 @@ UnoCheckBoxControl::UnoCheckBoxControl()
     maComponentInfos.nHeight = 12;
 }
 
-OUString UnoCheckBoxControl::GetComponentServiceName()
+OUString UnoCheckBoxControl::GetComponentServiceName() const
 {
     return "checkbox";
 }
@@ -1528,7 +1528,7 @@ UnoFixedHyperlinkControl::UnoFixedHyperlinkControl()
     maComponentInfos.nHeight = 12;
 }
 
-OUString UnoFixedHyperlinkControl::GetComponentServiceName()
+OUString UnoFixedHyperlinkControl::GetComponentServiceName() const
 {
     return "fixedhyperlink";
 }
@@ -1725,7 +1725,7 @@ UnoFixedTextControl::UnoFixedTextControl()
     maComponentInfos.nHeight = 12;
 }
 
-OUString UnoFixedTextControl::GetComponentServiceName()
+OUString UnoFixedTextControl::GetComponentServiceName() const
 {
     return "fixedtext";
 }
@@ -1889,7 +1889,7 @@ UnoGroupBoxControl::UnoGroupBoxControl()
     maComponentInfos.nHeight = 100;
 }
 
-OUString UnoGroupBoxControl::GetComponentServiceName()
+OUString UnoGroupBoxControl::GetComponentServiceName() const
 {
     return "groupbox";
 }
@@ -2476,7 +2476,7 @@ UnoListBoxControl::UnoListBoxControl()
     maComponentInfos.nHeight = 12;
 }
 
-OUString UnoListBoxControl::GetComponentServiceName()
+OUString UnoListBoxControl::GetComponentServiceName() const
 {
     return "listbox";
 }
@@ -2985,7 +2985,7 @@ css::uno::Sequence<OUString> 
UnoComboBoxControl::getSupportedServiceNames()
     return comphelper::concatSequences( 
UnoEditControl::getSupportedServiceNames(), vals);
 }
 
-OUString UnoComboBoxControl::GetComponentServiceName()
+OUString UnoComboBoxControl::GetComponentServiceName() const
 {
     return "combobox";
 }
@@ -3439,7 +3439,7 @@ UnoDateFieldControl::UnoDateFieldControl()
     mbLongFormat = TRISTATE_INDET;
 }
 
-OUString UnoDateFieldControl::GetComponentServiceName()
+OUString UnoDateFieldControl::GetComponentServiceName() const
 {
     return "datefield";
 }
@@ -3706,7 +3706,7 @@ UnoTimeFieldControl::UnoTimeFieldControl()
     mnLast = util::Time( 999999999, 59, 59, 23, false );
 }
 
-OUString UnoTimeFieldControl::GetComponentServiceName()
+OUString UnoTimeFieldControl::GetComponentServiceName() const
 {
     return "timefield";
 }
@@ -3933,7 +3933,7 @@ UnoNumericFieldControl::UnoNumericFieldControl()
     mnLast = 0x7FFFFFFF;
 }
 
-OUString UnoNumericFieldControl::GetComponentServiceName()
+OUString UnoNumericFieldControl::GetComponentServiceName() const
 {
     return "numericfield";
 }
@@ -4153,7 +4153,7 @@ UnoCurrencyFieldControl::UnoCurrencyFieldControl()
     mnLast = 0x7FFFFFFF;
 }
 
-OUString UnoCurrencyFieldControl::GetComponentServiceName()
+OUString UnoCurrencyFieldControl::GetComponentServiceName() const
 {
     return "longcurrencyfield";
 }
@@ -4368,7 +4368,7 @@ UnoPatternFieldControl::UnoPatternFieldControl()
 {
 }
 
-OUString UnoPatternFieldControl::GetComponentServiceName()
+OUString UnoPatternFieldControl::GetComponentServiceName() const
 {
     return "patternfield";
 }
@@ -4544,7 +4544,7 @@ UnoProgressBarControl::UnoProgressBarControl()
 {
 }
 
-OUString UnoProgressBarControl::GetComponentServiceName()
+OUString UnoProgressBarControl::GetComponentServiceName() const
 {
     return "ProgressBar";
 }
@@ -4704,7 +4704,7 @@ UnoFixedLineControl::UnoFixedLineControl()
     maComponentInfos.nHeight = 100;     // ??
 }
 
-OUString UnoFixedLineControl::GetComponentServiceName()
+OUString UnoFixedLineControl::GetComponentServiceName() const
 {
     return "FixedLine";
 }

Reply via email to