Kaydet (Commit) b691b5bc authored tarafından Philipp Lohmann [pl]'s avatar Philipp Lohmann [pl]

vcl117: #i115056# change direct help texts to help ids to allow for proper help content

üst 76039bc5
...@@ -33,8 +33,6 @@ StringArray RID_PRINTDLG_STRLIST ...@@ -33,8 +33,6 @@ StringArray RID_PRINTDLG_STRLIST
{ {
< "Print range"; >; < "Print range"; >;
< "All ~Pages"; >; < "All ~Pages"; >;
< "Print all pages of the printable content."; >;
< "Pa~ges"; >; < "Pa~ges"; >;
< "Print only some pages of the printable content."; >;
}; };
}; };
...@@ -45,8 +45,8 @@ BasicRenderable::BasicRenderable( IDEBaseWindow* pWin ) ...@@ -45,8 +45,8 @@ BasicRenderable::BasicRenderable( IDEBaseWindow* pWin )
, mpWindow( pWin ) , mpWindow( pWin )
{ {
ResStringArray aStrings( IDEResId( RID_PRINTDLG_STRLIST ) ); ResStringArray aStrings( IDEResId( RID_PRINTDLG_STRLIST ) );
DBG_ASSERT( aStrings.Count() >= 5, "resource incomplete" ); DBG_ASSERT( aStrings.Count() >= 3, "resource incomplete" );
if( aStrings.Count() < 5 ) // bad resource ? if( aStrings.Count() < 3 ) // bad resource ?
return; return;
m_aUIProperties.realloc( 3 ); m_aUIProperties.realloc( 3 );
...@@ -63,13 +63,13 @@ BasicRenderable::BasicRenderable( IDEBaseWindow* pWin ) ...@@ -63,13 +63,13 @@ BasicRenderable::BasicRenderable( IDEBaseWindow* pWin )
// create a choice for the range to print // create a choice for the range to print
rtl::OUString aPrintContentName( RTL_CONSTASCII_USTRINGPARAM( "PrintContent" ) ); rtl::OUString aPrintContentName( RTL_CONSTASCII_USTRINGPARAM( "PrintContent" ) );
Sequence< rtl::OUString > aChoices( 2 ); Sequence< rtl::OUString > aChoices( 2 );
Sequence< rtl::OUString > aHelpTexts( 2 ); Sequence< rtl::OUString > aHelpIds( 2 );
aChoices[0] = aStrings.GetString( 1 ); aChoices[0] = aStrings.GetString( 1 );
aHelpTexts[0] = aStrings.GetString( 2 ); aHelpIds[0] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".HelpID:vcl:PrintDialog:PrintContent:RadioButton:0" ) );
aChoices[1] = aStrings.GetString( 3 ); aChoices[1] = aStrings.GetString( 2 );
aHelpTexts[1] = aStrings.GetString( 4 ); aHelpIds[1] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".HelpID:vcl:PrintDialog:PrintContent:RadioButton:1" ) );
m_aUIProperties[1].Value = getChoiceControlOpt( rtl::OUString(), m_aUIProperties[1].Value = getChoiceControlOpt( rtl::OUString(),
aHelpTexts, aHelpIds,
aPrintContentName, aPrintContentName,
aChoices, aChoices,
0 ); 0 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment