diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-05-06 12:21:11 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-05-06 12:21:32 +0100 |
commit | b186e6f1ad9dfd1c6534f047bdd3e22ee993a7c8 (patch) | |
tree | 4565932091bc412c22e3b223fdf61c1b107b3cee /sd | |
parent | 0a6012912f76a6fca7c6aac081b4b2940b8d055c (diff) |
impress and draw want to disable the size category with brochure printing
Change-Id: I08e814a2895490faebd79ca9e340d6bd8a0b5bfd
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/view/DocumentRenderer.cxx | 44 |
1 files changed, 13 insertions, 31 deletions
diff --git a/sd/source/ui/view/DocumentRenderer.cxx b/sd/source/ui/view/DocumentRenderer.cxx index 8f00559c515e..0fae5cacf632 100644 --- a/sd/source/ui/view/DocumentRenderer.cxx +++ b/sd/source/ui/view/DocumentRenderer.cxx @@ -506,37 +506,19 @@ namespace { aWidgetIds[1] = "fittoprintable"; aWidgetIds[2] = "distributeonmultiple"; aWidgetIds[3] = "tilesheet"; - if( mbImpress ) - { - // FIXME: additional dependency on PrintProspect = false - vcl::PrinterOptionsHelper::UIControlOptions aPageOptionsOpt( "PageContentType" , 0 ); - AddDialogControl( vcl::PrinterOptionsHelper::setChoiceRadiosControlOpt( - aWidgetIds, - "", - aHelpIds, - "PageOptions" , - CreateChoice(_STR_IMPRESS_PRINT_UI_PAGE_OPTIONS_CHOICES), - 0, - Sequence< sal_Bool >(), - aPageOptionsOpt - ) - ); - } - else - { - vcl::PrinterOptionsHelper::UIControlOptions aPageOptionsOpt( "PrintProspect" , sal_False ); - AddDialogControl( vcl::PrinterOptionsHelper::setChoiceRadiosControlOpt( - aWidgetIds, - "", - aHelpIds, - "PageOptions" , - CreateChoice(_STR_IMPRESS_PRINT_UI_PAGE_OPTIONS_CHOICES_DRAW), - 0, - Sequence< sal_Bool >(), - aPageOptionsOpt - ) - ); - } + + vcl::PrinterOptionsHelper::UIControlOptions aPageOptionsOpt("PrintProspect", 0); + AddDialogControl( vcl::PrinterOptionsHelper::setChoiceRadiosControlOpt( + aWidgetIds, + "", + aHelpIds, + "PageOptions" , + CreateChoice(mbImpress ? _STR_IMPRESS_PRINT_UI_PAGE_OPTIONS_CHOICES : _STR_IMPRESS_PRINT_UI_PAGE_OPTIONS_CHOICES_DRAW), + 0, + Sequence< sal_Bool >(), + aPageOptionsOpt + ) + ); vcl::PrinterOptionsHelper::UIControlOptions aBrochureOpt; aBrochureOpt.maGroupHint = "LayoutPage" ; |