diff options
author | Daniel <danielfaleirosilva@gmail.com> | 2018-06-14 23:29:34 -0300 |
---|---|---|
committer | Daniel Silva <danielfaleirosilva@gmail.com> | 2018-11-29 13:02:16 -0200 |
commit | 76e22667625ce8d16dfaa8617a199b774e987a70 (patch) | |
tree | c3a2367957e3bfeb433de4bd906a42d459dc9902 /sc/source/ui/unoobj/docuno.cxx | |
parent | 5c7fb4b4cd9409f8b92a4bb3fe288ba83ced2502 (diff) |
Configures page range in print dialog
Change-Id: I62bd9affc9e065d7afcc60296a72eae4612b0ddd
Reviewed-on: https://gerrit.libreoffice.org/55840
Tested-by: Jenkins
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'sc/source/ui/unoobj/docuno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/docuno.cxx | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index 734cf6b89088..b96b467bfe92 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -278,7 +278,7 @@ ScPrintUIOptions::ScPrintUIOptions() // show Subgroup for print content vcl::PrinterOptionsHelper::UIControlOptions aPrintRangeOpt; aPrintRangeOpt.maGroupHint = "PrintRange"; - m_aUIProperties[nIdx++].Value = setSubgroupControlOpt("printrange", ScResId( SCSTR_PRINTOPT_PRNTCONTENT ), + m_aUIProperties[nIdx++].Value = setSubgroupControlOpt("printrange", ScResId( SCSTR_PRINTOPT_PAGES ), OUString(), aPrintRangeOpt); @@ -288,14 +288,8 @@ ScPrintUIOptions::ScPrintUIOptions() ScResId( SCSTR_PRINTOPT_SELECTEDSHEETS ), ScResId( SCSTR_PRINTOPT_SELECTEDCELLS )}; uno::Sequence< OUString > aHelpIds{ - ".HelpID:vcl:PrintDialog:PrintContent:RadioButton:0", - ".HelpID:vcl:PrintDialog:PrintContent:RadioButton:1", - ".HelpID:vcl:PrintDialog:PrintContent:RadioButton:2"}; - uno::Sequence< OUString > aWidgetIds{ - "printallsheets", - "printselectedsheets", - "printselectedcells"}; - m_aUIProperties[nIdx++].Value = setChoiceRadiosControlOpt(aWidgetIds, OUString(), + ".HelpID:vcl:PrintDialog:PrintContent:ListBox"}; + m_aUIProperties[nIdx++].Value = setChoiceListControlOpt( "printpagesbox", OUString(), aHelpIds, "PrintContent", aChoices, nContent ); @@ -308,15 +302,11 @@ ScPrintUIOptions::ScPrintUIOptions() // create a choice for the range to print OUString aPrintRangeName( "PrintRange" ); aChoices.realloc( 2 ); - aHelpIds.realloc( 2 ); - aWidgetIds.realloc( 2 ); - aChoices[0] = ScResId( SCSTR_PRINTOPT_ALLPAGES ); - aHelpIds[0] = ".HelpID:vcl:PrintDialog:PrintRange:RadioButton:0"; - aWidgetIds[0] = "printallpages"; - aChoices[1] = ScResId( SCSTR_PRINTOPT_PAGES_ ); - aHelpIds[1] = ".HelpID:vcl:PrintDialog:PrintRange:RadioButton:1"; - aWidgetIds[1] = "printpages"; - m_aUIProperties[nIdx++].Value = setChoiceRadiosControlOpt(aWidgetIds, OUString(), + aHelpIds.realloc( 1 ); + aChoices[0] = ScResId( SCSTR_PRINTOPT_PRINTALLPAGES ); + aChoices[1] = ScResId( SCSTR_PRINTOPT_PRINTPAGES ); + aHelpIds[0] = ".HelpID:vcl:PrintDialog:PrintRange:ListBox"; + m_aUIProperties[nIdx++].Value = setChoiceListControlOpt( "printextrabox", OUString(), aHelpIds, aPrintRangeName, aChoices, |