Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(400)

Side by Side Diff: xfa/fxfa/include/xfa_fontmgr.h

Issue 2071683002: Make code compile with clang_use_chrome_plugin (part V) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: clean up Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fxfa/include/xfa_ffwidget.h ('k') | xfa/fxfa/include/xfa_rendercontext.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_FXFA_INCLUDE_XFA_FONTMGR_H_ 7 #ifndef XFA_FXFA_INCLUDE_XFA_FONTMGR_H_
8 #define XFA_FXFA_INCLUDE_XFA_FONTMGR_H_ 8 #define XFA_FXFA_INCLUDE_XFA_FONTMGR_H_
9 9
10 #include <map> 10 #include <map>
11 #include <memory> 11 #include <memory>
12 12
13 #include "core/fxcrt/include/fx_ext.h" 13 #include "core/fxcrt/include/fx_ext.h"
14 #include "core/fxcrt/include/fx_system.h" 14 #include "core/fxcrt/include/fx_system.h"
15 #include "xfa/fgas/font/fgas_font.h" 15 #include "xfa/fgas/font/fgas_font.h"
16 #include "xfa/fxfa/include/fxfa.h" 16 #include "xfa/fxfa/include/fxfa.h"
17 17
18 class CPDF_Font; 18 class CPDF_Font;
19 19
20 struct XFA_FONTINFO { 20 struct XFA_FONTINFO {
21 uint32_t dwFontNameHash; 21 uint32_t dwFontNameHash;
22 const FX_WCHAR* pPsName; 22 const FX_WCHAR* pPsName;
23 const FX_WCHAR* pReplaceFont; 23 const FX_WCHAR* pReplaceFont;
24 uint16_t dwStyles; 24 uint16_t dwStyles;
25 uint16_t wCodePage; 25 uint16_t wCodePage;
26 }; 26 };
27 27
28 class CXFA_DefFontMgr { 28 class CXFA_DefFontMgr {
29 public: 29 public:
30 CXFA_DefFontMgr() {} 30 CXFA_DefFontMgr();
31 ~CXFA_DefFontMgr(); 31 ~CXFA_DefFontMgr();
32 32
33 CFGAS_GEFont* GetFont(CXFA_FFDoc* hDoc, 33 CFGAS_GEFont* GetFont(CXFA_FFDoc* hDoc,
34 const CFX_WideStringC& wsFontFamily, 34 const CFX_WideStringC& wsFontFamily,
35 uint32_t dwFontStyles, 35 uint32_t dwFontStyles,
36 uint16_t wCodePage = 0xFFFF); 36 uint16_t wCodePage = 0xFFFF);
37 CFGAS_GEFont* GetDefaultFont(CXFA_FFDoc* hDoc, 37 CFGAS_GEFont* GetDefaultFont(CXFA_FFDoc* hDoc,
38 const CFX_WideStringC& wsFontFamily, 38 const CFX_WideStringC& wsFontFamily,
39 uint32_t dwFontStyles, 39 uint32_t dwFontStyles,
40 uint16_t wCodePage = 0xFFFF); 40 uint16_t wCodePage = 0xFFFF);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 void ReleaseDocFonts(CXFA_FFDoc* hDoc); 90 void ReleaseDocFonts(CXFA_FFDoc* hDoc);
91 void SetDefFontMgr(std::unique_ptr<CXFA_DefFontMgr> pFontMgr); 91 void SetDefFontMgr(std::unique_ptr<CXFA_DefFontMgr> pFontMgr);
92 92
93 protected: 93 protected:
94 std::unique_ptr<CXFA_DefFontMgr> m_pDefFontMgr; 94 std::unique_ptr<CXFA_DefFontMgr> m_pDefFontMgr;
95 std::map<CXFA_FFDoc*, std::unique_ptr<CXFA_PDFFontMgr>> m_PDFFontMgrMap; 95 std::map<CXFA_FFDoc*, std::unique_ptr<CXFA_PDFFontMgr>> m_PDFFontMgrMap;
96 std::map<CFX_ByteString, CFGAS_GEFont*> m_FontMap; 96 std::map<CFX_ByteString, CFGAS_GEFont*> m_FontMap;
97 }; 97 };
98 98
99 #endif // XFA_FXFA_INCLUDE_XFA_FONTMGR_H_ 99 #endif // XFA_FXFA_INCLUDE_XFA_FONTMGR_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/include/xfa_ffwidget.h ('k') | xfa/fxfa/include/xfa_rendercontext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698