From c9e99445b960aa6988767ed2a8556bdf7662b689 Mon Sep 17 00:00:00 2001 From: Daniel Silva Date: Tue, 17 Jul 2018 15:56:00 -0300 Subject: Reinserts alternative impress document types in print dialog Change-Id: I7d7082fffe6164dc751ede704b8707bd35b95aca Reviewed-on: https://gerrit.libreoffice.org/57587 Tested-by: Jenkins Reviewed-by: Katarina Behrens (cherry picked from commit b4601ff6d9261d185cd440ebdbca8d78f3b5d459) --- sd/inc/strings.hrc | 5 +- sd/source/ui/view/DocumentRenderer.cxx | 7 -- sd/uiconfig/simpress/ui/impressprinteroptions.ui | 152 ++++++++++++++++++++++- 3 files changed, 150 insertions(+), 14 deletions(-) (limited to 'sd') diff --git a/sd/inc/strings.hrc b/sd/inc/strings.hrc index 1aabcd162669..58fdc3890b01 100644 --- a/sd/inc/strings.hrc +++ b/sd/inc/strings.hrc @@ -460,10 +460,9 @@ #define RID_DRAW_TABLE_TOOLBOX NC_("RID_DRAW_TABLE_TOOLBOX", "Table" ) #define STR_IMPRESS_PRINT_UI_GROUP_NAME NC_("STR_IMPRESS_PRINT_UI_GROUP_NAME", "%PRODUCTNAME %s") -#define STR_IMPRESS_PRINT_UI_PRINT_GROUP NC_("STR_IMPRESS_PRINT_UI_PRINT_GROUP", "Print") #define STR_IMPRESS_PRINT_UI_CONTENT NC_("STR_IMPRESS_PRINT_UI_CONTENT", "Document") -#define STR_IMPRESS_PRINT_UI_SLIDESPERPAGE NC_("STR_IMPRESS_PRINT_UI_SLIDESPERPAGE", "Slides per page" ) -#define STR_IMPRESS_PRINT_UI_ORDER NC_("STR_IMPRESS_PRINT_UI_ORDER", "Order" ) +#define STR_IMPRESS_PRINT_UI_SLIDESPERPAGE NC_("STR_IMPRESS_PRINT_UI_SLIDESPERPAGE", "Slides per page:" ) +#define STR_IMPRESS_PRINT_UI_ORDER NC_("STR_IMPRESS_PRINT_UI_ORDER", "Order:" ) #define STR_IMPRESS_PRINT_UI_INCLUDE_CONTENT NC_("STR_IMPRESS_PRINT_UI_INCLUDE_CONTENT", "~Contents") #define STR_IMPRESS_PRINT_UI_IS_PRINT_NAME NC_("STR_IMPRESS_PRINT_UI_IS_PRINT_NAME", "~Slide name") #define STR_DRAW_PRINT_UI_IS_PRINT_NAME NC_("STR_DRAW_PRINT_UI_IS_PRINT_NAME", "P~age name") diff --git a/sd/source/ui/view/DocumentRenderer.cxx b/sd/source/ui/view/DocumentRenderer.cxx index 7879f084667b..81f447cf9e83 100644 --- a/sd/source/ui/view/DocumentRenderer.cxx +++ b/sd/source/ui/view/DocumentRenderer.cxx @@ -387,13 +387,6 @@ namespace { uno::Sequence< OUString > aHelpIds, aWidgetIds; if( mbImpress ) { - vcl::PrinterOptionsHelper::UIControlOptions aPrintOpt; - aPrintOpt.maGroupHint = "JobPage" ; - AddDialogControl( vcl::PrinterOptionsHelper::setSubgroupControlOpt("extraimpressprintoptions", - SdResId(STR_IMPRESS_PRINT_UI_PRINT_GROUP), - "", - aPrintOpt )); - aHelpIds.realloc( 1 ); aHelpIds[0] = ".HelpID:vcl:PrintDialog:PageContentType:ListBox" ; AddDialogControl( vcl::PrinterOptionsHelper::setChoiceListControlOpt( diff --git a/sd/uiconfig/simpress/ui/impressprinteroptions.ui b/sd/uiconfig/simpress/ui/impressprinteroptions.ui index b94b7e213ae8..70e48f940aa8 100644 --- a/sd/uiconfig/simpress/ui/impressprinteroptions.ui +++ b/sd/uiconfig/simpress/ui/impressprinteroptions.ui @@ -1,5 +1,5 @@ - + @@ -9,6 +9,150 @@ True vertical 12 + + + True + False + 0 + none + + + True + False + 6 + 12 + + + True + False + vertical + 3 + + + True + False + 6 + + + True + False + Type: + + + False + True + 0 + + + + + True + False + + + False + True + 1 + + + + + False + True + 0 + + + + + True + False + 6 + + + True + False + Slides per page: + + + False + True + 0 + + + + + True + False + + + False + True + 1 + + + + + False + True + 1 + + + + + True + False + 6 + + + True + False + Order: + + + False + True + 0 + + + + + True + False + + + False + True + 1 + + + + + False + True + 2 + + + + + + + + + True + False + Document + + + + + + + + False + True + 0 + + True @@ -93,7 +237,7 @@ False True - 0 + 1 @@ -186,7 +330,7 @@ False True - 1 + 2 @@ -297,7 +441,7 @@ False True - 2 + 3 -- cgit v1.2.3