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

Side by Side Diff: core/fpdfdoc/cpvt_provider.h

Issue 1840413002: Split core/include/fpdfdoc/fpdf_ap.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 | « core/fpdfdoc/cpvt_generateap.cpp ('k') | core/fpdfdoc/doc_annot.cpp » ('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 2016 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 CORE_FPDFDOC_CPVT_PROVIDER_H_
8 #define CORE_FPDFDOC_CPVT_PROVIDER_H_
9
10 #include "core/fpdfdoc/include/ipdf_variabletext_provider.h"
11 #include "core/fpdfdoc/ipvt_fontmap.h"
12 #include "core/fxcrt/include/fx_system.h"
13
14 class CPVT_Provider : public IPDF_VariableText_Provider {
15 public:
16 CPVT_Provider(IPVT_FontMap* pFontMap);
17 ~CPVT_Provider() override;
18
19 // IPDF_VariableText_Provider
20 int32_t GetCharWidth(int32_t nFontIndex,
21 uint16_t word,
22 int32_t nWordStyle) override;
23 int32_t GetTypeAscent(int32_t nFontIndex) override;
24 int32_t GetTypeDescent(int32_t nFontIndex) override;
25 int32_t GetWordFontIndex(uint16_t word,
26 int32_t charset,
27 int32_t nFontIndex) override;
28 FX_BOOL IsLatinWord(uint16_t word) override;
29 int32_t GetDefaultFontIndex() override;
30
31 private:
32 IPVT_FontMap* m_pFontMap;
33 };
34
35 #endif // CORE_FPDFDOC_CPVT_PROVIDER_H_
OLDNEW
« no previous file with comments | « core/fpdfdoc/cpvt_generateap.cpp ('k') | core/fpdfdoc/doc_annot.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698