Kaydet (Commit) c9513e79 authored tarafından Oliver Bolte's avatar Oliver Bolte

INTEGRATION: CWS vcl22 (1.9.20); FILE MERGED

2004/05/25 13:22:34 pl 1.9.20.1: #i16683# moved system ui fonts check box from accessibility to view tab page
üst cabb1735
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: optgdlg.cxx,v $ * $RCSfile: optgdlg.cxx,v $
* *
* $Revision: 1.11 $ * $Revision: 1.12 $
* *
* last change: $Author: rt $ $Date: 2004-06-17 16:10:26 $ * last change: $Author: obo $ $Date: 2004-07-05 09:27:28 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -130,6 +130,9 @@ ...@@ -130,6 +130,9 @@
#ifndef INCLUDED_SVTOOLS_HELPOPT_HXX #ifndef INCLUDED_SVTOOLS_HELPOPT_HXX
#include <svtools/helpopt.hxx> #include <svtools/helpopt.hxx>
#endif #endif
#ifndef INCLUDED_SVTOOLS_ACCESSIBILITYOPTIONS_HXX
#include <svtools/accessibilityoptions.hxx>
#endif
#ifndef _UTL_CONFIGITEM_HXX_ #ifndef _UTL_CONFIGITEM_HXX_
#include <unotools/configitem.hxx> #include <unotools/configitem.hxx>
#endif #endif
...@@ -472,6 +475,7 @@ OfaViewTabPage::OfaViewTabPage(Window* pParent, const SfxItemSet& rSet ) : ...@@ -472,6 +475,7 @@ OfaViewTabPage::OfaViewTabPage(Window* pParent, const SfxItemSet& rSet ) :
aWindowSizeMF ( this, ResId( MF_WINDOWSIZE ) ), aWindowSizeMF ( this, ResId( MF_WINDOWSIZE ) ),
aIconSizeFT ( this, ResId( FT_ICONSIZE ) ), aIconSizeFT ( this, ResId( FT_ICONSIZE ) ),
aIconSizeLB ( this, ResId( LB_ICONSIZE ) ), aIconSizeLB ( this, ResId( LB_ICONSIZE ) ),
m_aSystemFont (this, ResId( CB_SYSTEM_FONT ) ),
#if defined( UNX ) || defined ( FS_PRIV_DEBUG ) #if defined( UNX ) || defined ( FS_PRIV_DEBUG )
aFontAntiAliasing ( this, ResId( CB_FONTANTIALIASING )), aFontAntiAliasing ( this, ResId( CB_FONTANTIALIASING )),
aAAPointLimitLabel ( this, ResId( FT_POINTLIMIT_LABEL )), aAAPointLimitLabel ( this, ResId( FT_POINTLIMIT_LABEL )),
...@@ -558,6 +562,11 @@ OfaViewTabPage::OfaViewTabPage(Window* pParent, const SfxItemSet& rSet ) : ...@@ -558,6 +562,11 @@ OfaViewTabPage::OfaViewTabPage(Window* pParent, const SfxItemSet& rSet ) :
#endif #endif
FreeResource(); FreeResource();
if( ! Application::ValidateSystemFont() )
{
m_aSystemFont.Check( FALSE );
m_aSystemFont.Enable( FALSE );
}
} }
OfaViewTabPage::~OfaViewTabPage() OfaViewTabPage::~OfaViewTabPage()
...@@ -737,12 +746,23 @@ BOOL OfaViewTabPage::FillItemSet( SfxItemSet& rSet ) ...@@ -737,12 +746,23 @@ BOOL OfaViewTabPage::FillItemSet( SfxItemSet& rSet )
bModified = TRUE; bModified = TRUE;
} }
SvtAccessibilityOptions aAccessibilityOptions;
if( aAccessibilityOptions.GetIsSystemFont() != m_aSystemFont.IsChecked() &&
m_aSystemFont.IsEnabled() )
{
aAccessibilityOptions.SetIsSystemFont( m_aSystemFont.IsChecked() );
bModified = TRUE;
bMenuOptModified = TRUE;
}
if( bMenuOptModified ) if( bMenuOptModified )
{ {
// Set changed settings to the application instance // Set changed settings to the application instance
AllSettings aAllSettings = Application::GetSettings(); AllSettings aAllSettings = Application::GetSettings();
StyleSettings aStyleSettings = aAllSettings.GetStyleSettings(); StyleSettings aStyleSettings = aAllSettings.GetStyleSettings();
aStyleSettings.SetUseImagesInMenus( aMenuIconsCB.IsChecked() ); aStyleSettings.SetUseImagesInMenus( aMenuIconsCB.IsChecked() );
if( m_aSystemFont.IsEnabled() )
aStyleSettings.SetUseSystemUIFonts( m_aSystemFont.IsChecked() );
aAllSettings.SetStyleSettings(aStyleSettings); aAllSettings.SetStyleSettings(aStyleSettings);
Application::MergeSystemSettings( aAllSettings ); Application::MergeSystemSettings( aAllSettings );
Application::SetSettings(aAllSettings); Application::SetSettings(aAllSettings);
...@@ -772,6 +792,12 @@ void OfaViewTabPage::Reset( const SfxItemSet& rSet ) ...@@ -772,6 +792,12 @@ void OfaViewTabPage::Reset( const SfxItemSet& rSet )
aIconSizeLB.SelectEntryPos( nBigLB_InitialSelection ); aIconSizeLB.SelectEntryPos( nBigLB_InitialSelection );
aIconSizeLB.SaveValue(); aIconSizeLB.SaveValue();
if( m_aSystemFont.IsEnabled() )
{
SvtAccessibilityOptions aAccessibilityOptions;
m_aSystemFont.Check( aAccessibilityOptions.GetIsSystemFont() );
}
// Screen Scaling // Screen Scaling
aWindowSizeMF.SetValue ( pAppearanceCfg->GetScaleFactor() ); aWindowSizeMF.SetValue ( pAppearanceCfg->GetScaleFactor() );
// Mouse Snap // Mouse Snap
......
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