summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-11-27 09:32:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-28 08:27:56 +0100
commit3abf4b91dad8fa549457e74185c000e06ba5f019 (patch)
tree55a8c9e0f2f4e2143c431154f789e418003e4c13 /cui
parentb15b1a2a90fa4c239ff8a6a33e73ff50ea422abf (diff)
loplugin:unusedmethods
Change-Id: Idbdf2d5d12fad894a3dfc3a86cae839502f42cf6 Reviewed-on: https://gerrit.libreoffice.org/64114 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/customize/cfgutil.cxx71
-rw-r--r--cui/source/inc/cfgutil.hxx8
2 files changed, 0 insertions, 79 deletions
diff --git a/cui/source/customize/cfgutil.cxx b/cui/source/customize/cfgutil.cxx
index 9505873dc68c..f0fa0ca6ab81 100644
--- a/cui/source/customize/cfgutil.cxx
+++ b/cui/source/customize/cfgutil.cxx
@@ -305,18 +305,6 @@ void SfxConfigFunctionListBox::ClearAll()
Clear();
}
-OUString SfxConfigFunctionListBox::GetSelectedScriptURI()
-{
- SvTreeListEntry *pEntry = FirstSelected();
- if ( pEntry )
- {
- SfxGroupInfo_Impl *pData = static_cast<SfxGroupInfo_Impl*>(pEntry->GetUserData());
- if ( pData && ( pData->nKind == SfxCfgKind::FUNCTION_SCRIPT ) )
- return *static_cast<OUString*>(pData->pObject);
- }
- return OUString();
-}
-
OUString SfxConfigFunctionListBox::GetHelpText( bool bConsiderParent )
{
SvTreeListEntry *pEntry = FirstSelected();
@@ -420,54 +408,6 @@ OUString CuiConfigFunctionListBox::GetSelectedScriptURI()
return OUString();
}
-OUString CuiConfigFunctionListBox::GetHelpText( bool bConsiderParent )
-{
- int nSelected = m_xTreeView->get_selected_index();
- if (nSelected != -1)
- {
- SfxGroupInfo_Impl *pData = reinterpret_cast<SfxGroupInfo_Impl*>(m_xTreeView->get_id(nSelected).toInt64());
- if ( pData )
- {
- if ( pData->nKind == SfxCfgKind::FUNCTION_SLOT )
- {
- if (bConsiderParent)
- return Application::GetHelp()->GetHelpText(pData->sCommand, m_xTreeView.get());
- else
- return Application::GetHelp()->GetHelpText(pData->sCommand, static_cast<weld::Widget*>(nullptr));
- }
- else if ( pData->nKind == SfxCfgKind::FUNCTION_SCRIPT )
- {
- return pData->sHelpText;
- }
- }
- }
- return OUString();
-}
-
-OUString CuiConfigFunctionListBox::GetCurCommand()
-{
- int nSelected = m_xTreeView->get_selected_index();
- if (nSelected == -1)
- return OUString();
- SfxGroupInfo_Impl *pData = reinterpret_cast<SfxGroupInfo_Impl*>(m_xTreeView->get_id(nSelected).toInt64());
- if (!pData)
- return OUString();
- return pData->sCommand;
-}
-
-OUString CuiConfigFunctionListBox::GetCurLabel()
-{
- int nSelected = m_xTreeView->get_selected_index();
- if (nSelected == -1)
- return OUString();
- SfxGroupInfo_Impl *pData = reinterpret_cast<SfxGroupInfo_Impl*>(m_xTreeView->get_id(nSelected).toInt64());
- if (!pData)
- return OUString();
- if (!pData->sLabel.isEmpty())
- return pData->sLabel;
- return pData->sCommand;
-}
-
struct SvxConfigGroupBoxResource_Impl
{
Image m_hdImage;
@@ -1312,11 +1252,6 @@ void CuiConfigGroupListBox::ClearAll()
m_xTreeView->clear();
}
-void CuiConfigGroupListBox::SetStylesInfo(SfxStylesInfo_Impl* pStyles)
-{
- m_pStylesInfo = pStyles;
-}
-
void CuiConfigGroupListBox::InitModule()
{
try
@@ -1845,12 +1780,6 @@ IMPL_LINK(CuiConfigGroupListBox, ExpandingHdl, weld::TreeIter&, rIter, bool)
return true;
}
-void CuiConfigGroupListBox::SelectMacro( const SfxMacroInfoItem *pItem )
-{
- SelectMacro( pItem->GetBasicManager()->GetName(),
- pItem->GetQualifiedName() );
-}
-
void CuiConfigGroupListBox::SelectMacro( const OUString& rBasic,
const OUString& rMacro )
{
diff --git a/cui/source/inc/cfgutil.hxx b/cui/source/inc/cfgutil.hxx
index 1fb47405fd8f..a0ed8437e750 100644
--- a/cui/source/inc/cfgutil.hxx
+++ b/cui/source/inc/cfgutil.hxx
@@ -120,7 +120,6 @@ public:
using Window::GetHelpText;
OUString GetCurCommand();
OUString GetCurLabel();
- OUString GetSelectedScriptURI();
OUString GetHelpText( bool bConsiderParent = true );
};
@@ -147,8 +146,6 @@ public:
void select(int pos) { m_xTreeView->select(pos); }
std::unique_ptr<weld::TreeIter> make_iterator(const weld::TreeIter* pOrig = nullptr) const { return m_xTreeView->make_iterator(pOrig); }
bool get_iter_first(weld::TreeIter& rIter) const { return m_xTreeView->get_iter_first(rIter); }
- // set iter to point to next node at the current level
- bool iter_next_sibling(weld::TreeIter& rIter) const { return m_xTreeView->iter_next_sibling(rIter); }
// set iter to point to next node, depth first, then sibling
bool iter_next(weld::TreeIter& rIter) const { return m_xTreeView->iter_next(rIter); }
OUString get_text(const weld::TreeIter& rIter) const { return m_xTreeView->get_text(rIter); }
@@ -158,10 +155,7 @@ public:
~CuiConfigFunctionListBox();
void ClearAll();
- OUString GetCurCommand();
- OUString GetCurLabel();
OUString GetSelectedScriptURI();
- OUString GetHelpText( bool bConsiderParent = true );
};
struct SvxConfigGroupBoxResource_Impl;
@@ -266,9 +260,7 @@ public:
void SetFunctionListBox( CuiConfigFunctionListBox *pBox )
{ m_pFunctionListBox = pBox; }
void GroupSelected();
- void SelectMacro( const SfxMacroInfoItem* );
void SelectMacro( const OUString&, const OUString& );
- void SetStylesInfo(SfxStylesInfo_Impl* pStyles);
};
class SvxScriptSelectorDialog : public ModalDialog