summaryrefslogtreecommitdiff
path: root/cui/source/customize
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-22 14:20:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-23 09:01:00 +0200
commit75ddf3a22aa83d1b067085bd7132acab5a088856 (patch)
treef7b9c3c0a8ab9eab7ac768236c4de3c463e9dc67 /cui/source/customize
parent55ff9d3e2d160132f905b8c932b622c0c8575478 (diff)
loplugin:unusedfields in cui
Change-Id: I6d3ef43ab915d65794f1052f1f184eda10d39e1a Reviewed-on: https://gerrit.libreoffice.org/39136 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui/source/customize')
-rw-r--r--cui/source/customize/acccfg.cxx13
-rw-r--r--cui/source/customize/cfgutil.cxx8
-rw-r--r--cui/source/customize/eventdlg.cxx4
-rw-r--r--cui/source/customize/eventdlg.hxx2
4 files changed, 0 insertions, 27 deletions
diff --git a/cui/source/customize/acccfg.cxx b/cui/source/customize/acccfg.cxx
index b80b6e054455..23bb736d3319 100644
--- a/cui/source/customize/acccfg.cxx
+++ b/cui/source/customize/acccfg.cxx
@@ -720,8 +720,6 @@ void SfxAccCfgTabListBox_Impl::KeyInput(const KeyEvent& aKey)
SfxAcceleratorConfigPage::SfxAcceleratorConfigPage( vcl::Window* pParent, const SfxItemSet& aSet )
: SfxTabPage(pParent, "AccelConfigPage", "cui/ui/accelconfigpage.ui", &aSet)
, m_pMacroInfoItem()
- , m_pStringItem()
- , m_pFontItem()
, m_pFileDlg(nullptr)
, aLoadAccelConfigStr(CuiResId(RID_SVXSTR_LOADACCELCONFIG))
, aSaveAccelConfigStr(CuiResId(RID_SVXSTR_SAVEACCELCONFIG))
@@ -923,7 +921,6 @@ void SfxAcceleratorConfigPage::Init(const uno::Reference<ui::XAcceleratorConfigu
xModel = xController->getModel();
m_aStylesInfo.init(m_sModuleLongName, xModel);
- m_pFunctionBox->SetStylesInfo(&m_aStylesInfo);
m_pGroupLBox->SetStylesInfo(&m_aStylesInfo);
m_bStylesInfoInitialized = true;
}
@@ -1429,16 +1426,6 @@ void SfxAcceleratorConfigPage::Reset( const SfxItemSet* rSet )
m_pMacroInfoItem = &dynamic_cast<const SfxMacroInfoItem&>(*pMacroItem);
m_pGroupLBox->SelectMacro( m_pMacroInfoItem );
}
- else
- {
- const SfxPoolItem* pStringItem=nullptr;
- if( SfxItemState::SET == rSet->GetItemState( SID_CHARMAP, true, &pStringItem ) )
- m_pStringItem = dynamic_cast<const SfxStringItem*>( pStringItem );
-
- const SfxPoolItem* pFontItem=nullptr;
- if( SfxItemState::SET == rSet->GetItemState( SID_ATTR_SPECIALCHAR, true, &pFontItem ) )
- m_pFontItem = dynamic_cast<const SfxStringItem*>( pFontItem );
- }
}
diff --git a/cui/source/customize/cfgutil.cxx b/cui/source/customize/cfgutil.cxx
index 6e2019ba1ce8..37567adb9591 100644
--- a/cui/source/customize/cfgutil.cxx
+++ b/cui/source/customize/cfgutil.cxx
@@ -249,7 +249,6 @@ std::vector< SfxStyleInfo_Impl > SfxStylesInfo_Impl::getStyles(const OUString& s
SfxConfigFunctionListBox::SfxConfigFunctionListBox(vcl::Window* pParent, WinBits nStyle)
: SvTreeListBox( pParent, nStyle )
- , pStylesInfo( nullptr )
{
SetStyle( GetStyle() | WB_CLIPCHILDREN | WB_HSCROLL | WB_SORT );
GetModel()->SetSortMode( SortAscending );
@@ -360,11 +359,6 @@ OUString SfxConfigFunctionListBox::GetCurLabel()
return pData->sCommand;
}
-void SfxConfigFunctionListBox::SetStylesInfo(SfxStylesInfo_Impl* pStyles)
-{
- pStylesInfo = pStyles;
-}
-
struct SvxConfigGroupBoxResource_Impl
{
Image m_hdImage;
@@ -1046,7 +1040,6 @@ void SfxConfigGroupListBox::RequestingChildren( SvTreeListEntry *pEntry )
*/
{
SfxGroupInfo_Impl *pInfo = static_cast<SfxGroupInfo_Impl*>(pEntry->GetUserData());
- pInfo->bWasOpened = true;
switch ( pInfo->nKind )
{
case SfxCfgKind::GROUP_SCRIPTCONTAINER:
@@ -1212,7 +1205,6 @@ SvxScriptSelectorDialog::SvxScriptSelectorDialog(
xModel = xController->getModel();
m_aStylesInfo.init(aModuleName, xModel);
- m_pCommands->SetStylesInfo(&m_aStylesInfo);
m_pCategories->SetStylesInfo(&m_aStylesInfo);
UpdateUI();
diff --git a/cui/source/customize/eventdlg.cxx b/cui/source/customize/eventdlg.cxx
index 4053836ce02d..78bbdf3d95f3 100644
--- a/cui/source/customize/eventdlg.cxx
+++ b/cui/source/customize/eventdlg.cxx
@@ -58,7 +58,6 @@ SvxEventConfigPage::SvxEventConfigPage(vcl::Window *pParent, const SfxItemSet& r
SvxEventConfigPage::EarlyInit)
: SvxMacroTabPage_(pParent, "EventsConfigPage",
"cui/ui/eventsconfigpage.ui", rSet)
- , bAppConfig(true)
{
get(m_pSaveInListBox, "savein");
@@ -157,8 +156,6 @@ void SvxEventConfigPage::ImplInitDocument()
m_pSaveInListBox->SetEntryData( nPos, new bool(false) );
m_pSaveInListBox->SelectEntryPos( nPos );
-
- bAppConfig = false;
}
}
catch( const uno::Exception& )
@@ -173,7 +170,6 @@ IMPL_LINK_NOARG( SvxEventConfigPage, SelectHdl_Impl, ListBox&, void )
m_pSaveInListBox->GetSelectEntryPos()));
mpImpl->pEventLB->SetUpdateMode( false );
- bAppConfig = *bApp;
if ( *bApp )
{
SetReadOnly( false );
diff --git a/cui/source/customize/eventdlg.hxx b/cui/source/customize/eventdlg.hxx
index 764972a0c8a0..0b0a00b50976 100644
--- a/cui/source/customize/eventdlg.hxx
+++ b/cui/source/customize/eventdlg.hxx
@@ -35,8 +35,6 @@ class SvxEventConfigPage : public SvxMacroTabPage_
css::uno::Reference< css::container::XNameReplace > m_xDocumentEvents;
css::uno::Reference< css::util::XModifiable > m_xDocumentModifiable;
- bool bAppConfig;
-
DECL_LINK( SelectHdl_Impl, ListBox&, void );
SvxEventConfigPage (const SvxEventConfigPage &) = delete;