summaryrefslogtreecommitdiff
path: root/sd/source/ui/dlg/present.cxx
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2013-08-21 15:25:35 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2013-08-21 15:52:46 +0400
commit4802bf2da3439cfddde79a4193e642dac58eab9d (patch)
tree17bdcd421fd5a528c81dc29b73c8cfae45af1729 /sd/source/ui/dlg/present.cxx
parent64b315df9b7f90621db92062c6ce62f487325388 (diff)
String->OUString
Change-Id: Ifb3a2f8ef959baec38fe0168a9e88e85da0d9744
Diffstat (limited to 'sd/source/ui/dlg/present.cxx')
-rw-r--r--sd/source/ui/dlg/present.cxx15
1 files changed, 7 insertions, 8 deletions
diff --git a/sd/source/ui/dlg/present.cxx b/sd/source/ui/dlg/present.cxx
index 8264101a614d..7c1e1d04b924 100644
--- a/sd/source/ui/dlg/present.cxx
+++ b/sd/source/ui/dlg/present.cxx
@@ -38,7 +38,7 @@ using namespace ::com::sun::star::beans;
SdStartPresentationDlg::SdStartPresentationDlg( Window* pWindow,
const SfxItemSet& rInAttrs,
- const std::vector<String> &rPageNames, SdCustomShowList* pCSList ) :
+ const std::vector<OUString> &rPageNames, SdCustomShowList* pCSList ) :
ModalDialog ( pWindow, "PresentationDialog", "modules/simpress/ui/presentationdialog.ui" ),
pCustomShowList ( pCSList ),
rOutAttrs ( rInAttrs ),
@@ -88,7 +88,7 @@ SdStartPresentationDlg::SdStartPresentationDlg( Window* pWindow,
aTmfPause->SetFormat( TIMEF_SEC );
// fill Listbox with page names
- for (std::vector<String>::const_iterator pIter = rPageNames.begin(); pIter != rPageNames.end(); ++pIter)
+ for (std::vector<OUString>::const_iterator pIter = rPageNames.begin(); pIter != rPageNames.end(); ++pIter)
aLbDias->InsertEntry(*pIter);
if( pCustomShowList )
@@ -151,10 +151,10 @@ SdStartPresentationDlg::SdStartPresentationDlg( Window* pWindow,
ChangePauseHdl( NULL );
}
-String SdStartPresentationDlg::GetDisplayName( sal_Int32 nDisplay,
- DisplayType eType )
+OUString SdStartPresentationDlg::GetDisplayName( sal_Int32 nDisplay,
+ DisplayType eType )
{
- String aName;
+ OUString aName;
switch ( eType )
{
@@ -169,8 +169,7 @@ String SdStartPresentationDlg::GetDisplayName( sal_Int32 nDisplay,
aName = msMonitor->GetText();
break;
}
- const String aNumber( OUString::number( nDisplay ) );
- aName.SearchAndReplace( String("%1"), aNumber );
+ aName = aName.replaceFirst( "%1", OUString::number( nDisplay ) );
return aName;
}
@@ -214,7 +213,7 @@ void SdStartPresentationDlg::InitMonitorSettings()
sal_Int32 nInsertedEntry;
// Initial entry - the auto-detected external monitor
- String aName = GetDisplayName( nExternalIndex + 1, EXTERNAL_IS_NUMBER);
+ OUString aName = GetDisplayName( nExternalIndex + 1, EXTERNAL_IS_NUMBER);
nInsertedEntry = InsertDisplayEntry( aName, 0 );
if( nDefaultSelectedDisplay == 0)
nSelectedIndex = nInsertedEntry;