From 27f98935f9207465186da96c85467f3c005662a6 Mon Sep 17 00:00:00 2001 From: Heiko Tietze Date: Tue, 13 Sep 2022 14:38:51 +0200 Subject: [API CHANGE] Resolves tdf#131136 - Remove option "Use printer metrics" Option is out-dated and access via UI confusing * UI access removed from Tools > Options > General (Impress, Calc) resp. > Compatibility (Writer) * Unit tests updated * Tip-Of-The-Day cleaned-up * remove UsePrtMetrics value Change-Id: Ib645f6e1f648455e0536a437be14c2c6a7b25a49 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139863 Tested-by: Jenkins Reviewed-by: Michael Stahl Reviewed-by: Heiko Tietze --- sd/source/ui/dlg/tpoption.cxx | 9 --------- sd/source/ui/inc/tpoption.hxx | 1 - sd/uiconfig/simpress/ui/optimpressgeneralpage.ui | 25 +++--------------------- 3 files changed, 3 insertions(+), 32 deletions(-) (limited to 'sd') diff --git a/sd/source/ui/dlg/tpoption.cxx b/sd/source/ui/dlg/tpoption.cxx index 0c534682de13..8c1408de0b57 100644 --- a/sd/source/ui/dlg/tpoption.cxx +++ b/sd/source/ui/dlg/tpoption.cxx @@ -186,7 +186,6 @@ SdTpOptionsMisc::SdTpOptionsMisc(weld::Container* pPage, weld::DialogController* , m_xMtrFldTabstop(m_xBuilder->weld_metric_spin_button("metricFields", FieldUnit::MM)) , m_xCbxEnableSdremote(m_xBuilder->weld_check_button("enremotcont")) , m_xCbxEnablePresenterScreen(m_xBuilder->weld_check_button("enprsntcons")) - , m_xCbxUsePrinterMetrics(m_xBuilder->weld_check_button("printermetrics")) , m_xCbxCompatibility(m_xBuilder->weld_check_button("cbCompatibility")) , m_xScaleFrame(m_xBuilder->weld_frame("scaleframe")) , m_xCbScale(m_xBuilder->weld_combo_box("scaleBox")) @@ -339,7 +338,6 @@ bool SdTpOptionsMisc::FillItemSet( SfxItemSet* rAttrs ) m_xCbxEnableSdremote->get_state_changed_from_saved() || m_xCbxEnablePresenterScreen->get_state_changed_from_saved() || m_xCbxCompatibility->get_state_changed_from_saved() || - m_xCbxUsePrinterMetrics->get_state_changed_from_saved() || m_xCbxDistort->get_state_changed_from_saved()) { SdOptionsMiscItem aOptsItem; @@ -353,10 +351,6 @@ bool SdTpOptionsMisc::FillItemSet( SfxItemSet* rAttrs ) aOptsItem.GetOptionsMisc().SetEnableSdremote( m_xCbxEnableSdremote->get_active() ); aOptsItem.GetOptionsMisc().SetEnablePresenterScreen( m_xCbxEnablePresenterScreen->get_active() ); aOptsItem.GetOptionsMisc().SetSummationOfParagraphs( m_xCbxCompatibility->get_active() ); - aOptsItem.GetOptionsMisc().SetPrinterIndependentLayout ( - m_xCbxUsePrinterMetrics->get_active() - ? css::document::PrinterIndependentLayout::DISABLED - : css::document::PrinterIndependentLayout::ENABLED); aOptsItem.GetOptionsMisc().SetCrookNoContortion( m_xCbxDistort->get_active() ); rAttrs->Put( aOptsItem ); @@ -406,7 +400,6 @@ void SdTpOptionsMisc::Reset( const SfxItemSet* rAttrs ) m_xCbxEnableSdremote->set_active( aOptsItem.GetOptionsMisc().IsEnableSdremote() ); m_xCbxEnablePresenterScreen->set_active( aOptsItem.GetOptionsMisc().IsEnablePresenterScreen() ); m_xCbxCompatibility->set_active( aOptsItem.GetOptionsMisc().IsSummationOfParagraphs() ); - m_xCbxUsePrinterMetrics->set_active( aOptsItem.GetOptionsMisc().GetPrinterIndependentLayout()==1 ); m_xCbxDistort->set_active( aOptsItem.GetOptionsMisc().IsCrookNoContortion() ); m_xCbxStartWithTemplate->save_state(); m_xCbxMarkedHitMovesAlways->save_state(); @@ -418,7 +411,6 @@ void SdTpOptionsMisc::Reset( const SfxItemSet* rAttrs ) m_xCbxEnableSdremote->save_state(); m_xCbxEnablePresenterScreen->save_state(); m_xCbxCompatibility->save_state(); - m_xCbxUsePrinterMetrics->save_state(); m_xCbxDistort->save_state(); // metric @@ -599,7 +591,6 @@ void SdTpOptionsMisc::UpdateCompatibilityControls() } m_xCbxCompatibility->set_sensitive(bIsEnabled); - m_xCbxUsePrinterMetrics->set_sensitive(bIsEnabled); } void SdTpOptionsMisc::PageCreated(const SfxAllItemSet& aSet) diff --git a/sd/source/ui/inc/tpoption.hxx b/sd/source/ui/inc/tpoption.hxx index 8657db27a243..d0f010a26332 100644 --- a/sd/source/ui/inc/tpoption.hxx +++ b/sd/source/ui/inc/tpoption.hxx @@ -88,7 +88,6 @@ private: std::unique_ptr m_xCbxEnableSdremote; std::unique_ptr m_xCbxEnablePresenterScreen; - std::unique_ptr m_xCbxUsePrinterMetrics; std::unique_ptr m_xCbxCompatibility; //Scale diff --git a/sd/uiconfig/simpress/ui/optimpressgeneralpage.ui b/sd/uiconfig/simpress/ui/optimpressgeneralpage.ui index 2a944eac2fbe..449248536fb9 100644 --- a/sd/uiconfig/simpress/ui/optimpressgeneralpage.ui +++ b/sd/uiconfig/simpress/ui/optimpressgeneralpage.ui @@ -1,5 +1,5 @@ - + @@ -169,7 +169,7 @@ 0 none - + True False @@ -177,25 +177,6 @@ 6 6 12 - - - Us_e printer metrics for document formatting - True - True - False - True - True - - - Specifies that printer metrics are applied for printing and also for formatting the display on the screen. If this box is not checked, a printer independent layout will be used for screen display and printing. - - - - - 0 - 0 - - Add _spacing between paragraphs and tables @@ -212,7 +193,7 @@ 0 - 1 + 0 -- cgit