diff options
author | Noel Grandin <noel@peralex.com> | 2013-07-25 17:15:41 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-07-29 14:15:42 +0200 |
commit | bfc58ddbf470000b329ab271cdf441f97c9d27a7 (patch) | |
tree | 81ec03b3fc7e82d5e7e013e14a47735ec578b626 /vcl/inc | |
parent | 7ef052646a7c8065241e694e75e2326179016db3 (diff) |
convert more XubString->OUString in OutputDevice
Change-Id: I7c100614f7321c8c0527067012b47673ac6914f1
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/outdev.h | 24 | ||||
-rw-r--r-- | vcl/inc/outfont.hxx | 4 |
2 files changed, 14 insertions, 14 deletions
diff --git a/vcl/inc/outdev.h b/vcl/inc/outdev.h index cf5feb0093ca..fdeae8b9b7a0 100644 --- a/vcl/inc/outdev.h +++ b/vcl/inc/outdev.h @@ -51,18 +51,18 @@ class GetDevSizeList; class ImplDevFontListData { public: - ImplDevFontListData( const String& rSearchName ); + ImplDevFontListData( const OUString& rSearchName ); ~ImplDevFontListData(); const OUString& GetFamilyName() const { return maName; } - const String& GetSearchName() const { return maSearchName; } + const OUString& GetSearchName() const { return maSearchName; } const OUString& GetAliasNames() const { return maMapNames; } bool IsScalable() const { return mpFirst->IsScalable(); } int GetMinQuality() const { return mnMinQuality; } bool AddFontFace( PhysicalFontFace* ); void InitMatchData( const utl::FontSubstConfiguration&, - const String& rSearchName ); + const OUString& rSearchName ); PhysicalFontFace* FindBestFontFace( const FontSelectPattern& rFSD ) const; void GetFontHeights( std::set<int>& rHeights ) const; @@ -74,11 +74,11 @@ private: friend class ImplDevFontList; // TODO: remove soon PhysicalFontFace* mpFirst; // linked list of physical font faces OUString maName; // Fontname (original font family name) - String maSearchName; // normalized font family name + OUString maSearchName; // normalized font family name OUString maMapNames; // fontname aliases sal_uIntPtr mnTypeFaces; // Typeface Flags sal_uIntPtr mnMatchType; // MATCH - Type - String maMatchFamilyName; // MATCH - FamilyName + OUString maMatchFamilyName; // MATCH - FamilyName FontWeight meMatchWeight; // MATCH - Weight FontWidth meMatchWidth; // MATCH - Width FontFamily meFamily; @@ -112,16 +112,16 @@ public: class ImplGetDevSizeList { private: - String maFontName; + OUString maFontName; std::vector<int> maSizeList; public: - ImplGetDevSizeList( const String& rFontName ) + ImplGetDevSizeList( const OUString& rFontName ) : maFontName( rFontName ) { maSizeList.reserve( 32 ); } void Add( int nHeight ) { maSizeList.push_back( nHeight ); } int Count() const { return maSizeList.size(); } int Get( int nIndex ) const { return maSizeList[ nIndex ]; } - const String& GetFontName() const { return maFontName; } + const OUString& GetFontName() const { return maFontName; } }; // ------------------------ @@ -148,8 +148,8 @@ protected: struct ImplFontSubstEntry { - String maName; - String maReplaceName; + OUString maName; + OUString maReplaceName; OUString maSearchName; OUString maSearchReplaceName; sal_uInt16 mnFlags; @@ -164,13 +164,13 @@ private: typedef std::list<ImplFontSubstEntry> FontSubstList; FontSubstList maFontSubstList; public: - void AddFontSubstitute( const String& rFontName, const String& rSubstName, sal_uInt16 nFlags ); + void AddFontSubstitute( const OUString& rFontName, const OUString& rSubstName, sal_uInt16 nFlags ); void RemoveFontSubstitute( int nIndex ); int GetFontSubstituteCount() const { return maFontSubstList.size(); }; bool Empty() const { return maFontSubstList.empty(); } void Clear() { maFontSubstList.clear(); } - bool FindFontSubstitute( String& rSubstName, const String& rFontName, sal_uInt16 nFlags ) const; + bool FindFontSubstitute( OUString& rSubstName, const OUString& rFontName, sal_uInt16 nFlags ) const; }; // PreMatchFontSubstitution diff --git a/vcl/inc/outfont.hxx b/vcl/inc/outfont.hxx index 140af384f13a..f48d68f7483d 100644 --- a/vcl/inc/outfont.hxx +++ b/vcl/inc/outfont.hxx @@ -361,9 +361,9 @@ public: // TODO: make data members private short mnOrientation; // text angle in 3600 system bool mbInit; // true if maMetric member is valid - void AddFallbackForUnicode( sal_UCS4, FontWeight eWeight, const String& rFontName ); + void AddFallbackForUnicode( sal_UCS4, FontWeight eWeight, const OUString& rFontName ); bool GetFallbackForUnicode( sal_UCS4, FontWeight eWeight, OUString* pFontName ) const; - void IgnoreFallbackForUnicode( sal_UCS4, FontWeight eWeight, const String& rFontName ); + void IgnoreFallbackForUnicode( sal_UCS4, FontWeight eWeight, const OUString& rFontName ); private: // cache of Unicode characters and replacement font names |