diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-10-21 11:31:31 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-10-21 14:26:31 +0100 |
commit | 958f7b512cff932f7f2d52d128c297d0f0ab6354 (patch) | |
tree | 33d65c06a9575aafde39e3258d2a9c27130cfaab /sw | |
parent | 288c606d84821026db130fc883825fdd0e2f65fe (diff) |
drop CharSet typedef
Change-Id: Ia160d7cbaa2ee71773483c3f91306f89cdad5947
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/iodetect.hxx | 2 | ||||
-rw-r--r-- | sw/source/core/doc/tblafmt.cxx | 6 | ||||
-rw-r--r-- | sw/source/core/inc/swfont.hxx | 8 | ||||
-rw-r--r-- | sw/source/filter/basflt/iodetect.cxx | 4 | ||||
-rw-r--r-- | sw/source/filter/ww8/ww8par.cxx | 12 | ||||
-rw-r--r-- | sw/source/filter/ww8/ww8par.hxx | 8 | ||||
-rw-r--r-- | sw/source/filter/ww8/ww8par2.cxx | 6 | ||||
-rw-r--r-- | sw/source/filter/ww8/ww8par5.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/ww8/ww8par6.cxx | 6 | ||||
-rw-r--r-- | sw/source/ui/config/uinums.cxx | 10 | ||||
-rw-r--r-- | sw/source/ui/inc/insfnote.hxx | 4 |
11 files changed, 34 insertions, 34 deletions
diff --git a/sw/inc/iodetect.hxx b/sw/inc/iodetect.hxx index ef9933d33fdd..c77ee2dacacf 100644 --- a/sw/inc/iodetect.hxx +++ b/sw/inc/iodetect.hxx @@ -108,7 +108,7 @@ public: SWD_DLLPUBLIC static bool IsDetectableText( const sal_Char* pBuf, sal_uLong &rLen, - CharSet *pCharSet=0, bool *pSwap=0, LineEnd *pLineEnd=0, bool bEncodedFilter = false ); + rtl_TextEncoding *pCharSet=0, bool *pSwap=0, LineEnd *pLineEnd=0, bool bEncodedFilter = false ); static const SfxFilter* GetTextFilter( const sal_Char* pBuf, sal_uLong nLen ); diff --git a/sw/source/core/doc/tblafmt.cxx b/sw/source/core/doc/tblafmt.cxx index cfb57994d4a8..80e8761dedc0 100644 --- a/sw/source/core/doc/tblafmt.cxx +++ b/sw/source/core/doc/tblafmt.cxx @@ -473,7 +473,7 @@ sal_Bool SwBoxAutoFmt::Load( SvStream& rStream, const SwAfVersions& rVersions, s { sal_uInt16 eSys, eLge; // --- from 680/dr25 on: store strings as UTF-8 - CharSet eCharSet = (nVer >= AUTOFORMAT_ID_680DR25) ? RTL_TEXTENCODING_UTF8 : rStream.GetStreamCharSet(); + rtl_TextEncoding eCharSet = (nVer >= AUTOFORMAT_ID_680DR25) ? RTL_TEXTENCODING_UTF8 : rStream.GetStreamCharSet(); sNumFmtString = rStream.ReadUniOrByteString( eCharSet ); rStream >> eSys >> eLge; eSysLanguage = (LanguageType) eSys; @@ -908,7 +908,7 @@ sal_Bool SwTableAutoFmt::Load( SvStream& rStream, const SwAfVersions& rVersions { sal_Bool b; // --- from 680/dr25 on: store strings as UTF-8 - CharSet eCharSet = (nVal >= AUTOFORMAT_ID_680DR25) ? RTL_TEXTENCODING_UTF8 : rStream.GetStreamCharSet(); + rtl_TextEncoding eCharSet = (nVal >= AUTOFORMAT_ID_680DR25) ? RTL_TEXTENCODING_UTF8 : rStream.GetStreamCharSet(); m_aName = rStream.ReadUniOrByteString( eCharSet ); if( AUTOFORMAT_DATA_ID_552 <= nVal ) { @@ -1154,7 +1154,7 @@ sal_Bool SwTableAutoFmtTbl::Load( SvStream& rStream ) OSL_ENSURE( !this, "The Header contains more or newer Data" ); rStream.Seek( nPos + nCnt ); } - rStream.SetStreamCharSet( (CharSet)nChrSet ); + rStream.SetStreamCharSet( (rtl_TextEncoding)nChrSet ); rStream.SetVersion( nFileVers ); } diff --git a/sw/source/core/inc/swfont.hxx b/sw/source/core/inc/swfont.hxx index 8f7338f8a79d..6df1dd2d33fb 100644 --- a/sw/source/core/inc/swfont.hxx +++ b/sw/source/core/inc/swfont.hxx @@ -84,7 +84,7 @@ class SwSubFont : public SvxFont inline void SetColor( const Color& rColor ); inline void SetFillColor( const Color& rColor ); - inline void SetCharSet( const CharSet eCharSet ); + inline void SetCharSet( const rtl_TextEncoding eCharSet ); inline void SetPitch( const FontPitch ePitch ); inline void SetAlign( const FontAlign eAlign ); inline void SetUnderline( const FontUnderline eUnderline ); @@ -236,7 +236,7 @@ public: inline void SetWeight( const FontWeight eWeight, const sal_uInt8 nWhich ); inline void SetItalic( const FontItalic eItalic, const sal_uInt8 nWhich ); inline void SetLanguage( LanguageType eNewLang, const sal_uInt8 nWhich ); - inline void SetCharSet( const CharSet eCharSet, const sal_uInt8 nWhich ); + inline void SetCharSet( const rtl_TextEncoding eCharSet, const sal_uInt8 nWhich ); inline void SetPitch( const FontPitch ePitch, const sal_uInt8 nWhich ); inline void SetRelief( const FontRelief eNew ); @@ -513,13 +513,13 @@ inline void SwFont::SetStyleName( const OUString& rStyle, const sal_uInt8 nWhich } // gekapselte SV-Font-Methode -inline void SwSubFont::SetCharSet( const CharSet eCharSet ) +inline void SwSubFont::SetCharSet( const rtl_TextEncoding eCharSet ) { pMagic = 0; Font::SetCharSet( eCharSet ); } -inline void SwFont::SetCharSet( const CharSet eCharSet, const sal_uInt8 nWhich ) +inline void SwFont::SetCharSet( const rtl_TextEncoding eCharSet, const sal_uInt8 nWhich ) { bFntChg = sal_True; aSub[nWhich].SetCharSet( eCharSet ); diff --git a/sw/source/filter/basflt/iodetect.cxx b/sw/source/filter/basflt/iodetect.cxx index e1138d3fb480..9351dc0bf85f 100644 --- a/sw/source/filter/basflt/iodetect.cxx +++ b/sw/source/filter/basflt/iodetect.cxx @@ -404,10 +404,10 @@ const SfxFilter* SwIoSystem::GetFileFilter(const OUString& rFileName, } bool SwIoSystem::IsDetectableText(const sal_Char* pBuf, sal_uLong &rLen, - CharSet *pCharSet, bool *pSwap, LineEnd *pLineEnd, bool bEncodedFilter) + rtl_TextEncoding *pCharSet, bool *pSwap, LineEnd *pLineEnd, bool bEncodedFilter) { bool bSwap = false; - CharSet eCharSet = RTL_TEXTENCODING_DONTKNOW; + rtl_TextEncoding eCharSet = RTL_TEXTENCODING_DONTKNOW; bool bLE = true; /*See if it's a known unicode type*/ if (rLen >= 2) diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx index 50354b3abfa5..313b423d5e03 100644 --- a/sw/source/filter/ww8/ww8par.cxx +++ b/sw/source/filter/ww8/ww8par.cxx @@ -2395,7 +2395,7 @@ bool SwWW8ImplReader::ProcessSpecial(bool &rbReSync, WW8_CP nStartCp) return bTableRowEnd; } -CharSet SwWW8ImplReader::GetCurrentCharSet() +rtl_TextEncoding SwWW8ImplReader::GetCurrentCharSet() { /* #i2015 @@ -2403,7 +2403,7 @@ CharSet SwWW8ImplReader::GetCurrentCharSet() character run that has set the charset, if not then fallback to the current underlying paragraph style. */ - CharSet eSrcCharSet = eHardCharSet; + rtl_TextEncoding eSrcCharSet = eHardCharSet; if (eSrcCharSet == RTL_TEXTENCODING_DONTKNOW) { if (!maFontSrcCharSets.empty()) @@ -2434,7 +2434,7 @@ CharSet SwWW8ImplReader::GetCurrentCharSet() } //Takashi Ono for CJK -CharSet SwWW8ImplReader::GetCurrentCJKCharSet() +rtl_TextEncoding SwWW8ImplReader::GetCurrentCJKCharSet() { /* #i2015 @@ -2442,7 +2442,7 @@ CharSet SwWW8ImplReader::GetCurrentCJKCharSet() character run that has set the charset, if not then fallback to the current underlying paragraph style. */ - CharSet eSrcCharSet = eHardCharSet; + rtl_TextEncoding eSrcCharSet = eHardCharSet; if (eSrcCharSet == RTL_TEXTENCODING_DONTKNOW) { if (!maFontSrcCJKCharSets.empty()) @@ -2652,9 +2652,9 @@ bool SwWW8ImplReader::ReadPlainChars(WW8_CP& rPos, long nEnd, long nCpOfs) else nStrLen = STRING_MAXLEN-1; - const CharSet eSrcCharSet = bVer67 ? GetCurrentCharSet() : + const rtl_TextEncoding eSrcCharSet = bVer67 ? GetCurrentCharSet() : RTL_TEXTENCODING_MS_1252; - const CharSet eSrcCJKCharSet = bVer67 ? GetCurrentCJKCharSet() : + const rtl_TextEncoding eSrcCJKCharSet = bVer67 ? GetCurrentCJKCharSet() : RTL_TEXTENCODING_MS_1252; // allocate unicode string data diff --git a/sw/source/filter/ww8/ww8par.hxx b/sw/source/filter/ww8/ww8par.hxx index 775137e213ab..789a5a6b1534 100644 --- a/sw/source/filter/ww8/ww8par.hxx +++ b/sw/source/filter/ww8/ww8par.hxx @@ -312,8 +312,8 @@ public: { return pOutlineNumrule; } - CharSet GetCharSet() const; - CharSet GetCJKCharSet() const; + rtl_TextEncoding GetCharSet() const; + rtl_TextEncoding GetCJKCharSet() const; }; //----------------------------------------- @@ -1808,8 +1808,8 @@ public: // eigentlich private, geht aber leider nur public const OUString& GetBaseURL() const { return sBaseURL; } // Laden eines kompletten DocFiles sal_uLong LoadDoc( SwPaM&,WW8Glossary *pGloss=0); - CharSet GetCurrentCharSet(); - CharSet GetCurrentCJKCharSet(); + rtl_TextEncoding GetCurrentCharSet(); + rtl_TextEncoding GetCurrentCJKCharSet(); void PostProcessAttrs(); }; diff --git a/sw/source/filter/ww8/ww8par2.cxx b/sw/source/filter/ww8/ww8par2.cxx index 88d30f29a793..70492ba5512a 100644 --- a/sw/source/filter/ww8/ww8par2.cxx +++ b/sw/source/filter/ww8/ww8par2.cxx @@ -598,7 +598,7 @@ void SwWW8ImplReader::SetAnlvStrings(SwNumFmt &rNum, WW8_ANLV &rAV, const sal_uInt8* pTxt, bool bOutline) { bool bInsert = false; // Default - CharSet eCharSet = eStructCharSet; + rtl_TextEncoding eCharSet = eStructCharSet; const WW8_FFN* pF = pFonts->GetFont(SVBT16ToShort(rAV.ftc)); // FontInfo bool bListSymbol = pF && ( pF->chs == 2 ); // Symbol/WingDings/... @@ -4472,14 +4472,14 @@ void WW8RStyle::Import() pIo->pAktColl = 0; } -CharSet SwWW8StyInf::GetCharSet() const +rtl_TextEncoding SwWW8StyInf::GetCharSet() const { if ((pFmt) && (pFmt->GetFrmDir().GetValue() == FRMDIR_HORI_RIGHT_TOP)) return eRTLFontSrcCharSet; return eLTRFontSrcCharSet; } -CharSet SwWW8StyInf::GetCJKCharSet() const +rtl_TextEncoding SwWW8StyInf::GetCJKCharSet() const { if ((pFmt) && (pFmt->GetFrmDir().GetValue() == FRMDIR_HORI_RIGHT_TOP)) return eRTLFontSrcCharSet; diff --git a/sw/source/filter/ww8/ww8par5.cxx b/sw/source/filter/ww8/ww8par5.cxx index ba481f3853f6..5a72a197ff10 100644 --- a/sw/source/filter/ww8/ww8par5.cxx +++ b/sw/source/filter/ww8/ww8par5.cxx @@ -2146,7 +2146,7 @@ eF_ResT SwWW8ImplReader::Read_F_Macro( WW8FieldDesc*, OUString& rStr) FontFamily eFamily; OUString aFontName; FontPitch ePitch; - CharSet eSrcCharSet; + rtl_TextEncoding eSrcCharSet; if( GetFontParams( i, eFamily, aFontName, ePitch, eSrcCharSet ) && aFontName=="Wingdings" ) { diff --git a/sw/source/filter/ww8/ww8par6.cxx b/sw/source/filter/ww8/ww8par6.cxx index 61b5e2d30ea7..90038c8412b8 100644 --- a/sw/source/filter/ww8/ww8par6.cxx +++ b/sw/source/filter/ww8/ww8par6.cxx @@ -3359,7 +3359,7 @@ void SwWW8ImplReader::Read_UnderlineColor(sal_uInt16, const sal_uInt8* pData, sh } } bool SwWW8ImplReader::GetFontParams( sal_uInt16 nFCode, FontFamily& reFamily, - OUString& rName, FontPitch& rePitch, CharSet& reCharSet ) + OUString& rName, FontPitch& rePitch, rtl_TextEncoding& reCharSet ) { // Die Defines, aus denen diese Tabellen erzeugt werden, stehen in windows.h static const FontPitch ePitchA[] = @@ -3434,7 +3434,7 @@ bool SwWW8ImplReader::SetNewFontAttr(sal_uInt16 nFCode, bool bSetEnums, FontFamily eFamily; OUString aName; FontPitch ePitch; - CharSet eSrcCharSet; + rtl_TextEncoding eSrcCharSet; if( !GetFontParams( nFCode, eFamily, aName, ePitch, eSrcCharSet ) ) { @@ -3473,7 +3473,7 @@ bool SwWW8ImplReader::SetNewFontAttr(sal_uInt16 nFCode, bool bSetEnums, return false; } - CharSet eDstCharSet = eSrcCharSet; + rtl_TextEncoding eDstCharSet = eSrcCharSet; SvxFontItem aFont( eFamily, aName, aEmptyOUStr, ePitch, eDstCharSet, nWhich); diff --git a/sw/source/ui/config/uinums.cxx b/sw/source/ui/config/uinums.cxx index 12bf8130b494..7a9b63e6f9d4 100644 --- a/sw/source/ui/config/uinums.cxx +++ b/sw/source/ui/config/uinums.cxx @@ -221,7 +221,7 @@ const SwNumRulesWithName& SwNumRulesWithName::operator=(const SwNumRulesWithName SwNumRulesWithName::SwNumRulesWithName( SvStream &rStream, sal_uInt16 nVersion ) { - CharSet eEncoding = osl_getThreadTextEncoding(); + rtl_TextEncoding eEncoding = osl_getThreadTextEncoding(); maName = rStream.ReadUniOrByteString(eEncoding); char c; @@ -260,7 +260,7 @@ void SwNumRulesWithName::MakeNumRule( SwWrtShell& rSh, SwNumRule& rChg ) const void SwNumRulesWithName::Store( SvStream &rStream ) { - CharSet eEncoding = osl_getThreadTextEncoding(); + rtl_TextEncoding eEncoding = osl_getThreadTextEncoding(); rStream.WriteUniOrByteString(maName, eEncoding); for( sal_uInt16 n = 0; n < MAXLEVEL; ++n ) @@ -317,7 +317,7 @@ SwNumRulesWithName::_SwNumFmtGlobal::_SwNumFmtGlobal( SvStream& rStream, sal_uInt16 nVersion ) : nCharPoolId( USHRT_MAX ) { - CharSet eEncoding = osl_getThreadTextEncoding(); + rtl_TextEncoding eEncoding = osl_getThreadTextEncoding(); { sal_uInt16 nUS; short nShort; @@ -379,7 +379,7 @@ SwNumRulesWithName::_SwNumFmtGlobal::_SwNumFmtGlobal( SvStream& rStream, { Font aFont( static_cast<FontFamily>(nFamily), Size( nWidth, nHeight ) ); aFont.SetName( aName ); - aFont.SetCharSet( (CharSet)nCharSet ); + aFont.SetCharSet( (rtl_TextEncoding)nCharSet ); aFont.SetPitch( (FontPitch)nPitch ); aFmt.SetBulletFont( &aFont ); @@ -452,7 +452,7 @@ SwNumRulesWithName::_SwNumFmtGlobal::~_SwNumFmtGlobal() void SwNumRulesWithName::_SwNumFmtGlobal::Store( SvStream& rStream ) { - CharSet eEncoding = osl_getThreadTextEncoding(); + rtl_TextEncoding eEncoding = osl_getThreadTextEncoding(); { OUString aName; sal_uInt16 nFamily = FAMILY_DONTKNOW, nCharSet = 0, nPitch = 0; diff --git a/sw/source/ui/inc/insfnote.hxx b/sw/source/ui/inc/insfnote.hxx index cb65e5211a2e..c4dec65a06e8 100644 --- a/sw/source/ui/inc/insfnote.hxx +++ b/sw/source/ui/inc/insfnote.hxx @@ -36,7 +36,7 @@ class SwInsFootNoteDlg: public SvxStandardDialog // everything for the character(s) OUString m_aFontName; - CharSet eCharSet; + rtl_TextEncoding eCharSet; sal_Bool bExtCharAvailable; sal_Bool bEdit; @@ -68,7 +68,7 @@ public: SwInsFootNoteDlg(Window * pParent, SwWrtShell &rSh, sal_Bool bEd = sal_False); ~SwInsFootNoteDlg(); - CharSet GetCharSet() { return eCharSet; } + rtl_TextEncoding GetCharSet() { return eCharSet; } sal_Bool IsExtCharAvailable() { return bExtCharAvailable; } OUString GetFontName() { return m_aFontName; } sal_Bool IsEndNote() { return m_pEndNoteBtn->IsChecked(); } |