summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-03-13 14:21:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-03-14 08:48:04 +0100
commit527977d5cac51a9edd522d675f0ccf575d2f2dc0 (patch)
tree3bcdc4dd578315c31e377ce90c149b5984d49811 /sw/source
parent5f40c324b5578b23735d2d7fe30b0b7731867fba (diff)
loplugin:unusedfields
Change-Id: Id6792f0955a25533d33f6da6ed8c3e993f578c3f Reviewed-on: https://gerrit.libreoffice.org/69170 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/uibase/inc/numfmtlb.hxx3
-rw-r--r--sw/source/uibase/utlui/numfmtlb.cxx12
2 files changed, 3 insertions, 12 deletions
diff --git a/sw/source/uibase/inc/numfmtlb.hxx b/sw/source/uibase/inc/numfmtlb.hxx
index 358cf2babc3f..15749c65ec84 100644
--- a/sw/source/uibase/inc/numfmtlb.hxx
+++ b/sw/source/uibase/inc/numfmtlb.hxx
@@ -71,11 +71,8 @@ class SW_DLLPUBLIC SwNumFormatListBox
SvNumFormatType nCurrFormatType;
bool mbCurrFormatTypeNeedsInit;
sal_Int32 nStdEntry;
- bool bOneArea;
sal_uInt32 nDefFormat;
LanguageType eCurLanguage;
- bool bShowLanguageControl; //determine whether the language control has
- //to be shown in the number format dialog
bool bUseAutomaticLanguage;//determine whether language is automatically assigned
std::unique_ptr<weld::ComboBox> mxControl;
diff --git a/sw/source/uibase/utlui/numfmtlb.cxx b/sw/source/uibase/utlui/numfmtlb.cxx
index d1748e953da9..a7766a505a1b 100644
--- a/sw/source/uibase/utlui/numfmtlb.cxx
+++ b/sw/source/uibase/utlui/numfmtlb.cxx
@@ -458,9 +458,7 @@ SwNumFormatListBox::SwNumFormatListBox(std::unique_ptr<weld::ComboBox> xControl)
: nCurrFormatType(SvNumFormatType::ALL)
, mbCurrFormatTypeNeedsInit(true)
, nStdEntry(0)
- , bOneArea(false)
, nDefFormat(0)
- , bShowLanguageControl(false)
, bUseAutomaticLanguage(true)
, mxControl(std::move(xControl))
{
@@ -716,9 +714,9 @@ void SwNumFormatListBox::CallSelectHdl()
SID_ATTR_NUMBERFORMAT_INFO ) );
if( (SvNumFormatType::DATE | SvNumFormatType::TIME) & nCurrFormatType )
- aCoreSet.Put(SfxBoolItem(SID_ATTR_NUMBERFORMAT_ONE_AREA, bOneArea));
+ aCoreSet.Put(SfxBoolItem(SID_ATTR_NUMBERFORMAT_ONE_AREA, false));
- aCoreSet.Put(SfxBoolItem(SID_ATTR_NUMBERFORMAT_NOLANGUAGE, !bShowLanguageControl));
+ aCoreSet.Put(SfxBoolItem(SID_ATTR_NUMBERFORMAT_NOLANGUAGE, true));
aCoreSet.Put(SfxBoolItem(SID_ATTR_NUMBERFORMAT_ADD_AUTO, bUseAutomaticLanguage));
SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
@@ -747,11 +745,7 @@ void SwNumFormatListBox::CallSelectHdl()
// SetDefFormat uses eCurLanguage to look for if this format already in the list
SetDefFormat(nNumberFormat);
}
- if( bShowLanguageControl && SfxItemState::SET == pOutSet->GetItemState(
- SID_ATTR_NUMBERFORMAT_ADD_AUTO, false, &pItem ))
- {
- bUseAutomaticLanguage = static_cast<const SfxBoolItem*>(pItem)->GetValue();
- }
+
}
else
SetDefFormat(nFormat);