diff options
author | Mihály Palenik <palenik.mihaly@gmail.com> | 2015-08-06 15:16:41 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <s.mehrbrodt@gmail.com> | 2015-08-07 07:44:36 +0000 |
commit | 745c7bce5fe8b218f7d300667a5409bc7ef58c34 (patch) | |
tree | 8cb0eac19b9d25dfbbfdf32841655a2104ab2460 /sw/source/ui/config | |
parent | 68279e04de33201b8f75b55ad8cac9deef3d044d (diff) |
Delete unnecessary writer options from Options dialog
Here https://wiki.documentfoundation.org/Design/Whiteboards/Options/Writer
are unnecessary writer options. These options are set in
Expert Configuration dialog under org.oppenoffice.Office.Writer node.
Some of them have void type therefore they aren't deleted.
Preference name, Property, Location in Options dialog;
org.openoffice.Office.Writer/Layout/Window, HorizontalScroll,
View/View/Horizontal Scrollbar;
org.openoffice.Office.Writer/Layout/Window, VerticalScroll,
View/View/Vertical Scrollbar;
org.openoffice.Office.Writer/Layout/Window, HorizontalRuler,
View/View/Horizontal Ruler;
org.openoffice.Office.Writer/DefaultFont, Document,
Basic Fonts (Western)/Current documentum only;
org.openoffice.Office.Writer/DefaultFontCJK, Document,
Basic Fonts (Asian)/Current documentum only;
org.openoffice.Office.Writer/DefaultFontCTL, Document,
Basic Fonts (CTL)/Current documentum only;
Change-Id: Ia98fa456ec6039bff3ad13ca7668e73320d63920
Reviewed-on: https://gerrit.libreoffice.org/17542
Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
Diffstat (limited to 'sw/source/ui/config')
-rw-r--r-- | sw/source/ui/config/optpage.cxx | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/sw/source/ui/config/optpage.cxx b/sw/source/ui/config/optpage.cxx index 2ae97be648ed..671615d4aff6 100644 --- a/sw/source/ui/config/optpage.cxx +++ b/sw/source/ui/config/optpage.cxx @@ -90,10 +90,6 @@ SwContentOptPage::SwContentOptPage( vcl::Window* pParent, { get (m_pCrossCB, "helplines"); - get (m_pHScrollBox, "hscrollbar"); - get (m_pVScrollBox, "vscrollbar"); - get (m_pAnyRulerCB, "ruler"); - get (m_pHRulerCBox, "hruler"); get (m_pHMetric, "hrulercombobox"); get (m_pVRulerCBox, "vruler"); get (m_pVRulerRightCBox, "vrulerright"); @@ -126,7 +122,6 @@ SwContentOptPage::SwContentOptPage( vcl::Window* pParent, if(!aCJKOptions.IsVerticalTextEnabled() ) m_pVRulerRightCBox->Hide(); m_pVRulerCBox->SetClickHdl(LINK(this, SwContentOptPage, VertRulerHdl )); - m_pAnyRulerCB->SetClickHdl(LINK(this, SwContentOptPage, AnyRulerHdl)); SvxStringArray aMetricArr( SW_RES( STR_ARR_METRIC ) ); for ( size_t i = 0; i < aMetricArr.Count(); ++i ) @@ -174,10 +169,6 @@ SwContentOptPage::~SwContentOptPage() void SwContentOptPage::dispose() { m_pCrossCB.clear(); - m_pHScrollBox.clear(); - m_pVScrollBox.clear(); - m_pAnyRulerCB.clear(); - m_pHRulerCBox.clear(); m_pHMetric.clear(); m_pVRulerCBox.clear(); m_pVRulerRightCBox.clear(); @@ -234,10 +225,6 @@ void SwContentOptPage::Reset(const SfxItemSet* rSet) m_pFieldNameCB->Check (pElemAttr->bFieldName); m_pPostItCB->Check (pElemAttr->bNotes); m_pCrossCB->Check (pElemAttr->bCrosshair); - m_pHScrollBox->Check (pElemAttr->bHorzScrollbar); - m_pVScrollBox->Check (pElemAttr->bVertScrollbar); - m_pAnyRulerCB->Check (pElemAttr->bAnyRuler); - m_pHRulerCBox->Check (pElemAttr->bHorzRuler); m_pVRulerCBox->Check (pElemAttr->bVertRuler); m_pVRulerRightCBox->Check (pElemAttr->bVertRulerRight); m_pSmoothCBox->Check (pElemAttr->bSmoothScroll); @@ -246,7 +233,6 @@ void SwContentOptPage::Reset(const SfxItemSet* rSet) lcl_SelectMetricLB(m_pMetricLB, SID_ATTR_METRIC, *rSet); lcl_SelectMetricLB(m_pHMetric, FN_HSCROLL_METRIC, *rSet); lcl_SelectMetricLB(m_pVMetric, FN_VSCROLL_METRIC, *rSet); - AnyRulerHdl(m_pAnyRulerCB); } bool SwContentOptPage::FillItemSet(SfxItemSet* rSet) @@ -263,10 +249,6 @@ bool SwContentOptPage::FillItemSet(SfxItemSet* rSet) aElem.bFieldName = m_pFieldNameCB->IsChecked(); aElem.bNotes = m_pPostItCB->IsChecked(); aElem.bCrosshair = m_pCrossCB->IsChecked(); - aElem.bHorzScrollbar = m_pHScrollBox->IsChecked(); - aElem.bVertScrollbar = m_pVScrollBox->IsChecked(); - aElem.bAnyRuler = m_pAnyRulerCB->IsChecked(); - aElem.bHorzRuler = m_pHRulerCBox->IsChecked(); aElem.bVertRuler = m_pVRulerCBox->IsChecked(); aElem.bVertRulerRight = m_pVRulerRightCBox->IsChecked(); aElem.bSmoothScroll = m_pSmoothCBox->IsChecked(); @@ -310,17 +292,6 @@ IMPL_LINK(SwContentOptPage, VertRulerHdl, CheckBox*, pBox) return 0; } -IMPL_LINK( SwContentOptPage, AnyRulerHdl, CheckBox*, pBox) -{ - bool bChecked = pBox->IsChecked(); - m_pHRulerCBox->Enable(bChecked); - m_pHMetric->Enable(bChecked); - m_pVRulerCBox->Enable(bChecked); - m_pVMetric->Enable(bChecked); - VertRulerHdl(m_pVRulerCBox); - return 0; -} - // TabPage Printer additional settings SwAddPrinterTabPage::SwAddPrinterTabPage(vcl::Window* pParent, const SfxItemSet& rCoreSet) @@ -612,7 +583,6 @@ SwStdFontTabPage::SwStdFontTabPage( vcl::Window* pParent, pIdxBox->SetStyle(pIdxBox->GetStyle() | WB_SORT); get(pIndexHeightLB,"indexheight"); - get(pDocOnlyCB,"doconly"); get(pStandardPB,"standard"); pStandardPB->SetClickHdl(LINK(this, SwStdFontTabPage, StandardHdl)); @@ -633,8 +603,6 @@ SwStdFontTabPage::SwStdFontTabPage( vcl::Window* pParent, pListHeightLB-> SetModifyHdl( aModifyHeightLink ); pLabelHeightLB-> SetModifyHdl( aModifyHeightLink ); pIndexHeightLB-> SetModifyHdl( aModifyHeightLink ); - - pDocOnlyCB->Check(SW_MOD()->GetModuleConfig()->IsDefaultFontInCurrDocOnly()); } SwStdFontTabPage::~SwStdFontTabPage() @@ -658,7 +626,6 @@ void SwStdFontTabPage::dispose() pLabelHeightLB.clear(); pIdxBox.clear(); pIndexHeightLB.clear(); - pDocOnlyCB.clear(); pStandardPB.clear(); SfxTabPage::dispose(); } @@ -692,9 +659,6 @@ static void lcl_SetColl(SwWrtShell* pWrtShell, sal_uInt16 nType, bool SwStdFontTabPage::FillItemSet( SfxItemSet* ) { - bool bNotDocOnly = !pDocOnlyCB->IsChecked(); - SW_MOD()->GetModuleConfig()->SetDefaultFontInCurrDocOnly(!bNotDocOnly); - const OUString sStandard = pStandardBox->GetText(); const OUString sTitle = pTitleBox->GetText(); const OUString sList = pListBox->GetText(); @@ -706,39 +670,6 @@ bool SwStdFontTabPage::FillItemSet( SfxItemSet* ) bool bListHeightChanged = pListHeightLB->IsValueChangedFromSaved() && (!bListHeightDefault || !bSetListHeightDefault ); bool bLabelHeightChanged = pLabelHeightLB->IsValueChangedFromSaved() && (!bLabelHeightDefault || !bSetLabelHeightDefault ); bool bIndexHeightChanged = pIndexHeightLB->IsValueChangedFromSaved() && (!bIndexHeightDefault || !bSetIndexHeightDefault ); - if(bNotDocOnly) - { - pFontConfig->SetFontStandard(sStandard, nFontGroup); - pFontConfig->SetFontOutline(sTitle, nFontGroup); - pFontConfig->SetFontList(sList, nFontGroup); - pFontConfig->SetFontCaption(sLabel, nFontGroup); - pFontConfig->SetFontIndex(sIdx, nFontGroup); - if(bStandardHeightChanged) - { - float fSize = (float)pStandardHeightLB->GetValue() / 10; - pFontConfig->SetFontHeight( CalcToUnit( fSize, SFX_MAPUNIT_TWIP ), FONT_STANDARD, nFontGroup ); - } - if(bTitleHeightChanged) - { - float fSize = (float)pTitleHeightLB->GetValue() / 10; - pFontConfig->SetFontHeight( CalcToUnit( fSize, SFX_MAPUNIT_TWIP ), FONT_OUTLINE, nFontGroup ); - } - if(bListHeightChanged) - { - float fSize = (float)pListHeightLB->GetValue() / 10; - pFontConfig->SetFontHeight( CalcToUnit( fSize, SFX_MAPUNIT_TWIP ), FONT_LIST, nFontGroup ); - } - if(bLabelHeightChanged) - { - float fSize = (float)pLabelHeightLB->GetValue() / 10; - pFontConfig->SetFontHeight( CalcToUnit( fSize, SFX_MAPUNIT_TWIP ), FONT_CAPTION, nFontGroup ); - } - if(bIndexHeightChanged) - { - float fSize = (float)pIndexHeightLB->GetValue() / 10; - pFontConfig->SetFontHeight( CalcToUnit( fSize, SFX_MAPUNIT_TWIP ), FONT_INDEX, nFontGroup ); - } - } if(pWrtShell) { pWrtShell->StartAllAction(); @@ -923,8 +854,6 @@ void SwStdFontTabPage::Reset( const SfxItemSet* rSet) nLabelHeight = SwStdFontConfig::GetDefaultHeightFor( FONT_CAPTION + nFontGroup * FONT_PER_GROUP, eLanguage); if( nIndexHeight <= 0) nIndexHeight = SwStdFontConfig::GetDefaultHeightFor( FONT_INDEX + nFontGroup * FONT_PER_GROUP, eLanguage); - - pDocOnlyCB->Enable(false); } else { |