summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/vcl/ctrl.hxx1
-rw-r--r--vcl/source/control/ctrl.cxx25
2 files changed, 0 insertions, 26 deletions
diff --git a/include/vcl/ctrl.hxx b/include/vcl/ctrl.hxx
index 4c707327ede2..e4ed1e408f8c 100644
--- a/include/vcl/ctrl.hxx
+++ b/include/vcl/ctrl.hxx
@@ -136,7 +136,6 @@ public:
virtual bool Notify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
virtual void StateChanged( StateChangedType nStateChange ) SAL_OVERRIDE;
virtual void Resize() SAL_OVERRIDE;
- virtual void DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE;
// invalidates layout data
virtual void SetText( const OUString& rStr ) SAL_OVERRIDE;
diff --git a/vcl/source/control/ctrl.cxx b/vcl/source/control/ctrl.cxx
index 6baf5ae8ad9e..c505afa3d094 100644
--- a/vcl/source/control/ctrl.cxx
+++ b/vcl/source/control/ctrl.cxx
@@ -368,31 +368,6 @@ void Control::ImplDrawFrame( OutputDevice* pDev, Rectangle& rRect )
pDev->OutputDevice::SetSettings( aOriginalSettings );
}
-void Control::DataChanged( const DataChangedEvent& rDCEvt)
-{
- // we don't want to lose some style settings for controls created with the
- // toolkit
- if ( IsCreatedWithToolkit() &&
- (rDCEvt.GetType() == DATACHANGED_SETTINGS) &&
- (rDCEvt.GetFlags() & SETTINGS_STYLE) )
- {
- const AllSettings* pOldSettings = rDCEvt.GetOldSettings();
-
- AllSettings aSettings = GetSettings();
- StyleSettings aStyleSettings = aSettings.GetStyleSettings();
- sal_uLong nNewOptions = aStyleSettings.GetOptions();
-
- if ( pOldSettings && !(nNewOptions & STYLE_OPTION_MONO) && ( pOldSettings->GetStyleSettings().GetOptions() & STYLE_OPTION_MONO ) )
- {
- nNewOptions |= STYLE_OPTION_MONO;
- aStyleSettings.SetOptions( nNewOptions );
- aStyleSettings.SetMonoColor( pOldSettings->GetStyleSettings().GetMonoColor() );
- aSettings.SetStyleSettings( aStyleSettings );
- SetSettings( aSettings );
- }
- }
-}
-
ControlLayoutData::~ControlLayoutData()
{
if( m_pParent )