diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-05-09 13:00:48 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-05-09 14:31:12 +0200 |
commit | 7f6d5dfb2244468e2faa7be05d4258692c6e84dc (patch) | |
tree | 8c03b0980c003a66f2a2683920c1557a3ada6e8e /formula/source/ui | |
parent | b4009daccd11e416865efd5fd3c205c46691bb12 (diff) |
loplugin:unusedmethods
Change-Id: I7b4d2e5e611935284e2902b0089950768dfb7717
Reviewed-on: https://gerrit.libreoffice.org/72036
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'formula/source/ui')
-rw-r--r-- | formula/source/ui/dlg/funcpage.hxx | 2 | ||||
-rw-r--r-- | formula/source/ui/dlg/funcutl.cxx | 20 | ||||
-rw-r--r-- | formula/source/ui/dlg/structpg.cxx | 19 | ||||
-rw-r--r-- | formula/source/ui/dlg/structpg.hxx | 16 |
4 files changed, 0 insertions, 57 deletions
diff --git a/formula/source/ui/dlg/funcpage.hxx b/formula/source/ui/dlg/funcpage.hxx index 1b5b92b6b2fb..661312267147 100644 --- a/formula/source/ui/dlg/funcpage.hxx +++ b/formula/source/ui/dlg/funcpage.hxx @@ -86,9 +86,7 @@ public: void SetSelectHdl( const Link<FuncPage&,void>& rLink ) { aSelectionLink = rLink; } - void Show() { m_xContainer->show(); } bool IsVisible() { return m_xContainer->get_visible(); } - void Hide() { m_xContainer->hide(); } }; } // formula diff --git a/formula/source/ui/dlg/funcutl.cxx b/formula/source/ui/dlg/funcutl.cxx index 2aeb01ab0ae4..8cf4b2155d3d 100644 --- a/formula/source/ui/dlg/funcutl.cxx +++ b/formula/source/ui/dlg/funcutl.cxx @@ -308,26 +308,6 @@ void RefEdit::SetRefString( const OUString& rStr ) Edit::SetText( rStr ); } -void RefEdit::SetRefValid(bool bValid) -{ - if (bValid) - { - SetControlForeground(); - SetControlBackground(); - } - else - { -#if 0 - // Setting background color has no effect here so we'd end up with - // white on white! - SetControlForeground(COL_WHITE); - SetControlBackground(0xff6563); -#else - SetControlForeground( ::Color( 0xf0, 0, 0 ) ); -#endif - } -} - void RefEdit::SetText(const OUString& rStr) { Edit::SetText( rStr ); diff --git a/formula/source/ui/dlg/structpg.cxx b/formula/source/ui/dlg/structpg.cxx index d83712f46576..fcb536449b21 100644 --- a/formula/source/ui/dlg/structpg.cxx +++ b/formula/source/ui/dlg/structpg.cxx @@ -32,25 +32,6 @@ namespace formula { -StructListBox::StructListBox(vcl::Window* pParent, WinBits nBits ): - SvTreeListBox(pParent, nBits) -{ - vcl::Font aFont( GetFont() ); - Size aSize = aFont.GetFontSize(); - aSize.AdjustHeight(-2); - aFont.SetFontSize( aSize ); - SetFont( aFont ); -} - -SvTreeListEntry* StructListBox::InsertStaticEntry( - const OUString& rText, - const Image& rEntryImg, - SvTreeListEntry* pParent, sal_uLong nPos, const FormulaToken* pToken ) -{ - SvTreeListEntry* pEntry = InsertEntry( rText, rEntryImg, rEntryImg, pParent, false, nPos, - const_cast<FormulaToken*>(pToken) ); - return pEntry; -} void StructPage::SetActiveFlag(bool bFlag) { diff --git a/formula/source/ui/dlg/structpg.hxx b/formula/source/ui/dlg/structpg.hxx index 389c907b7800..531fb366c4d8 100644 --- a/formula/source/ui/dlg/structpg.hxx +++ b/formula/source/ui/dlg/structpg.hxx @@ -30,20 +30,6 @@ namespace formula { class FormulaToken; -class StructListBox : public SvTreeListBox -{ -public: - - StructListBox(vcl::Window* pParent, WinBits nBits ); - - /** Inserts an entry with static image (no difference between collapsed/expanded). */ - SvTreeListEntry* InsertStaticEntry( - const OUString& rText, - const Image& rEntryImg, - SvTreeListEntry* pParent, - sal_uLong nPos, - const FormulaToken* pToken ); -}; class StructPage final @@ -85,9 +71,7 @@ public: weld::TreeView& GetTlbStruct() const { return *m_xTlbStruct; } - void Show() { m_xContainer->show(); } bool IsVisible() { return m_xContainer->get_visible(); } - void Hide() { m_xContainer->hide(); } }; } // formula |