| Index: xfa/fgas/font/fgas_stdfontmgr.h
|
| diff --git a/xfa/fgas/font/fgas_stdfontmgr.h b/xfa/fgas/font/fgas_stdfontmgr.h
|
| index 88e0e8e897645d761b6d5ba97becb561c9dd963e..90759c95eb39d2b9ff7fc321e7215fdb18ae2827 100644
|
| --- a/xfa/fgas/font/fgas_stdfontmgr.h
|
| +++ b/xfa/fgas/font/fgas_stdfontmgr.h
|
| @@ -21,9 +21,7 @@ FX_LPCFONTDESCRIPTOR FX_DefFontMatcher(FX_LPFONTMATCHPARAMS pParams,
|
|
|
| class CFX_StdFontMgrImp : public IFX_FontMgr {
|
| public:
|
| - CFX_StdFontMgrImp(FX_LPEnumAllFonts pEnumerator,
|
| - FX_LPMatchFont pMatcher,
|
| - void* pUserData);
|
| + CFX_StdFontMgrImp(FX_LPEnumAllFonts pEnumerator);
|
| ~CFX_StdFontMgrImp();
|
| virtual void Release() { delete this; }
|
| virtual IFX_Font* GetDefFontByCodePage(uint16_t wCodePage,
|
| @@ -55,7 +53,15 @@ class CFX_StdFontMgrImp : public IFX_FontMgr {
|
| virtual void RemoveFont(IFX_Font* pFont);
|
|
|
| protected:
|
| - FX_LPMatchFont m_pMatcher;
|
| + void RemoveFont(CFX_MapPtrToPtr& fontMap, IFX_Font* pFont);
|
| + FX_LPCFONTDESCRIPTOR FindFont(const FX_WCHAR* pszFontFamily,
|
| + uint32_t dwFontStyles,
|
| + uint32_t dwMatchFlags,
|
| + uint16_t wCodePage,
|
| + uint32_t dwUSB = 999,
|
| + FX_WCHAR wUnicode = 0);
|
| + IFX_Font* GetFont(FX_LPCFONTDESCRIPTOR pFD, uint32_t dwFontStyles);
|
| +
|
| FX_LPEnumAllFonts m_pEnumerator;
|
| CFX_FontDescriptors m_FontFaces;
|
| CFX_PtrArray m_Fonts;
|
| @@ -66,15 +72,6 @@ class CFX_StdFontMgrImp : public IFX_FontMgr {
|
| CFX_MapPtrToPtr m_FileFonts;
|
| CFX_MapPtrToPtr m_StreamFonts;
|
| CFX_MapPtrToPtr m_DeriveFonts;
|
| - void* m_pUserData;
|
| - void RemoveFont(CFX_MapPtrToPtr& fontMap, IFX_Font* pFont);
|
| - FX_LPCFONTDESCRIPTOR FindFont(const FX_WCHAR* pszFontFamily,
|
| - uint32_t dwFontStyles,
|
| - uint32_t dwMatchFlags,
|
| - uint16_t wCodePage,
|
| - uint32_t dwUSB = 999,
|
| - FX_WCHAR wUnicode = 0);
|
| - IFX_Font* GetFont(FX_LPCFONTDESCRIPTOR pFD, uint32_t dwFontStyles);
|
| };
|
| uint32_t FX_GetGdiFontStyles(const LOGFONTW& lf);
|
|
|
| @@ -155,9 +152,7 @@ typedef CFX_MapPtrTemplate<IFX_Font*, IFX_FileRead*> CFX_FonStreamtMap;
|
|
|
| class CFX_FontMgrImp : public IFX_FontMgr {
|
| public:
|
| - CFX_FontMgrImp(IFX_FontSourceEnum* pFontEnum,
|
| - IFX_FontMgrDelegate* pDelegate = NULL,
|
| - void* pUserData = NULL);
|
| + CFX_FontMgrImp(IFX_FontSourceEnum* pFontEnum);
|
| virtual void Release();
|
| virtual IFX_Font* GetDefFontByCodePage(uint16_t wCodePage,
|
| uint32_t dwFontStyles,
|
| @@ -237,6 +232,7 @@ class CFX_FontMgrImp : public IFX_FontMgr {
|
| IFX_SystemFontInfo* pSystemFontInfo,
|
| uint32_t index);
|
| IFX_FileRead* CreateFontStream(const CFX_ByteString& bsFaceName);
|
| +
|
| CFX_HashFontDescsMap m_Hash2CandidateList;
|
| CFX_HashFontsMap m_Hash2Fonts;
|
| CFX_HashFileMap m_Hash2FileAccess;
|
| @@ -244,8 +240,6 @@ class CFX_FontMgrImp : public IFX_FontMgr {
|
| CFX_FonStreamtMap m_IFXFont2FileRead;
|
| CFX_UnicodeFontMap m_FailedUnicodes2NULL;
|
| IFX_FontSourceEnum* m_pFontSource;
|
| - IFX_FontMgrDelegate* m_pDelegate;
|
| - void* m_pUserData;
|
| };
|
| #endif
|
|
|
|
|