Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // create a choice for the content to create
- rtl::OUString aPrintRangeName( RTL_CONSTASCII_USTRINGPARAM( "PrintContent" ) );
- uno::Sequence< rtl::OUString > aChoices( 4 );
- uno::Sequence< sal_Bool > aChoicesDisabled( 4 );
- uno::Sequence< rtl::OUString > aHelpIds( 4 );
- aChoices[0] = aLocalizedStrings.GetString( 27 );
- aChoicesDisabled[0] = sal_False;
- aHelpIds[0] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".HelpID:vcl:PrintDialog:PrintContent:RadioButton:0" ) );
- aChoices[1] = aLocalizedStrings.GetString( 28 );
- aChoicesDisabled[1] = sal_False;
- aHelpIds[1] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".HelpID:vcl:PrintDialog:PrintContent:RadioButton:1" ) );
- aChoices[2] = aLocalizedStrings.GetString( 29 );
- aChoicesDisabled[2] = sal_Bool(! bHasSelection);
- aHelpIds[2] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".HelpID:vcl:PrintDialog:PrintContent:RadioButton:2" ) );
- aChoices[3] = aLocalizedStrings.GetString( 30 );
- aChoicesDisabled[3] = sal_False;
- aHelpIds[3] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".HelpID:vcl:PrintDialog:PrintContent:RadioButton:3" ) );
- m_aUIProperties[nIdx++].Value = getChoiceControlOpt( rtl::OUString(),
- aHelpIds,
- aPrintRangeName,
- aChoices,
- 0 /* always default to 'All pages' */,
- rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Radio" ) ),
- aChoicesDisabled
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement