diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-06-11 10:11:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-06-11 14:38:37 +0200 |
commit | d4d037619638e1915d15dba81c38a1c9b3157972 (patch) | |
tree | 93260b9952c2be6dbb56c7c67eccfb4960608627 /include | |
parent | 807d4382cb021d2ac3ea99d6757a7b368a32941d (diff) |
loplugin:unusedmethods
Change-Id: I26a0da1ec9cda9030371977596053a45303756a0
Reviewed-on: https://gerrit.libreoffice.org/55609
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/outliner.hxx | 1 | ||||
-rw-r--r-- | include/sfx2/sidebar/Sidebar.hxx | 10 | ||||
-rw-r--r-- | include/svtools/valueset.hxx | 54 | ||||
-rw-r--r-- | include/svx/SvxColorValueSet.hxx | 2 | ||||
-rw-r--r-- | include/svx/dialcontrol.hxx | 9 | ||||
-rw-r--r-- | include/svx/paraprev.hxx | 28 | ||||
-rw-r--r-- | include/svx/swframeexample.hxx | 3 |
7 files changed, 0 insertions, 107 deletions
diff --git a/include/editeng/outliner.hxx b/include/editeng/outliner.hxx index 3c0126f3b31b..03743cd362ee 100644 --- a/include/editeng/outliner.hxx +++ b/include/editeng/outliner.hxx @@ -910,7 +910,6 @@ public: // Deprecated void SetDefaultLanguage( LanguageType eLang ); - LanguageType GetDefaultLanguage() const; void CompleteOnlineSpelling(); diff --git a/include/sfx2/sidebar/Sidebar.hxx b/include/sfx2/sidebar/Sidebar.hxx index c9feb77a54b6..b2808dd28b3d 100644 --- a/include/sfx2/sidebar/Sidebar.hxx +++ b/include/sfx2/sidebar/Sidebar.hxx @@ -41,16 +41,6 @@ public: const OUString& rsPanelId, const css::uno::Reference<css::frame::XFrame>& rxFrame, bool bFocus = false); - /** Switch to the deck that contains the specified panel and toggle - the visibility of the panel (expanded and scrolled into the - visible area when visible) - Note that most of the work is done asynchronously and that - this function probably returns before the requested panel is visible. - */ - static void TogglePanel ( - const OUString& rsPanelId, - const css::uno::Reference<css::frame::XFrame>& rxFrame); - static bool IsPanelVisible( const OUString& rsPanelId, const css::uno::Reference<css::frame::XFrame>& rxFrame); diff --git a/include/svtools/valueset.hxx b/include/svtools/valueset.hxx index 9d831bdeaafe..bbf6648dfae1 100644 --- a/include/svtools/valueset.hxx +++ b/include/svtools/valueset.hxx @@ -453,16 +453,12 @@ private: friend class SvtValueSetAcc; friend class SvtValueItemAcc; - SVT_DLLPRIVATE void ImplInitSettings( bool bFont, bool bForeground, bool bBackground ); - - SVT_DLLPRIVATE void ImplInitScrollBar(); SVT_DLLPRIVATE void ImplDeleteItems(); SVT_DLLPRIVATE void ImplFormatItem(vcl::RenderContext const & rRenderContext, SvtValueSetItem* pItem, tools::Rectangle aRect); SVT_DLLPRIVATE void ImplDrawItemText(vcl::RenderContext& rRenderContext, const OUString& rStr); SVT_DLLPRIVATE void ImplDrawSelect(vcl::RenderContext& rRenderContext, sal_uInt16 nItemId, const bool bFocus, const bool bDrawSel); SVT_DLLPRIVATE void ImplDrawSelect(vcl::RenderContext& rRenderContext); SVT_DLLPRIVATE void ImplDraw(vcl::RenderContext& rRenderContext); - SVT_DLLPRIVATE bool ImplScroll( const Point& rPos ); SVT_DLLPRIVATE size_t ImplGetItem( const Point& rPoint ) const; SVT_DLLPRIVATE SvtValueSetItem* ImplGetItem( size_t nPos ); SVT_DLLPRIVATE SvtValueSetItem* ImplGetFirstItem(); @@ -501,102 +497,52 @@ public: void SetStyle(WinBits nStyle) { mnStyle = nStyle; } WinBits GetStyle() const { return mnStyle; } - /// Insert @rImage item. - void InsertItem(sal_uInt16 nItemId, const Image& rImage); - /// Insert @rImage item with @rStr as either a legend or tooltip depending on @bShowLegend. - void InsertItem(sal_uInt16 nItemId, const Image& rImage, - const OUString& rStr, size_t nPos = VALUESET_APPEND, bool bShowLegend = false); /// Insert an @rColor item with @rStr tooltip. void InsertItem(sal_uInt16 nItemId, const Color& rColor, 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(); size_t GetItemCount() const; size_t GetItemPos( sal_uInt16 nItemId ) const; sal_uInt16 GetItemId( size_t nPos ) const; sal_uInt16 GetItemId( const Point& rPos ) const; tools::Rectangle GetItemRect( sal_uInt16 nItemId ) const; - void EnableFullItemMode( bool bFullMode ); void SetColCount( sal_uInt16 nNewCols = 1 ); - sal_uInt16 GetColCount() const - { - return mnUserCols; - } void SetLineCount( sal_uInt16 nNewLines = 0 ); - sal_uInt16 GetLineCount() const - { - return mnUserVisLines; - } void SetItemWidth( long nItemWidth ); void SetItemHeight( long nLineHeight ); - Size GetLargestItemSize(); - void RecalculateItemSizes(); void SelectItem( sal_uInt16 nItemId ); sal_uInt16 GetSelectedItemId() const { return mnSelItemId; } - size_t GetSelectItemPos() const - { - return GetItemPos( mnSelItemId ); - } bool IsItemSelected( sal_uInt16 nItemId ) const { return !mbNoSelection && (nItemId == mnSelItemId); } void SetNoSelection(); - bool IsNoSelection() const - { - return mbNoSelection; - } - void SetItemImage( sal_uInt16 nItemId, const Image& rImage ); - Image GetItemImage( sal_uInt16 nItemId ) const; - void SetItemColor( sal_uInt16 nItemId, const Color& rColor ); Color GetItemColor( sal_uInt16 nItemId ) const; - void SetItemData( sal_uInt16 nItemId, void* pData ); - void* GetItemData( sal_uInt16 nItemId ) const; - void SetItemText( sal_uInt16 nItemId, const OUString& rStr ); OUString GetItemText( sal_uInt16 nItemId ) const; void SetColor( const Color& rColor ); - void SetColor() - { - SetColor(COL_TRANSPARENT); - } bool IsColor() const { return maColor.GetTransparency() == 0; } - void SetExtraSpacing( sal_uInt16 nNewSpacing ); - void Format(vcl::RenderContext const & rRenderContext); - void SetFormat(); Size CalcWindowSizePixel(const Size& rItemSize, sal_uInt16 nCalcCols = 0, sal_uInt16 nCalcLines = 0) const; Size CalcItemSizePixel(const Size& rSize) const; - void SetSelectHdl(const Link<SvtValueSet*,void>& rLink) - { - maSelectHdl = rLink; - } void SetDoubleClickHdl(const Link<SvtValueSet*,void>& rLink) { maDoubleClickHdl = rLink; } - void SetHighlightHdl(const Link<SvtValueSet*,void>& rLink); - bool GetEdgeBlending() const { return mbEdgeBlending; diff --git a/include/svx/SvxColorValueSet.hxx b/include/svx/SvxColorValueSet.hxx index 32026c351814..e08de01f6cb2 100644 --- a/include/svx/SvxColorValueSet.hxx +++ b/include/svx/SvxColorValueSet.hxx @@ -50,8 +50,6 @@ public: virtual void Resize() override; void addEntriesForXColorList(const XColorList& rXColorList, sal_uInt32 nStartIndex = 1); - void addEntriesForColorSet(const std::set<Color>& rColorSet, const OUString& rNamePrefix); - Size layoutAllVisible(sal_uInt32 nEntryCount); Size layoutToGivenHeight(sal_uInt32 nHeight, sal_uInt32 nEntryCount); }; diff --git a/include/svx/dialcontrol.hxx b/include/svx/dialcontrol.hxx index 19744fce1488..6a8d3fa5bf7b 100644 --- a/include/svx/dialcontrol.hxx +++ b/include/svx/dialcontrol.hxx @@ -178,12 +178,6 @@ public: virtual void Resize() override; const OUString& GetText() const { return m_aText; } - void SetText(const OUString& rText) { m_aText = rText; } - - /** Returns true, if the control is not in "don't care" state. */ - bool HasRotation() const; - /** Sets the control to "don't care" state. */ - void SetNoRotation(); /** Returns the current rotation angle in 1/100 degrees. */ sal_Int32 GetRotation() const; @@ -198,9 +192,6 @@ public: */ void SetLinkedField(weld::SpinButton* pField, sal_Int32 nDecimalPlaces = 0); - /** The passed handler is called whenever the rotation value changes. */ - void SetModifyHdl( const Link<SvxDialControl*,void>& rLink ); - /** Save value for later comparison */ void SaveValue(); diff --git a/include/svx/paraprev.hxx b/include/svx/paraprev.hxx index 59c07e5eacfd..8b2628578733 100644 --- a/include/svx/paraprev.hxx +++ b/include/svx/paraprev.hxx @@ -102,10 +102,6 @@ public: { aText = rStr; } - void SetSize( Size aNew ) - { - aSize = aNew; - } OUString GetText() const override { return aText; @@ -140,10 +136,6 @@ class SVX_DLLPUBLIC ParaPrevWindow final : public weld::CustomWidgetController public: ParaPrevWindow(); - void SetFirstLineOfst( short nNew ) - { - nFirstLineOfst = nNew; - } void SetLeftMargin( long nNew ) { nLeftMargin = nNew; @@ -152,14 +144,6 @@ public: { nRightMargin = nNew; } - void SetUpper( sal_uInt16 nNew ) - { - nUpper = nNew; - } - void SetLower( sal_uInt16 nNew ) - { - nLower = nNew; - } void SetAdjust( SvxAdjust eNew ) { eAdjust = eNew; @@ -168,22 +152,10 @@ public: { eLastLine = eNew; } - void SetLineSpace( SvxPrevLineSpace eNew ) - { - eLine = eNew; - } - void SetText( const OUString& rStr ) - { - aText = rStr; - } void SetSize( Size aNew ) { aSize = aNew; } - OUString GetText() const - { - return aText; - } }; diff --git a/include/svx/swframeexample.hxx b/include/svx/swframeexample.hxx index c2fbd5cdc198..6145636ab3a1 100644 --- a/include/svx/swframeexample.hxx +++ b/include/svx/swframeexample.hxx @@ -135,15 +135,12 @@ public: virtual void SetDrawingArea(weld::DrawingArea* pDrawingArea) override; - void SetWrap(css::text::WrapTextMode nW) { nWrap = nW; } - void SetHAlign(short nH) { nHAlign = nH; } void SetHoriRel(short nR) { nHRel = nR; } void SetVAlign(short nV) { nVAlign = nV; } void SetVertRel(short nR) { nVRel = nR; } - void SetTransparent(bool bT) { bTrans = bT; } void SetAnchor(RndStdIds nA) { nAnchor = nA; } void SetRelPos(const Point& rP); |