summaryrefslogtreecommitdiff
path: root/basctl/source/basicide/basicrenderable.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basctl/source/basicide/basicrenderable.cxx')
-rw-r--r--basctl/source/basicide/basicrenderable.cxx15
1 files changed, 6 insertions, 9 deletions
diff --git a/basctl/source/basicide/basicrenderable.cxx b/basctl/source/basicide/basicrenderable.cxx
index 6983244adfd0..d30171c78a6e 100644
--- a/basctl/source/basicide/basicrenderable.cxx
+++ b/basctl/source/basicide/basicrenderable.cxx
@@ -48,15 +48,12 @@ Renderable::Renderable (BaseWindow* pWin)
// create a choice for the range to print
OUString aPrintContentName( "PrintContent" );
- Sequence< OUString > aChoices( 2 );
- Sequence< OUString > aHelpIds( 2 );
- Sequence< OUString > aWidgetIds( 2 );
- aChoices[0] = IDE_RESSTR( RID_STR_PRINTDLG_ALLPAGES );
- aHelpIds[0] = ".HelpID:vcl:PrintDialog:PrintContent:RadioButton:0" ;
- aChoices[1] = IDE_RESSTR( RID_STR_PRINTDLG_PAGES );
- aHelpIds[1] = ".HelpID:vcl:PrintDialog:PrintContent:RadioButton:1" ;
- aWidgetIds[0] = "printallpages" ;
- aWidgetIds[1] = "printpages" ;
+ const Sequence<OUString> aChoices{IDE_RESSTR(RID_STR_PRINTDLG_ALLPAGES),
+ IDE_RESSTR(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(),
aHelpIds, aPrintContentName,
aChoices, 0);