summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorDaniel <danielfaleirosilva@gmail.com>2018-06-14 23:29:34 -0300
committerAron Budea <aron.budea@collabora.com>2019-09-26 18:56:41 +0200
commitb8a80138de72e465abdf584b1dfccede384b00f3 (patch)
treedb842c671feeddbba306f3509247e5e4110436ae /basctl
parent8492f8d820eb433f47403c2e899cc4ef0de894e3 (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> (cherry picked from commit 76e22667625ce8d16dfaa8617a199b774e987a70)
Diffstat (limited to 'basctl')
-rw-r--r--basctl/inc/strings.hrc6
-rw-r--r--basctl/source/basicide/basicrenderable.cxx15
2 files changed, 9 insertions, 12 deletions
diff --git a/basctl/inc/strings.hrc b/basctl/inc/strings.hrc
index 090519fd5a9d..db479a4f17f6 100644
--- a/basctl/inc/strings.hrc
+++ b/basctl/inc/strings.hrc
@@ -97,9 +97,9 @@
#define RID_STR_DLGIMP_MISMATCH_OMIT NC_("RID_STR_DLGIMP_MISMATCH_OMIT", "Omit")
#define RID_STR_DLGIMP_MISMATCH_TITLE NC_("RID_STR_DLGIMP_MISMATCH_TITLE", "Dialog Import - Language Mismatch")
#define RID_STR_DLGIMP_MISMATCH_TEXT NC_("RID_STR_DLGIMP_MISMATCH_TEXT", "The dialog to be imported supports other languages than the target library.\n\nAdd these languages to the library to keep additional language resources provided by the dialog or omit them to stay with the current library languages.\n\nNote: For languages not supported by the dialog the resources of the dialog's default language will be used.\n ")
-#define RID_STR_PRINTDLG_RANGE NC_("RID_STR_PRINTDLG_RANGE", "Print range")
-#define RID_STR_PRINTDLG_ALLPAGES NC_("RID_STR_PRINTDLG_ALLPAGES", "All ~Pages")
-#define RID_STR_PRINTDLG_PAGES NC_("RID_STR_PRINTDLG_PAGES", "Pa~ges")
+#define RID_STR_PRINTDLG_PAGES NC_("RID_STR_PRINTDLG_PAGES", "Pages:")
+#define RID_STR_PRINTDLG_PRINTALLPAGES NC_("RID_STR_PRINTDLG_PRINTALLPAGES", "Print all pages")
+#define RID_STR_PRINTDLG_PRINTPAGES NC_("RID_STR_PRINTDLG_PRINTPAGES", "Print pages")
#define RID_STR_BTNDEL NC_("RID_STR_BTNDEL", "~Delete")
#define RID_STR_BTNNEW NC_("RID_STR_BTNNEW", "~New")
#define RID_STR_CHOOSE NC_("RID_STR_CHOOSE", "Choose")
diff --git a/basctl/source/basicide/basicrenderable.cxx b/basctl/source/basicide/basicrenderable.cxx
index e7e510d12b37..e89adb755686 100644
--- a/basctl/source/basicide/basicrenderable.cxx
+++ b/basctl/source/basicide/basicrenderable.cxx
@@ -43,19 +43,16 @@ Renderable::Renderable (BaseWindow* pWin)
aPrintRangeOpt.maGroupHint = "PrintRange" ;
aPrintRangeOpt.mbInternalOnly = true;
m_aUIProperties[0].Value = setSubgroupControlOpt("printrange",
- IDEResId( RID_STR_PRINTDLG_RANGE ), OUString(), aPrintRangeOpt);
+ IDEResId( RID_STR_PRINTDLG_PAGES ), OUString(), aPrintRangeOpt);
// create a choice for the range to print
OUString aPrintContentName( "PrintContent" );
- const Sequence<OUString> aChoices{IDEResId(RID_STR_PRINTDLG_ALLPAGES),
- IDEResId(RID_STR_PRINTDLG_PAGES)};
- const Sequence<OUString> aHelpIds{".HelpID:vcl:PrintDialog:PrintContent:RadioButton:0",
- ".HelpID:vcl:PrintDialog:PrintContent:RadioButton:1"};
- const Sequence<OUString> aWidgetIds{"printallpages",
- "printpages"};
- m_aUIProperties[1].Value = setChoiceRadiosControlOpt(aWidgetIds, OUString(),
+ const Sequence<OUString> aChoices{IDEResId(RID_STR_PRINTDLG_PRINTALLPAGES),
+ IDEResId(RID_STR_PRINTDLG_PRINTPAGES)};
+ const Sequence<OUString> aHelpIds{".HelpID:vcl:PrintDialog:PrintContent:ListBox"};
+ m_aUIProperties[1].Value = setChoiceListControlOpt( "printpagesbox", OUString(),
aHelpIds, aPrintContentName,
- aChoices, 0);
+ aChoices, 0 );
// create a an Edit dependent on "Pages" selected
vcl::PrinterOptionsHelper::UIControlOptions aPageRangeOpt(aPrintContentName, 1, true);