summaryrefslogtreecommitdiff
path: root/basctl/source/basicide/basicrenderable.cxx
diff options
context:
space:
mode:
authorMuhammet Kara <muhammet.kara@pardus.org.tr>2016-07-28 17:50:07 +0300
committerNoel Grandin <noelgrandin@gmail.com>2016-08-01 06:22:14 +0000
commit3e79c2f8c274c906d8ac259b4984b9637498e87b (patch)
tree59fb8e662e7a81da53c7954ca2b28a44e9e70b1e /basctl/source/basicide/basicrenderable.cxx
parentbe53870adbae52613f35496296cac7b0dff66aa8 (diff)
tdf#91665 l10n: replace string lists - by separate strings
Convert the stingarray to resource strings. Change-Id: Iae9c52c21fd004c052fa78d959dfa92ad1d16a7d Reviewed-on: https://gerrit.libreoffice.org/27641 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'basctl/source/basicide/basicrenderable.cxx')
-rw-r--r--basctl/source/basicide/basicrenderable.cxx11
1 files changed, 3 insertions, 8 deletions
diff --git a/basctl/source/basicide/basicrenderable.cxx b/basctl/source/basicide/basicrenderable.cxx
index 86afd2003fcf..6983244adfd0 100644
--- a/basctl/source/basicide/basicrenderable.cxx
+++ b/basctl/source/basicide/basicrenderable.cxx
@@ -37,11 +37,6 @@ Renderable::Renderable (BaseWindow* pWin)
: cppu::WeakComponentImplHelper< css::view::XRenderable >( maMutex )
, mpWindow( pWin )
{
- ResStringArray aStrings( IDEResId( RID_PRINTDLG_STRLIST ) );
- DBG_ASSERT( aStrings.Count() >= 3, "resource incomplete" );
- if( aStrings.Count() < 3 ) // bad resource ?
- return;
-
m_aUIProperties.resize( 3 );
// show Subgroup for print range
@@ -49,16 +44,16 @@ Renderable::Renderable (BaseWindow* pWin)
aPrintRangeOpt.maGroupHint = "PrintRange" ;
aPrintRangeOpt.mbInternalOnly = true;
m_aUIProperties[0].Value = setSubgroupControlOpt("printrange",
- OUString(aStrings.GetString(0)), OUString(), aPrintRangeOpt);
+ IDE_RESSTR( RID_STR_PRINTDLG_RANGE ), OUString(), aPrintRangeOpt);
// 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] = aStrings.GetString( 1 );
+ aChoices[0] = IDE_RESSTR( RID_STR_PRINTDLG_ALLPAGES );
aHelpIds[0] = ".HelpID:vcl:PrintDialog:PrintContent:RadioButton:0" ;
- aChoices[1] = aStrings.GetString( 2 );
+ aChoices[1] = IDE_RESSTR( RID_STR_PRINTDLG_PAGES );
aHelpIds[1] = ".HelpID:vcl:PrintDialog:PrintContent:RadioButton:1" ;
aWidgetIds[0] = "printallpages" ;
aWidgetIds[1] = "printpages" ;