summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorMihály Palenik <palenik.mihaly@gmail.com>2015-08-06 15:16:41 +0200
committerSamuel Mehrbrodt <s.mehrbrodt@gmail.com>2015-08-07 07:44:36 +0000
commit745c7bce5fe8b218f7d300667a5409bc7ef58c34 (patch)
tree8cb0eac19b9d25dfbbfdf32841655a2104ab2460 /sw/source
parent68279e04de33201b8f75b55ad8cac9deef3d044d (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')
-rw-r--r--sw/source/ui/config/optpage.cxx71
-rw-r--r--sw/source/uibase/config/cfgitems.cxx22
-rw-r--r--sw/source/uibase/inc/cfgitems.hxx4
-rw-r--r--sw/source/uibase/inc/optpage.hxx6
4 files changed, 1 insertions, 102 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
{
diff --git a/sw/source/uibase/config/cfgitems.cxx b/sw/source/uibase/config/cfgitems.cxx
index c0cd60f49886..91f306116636 100644
--- a/sw/source/uibase/config/cfgitems.cxx
+++ b/sw/source/uibase/config/cfgitems.cxx
@@ -122,10 +122,6 @@ void SwDocDisplayItem::FillViewOptions( SwViewOption& rVOpt) const
SwElemItem::SwElemItem( sal_uInt16 _nWhich ) :
SfxPoolItem(_nWhich)
{
- bHorzScrollbar =
- bVertScrollbar =
- bAnyRuler =
- bHorzRuler =
bVertRuler =
bVertRulerRight=
bCrosshair =
@@ -146,10 +142,6 @@ SwElemItem::SwElemItem( const SwElemItem& rElemItem ):
SwElemItem::SwElemItem(const SwViewOption& rVOpt, sal_uInt16 _nWhich) :
SfxPoolItem( _nWhich )
{
- bHorzScrollbar = rVOpt.IsViewHScrollBar();
- bVertScrollbar = rVOpt.IsViewVScrollBar();
- bAnyRuler = rVOpt.IsViewAnyRuler();
- bHorzRuler = rVOpt.IsViewHRuler(true);
bVertRuler = rVOpt.IsViewVRuler(true);
bVertRulerRight = rVOpt.IsVRulerRight();
bCrosshair = rVOpt.IsCrossHair();
@@ -173,11 +165,7 @@ bool SwElemItem::operator==( const SfxPoolItem& rAttr ) const
const SwElemItem& rItem = static_cast<const SwElemItem&>(rAttr);
- return ( bHorzScrollbar == rItem.bHorzScrollbar &&
- bVertScrollbar == rItem.bVertScrollbar &&
- bAnyRuler == rItem.bAnyRuler &&
- bHorzRuler == rItem.bHorzRuler &&
- bVertRuler == rItem.bVertRuler &&
+ return ( bVertRuler == rItem.bVertRuler &&
bVertRulerRight == rItem.bVertRulerRight&&
bCrosshair == rItem.bCrosshair &&
bSmoothScroll == rItem.bSmoothScroll &&
@@ -190,10 +178,6 @@ bool SwElemItem::operator==( const SfxPoolItem& rAttr ) const
void SwElemItem::operator=( const SwElemItem& rElemItem)
{
- bHorzScrollbar = rElemItem. bHorzScrollbar ;
- bVertScrollbar = rElemItem. bVertScrollbar ;
- bAnyRuler = rElemItem. bAnyRuler;
- bHorzRuler = rElemItem. bHorzRuler ;
bVertRuler = rElemItem. bVertRuler ;
bVertRulerRight = rElemItem. bVertRulerRight ;
bCrosshair = rElemItem. bCrosshair ;
@@ -207,10 +191,6 @@ void SwElemItem::operator=( const SwElemItem& rElemItem)
void SwElemItem::FillViewOptions( SwViewOption& rVOpt) const
{
- rVOpt.SetViewHScrollBar(bHorzScrollbar );
- rVOpt.SetViewVScrollBar(bVertScrollbar );
- rVOpt.SetViewAnyRuler(bAnyRuler);
- rVOpt.SetViewHRuler(bHorzRuler );
rVOpt.SetViewVRuler(bVertRuler );
rVOpt.SetVRulerRight(bVertRulerRight );
rVOpt.SetCrossHair(bCrosshair );
diff --git a/sw/source/uibase/inc/cfgitems.hxx b/sw/source/uibase/inc/cfgitems.hxx
index 2c9abc256412..e3c205360d0a 100644
--- a/sw/source/uibase/inc/cfgitems.hxx
+++ b/sw/source/uibase/inc/cfgitems.hxx
@@ -78,10 +78,6 @@ public:
class SW_DLLPUBLIC SwElemItem : public SfxPoolItem
{
//view
- bool bHorzScrollbar :1;
- bool bVertScrollbar :1;
- bool bAnyRuler : 1;
- bool bHorzRuler :1;
bool bVertRuler :1;
bool bVertRulerRight:1;
bool bSmoothScroll :1;
diff --git a/sw/source/uibase/inc/optpage.hxx b/sw/source/uibase/inc/optpage.hxx
index f9b75075e091..05f0a8bb62a1 100644
--- a/sw/source/uibase/inc/optpage.hxx
+++ b/sw/source/uibase/inc/optpage.hxx
@@ -43,10 +43,6 @@ class SwContentOptPage : public SfxTabPage
{
VclPtr<CheckBox> m_pCrossCB;
- VclPtr<CheckBox> m_pHScrollBox;
- VclPtr<CheckBox> m_pVScrollBox;
- VclPtr<CheckBox> m_pAnyRulerCB;
- VclPtr<CheckBox> m_pHRulerCBox;
VclPtr<ListBox> m_pHMetric;
VclPtr<CheckBox> m_pVRulerCBox;
VclPtr<CheckBox> m_pVRulerRightCBox;
@@ -65,7 +61,6 @@ class SwContentOptPage : public SfxTabPage
VclPtr<ListBox> m_pMetricLB;
DECL_LINK(VertRulerHdl, CheckBox*);
- DECL_LINK(AnyRulerHdl, CheckBox*);
public:
SwContentOptPage( vcl::Window* pParent, const SfxItemSet& rSet);
virtual ~SwContentOptPage();
@@ -142,7 +137,6 @@ class SwStdFontTabPage : public SfxTabPage
VclPtr<FontSizeBox> pLabelHeightLB;
VclPtr<ComboBox> pIdxBox ;
VclPtr<FontSizeBox> pIndexHeightLB;
- VclPtr<CheckBox> pDocOnlyCB ;
VclPtr<PushButton> pStandardPB;
OUString sShellStd;