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

convert VCL from String to OUString

Change-Id: Ia87d498f0875caa81d6ae85c505bae2d1da3c51c
üst 6941b7c8
...@@ -371,7 +371,7 @@ private: ...@@ -371,7 +371,7 @@ private:
// TODO: at least the ones which just differ in orientation, stretching or height // TODO: at least the ones which just differ in orientation, stretching or height
typedef ::std::pair<sal_UCS4,FontWeight> GFBCacheKey; typedef ::std::pair<sal_UCS4,FontWeight> GFBCacheKey;
struct GFBCacheKey_Hash{ size_t operator()( const GFBCacheKey& ) const; }; struct GFBCacheKey_Hash{ size_t operator()( const GFBCacheKey& ) const; };
typedef ::boost::unordered_map<GFBCacheKey,String,GFBCacheKey_Hash> UnicodeFallbackList; typedef ::boost::unordered_map<GFBCacheKey,OUString,GFBCacheKey_Hash> UnicodeFallbackList;
UnicodeFallbackList* mpUnicodeFallbackList; UnicodeFallbackList* mpUnicodeFallbackList;
}; };
......
...@@ -119,7 +119,7 @@ struct ImplSVAppData ...@@ -119,7 +119,7 @@ struct ImplSVAppData
OUString* mpAppName; // Application name OUString* mpAppName; // Application name
OUString* mpAppFileName; // Abs. Application FileName OUString* mpAppFileName; // Abs. Application FileName
OUString* mpDisplayName; // Application Display Name OUString* mpDisplayName; // Application Display Name
String* mpFontPath; // Additional Fontpath OUString* mpFontPath; // Additional Fontpath
Help* mpHelp; // Application help Help* mpHelp; // Application help
PopupMenu* mpActivePopupMenu; // Actives Popup-Menu (in Execute) PopupMenu* mpActivePopupMenu; // Actives Popup-Menu (in Execute)
ImplIdleMgr* mpIdleMgr; // Idle-Manager ImplIdleMgr* mpIdleMgr; // Idle-Manager
......
...@@ -298,17 +298,17 @@ sal_uInt16 MulDiv(sal_uInt16 a, sal_uInt16 Mul, sal_uInt16 Div); ...@@ -298,17 +298,17 @@ sal_uInt16 MulDiv(sal_uInt16 a, sal_uInt16 Mul, sal_uInt16 Div);
class SgfFontOne { class SgfFontOne {
public: public:
SgfFontOne* Next; // Zeiger f"ur Listenverkettung SgfFontOne* Next; // Zeiger f"ur Listenverkettung
sal_uInt32 IFID; sal_uInt32 IFID;
sal_Bool Bold; sal_Bool Bold;
sal_Bool Ital; sal_Bool Ital;
sal_Bool Sans; sal_Bool Sans;
sal_Bool Serf; sal_Bool Serf;
sal_Bool Fixd; sal_Bool Fixd;
FontFamily SVFamil; FontFamily SVFamil;
CharSet SVChSet; rtl_TextEncoding SVChSet;
OUString SVFName; // z.B. "Times New Roman" = 15 Chars OUString SVFName; // z.B. "Times New Roman" = 15 Chars
sal_uInt16 SVWidth; // Durchschnittliche Zeichenbreite in % sal_uInt16 SVWidth; // Durchschnittliche Zeichenbreite in %
SgfFontOne(); SgfFontOne();
void ReadOne(const OString& rID, OString& rDsc); void ReadOne(const OString& rID, OString& rDsc);
}; };
......
...@@ -140,7 +140,7 @@ void WinMtfPathObj::ClosePath() ...@@ -140,7 +140,7 @@ void WinMtfPathObj::ClosePath()
WinMtfFontStyle::WinMtfFontStyle( LOGFONTW& rFont ) WinMtfFontStyle::WinMtfFontStyle( LOGFONTW& rFont )
{ {
CharSet eCharSet; rtl_TextEncoding eCharSet;
if ( ( rFont.lfCharSet == OEM_CHARSET ) || ( rFont.lfCharSet == DEFAULT_CHARSET ) ) if ( ( rFont.lfCharSet == OEM_CHARSET ) || ( rFont.lfCharSet == DEFAULT_CHARSET ) )
eCharSet = RTL_TEXTENCODING_MS_1252; eCharSet = RTL_TEXTENCODING_MS_1252;
else else
......
...@@ -701,7 +701,7 @@ public: ...@@ -701,7 +701,7 @@ public:
void CreateObject( sal_Int32 nIndex, GDIObjectType, void* pStyle = NULL ); void CreateObject( sal_Int32 nIndex, GDIObjectType, void* pStyle = NULL );
void DeleteObject( sal_Int32 nIndex ); void DeleteObject( sal_Int32 nIndex );
void SelectObject( sal_Int32 nIndex ); void SelectObject( sal_Int32 nIndex );
CharSet GetCharSet(){ return maFont.GetCharSet(); }; rtl_TextEncoding GetCharSet(){ return maFont.GetCharSet(); };
WinMtfFillStyle& GetFillStyle () { return maFillStyle; } WinMtfFillStyle& GetFillStyle () { return maFillStyle; }
const Font& GetFont() const; const Font& GetFont() const;
void SetTextLayoutMode( const sal_uInt32 nLayoutMode ); void SetTextLayoutMode( const sal_uInt32 nLayoutMode );
......
...@@ -310,8 +310,8 @@ void WMFWriter::WMFRecord_CreateFontIndirect(const Font & rFont) ...@@ -310,8 +310,8 @@ void WMFWriter::WMFRecord_CreateFontIndirect(const Font & rFont)
if (rFont.GetUnderline()==UNDERLINE_NONE) *pWMF << (sal_uInt8)0; else *pWMF << (sal_uInt8)1; if (rFont.GetUnderline()==UNDERLINE_NONE) *pWMF << (sal_uInt8)0; else *pWMF << (sal_uInt8)1;
if (rFont.GetStrikeout()==STRIKEOUT_NONE) *pWMF << (sal_uInt8)0; else *pWMF << (sal_uInt8)1; if (rFont.GetStrikeout()==STRIKEOUT_NONE) *pWMF << (sal_uInt8)0; else *pWMF << (sal_uInt8)1;
CharSet eFontNameEncoding = rFont.GetCharSet(); rtl_TextEncoding eFontNameEncoding = rFont.GetCharSet();
sal_uInt8 nCharSet = rtl_getBestWindowsCharsetFromTextEncoding( eFontNameEncoding ); sal_uInt8 nCharSet = rtl_getBestWindowsCharsetFromTextEncoding( eFontNameEncoding );
if ( eFontNameEncoding == RTL_TEXTENCODING_SYMBOL ) if ( eFontNameEncoding == RTL_TEXTENCODING_SYMBOL )
eFontNameEncoding = RTL_TEXTENCODING_MS_1252; eFontNameEncoding = RTL_TEXTENCODING_MS_1252;
if ( nCharSet == 1 ) if ( nCharSet == 1 )
......
...@@ -793,7 +793,7 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf ) ...@@ -793,7 +793,7 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
rIStm >> bItalic >> bOutline >> bShadow >> bTransparent; rIStm >> bItalic >> bOutline >> bShadow >> bTransparent;
aFont.SetSize( Size( nWidth, nHeight ) ); aFont.SetSize( Size( nWidth, nHeight ) );
aFont.SetCharSet( (CharSet) nCharSet ); aFont.SetCharSet( (rtl_TextEncoding) nCharSet );
aFont.SetFamily( (FontFamily) nFamily ); aFont.SetFamily( (FontFamily) nFamily );
aFont.SetPitch( (FontPitch) nPitch ); aFont.SetPitch( (FontPitch) nPitch );
aFont.SetAlign( (FontAlign) nAlign ); aFont.SetAlign( (FontAlign) nAlign );
......
...@@ -373,7 +373,7 @@ void Font::SetFamily( FontFamily eFamily ) ...@@ -373,7 +373,7 @@ void Font::SetFamily( FontFamily eFamily )
} }
} }
void Font::SetCharSet( CharSet eCharSet ) void Font::SetCharSet( rtl_TextEncoding eCharSet )
{ {
DBG_CHKTHIS( Font, NULL ); DBG_CHKTHIS( Font, NULL );
......
...@@ -83,7 +83,7 @@ public: ...@@ -83,7 +83,7 @@ public:
int m_nAscent; int m_nAscent;
int m_nDescent; int m_nDescent;
FontFamily m_eFamily; // Family FontFamily m_eFamily; // Family
CharSet m_eCharSet; // CharSet rtl_TextEncoding m_eCharSet; // CharSet
FontPitch m_ePitch; // Pitch FontPitch m_ePitch; // Pitch
FontWidth m_eWidthType; // WidthType FontWidth m_eWidthType; // WidthType
FontWeight m_eWeight; // Weight FontWeight m_eWeight; // Weight
......
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