diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-11 09:39:03 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-11 14:01:00 +0200 |
commit | 7430dfe2a4a3b13ffa248bf14a3a2ca87993f48d (patch) | |
tree | 3b9607225ec2df9934b71df223c482ca7a069ff1 /include | |
parent | 3b835b8d546ca16d7edcb06eda017e276383ea0f (diff) |
loplugin:unusedmethods
Change-Id: I34009aabf0befb346470b5c0d96ad8fc476b7c4e
Reviewed-on: https://gerrit.libreoffice.org/60300
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/controlwrapper.hxx | 78 | ||||
-rw-r--r-- | include/sfx2/dialoghelper.hxx | 4 | ||||
-rw-r--r-- | include/sfx2/itemwrapper.hxx | 15 | ||||
-rw-r--r-- | include/svtools/ctrlbox.hxx | 9 | ||||
-rw-r--r-- | include/svtools/valueset.hxx | 6 | ||||
-rw-r--r-- | include/svx/SvxPresetListBox.hxx | 14 | ||||
-rw-r--r-- | include/svx/colorbox.hxx | 19 | ||||
-rw-r--r-- | include/svx/dlgctrl.hxx | 1 | ||||
-rw-r--r-- | include/svx/frmsel.hxx | 4 | ||||
-rw-r--r-- | include/svx/svdlayer.hxx | 1 | ||||
-rw-r--r-- | include/vcl/spinfld.hxx | 1 | ||||
-rw-r--r-- | include/vcl/window.hxx | 1 |
12 files changed, 0 insertions, 153 deletions
diff --git a/include/sfx2/controlwrapper.hxx b/include/sfx2/controlwrapper.hxx index 8de68755da48..bce078a487c3 100644 --- a/include/sfx2/controlwrapper.hxx +++ b/include/sfx2/controlwrapper.hxx @@ -259,7 +259,6 @@ public: virtual ValueT GetControlValue() const SAL_OVERRIDE; virtual void SetControlValue( ValueT nValue ) SAL_OVERRIDE; - bool IsControlValueChanged() const; private: FieldUnit meUnit; @@ -332,76 +331,6 @@ public: }; -// Multi control wrappers - - -struct MultiControlWrapperHelper_Impl; - -/** A container of control wrappers. - - Derived classes should define control wrapper members and register them in - their constructor, using the function RegisterControlWrapper(). - - This wrapper implements the abstract functions of the ControlWrapperBase - base class by calling the functions of all registered wrappers. - */ -class SFX2_DLLPUBLIC MultiControlWrapperHelper : public ControlWrapperBase -{ -public: - explicit MultiControlWrapperHelper(); - virtual ~MultiControlWrapperHelper() override; - - /** Registers a control wrapper (should be a member of a derived class). */ - void RegisterControlWrapper( ControlWrapperBase& rWrapper ); - - /** Enables, disables, shows, or hides the registered controls. */ - virtual void ModifyControl( TriState eShow ) override; - - /** Returns true if all registered controls are in "don't know" state. */ - virtual bool IsControlDontKnow() const override; - /** Sets all registered controls to "don't know" state. */ - virtual void SetControlDontKnow( bool bSet ) override; - -private: - std::unique_ptr< MultiControlWrapperHelper_Impl > mxImpl; -}; - - -/** A multi control wrapper with extended interface. - - This template class extends the MultiControlWrapperHelper class by the - functions GetControlValue() and SetControlValue(), known from the - SingleControlWrapper template. This makes it possible to use this template - in item connections expecting a single control wrapper. The type ValueT - should be able to contain the values of all controls handled in this - wrapper. In most cases, the easiest way to achieve this is to use the - related item type directly, using the IdentItemWrapper template - (itemwrapper.hxx). - */ -template< typename ValueT > -class MultiControlWrapper : public MultiControlWrapperHelper -{ -public: - typedef MultiControlWrapperHelper ControlType; - typedef ValueT ControlValueType; - - MultiControlWrapper() : maDefValue( 0 ){} - - /** Returns the default value that can be used in GetControlValue(). */ - const ValueT& GetDefaultValue() const { return maDefValue; } - /** Sets a default value that can be used in GetControlValue(). */ - void SetDefaultValue( const ValueT& rDefValue ) { maDefValue = rDefValue; } - - /** Derived classes return the value the control contains. */ - virtual ValueT GetControlValue() const = 0; - /** Derived classes set the contents of the control to the passed value. */ - virtual void SetControlValue( ValueT aValue ) = 0; - -private: - ValueT maDefValue; -}; - - // *** Implementation of template functions *** @@ -482,13 +411,6 @@ void MetricFieldWrapper< ValueT >::SetControlValue( ValueT nValue ) } template< typename ValueT > -bool MetricFieldWrapper< ValueT >::IsControlValueChanged() const -{ - return this->GetControl().IsValueChangedFromSaved(); -} - - -template< typename ValueT > ValueT ListBoxWrapper< ValueT >::GetControlValue() const { return this->GetValueFromPos( this->GetControl().GetSelectedEntryPos() ); diff --git a/include/sfx2/dialoghelper.hxx b/include/sfx2/dialoghelper.hxx index ed06d76b733d..b0d9ae5b5cfe 100644 --- a/include/sfx2/dialoghelper.hxx +++ b/include/sfx2/dialoghelper.hxx @@ -25,10 +25,6 @@ class VclBuilderContainer; //the preview appears in the same place in each one so flipping between tabs //isn't distracting as it jumps around -//there has to be a "maingrid" container which contains all the widgets -//except for the preview widget -void SFX2_DLLPUBLIC setPreviewsToSamePlace(vcl::Window const *pParent, VclBuilderContainer *pPage); - Size SFX2_DLLPUBLIC getParagraphPreviewOptimalSize(const OutputDevice& rReference); Size SFX2_DLLPUBLIC getDrawPreviewOptimalSize(const vcl::Window *pReference); diff --git a/include/sfx2/itemwrapper.hxx b/include/sfx2/itemwrapper.hxx index c20f088703ce..3f1bf7c5eb9f 100644 --- a/include/sfx2/itemwrapper.hxx +++ b/include/sfx2/itemwrapper.hxx @@ -145,21 +145,6 @@ typedef ValueItemWrapper< SfxUInt16Item, sal_uInt16 > UInt16ItemWrapper; typedef ValueItemWrapper< SfxInt32Item, sal_Int32 > Int32ItemWrapper; -/** An item wrapper that uses the item itself as value. */ -template< typename ItemT > -class IdentItemWrapper : public SingleItemWrapper< ItemT, const ItemT& > -{ -public: - explicit IdentItemWrapper( sal_uInt16 nSlot ) : - SingleItemWrapper< ItemT, const ItemT& >( nSlot ) {} - - virtual const ItemT& GetItemValue( const ItemT& rItem ) const SAL_OVERRIDE - { return rItem; } - virtual void SetItemValue( ItemT& rItem, const ItemT& rValue ) const SAL_OVERRIDE - { rItem = rValue; } -}; - - // *** Implementation of template functions *** diff --git a/include/svtools/ctrlbox.hxx b/include/svtools/ctrlbox.hxx index c1cc78eb7e9f..f3ce987ef6aa 100644 --- a/include/svtools/ctrlbox.hxx +++ b/include/svtools/ctrlbox.hxx @@ -220,12 +220,10 @@ public: sal_Int32 GetEntryPos( SvxBorderLineStyle nStyle ) const; SvxBorderLineStyle GetEntryStyle( sal_Int32 nPos ) const; - void SelectEntry( SvxBorderLineStyle nStyle, bool bSelect = true ); SvxBorderLineStyle GetSelectEntryStyle() const; void SetSourceUnit( FieldUnit eNewUnit ) { eSourceUnit = eNewUnit; } - void SetColor( const Color& rColor ); const Color& GetColor() const { return aColor; } private: @@ -258,13 +256,6 @@ private: FieldUnit eSourceUnit; }; -inline void LineListBox::SetColor( const Color& rColor ) -{ - aColor = rColor; - - UpdateEntries( m_nWidth ); -} - const Color& LineListBox::GetPaintColor() const { return maPaintCol; diff --git a/include/svtools/valueset.hxx b/include/svtools/valueset.hxx index f9499d2d0398..5c06a0aac22e 100644 --- a/include/svtools/valueset.hxx +++ b/include/svtools/valueset.hxx @@ -311,8 +311,6 @@ public: const OUString& rStr); /// Insert an User Drawn item. void InsertItem(sal_uInt16 nItemId, size_t nPos = VALUESET_APPEND); - /// Insert an User Drawn item with @rStr tooltip. - void InsertItem(sal_uInt16 nItemId, const OUString& rStr, size_t nPos); void RemoveItem(sal_uInt16 nItemId); void Clear(); @@ -344,10 +342,6 @@ public: { return mnSelItemId; } - size_t GetSelectItemPos() const - { - return GetItemPos( mnSelItemId ); - } bool IsItemSelected( sal_uInt16 nItemId ) const { return !mbNoSelection && (nItemId == mnSelItemId); diff --git a/include/svx/SvxPresetListBox.hxx b/include/svx/SvxPresetListBox.hxx index c886032f3b1e..2256c8062578 100644 --- a/include/svx/SvxPresetListBox.hxx +++ b/include/svx/SvxPresetListBox.hxx @@ -48,21 +48,7 @@ public: sal_uInt32 getColumnCount() const { return nColCount; } Size const & GetIconSize() const { return aIconSize; } - void SetRenameHdl( const Link<SvxPresetListBox*,void>& rLink ) - { - maRenameHdl = rLink; - } - void SetDeleteHdl( const Link<SvxPresetListBox*,void>& rLink ) - { - maDeleteHdl = rLink; - } - - void FillPresetListBox(XGradientList& pList, sal_uInt32 nStartIndex = 1); - void FillPresetListBox(XHatchList& pList, sal_uInt32 nStartIndex = 1); - void FillPresetListBox(XBitmapList& pList, sal_uInt32 nStartIndex = 1); - void FillPresetListBox(XPatternList& pList, sal_uInt32 nStartIndex = 1); void DrawLayout(); - }; class SVX_DLLPUBLIC PresetListBox : public SvtValueSet diff --git a/include/svx/colorbox.hxx b/include/svx/colorbox.hxx index 49985796bf4a..7053babc6799 100644 --- a/include/svx/colorbox.hxx +++ b/include/svx/colorbox.hxx @@ -139,25 +139,6 @@ public: void hide() { m_xButton->hide(); } }; -/** A wrapper for SvxColorListBox. */ -class SVX_DLLPUBLIC SvxColorListBoxWrapper - : public sfx::SingleControlWrapper<SvxColorListBox, Color> -{ - /* Note: cannot use 'const Color&' as template argument, because the - SvxColorListBox returns the color by value and not by reference, - therefore GetControlValue() must return a temporary object too. */ -public: - explicit SvxColorListBoxWrapper(SvxColorListBox& rListBox); - - virtual ~SvxColorListBoxWrapper() override; - - virtual bool IsControlDontKnow() const override; - virtual void SetControlDontKnow( bool bSet ) override; - - virtual Color GetControlValue() const override; - virtual void SetControlValue( Color aColor ) override; -}; - #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svx/dlgctrl.hxx b/include/svx/dlgctrl.hxx index 0d25a336b4ef..b087b97e6dcc 100644 --- a/include/svx/dlgctrl.hxx +++ b/include/svx/dlgctrl.hxx @@ -272,7 +272,6 @@ public: static long GetSquares() { return nSquares ; } long GetWidth() const { return aRectSize.getWidth() ; } long GetHeight() const { return aRectSize.getHeight() ; } - SvxTabPage* GetTabPage() const { return m_pPage; } //Device Pixel . long ShowPosition( const Point &pt); diff --git a/include/svx/frmsel.hxx b/include/svx/frmsel.hxx index db7fe5711765..99816c6086a7 100644 --- a/include/svx/frmsel.hxx +++ b/include/svx/frmsel.hxx @@ -103,8 +103,6 @@ public: sal_Int32 GetEnabledBorderCount() const; /** Returns the border type from the passed index (counts only enabled frame borders). */ FrameBorderType GetEnabledBorderType( sal_Int32 nIndex ) const; - /** Returns the index of a frame border (counts only enabled borders) from passed type. */ - sal_Int32 GetEnabledBorderIndex( FrameBorderType eBorder ) const; // frame border state and style @@ -177,8 +175,6 @@ public: css::uno::Reference< css::accessibility::XAccessible > GetChildAccessible( const Point& rPos ); - /** Returns true, if the passed point is inside the click area of any enabled frame border. */ - bool ContainsClickPoint( const Point& rPos ) const; /** Returns the bounding rectangle of the specified frame border (if enabled). */ tools::Rectangle GetClickBoundRect( FrameBorderType eBorder ) const; diff --git a/include/svx/svdlayer.hxx b/include/svx/svdlayer.hxx index 5959ba4dba55..2f2a32f33bd7 100644 --- a/include/svx/svdlayer.hxx +++ b/include/svx/svdlayer.hxx @@ -126,7 +126,6 @@ public: SdrLayerAdmin(const SdrLayerAdmin& rSrcLayerAdmin); ~SdrLayerAdmin(); SdrLayerAdmin& operator=(const SdrLayerAdmin& rSrcLayerAdmin); - SdrLayerAdmin* GetParent() const { return pParent; } void SetModel(SdrModel* pNewModel); diff --git a/include/vcl/spinfld.hxx b/include/vcl/spinfld.hxx index 02df5ded9066..482adf40e62c 100644 --- a/include/vcl/spinfld.hxx +++ b/include/vcl/spinfld.hxx @@ -52,7 +52,6 @@ public: void SetUpHdl( const Link<SpinField&,void>& rLink ) { maUpHdlLink = rLink; } void SetDownHdl( const Link<SpinField&,void>& rLink ) { maDownHdlLink = rLink; } - const Link<SpinField&,void>& GetDownHdl() const { return maDownHdlLink; } virtual Size CalcMinimumSize() const override; virtual Size CalcMinimumSizeForText(const OUString &rString) const override; diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx index 9ef90177388f..fc74f2918ab5 100644 --- a/include/vcl/window.hxx +++ b/include/vcl/window.hxx @@ -1197,7 +1197,6 @@ public: ShowTrackFlags nFlags = ShowTrackFlags::Small ); void HideTracking(); void InvertTracking( const tools::Rectangle& rRect, ShowTrackFlags nFlags ); - void InvertTracking( const tools::Polygon& rPoly, ShowTrackFlags nFlags ); void StartTracking( StartTrackingFlags nFlags = StartTrackingFlags::NONE ); void EndTracking( TrackingEventFlags nFlags = TrackingEventFlags::NONE ); |