Kaydet (Commit) d09631bd authored tarafından Noel Grandin's avatar Noel Grandin

convert include/svtools/ctrl*.hxx from String to OUString

Change-Id: I86b78137f02a11c5a2c34930b19cef22acd7ac69
üst 823a6cb8
...@@ -415,14 +415,14 @@ class SVT_DLLPUBLIC FontNameBox : public ComboBox ...@@ -415,14 +415,14 @@ class SVT_DLLPUBLIC FontNameBox : public ComboBox
private: private:
ImplFontList* mpFontList; ImplFontList* mpFontList;
sal_Bool mbWYSIWYG; sal_Bool mbWYSIWYG;
String maFontMRUEntriesFile; OUString maFontMRUEntriesFile;
SVT_DLLPRIVATE void ImplCalcUserItemSize(); SVT_DLLPRIVATE void ImplCalcUserItemSize();
SVT_DLLPRIVATE void ImplDestroyFontList(); SVT_DLLPRIVATE void ImplDestroyFontList();
protected: protected:
void LoadMRUEntries( const String& aFontMRUEntriesFile, sal_Unicode cSep = ';' ); void LoadMRUEntries( const OUString& aFontMRUEntriesFile, sal_Unicode cSep = ';' );
void SaveMRUEntries( const String& aFontMRUEntriesFile, sal_Unicode cSep = ';' ) const; void SaveMRUEntries( const OUString& aFontMRUEntriesFile, sal_Unicode cSep = ';' ) const;
public: public:
FontNameBox( Window* pParent, FontNameBox( Window* pParent,
WinBits nWinStyle = WB_SORT ); WinBits nWinStyle = WB_SORT );
......
...@@ -228,10 +228,10 @@ public: ...@@ -228,10 +228,10 @@ public:
sal_uLong Count() const { return mnElem; } sal_uLong Count() const { return mnElem; }
sal_Bool IsEmpty() const { return !mnElem; } sal_Bool IsEmpty() const { return !mnElem; }
long Name2Size( const String& ) const; long Name2Size( const OUString& ) const;
String Size2Name( long ) const; OUString Size2Name( long ) const;
String GetIndexName( sal_uLong nIndex ) const; OUString GetIndexName( sal_uLong nIndex ) const;
long GetIndexSize( sal_uLong nIndex ) const; long GetIndexSize( sal_uLong nIndex ) const;
}; };
......
...@@ -1072,12 +1072,12 @@ FontNameBox::~FontNameBox() ...@@ -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), OString aEntries(OUStringToOString(GetMRUEntries(cSep),
RTL_TEXTENCODING_UTF8)); RTL_TEXTENCODING_UTF8));
if (aEntries.isEmpty() || !aFontMRUEntriesFile.Len()) if (aEntries.isEmpty() || aFontMRUEntriesFile.isEmpty())
return; return;
SvFileStream aStream; SvFileStream aStream;
...@@ -1097,9 +1097,9 @@ void FontNameBox::SaveMRUEntries( const String& aFontMRUEntriesFile, sal_Unicode ...@@ -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; return;
SvFileStream aStream( aFontMRUEntriesFile, STREAM_READ ); SvFileStream aStream( aFontMRUEntriesFile, STREAM_READ );
...@@ -1126,9 +1126,9 @@ void FontNameBox::InitFontMRUEntriesFile() ...@@ -1126,9 +1126,9 @@ void FontNameBox::InitFontMRUEntriesFile()
rtl::Bootstrap::expandMacros(sUserConfigDir); rtl::Bootstrap::expandMacros(sUserConfigDir);
maFontMRUEntriesFile = sUserConfigDir; maFontMRUEntriesFile = sUserConfigDir;
if( maFontMRUEntriesFile.Len() ) if( !maFontMRUEntriesFile.isEmpty() )
{ {
maFontMRUEntriesFile.AppendAscii( FONTNAMEBOXMRUENTRIESFILE ); maFontMRUEntriesFile += FONTNAMEBOXMRUENTRIESFILE;
} }
} }
......
...@@ -876,7 +876,7 @@ FontSizeNames::FontSizeNames( LanguageType eLanguage ) ...@@ -876,7 +876,7 @@ FontSizeNames::FontSizeNames( LanguageType eLanguage )
//------------------------------------------------------------------------ //------------------------------------------------------------------------
long FontSizeNames::Name2Size( const String& rName ) const long FontSizeNames::Name2Size( const OUString& rName ) const
{ {
if ( mnElem ) if ( mnElem )
{ {
...@@ -894,7 +894,7 @@ long FontSizeNames::Name2Size( const String& rName ) const ...@@ -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; String aStr;
...@@ -918,7 +918,7 @@ String FontSizeNames::Size2Name( long nValue ) const ...@@ -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; String aStr;
......
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