summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2022-03-05 09:16:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-03-05 15:19:15 +0100
commit492098417a590521506e41c05d3ab0f09628d39a (patch)
tree683c9b58fc58c220f056c01c4781b18588553cc8 /toolkit
parenteaeb8b56a4e450917001919be0848bad115293a1 (diff)
GetComponentServiceName can be const
Change-Id: Iac61eec0b27660dd2ff45f70c92de5a8cdc2c301 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131044 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/inc/controls/dialogcontrol.hxx8
-rw-r--r--toolkit/inc/controls/formattedcontrol.hxx2
-rw-r--r--toolkit/inc/controls/roadmapcontrol.hxx2
-rw-r--r--toolkit/inc/controls/tabpagecontainer.hxx2
-rw-r--r--toolkit/inc/controls/tabpagemodel.hxx2
-rw-r--r--toolkit/inc/controls/tkscrollbar.hxx2
-rw-r--r--toolkit/source/controls/animatedimages.cxx4
-rw-r--r--toolkit/source/controls/dialogcontrol.cxx8
-rw-r--r--toolkit/source/controls/formattedcontrol.cxx2
-rw-r--r--toolkit/source/controls/grid/gridcontrol.cxx2
-rw-r--r--toolkit/source/controls/grid/gridcontrol.hxx2
-rw-r--r--toolkit/source/controls/roadmapcontrol.cxx2
-rw-r--r--toolkit/source/controls/tabpagecontainer.cxx2
-rw-r--r--toolkit/source/controls/tabpagemodel.cxx2
-rw-r--r--toolkit/source/controls/tkscrollbar.cxx2
-rw-r--r--toolkit/source/controls/tkspinbutton.cxx4
-rw-r--r--toolkit/source/controls/tree/treecontrol.cxx4
-rw-r--r--toolkit/source/controls/unocontrol.cxx2
-rw-r--r--toolkit/source/controls/unocontrolbase.cxx2
-rw-r--r--toolkit/source/controls/unocontrols.cxx36
20 files changed, 46 insertions, 46 deletions
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";
}