summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-01-26 11:49:43 +0000
committerCaolán McNamara <caolanm@redhat.com>2023-01-26 15:09:20 +0000
commit2a40505d00fcd79bfa433c301ddc05a35287bfb1 (patch)
treeeb3ca8427095c929cb2a084e9df8afc6be80b95d /sfx2
parentb9249d7c4db6e20dcc1bcca88b350e9ee547c992 (diff)
remove option to toggle IsPDFAsStandardPrintJobFormat from UI
to deprecate it. Still possible to toggle from expert config for now, but we should push on and remove this and all the postscript printing at this point. Change-Id: If8869a62616b336764720f5dc56d86b94f16ffbe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146169 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/printopt.cxx23
-rw-r--r--sfx2/uiconfig/ui/optprintpage.ui20
2 files changed, 4 insertions, 39 deletions
diff --git a/sfx2/source/dialog/printopt.cxx b/sfx2/source/dialog/printopt.cxx
index 8d16edfc0e3e..d804bdf8f202 100644
--- a/sfx2/source/dialog/printopt.cxx
+++ b/sfx2/source/dialog/printopt.cxx
@@ -50,24 +50,14 @@ SfxCommonPrintOptionsTabPage::SfxCommonPrintOptionsTabPage(weld::Container* pPag
, m_xReduceBitmapsResolutionLB(m_xBuilder->weld_combo_box("reducebitmapdpi"))
, m_xReduceBitmapsTransparencyCB(m_xBuilder->weld_check_button("reducebitmaptrans"))
, m_xConvertToGreyscalesCB(m_xBuilder->weld_check_button("converttogray"))
- , m_xPDFCB(m_xBuilder->weld_check_button("pdf"))
, m_xPaperSizeCB(m_xBuilder->weld_check_button("papersize"))
, m_xPaperOrientationCB(m_xBuilder->weld_check_button("paperorient"))
, m_xTransparencyCB(m_xBuilder->weld_check_button("trans"))
{
-#ifndef ENABLE_CUPS
- m_xPDFCB->hide();
-#endif
-
- if( bOutputForPrinter )
- {
+ if (bOutputForPrinter)
m_xPrinterOutputRB->set_active(true);
- }
else
- {
m_xPrintFileOutputRB->set_active(true);
- m_xPDFCB->set_sensitive(false);
- }
m_xPrinterOutputRB->connect_toggled( LINK( this, SfxCommonPrintOptionsTabPage, ToggleOutputPrinterRBHdl ) );
m_xPrintFileOutputRB->connect_toggled( LINK( this, SfxCommonPrintOptionsTabPage, ToggleOutputPrintFileRBHdl ) );
@@ -182,7 +172,6 @@ void SfxCommonPrintOptionsTabPage::ImplUpdateControls( const vcl::printer::Optio
m_xReduceBitmapsTransparencyCB->set_active( pCurrentOptions->IsReducedBitmapIncludesTransparency() );
m_xConvertToGreyscalesCB->set_active( pCurrentOptions->IsConvertToGreyscales() );
- m_xPDFCB->set_active( pCurrentOptions->IsPDFAsStandardPrintJobFormat() );
ClickReduceTransparencyCBHdl(*m_xReduceTransparencyCB);
ClickReduceGradientsCBHdl(*m_xReduceGradientsCB);
@@ -203,14 +192,6 @@ void SfxCommonPrintOptionsTabPage::ImplSaveControls( vcl::printer::Options* pCur
SAL_N_ELEMENTS(aDPIArray) - 1 ) ] );
pCurrentOptions->SetReducedBitmapIncludesTransparency( m_xReduceBitmapsTransparencyCB->get_active() );
pCurrentOptions->SetConvertToGreyscales( m_xConvertToGreyscalesCB->get_active() );
- bool bOrigBackEnd = pCurrentOptions->IsPDFAsStandardPrintJobFormat();
- if (bOrigBackEnd != m_xPDFCB->get_active())
- {
- pCurrentOptions->SetPDFAsStandardPrintJobFormat( m_xPDFCB->get_active() );
- svtools::executeRestartDialog(
- comphelper::getProcessComponentContext(), nullptr,
- svtools::RESTART_REASON_PDF_AS_STANDARD_JOB_FORMAT);
- }
}
IMPL_LINK_NOARG( SfxCommonPrintOptionsTabPage, ClickReduceTransparencyCBHdl, weld::Toggleable&, void )
@@ -278,12 +259,10 @@ IMPL_LINK( SfxCommonPrintOptionsTabPage, ToggleOutputPrintFileRBHdl, weld::Toggl
{
ImplUpdateControls( &maPrintFileOptions );
bOutputForPrinter = false;
- m_xPDFCB->set_sensitive(false);
}
else
{
ImplSaveControls( &maPrintFileOptions );
- m_xPDFCB->set_sensitive(true);
}
}
diff --git a/sfx2/uiconfig/ui/optprintpage.ui b/sfx2/uiconfig/ui/optprintpage.ui
index 4af9bf58406c..615b818e7152 100644
--- a/sfx2/uiconfig/ui/optprintpage.ui
+++ b/sfx2/uiconfig/ui/optprintpage.ui
@@ -588,7 +588,7 @@
<property name="label-xalign">0</property>
<property name="shadow-type">none</property>
<child>
- <!-- n-columns=1 n-rows=3 -->
+ <!-- n-columns=1 n-rows=2 -->
<object class="GtkGrid" id="grid7">
<property name="visible">True</property>
<property name="can-focus">False</property>
@@ -596,20 +596,6 @@
<property name="margin-top">6</property>
<property name="row-spacing">3</property>
<child>
- <object class="GtkCheckButton" id="pdf">
- <property name="label" translatable="yes" context="optprintpage|pdf">_PDF as standard print job format</property>
- <property name="visible">True</property>
- <property name="can-focus">True</property>
- <property name="receives-default">False</property>
- <property name="use-underline">True</property>
- <property name="draw-indicator">True</property>
- </object>
- <packing>
- <property name="left-attach">0</property>
- <property name="top-attach">0</property>
- </packing>
- </child>
- <child>
<object class="GtkCheckButton" id="converttogray">
<property name="label" translatable="yes" context="optprintpage|converttogray">Con_vert colors to grayscale</property>
<property name="visible">True</property>
@@ -625,7 +611,7 @@
</object>
<packing>
<property name="left-attach">0</property>
- <property name="top-attach">1</property>
+ <property name="top-attach">0</property>
</packing>
</child>
<child>
@@ -644,7 +630,7 @@
</object>
<packing>
<property name="left-attach">0</property>
- <property name="top-attach">2</property>
+ <property name="top-attach">1</property>
</packing>
</child>
</object>