From 324de04a408a77656a473cbfd2cc1ce77664b0c0 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Fri, 5 Dec 2014 13:21:36 +0100 Subject: Resolves fdo#87016 Kill "Use system font for user interface" for good MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ica648d4a49ef4f36fdab557a98e7df9d31a3a240 Reviewed-on: https://gerrit.libreoffice.org/13311 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- cui/source/options/optgdlg.cxx | 34 ---------------------------------- cui/uiconfig/ui/optviewpage.ui | 16 ---------------- 2 files changed, 50 deletions(-) diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx index e68743da2310..e41c2473ab06 100644 --- a/cui/source/options/optgdlg.cxx +++ b/cui/source/options/optgdlg.cxx @@ -561,19 +561,6 @@ OfaViewTabPage::OfaViewTabPage(vcl::Window* pParent, const SfxItemSet& rSet) get(m_pWindowSizeMF, "windowsize"); get(m_pIconSizeLB, "iconsize"); get(m_pIconStyleLB, "iconstyle"); - get(m_pSystemFont, "systemfont"); - - VclContainer *pRef = get("refgrid"); - //fdo#65595, we need height-for-width support here, but for now we can - //bodge it - Size aPrefSize(m_pSystemFont->get_preferred_size()); - Size aSize(pRef->get_preferred_size()); - if (aPrefSize.Width() > aSize.Width()) - { - aSize = m_pSystemFont->CalcMinimumSize(aSize.Width()); - m_pSystemFont->set_width_request(aSize.Width()); - m_pSystemFont->set_height_request(aSize.Height()); - } get(m_pFontAntiAliasing, "aafont"); get(m_pAAPointLimitLabel, "aafrom"); @@ -602,12 +589,6 @@ OfaViewTabPage::OfaViewTabPage(vcl::Window* pParent, const SfxItemSet& rSet) // #i97672# m_pSelectionCB->SetToggleHdl( LINK( this, OfaViewTabPage, OnSelectionToggled ) ); - if( ! Application::ValidateSystemFont() ) - { - m_pSystemFont->Check(false); - m_pSystemFont->Enable(false); - } - // Set known icon themes OUString sAutoStr( m_pIconStyleLB->GetEntry( 0 ) ); m_pIconStyleLB->Clear(); @@ -826,21 +807,12 @@ bool OfaViewTabPage::FillItemSet( SfxItemSet* ) } SvtAccessibilityOptions aAccessibilityOptions; - if( aAccessibilityOptions.GetIsSystemFont() != m_pSystemFont->IsChecked() && - m_pSystemFont->IsEnabled() ) - { - aAccessibilityOptions.SetIsSystemFont( m_pSystemFont->IsChecked() ); - bModified = true; - bMenuOptModified = true; - } if( bMenuOptModified ) { // Set changed settings to the application instance AllSettings aAllSettings = Application::GetSettings(); StyleSettings aStyleSettings = aAllSettings.GetStyleSettings(); - if( m_pSystemFont->IsEnabled() ) - aStyleSettings.SetUseSystemUIFonts( m_pSystemFont->IsChecked() ); aAllSettings.SetStyleSettings(aStyleSettings); Application::MergeSystemSettings( aAllSettings ); Application::SetSettings(aAllSettings); @@ -888,12 +860,6 @@ void OfaViewTabPage::Reset( const SfxItemSet* ) m_pIconStyleLB->SelectEntryPos( nStyleLB_InitialSelection ); m_pIconStyleLB->SaveValue(); - if( m_pSystemFont->IsEnabled() ) - { - SvtAccessibilityOptions aAccessibilityOptions; - m_pSystemFont->Check( aAccessibilityOptions.GetIsSystemFont() ); - } - // Screen Scaling m_pWindowSizeMF->SetValue ( pAppearanceCfg->GetScaleFactor() ); // Mouse Snap diff --git a/cui/uiconfig/ui/optviewpage.ui b/cui/uiconfig/ui/optviewpage.ui index a81d7368bbcf..67105b99e0a2 100644 --- a/cui/uiconfig/ui/optviewpage.ui +++ b/cui/uiconfig/ui/optviewpage.ui @@ -427,22 +427,6 @@ 0 - - - Use system _font for user interface - True - True - False - True - True - 0 - True - - - 0 - 1 - - Screen font antialiasin_g -- cgit