From 89399a6ba7c1817dfdc7676603f3fa1106d398c5 Mon Sep 17 00:00:00 2001 From: Zolnai Tamás Date: Wed, 18 Mar 2015 10:30:18 +0100 Subject: Char highlight: option about export LO character background to MSO formats Export as highlighting or shading. Highlighting is the default. Change-Id: Ib2a38e4cd0d49317288bb565383b690d4222c8ed --- cui/source/options/optfltr.cxx | 19 +++++++++++++++++++ cui/source/options/optfltr.hxx | 3 +++ 2 files changed, 22 insertions(+) (limited to 'cui/source') diff --git a/cui/source/options/optfltr.cxx b/cui/source/options/optfltr.cxx index 800f02886797..1f2fb44929db 100644 --- a/cui/source/options/optfltr.cxx +++ b/cui/source/options/optfltr.cxx @@ -140,6 +140,10 @@ OfaMSFilterTabPage2::OfaMSFilterTabPage2( vcl::Window* pParent, const SfxItemSet pCheckButtonData(0) { get(m_pCheckLBContainer, "checklbcontainer"); + + get( aHighlightingRB, "highlighting"); + get( aShadingRB, "shading" ); + Size aControlSize(248, 55); aControlSize = LogicToPixel(aControlSize, MAP_APPFONT); m_pCheckLBContainer->set_width_request(aControlSize.Width()); @@ -220,6 +224,14 @@ bool OfaMSFilterTabPage2::FillItemSet( SfxItemSet* ) } } + if( aHighlightingRB->IsValueChangedFromSaved() ) + { + if( aHighlightingRB->IsChecked() ) + rOpt.SetCharBackground2Highlighting(); + else + rOpt.SetCharBackground2Shading(); + } + return true; } @@ -279,6 +291,13 @@ void OfaMSFilterTabPage2::Reset( const SfxItemSet* ) } } m_pCheckLB->SetUpdateMode( true ); + + if (rOpt.IsCharBackground2Highlighting()) + aHighlightingRB->Check(true); + else + aShadingRB->Check(true); + + aHighlightingRB->SaveValue(); } void OfaMSFilterTabPage2::InsertEntry( const OUString& _rTxt, sal_IntPtr _nType ) diff --git a/cui/source/options/optfltr.hxx b/cui/source/options/optfltr.hxx index d5e43d323ec0..38d280b52a46 100644 --- a/cui/source/options/optfltr.hxx +++ b/cui/source/options/optfltr.hxx @@ -83,6 +83,9 @@ class OfaMSFilterTabPage2 : public SfxTabPage sChgToFromSmartArt; SvLBoxButtonData* pCheckButtonData; + RadioButton* aHighlightingRB; + RadioButton* aShadingRB; + OfaMSFilterTabPage2( vcl::Window* pParent, const SfxItemSet& rSet ); virtual ~OfaMSFilterTabPage2(); -- cgit