summaryrefslogtreecommitdiff
path: root/include/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-10-01 13:01:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-10-01 20:58:11 +0200
commit581efdec36787dc5e378e54d13e7328fddcf3a50 (patch)
tree29f04e719f8402028a4e26088a8ea825ebe9fdca /include/svtools
parente512b53ef8ae7945131876d32121fdbbdeb1de35 (diff)
loplugin:constmethod
Change-Id: I3ed657c5c5e6840e38e3c8505505b4b372125df0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122910 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svtools')
-rw-r--r--include/svtools/brwbox.hxx6
-rw-r--r--include/svtools/ctrlbox.hxx14
-rw-r--r--include/svtools/miscopt.hxx2
-rw-r--r--include/svtools/valueset.hxx2
4 files changed, 12 insertions, 12 deletions
diff --git a/include/svtools/brwbox.hxx b/include/svtools/brwbox.hxx
index 60e37de7d432..035334f5f77f 100644
--- a/include/svtools/brwbox.hxx
+++ b/include/svtools/brwbox.hxx
@@ -216,7 +216,7 @@ public:
private:
void StartRowDividerDrag( const Point& _rStartPos );
- bool ImplRowDividerHitTest( const BrowserMouseEvent& _rEvent );
+ bool ImplRowDividerHitTest( const BrowserMouseEvent& _rEvent ) const;
};
class BrowserMouseEvent: public MouseEvent, public BrowseEvent
@@ -442,12 +442,12 @@ protected:
// HACK(virtual create is not called in Ctor)
void SetHeaderBar( BrowserHeader* );
- tools::Long CalcReverseZoom(tools::Long nVal);
+ tools::Long CalcReverseZoom(tools::Long nVal) const;
const DataFlavorExVector&
GetDataFlavors() const;
- bool IsDropFormatSupported( SotClipboardFormatId nFormat ); // need this because the base class' IsDropFormatSupported is not const ...
+ bool IsDropFormatSupported( SotClipboardFormatId nFormat ) const; // need this because the base class' IsDropFormatSupported is not const ...
void DisposeAccessible();
diff --git a/include/svtools/ctrlbox.hxx b/include/svtools/ctrlbox.hxx
index 58a4b8c420af..a9ffc014bf2a 100644
--- a/include/svtools/ctrlbox.hxx
+++ b/include/svtools/ctrlbox.hxx
@@ -64,25 +64,25 @@ public:
}
/** Returns the computed width of the line 1 in twips. */
- tools::Long GetLine1ForWidth( tools::Long nWidth ) { return m_aWidthImpl.GetLine1( nWidth ); }
+ tools::Long GetLine1ForWidth( tools::Long nWidth ) const { return m_aWidthImpl.GetLine1( nWidth ); }
/** Returns the computed width of the line 2 in twips. */
- tools::Long GetLine2ForWidth( tools::Long nWidth ) { return m_aWidthImpl.GetLine2( nWidth ); }
+ tools::Long GetLine2ForWidth( tools::Long nWidth ) const { return m_aWidthImpl.GetLine2( nWidth ); }
/** Returns the computed width of the gap in twips. */
- tools::Long GetDistForWidth( tools::Long nWidth ) { return m_aWidthImpl.GetGap( nWidth ); }
+ tools::Long GetDistForWidth( tools::Long nWidth ) const { return m_aWidthImpl.GetGap( nWidth ); }
- Color GetColorLine1( const Color& rMain )
+ Color GetColorLine1( const Color& rMain ) const
{
return ( *m_pColor1Fn )( rMain );
}
- Color GetColorLine2( const Color& rMain )
+ Color GetColorLine2( const Color& rMain ) const
{
return ( *m_pColor2Fn )( rMain );
}
- Color GetColorDist( const Color& rMain, const Color& rDefault )
+ Color GetColorDist( const Color& rMain, const Color& rDefault ) const
{
return ( *m_pColorDistFn )( rMain, rDefault );
}
@@ -257,7 +257,7 @@ private:
DECL_LINK(NoneHdl, weld::Button&, void);
void UpdateEntries();
- sal_Int32 GetStylePos(sal_Int32 nListPos);
+ sal_Int32 GetStylePos(sal_Int32 nListPos) const;
const Color& GetPaintColor() const
{
diff --git a/include/svtools/miscopt.hxx b/include/svtools/miscopt.hxx
index 1b04df72195d..82b15340dc63 100644
--- a/include/svtools/miscopt.hxx
+++ b/include/svtools/miscopt.hxx
@@ -61,7 +61,7 @@ class SVT_DLLPUBLIC SvtMiscOptions final : public utl::detail::Options
OUString GetIconTheme() const;
void SetIconTheme(const OUString&);
- bool IconThemeWasSetAutomatically();
+ bool IconThemeWasSetAutomatically() const;
private:
diff --git a/include/svtools/valueset.hxx b/include/svtools/valueset.hxx
index 084008c79e2e..95caa8fffa9f 100644
--- a/include/svtools/valueset.hxx
+++ b/include/svtools/valueset.hxx
@@ -249,7 +249,7 @@ private:
SVT_DLLPRIVATE void ImplInsertItem( std::unique_ptr<ValueSetItem> pItem, const size_t nPos );
SVT_DLLPRIVATE tools::Rectangle ImplGetItemRect( size_t nPos ) const;
SVT_DLLPRIVATE void ImplFireAccessibleEvent( short nEventId, const css::uno::Any& rOldValue, const css::uno::Any& rNewValue );
- SVT_DLLPRIVATE bool ImplHasAccessibleListeners();
+ SVT_DLLPRIVATE bool ImplHasAccessibleListeners() const;
SVT_DLLPRIVATE void ImplTracking(const Point& rPos);
SVT_DLLPRIVATE void QueueReformat();
SVT_DLLPRIVATE void SetFirstLine(sal_uInt16 nNewFirstLine); // set mnFirstLine and update scrollbar to match