summaryrefslogtreecommitdiffstats
path: root/starmath/source/unomodel.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/source/unomodel.cxx')
-rw-r--r--starmath/source/unomodel.cxx27
1 files changed, 15 insertions, 12 deletions
diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx
index f85e044c0182..8e617e348d3c 100644
--- a/starmath/source/unomodel.cxx
+++ b/starmath/source/unomodel.cxx
@@ -111,18 +111,21 @@ SmPrintUIOptions::SmPrintUIOptions()
m_aUIProperties[nIdx++].Value = setSubgroupControlOpt("size", aLocalizedStrings.GetString(5), OUString());
// create a radio button group for print format (matches to SID_PRINTSIZE)
- Sequence< OUString > aChoices( 3 );
- aChoices[0] = aLocalizedStrings.GetString( 6 );
- aChoices[1] = aLocalizedStrings.GetString( 7 );
- aChoices[2] = aLocalizedStrings.GetString( 8 );
- Sequence< OUString > aHelpIds( 3 );
- aHelpIds[0] = ".HelpID:vcl:PrintDialog:PrintFormat:RadioButton:0";
- aHelpIds[1] = ".HelpID:vcl:PrintDialog:PrintFormat:RadioButton:1";
- aHelpIds[2] = ".HelpID:vcl:PrintDialog:PrintFormat:RadioButton:2";
- Sequence< OUString > aWidgetIds( 3 );
- aWidgetIds[0] = "originalsize";
- aWidgetIds[1] = "fittopage";
- aWidgetIds[2] = "scaling";
+ Sequence< OUString > aChoices{
+ aLocalizedStrings.GetString( 6 ),
+ aLocalizedStrings.GetString( 7 ),
+ aLocalizedStrings.GetString( 8 )
+ };
+ Sequence< OUString > aHelpIds{
+ ".HelpID:vcl:PrintDialog:PrintFormat:RadioButton:0",
+ ".HelpID:vcl:PrintDialog:PrintFormat:RadioButton:1",
+ ".HelpID:vcl:PrintDialog:PrintFormat:RadioButton:2"
+ };
+ Sequence< OUString > aWidgetIds{
+ "originalsize",
+ "fittopage",
+ "scaling"
+ };
OUString aPrintFormatProp( PRTUIOPT_PRINT_FORMAT );
m_aUIProperties[nIdx++].Value = setChoiceRadiosControlOpt(aWidgetIds, OUString(),
aHelpIds,