Kaydet (Commit) 697590be authored tarafından Maxim Monastirsky's avatar Maxim Monastirsky

Support icon theme change in a floating border control

was unintentionally broken by
64a2dc96

Change-Id: I3358d8104dd1e2200f84019a2c4c41f1e0019399
üst a487e548
...@@ -273,6 +273,7 @@ public: ...@@ -273,6 +273,7 @@ public:
virtual void dispose() override; virtual void dispose() override;
virtual void statusChanged( const css::frame::FeatureStateEvent& rEvent ) throw ( css::uno::RuntimeException ) override; virtual void statusChanged( const css::frame::FeatureStateEvent& rEvent ) throw ( css::uno::RuntimeException ) override;
virtual void DataChanged( const DataChangedEvent& rDCEvt ) override;
}; };
class SvxLineWindow_Impl : public svtools::ToolbarPopup class SvxLineWindow_Impl : public svtools::ToolbarPopup
...@@ -1754,6 +1755,20 @@ void SvxFrameWindow_Impl::KeyInput( const KeyEvent& rKEvt ) ...@@ -1754,6 +1755,20 @@ void SvxFrameWindow_Impl::KeyInput( const KeyEvent& rKEvt )
aFrameSet->KeyInput( rKEvt ); aFrameSet->KeyInput( rKEvt );
} }
void SvxFrameWindow_Impl::DataChanged( const DataChangedEvent& rDCEvt )
{
ToolbarPopup::DataChanged( rDCEvt );
if ( ( rDCEvt.GetType() == DataChangedEventType::SETTINGS ) && ( rDCEvt.GetFlags() & AllSettingsFlags::STYLE ) )
{
InitImageList();
sal_uInt16 nNumOfItems = aFrameSet->GetItemCount();
for ( sal_uInt16 i = 1 ; i <= nNumOfItems ; ++i )
aFrameSet->SetItemImage( i, Image(aImgVec[i-1]) );
}
}
enum class FrmValidFlags { enum class FrmValidFlags {
NONE = 0x00, NONE = 0x00,
Left = 0x01, Left = 0x01,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment