OLD | NEW |
---|---|
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 #ifndef CORE_SRC_FPDFAPI_FPDF_FONT_FONT_INT_H_ | 6 #ifndef CORE_SRC_FPDFAPI_FPDF_FONT_FONT_INT_H_ |
7 #define CORE_SRC_FPDFAPI_FPDF_FONT_FONT_INT_H_ | 7 #define CORE_SRC_FPDFAPI_FPDF_FONT_FONT_INT_H_ |
8 | 8 |
Lei Zhang
2015/08/15 00:35:44
I feel like we need some #includes here.
Tom Sepez
2015/08/17 20:15:25
Done. Header now compiles on it own.
| |
9 typedef void* FXFT_Library; | 9 typedef void* FXFT_Library; |
10 class CPDF_CMapManager { | 10 class CPDF_CMapManager { |
11 public: | 11 public: |
12 CPDF_CMapManager(); | 12 CPDF_CMapManager(); |
13 ~CPDF_CMapManager(); | 13 ~CPDF_CMapManager(); |
14 void* GetPackage(FX_BOOL bPrompt); | 14 void* GetPackage(FX_BOOL bPrompt); |
15 CPDF_CMap* GetPredefinedCMap(const CFX_ByteString& name, FX_BOOL bPrompt); | 15 CPDF_CMap* GetPredefinedCMap(const CFX_ByteString& name, FX_BOOL bPrompt); |
16 CPDF_CID2UnicodeMap* GetCID2UnicodeMap(int charset, FX_BOOL bPrompt); | 16 CPDF_CID2UnicodeMap* GetCID2UnicodeMap(int charset, FX_BOOL bPrompt); |
17 void ReloadAll(); | 17 void ReloadAll(); |
18 | 18 |
19 private: | 19 private: |
20 CPDF_CMap* LoadPredefinedCMap(const CFX_ByteString& name, FX_BOOL bPrompt); | 20 CPDF_CMap* LoadPredefinedCMap(const CFX_ByteString& name, FX_BOOL bPrompt); |
21 CPDF_CID2UnicodeMap* LoadCID2UnicodeMap(int charset, FX_BOOL bPrompt); | 21 CPDF_CID2UnicodeMap* LoadCID2UnicodeMap(int charset, FX_BOOL bPrompt); |
22 void DropAll(FX_BOOL bReload); | 22 |
23 FX_BOOL m_bPrompted; | 23 FX_BOOL m_bPrompted; |
24 CFX_MapByteStringToPtr m_CMaps; | 24 std::map<CFX_ByteString, CPDF_CMap*> m_CMaps; |
25 CPDF_CID2UnicodeMap* m_CID2UnicodeMaps[6]; | 25 CPDF_CID2UnicodeMap* m_CID2UnicodeMaps[6]; |
26 }; | 26 }; |
27 class CPDF_FontGlobals { | 27 class CPDF_FontGlobals { |
28 public: | 28 public: |
29 CPDF_FontGlobals(); | 29 CPDF_FontGlobals(); |
30 ~CPDF_FontGlobals(); | 30 ~CPDF_FontGlobals(); |
31 void ClearAll(); | 31 void ClearAll(); |
32 void Clear(void* key); | 32 void Clear(void* key); |
33 CPDF_Font* Find(void* key, int index); | 33 CPDF_Font* Find(void* key, int index); |
34 void Set(void* key, int index, CPDF_Font* pFont); | 34 void Set(void* key, int index, CPDF_Font* pFont); |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
164 CPDF_CID2UnicodeMap* m_pBaseMap; | 164 CPDF_CID2UnicodeMap* m_pBaseMap; |
165 CFX_WideTextBuf m_MultiCharBuf; | 165 CFX_WideTextBuf m_MultiCharBuf; |
166 }; | 166 }; |
167 class CPDF_FontCharMap : public CFX_CharMap { | 167 class CPDF_FontCharMap : public CFX_CharMap { |
168 public: | 168 public: |
169 CPDF_FontCharMap(CPDF_Font* pFont); | 169 CPDF_FontCharMap(CPDF_Font* pFont); |
170 CPDF_Font* m_pFont; | 170 CPDF_Font* m_pFont; |
171 }; | 171 }; |
172 | 172 |
173 #endif // CORE_SRC_FPDFAPI_FPDF_FONT_FONT_INT_H_ | 173 #endif // CORE_SRC_FPDFAPI_FPDF_FONT_FONT_INT_H_ |
OLD | NEW |