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

Side by Side Diff: fpdfsdk/pdfwindow/PWL_FontMap.h

Issue 1860063002: Remove core/include/fpdfdoc/fpdf_vt.h (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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/pdfwindow/PWL_EditCtrl.cpp ('k') | fpdfsdk/pdfwindow/PWL_FontMap.cpp » ('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 FPDFSDK_PDFWINDOW_PWL_FONTMAP_H_ 7 #ifndef FPDFSDK_PDFWINDOW_PWL_FONTMAP_H_
8 #define FPDFSDK_PDFWINDOW_PWL_FONTMAP_H_ 8 #define FPDFSDK_PDFWINDOW_PWL_FONTMAP_H_
9 9
10 #include "core/fpdfdoc/include/ipvt_fontmap.h"
10 #include "fpdfsdk/include/fxedit/fx_edit.h" 11 #include "fpdfsdk/include/fxedit/fx_edit.h"
11 #include "public/fpdf_sysfontinfo.h" 12 #include "public/fpdf_sysfontinfo.h"
12 13
13 class CPDF_Document; 14 class CPDF_Document;
14 class IFX_SystemHandler; 15 class IFX_SystemHandler;
15 16
16 struct CPWL_FontMap_Data { 17 struct CPWL_FontMap_Data {
17 CPDF_Font* pFont; 18 CPDF_Font* pFont;
18 int32_t nCharset; 19 int32_t nCharset;
19 CFX_ByteString sFontName; 20 CFX_ByteString sFontName;
(...skipping 21 matching lines...) Expand all
41 #define GREEK_CHARSET 161 42 #define GREEK_CHARSET 161
42 #define TURKISH_CHARSET 162 43 #define TURKISH_CHARSET 162
43 #define VIETNAMESE_CHARSET 163 44 #define VIETNAMESE_CHARSET 163
44 #define THAI_CHARSET 222 45 #define THAI_CHARSET 222
45 #define EASTEUROPE_CHARSET 238 46 #define EASTEUROPE_CHARSET 238
46 #define RUSSIAN_CHARSET 204 47 #define RUSSIAN_CHARSET 204
47 #define BALTIC_CHARSET 186 48 #define BALTIC_CHARSET 186
48 49
49 #endif 50 #endif
50 51
51 class CPWL_FontMap : public IFX_Edit_FontMap { 52 class CPWL_FontMap : public IPVT_FontMap {
52 public: 53 public:
53 CPWL_FontMap(IFX_SystemHandler* pSystemHandler); 54 CPWL_FontMap(IFX_SystemHandler* pSystemHandler);
54 ~CPWL_FontMap() override; 55 ~CPWL_FontMap() override;
55 56
56 // IFX_Edit_FontMap 57 // IPVT_FontMap
57 CPDF_Font* GetPDFFont(int32_t nFontIndex) override; 58 CPDF_Font* GetPDFFont(int32_t nFontIndex) override;
58 CFX_ByteString GetPDFFontAlias(int32_t nFontIndex) override; 59 CFX_ByteString GetPDFFontAlias(int32_t nFontIndex) override;
59 int32_t GetWordFontIndex(uint16_t word, 60 int32_t GetWordFontIndex(uint16_t word,
60 int32_t nCharset, 61 int32_t nCharset,
61 int32_t nFontIndex) override; 62 int32_t nFontIndex) override;
62 int32_t CharCodeFromUnicode(int32_t nFontIndex, uint16_t word) override; 63 int32_t CharCodeFromUnicode(int32_t nFontIndex, uint16_t word) override;
63 int32_t CharSetFromUnicode(uint16_t word, int32_t nOldCharset) override; 64 int32_t CharSetFromUnicode(uint16_t word, int32_t nOldCharset) override;
64 65
65 void SetSystemHandler(IFX_SystemHandler* pSystemHandler); 66 void SetSystemHandler(IFX_SystemHandler* pSystemHandler);
66 int32_t GetFontMapCount() const; 67 int32_t GetFontMapCount() const;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 ~CPWL_DocFontMap() override; 129 ~CPWL_DocFontMap() override;
129 130
130 private: 131 private:
131 // CPWL_FontMap: 132 // CPWL_FontMap:
132 CPDF_Document* GetDocument() override; 133 CPDF_Document* GetDocument() override;
133 134
134 CPDF_Document* m_pAttachedDoc; 135 CPDF_Document* m_pAttachedDoc;
135 }; 136 };
136 137
137 #endif // FPDFSDK_PDFWINDOW_PWL_FONTMAP_H_ 138 #endif // FPDFSDK_PDFWINDOW_PWL_FONTMAP_H_
OLDNEW
« no previous file with comments | « fpdfsdk/pdfwindow/PWL_EditCtrl.cpp ('k') | fpdfsdk/pdfwindow/PWL_FontMap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698