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/uibase/config/cfgitems.cxx | |
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/uibase/config/cfgitems.cxx')
-rw-r--r-- | sw/source/uibase/config/cfgitems.cxx | 22 |
1 files changed, 1 insertions, 21 deletions
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 ); |