diff options
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(); |