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

Side by Side Diff: fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h

Issue 1809193002: Move fpdfsdk/include/formfiller to fpdfsdk/formfiller. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 9 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 | « fpdfsdk/fsdk_mgr.cpp ('k') | fpdfsdk/include/formfiller/FFL_CheckBox.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #ifndef FPDFSDK_INCLUDE_FORMFILLER_FFL_CBA_FONTMAP_H_
8 #define FPDFSDK_INCLUDE_FORMFILLER_FFL_CBA_FONTMAP_H_
9
10 #include "fpdfsdk/include/pdfwindow/PWL_FontMap.h"
11
12 class CPDF_Dictionary;
13 class CPDFSDK_Annot;
14
15 class CBA_FontMap : public CPWL_FontMap {
16 public:
17 CBA_FontMap(CPDFSDK_Annot* pAnnot, IFX_SystemHandler* pSystemHandler);
18 ~CBA_FontMap() override;
19
20 void SetDefaultFont(CPDF_Font* pFont, const CFX_ByteString& sFontName);
21
22 void Reset();
23 void SetAPType(const CFX_ByteString& sAPType);
24
25 private:
26 // CPWL_FontMap:
27 void Initialize() override;
28 CPDF_Document* GetDocument() override;
29 CPDF_Font* FindFontSameCharset(CFX_ByteString& sFontAlias,
30 int32_t nCharset) override;
31 void AddedFont(CPDF_Font* pFont, const CFX_ByteString& sFontAlias) override;
32
33 CPDF_Font* FindResFontSameCharset(CPDF_Dictionary* pResDict,
34 CFX_ByteString& sFontAlias,
35 int32_t nCharset);
36 CPDF_Font* GetAnnotDefaultFont(CFX_ByteString& csNameTag);
37 void AddFontToAnnotDict(CPDF_Font* pFont, const CFX_ByteString& sAlias);
38
39 CPDF_Document* m_pDocument;
40 CPDF_Dictionary* m_pAnnotDict;
41 CPDF_Font* m_pDefaultFont;
42 CFX_ByteString m_sDefaultFontName;
43 CFX_ByteString m_sAPType;
44 };
45
46 #endif // FPDFSDK_INCLUDE_FORMFILLER_FFL_CBA_FONTMAP_H_
OLDNEW
« no previous file with comments | « fpdfsdk/fsdk_mgr.cpp ('k') | fpdfsdk/include/formfiller/FFL_CheckBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698