diff options
author | Zolnai Tamás <zolnaitamas2000@gmail.com> | 2015-03-18 10:30:18 +0100 |
---|---|---|
committer | Zolnai Tamás <zolnaitamas2000@gmail.com> | 2015-03-21 16:19:09 +0100 |
commit | 89399a6ba7c1817dfdc7676603f3fa1106d398c5 (patch) | |
tree | 087f78ab7799b2cdad78074f48980646104cbf8c /cui/source | |
parent | 15931deb7e4689cd885ff05439bab381f0478b2f (diff) |
Char highlight: option about export LO character background to MSO formats
Export as highlighting or shading.
Highlighting is the default.
Change-Id: Ib2a38e4cd0d49317288bb565383b690d4222c8ed
Diffstat (limited to 'cui/source')
-rw-r--r-- | cui/source/options/optfltr.cxx | 19 | ||||
-rw-r--r-- | cui/source/options/optfltr.hxx | 3 |
2 files changed, 22 insertions, 0 deletions
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(); |