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 | 6 |
7 #ifndef XFA_FGAS_FONT_CFGAS_FONTMGR_H_ | 7 #ifndef XFA_FGAS_FONT_CFGAS_FONTMGR_H_ |
8 #define XFA_FGAS_FONT_CFGAS_FONTMGR_H_ | 8 #define XFA_FGAS_FONT_CFGAS_FONTMGR_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 FX_FileHandle* pFileHandle; | 172 FX_FileHandle* pFileHandle; |
173 CFX_ByteString bsParentPath; | 173 CFX_ByteString bsParentPath; |
174 }; | 174 }; |
175 | 175 |
176 class CFX_FontSourceEnum_File { | 176 class CFX_FontSourceEnum_File { |
177 public: | 177 public: |
178 CFX_FontSourceEnum_File(); | 178 CFX_FontSourceEnum_File(); |
179 ~CFX_FontSourceEnum_File(); | 179 ~CFX_FontSourceEnum_File(); |
180 | 180 |
181 FX_POSITION GetStartPosition(); | 181 FX_POSITION GetStartPosition(); |
182 IFX_FileAccess* GetNext(FX_POSITION& pos); | 182 CFX_RetainPtr<IFX_FileAccess> GetNext(FX_POSITION& pos); |
183 | 183 |
184 private: | 184 private: |
185 CFX_ByteString GetNextFile(); | 185 CFX_ByteString GetNextFile(); |
186 | 186 |
187 CFX_WideString m_wsNext; | 187 CFX_WideString m_wsNext; |
188 CFX_ObjectArray<FX_HandleParentPath> m_FolderQueue; | 188 CFX_ObjectArray<FX_HandleParentPath> m_FolderQueue; |
189 CFX_ByteStringArray m_FolderPaths; | 189 CFX_ByteStringArray m_FolderPaths; |
190 }; | 190 }; |
191 | 191 |
192 class CFGAS_FontMgr { | 192 class CFGAS_FontMgr { |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 CFX_MapPtrTemplate<uint32_t, CFX_FontDescriptorInfos*> m_Hash2CandidateList; | 250 CFX_MapPtrTemplate<uint32_t, CFX_FontDescriptorInfos*> m_Hash2CandidateList; |
251 CFX_MapPtrTemplate<uint32_t, CFX_ArrayTemplate<CFGAS_GEFont*>*> m_Hash2Fonts; | 251 CFX_MapPtrTemplate<uint32_t, CFX_ArrayTemplate<CFGAS_GEFont*>*> m_Hash2Fonts; |
252 std::map<CFGAS_GEFont*, CFX_RetainPtr<IFX_SeekableReadStream> > | 252 std::map<CFGAS_GEFont*, CFX_RetainPtr<IFX_SeekableReadStream> > |
253 m_IFXFont2FileRead; | 253 m_IFXFont2FileRead; |
254 CFX_MapPtrTemplate<FX_WCHAR, CFGAS_GEFont*> m_FailedUnicodes2Nullptr; | 254 CFX_MapPtrTemplate<FX_WCHAR, CFGAS_GEFont*> m_FailedUnicodes2Nullptr; |
255 CFX_FontSourceEnum_File* const m_pFontSource; | 255 CFX_FontSourceEnum_File* const m_pFontSource; |
256 }; | 256 }; |
257 #endif | 257 #endif |
258 | 258 |
259 #endif // XFA_FGAS_FONT_CFGAS_FONTMGR_H_ | 259 #endif // XFA_FGAS_FONT_CFGAS_FONTMGR_H_ |
OLD | NEW |