Advertisement
tatung

in printdata.cxx

Jul 22nd, 2011
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. // create a choice for the content to create
  2. rtl::OUString aPrintRangeName( RTL_CONSTASCII_USTRINGPARAM( "PrintContent" ) );
  3. uno::Sequence< rtl::OUString > aChoices( 4 );
  4. uno::Sequence< sal_Bool > aChoicesDisabled( 4 );
  5. uno::Sequence< rtl::OUString > aHelpIds( 4 );
  6. aChoices[0] = aLocalizedStrings.GetString( 27 );
  7. aChoicesDisabled[0] = sal_False;
  8. aHelpIds[0] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".HelpID:vcl:PrintDialog:PrintContent:RadioButton:0" ) );
  9. aChoices[1] = aLocalizedStrings.GetString( 28 );
  10. aChoicesDisabled[1] = sal_False;
  11. aHelpIds[1] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".HelpID:vcl:PrintDialog:PrintContent:RadioButton:1" ) );
  12. aChoices[2] = aLocalizedStrings.GetString( 29 );
  13. aChoicesDisabled[2] = sal_Bool(! bHasSelection);
  14. aHelpIds[2] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".HelpID:vcl:PrintDialog:PrintContent:RadioButton:2" ) );
  15. aChoices[3] = aLocalizedStrings.GetString( 30 );
  16. aChoicesDisabled[3] = sal_False;
  17. aHelpIds[3] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".HelpID:vcl:PrintDialog:PrintContent:RadioButton:3" ) );
  18. m_aUIProperties[nIdx++].Value = getChoiceControlOpt( rtl::OUString(),
  19. aHelpIds,
  20. aPrintRangeName,
  21. aChoices,
  22. 0 /* always default to 'All pages' */,
  23. rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Radio" ) ),
  24. aChoicesDisabled
  25. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement