diff options
author | Noel Grandin <noel@peralex.com> | 2013-08-19 16:27:07 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-08-22 10:49:25 +0200 |
commit | d09631bd9d7a614c9680df6823446bd430f6bba7 (patch) | |
tree | d9681a39019c5176a25b4abf7d919f3b5d430cdb | |
parent | 823a6cb82555709e50f281a68ff64442001a011b (diff) |
convert include/svtools/ctrl*.hxx from String to OUString
Change-Id: I86b78137f02a11c5a2c34930b19cef22acd7ac69
-rw-r--r-- | include/svtools/ctrlbox.hxx | 6 | ||||
-rw-r--r-- | include/svtools/ctrltool.hxx | 6 | ||||
-rw-r--r-- | svtools/source/control/ctrlbox.cxx | 12 | ||||
-rw-r--r-- | svtools/source/control/ctrltool.cxx | 6 |
4 files changed, 15 insertions, 15 deletions
diff --git a/include/svtools/ctrlbox.hxx b/include/svtools/ctrlbox.hxx index dfc7efeb8863..d7864825b3b8 100644 --- a/include/svtools/ctrlbox.hxx +++ b/include/svtools/ctrlbox.hxx @@ -415,14 +415,14 @@ class SVT_DLLPUBLIC FontNameBox : public ComboBox private: ImplFontList* mpFontList; sal_Bool mbWYSIWYG; - String maFontMRUEntriesFile; + OUString maFontMRUEntriesFile; SVT_DLLPRIVATE void ImplCalcUserItemSize(); SVT_DLLPRIVATE void ImplDestroyFontList(); protected: - void LoadMRUEntries( const String& aFontMRUEntriesFile, sal_Unicode cSep = ';' ); - void SaveMRUEntries( const String& aFontMRUEntriesFile, sal_Unicode cSep = ';' ) const; + void LoadMRUEntries( const OUString& aFontMRUEntriesFile, sal_Unicode cSep = ';' ); + void SaveMRUEntries( const OUString& aFontMRUEntriesFile, sal_Unicode cSep = ';' ) const; public: FontNameBox( Window* pParent, WinBits nWinStyle = WB_SORT ); diff --git a/include/svtools/ctrltool.hxx b/include/svtools/ctrltool.hxx index 706dc37845aa..ad178827baa9 100644 --- a/include/svtools/ctrltool.hxx +++ b/include/svtools/ctrltool.hxx @@ -228,10 +228,10 @@ public: sal_uLong Count() const { return mnElem; } sal_Bool IsEmpty() const { return !mnElem; } - long Name2Size( const String& ) const; - String Size2Name( long ) const; + long Name2Size( const OUString& ) const; + OUString Size2Name( long ) const; - String GetIndexName( sal_uLong nIndex ) const; + OUString GetIndexName( sal_uLong nIndex ) const; long GetIndexSize( sal_uLong nIndex ) const; }; diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx index 88c1c89657d5..743d0657cce4 100644 --- a/svtools/source/control/ctrlbox.cxx +++ b/svtools/source/control/ctrlbox.cxx @@ -1072,12 +1072,12 @@ FontNameBox::~FontNameBox() // ------------------------------------------------------------------- -void FontNameBox::SaveMRUEntries( const String& aFontMRUEntriesFile, sal_Unicode cSep ) const +void FontNameBox::SaveMRUEntries( const OUString& aFontMRUEntriesFile, sal_Unicode cSep ) const { OString aEntries(OUStringToOString(GetMRUEntries(cSep), RTL_TEXTENCODING_UTF8)); - if (aEntries.isEmpty() || !aFontMRUEntriesFile.Len()) + if (aEntries.isEmpty() || aFontMRUEntriesFile.isEmpty()) return; SvFileStream aStream; @@ -1097,9 +1097,9 @@ void FontNameBox::SaveMRUEntries( const String& aFontMRUEntriesFile, sal_Unicode // ------------------------------------------------------------------- -void FontNameBox::LoadMRUEntries( const String& aFontMRUEntriesFile, sal_Unicode cSep ) +void FontNameBox::LoadMRUEntries( const OUString& aFontMRUEntriesFile, sal_Unicode cSep ) { - if( ! aFontMRUEntriesFile.Len() ) + if( aFontMRUEntriesFile.isEmpty() ) return; SvFileStream aStream( aFontMRUEntriesFile, STREAM_READ ); @@ -1126,9 +1126,9 @@ void FontNameBox::InitFontMRUEntriesFile() rtl::Bootstrap::expandMacros(sUserConfigDir); maFontMRUEntriesFile = sUserConfigDir; - if( maFontMRUEntriesFile.Len() ) + if( !maFontMRUEntriesFile.isEmpty() ) { - maFontMRUEntriesFile.AppendAscii( FONTNAMEBOXMRUENTRIESFILE ); + maFontMRUEntriesFile += FONTNAMEBOXMRUENTRIESFILE; } } diff --git a/svtools/source/control/ctrltool.cxx b/svtools/source/control/ctrltool.cxx index 818ed913b602..5adcc8d1c5a5 100644 --- a/svtools/source/control/ctrltool.cxx +++ b/svtools/source/control/ctrltool.cxx @@ -876,7 +876,7 @@ FontSizeNames::FontSizeNames( LanguageType eLanguage ) //------------------------------------------------------------------------ -long FontSizeNames::Name2Size( const String& rName ) const +long FontSizeNames::Name2Size( const OUString& rName ) const { if ( mnElem ) { @@ -894,7 +894,7 @@ long FontSizeNames::Name2Size( const String& rName ) const //------------------------------------------------------------------------ -String FontSizeNames::Size2Name( long nValue ) const +OUString FontSizeNames::Size2Name( long nValue ) const { String aStr; @@ -918,7 +918,7 @@ String FontSizeNames::Size2Name( long nValue ) const //------------------------------------------------------------------------ -String FontSizeNames::GetIndexName( sal_uLong nIndex ) const +OUString FontSizeNames::GetIndexName( sal_uLong nIndex ) const { String aStr; |