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

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

Issue 1252613002: FX_BOOL considered harmful. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Manual edits. Created 5 years, 5 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/include/pdfwindow/PWL_EditCtrl.h ('k') | fpdfsdk/include/pdfwindow/PWL_Icon.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 FPDFSDK_INCLUDE_PDFWINDOW_PWL_FONTMAP_H_ 7 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_FONTMAP_H_
8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_FONTMAP_H_ 8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_FONTMAP_H_
9 9
10 #include "../../../public/fpdf_sysfontinfo.h" 10 #include "../../../public/fpdf_sysfontinfo.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 int32_t GetFontMapCount() const; 78 int32_t GetFontMapCount() const;
79 const CPWL_FontMap_Data* GetFontM apData(int32_t nIndex) const; 79 const CPWL_FontMap_Data* GetFontM apData(int32_t nIndex) const;
80 80
81 public: 81 public:
82 static int32_t GetNativeCharset(); 82 static int32_t GetNativeCharset();
83 CFX_ByteString GetNativeFontName(int32_t nCharset); 83 CFX_ByteString GetNativeFontName(int32_t nCharset);
84 84
85 static CFX_ByteString GetDefau ltFontByCharset(int32_t nCharset); 85 static CFX_ByteString GetDefau ltFontByCharset(int32_t nCharset);
86 86
87 CPDF_Font* AddFontToDocument(CPDF_Document* pDoc, CFX_ByteString& sFontName, uint8_ t nCharset); 87 CPDF_Font* AddFontToDocument(CPDF_Document* pDoc, CFX_ByteString& sFontName, uint8_ t nCharset);
88 » static FX_BOOL» » » » » » » » IsStandardFont(const CFX_ByteString& sFontName); 88 » static bool» » » » » » » » IsStandardFont(const CFX_ByteString& sFontName);
89 CPDF_Font* AddStandardFont(CPDF_Document* pDoc, CFX_ByteString& sFontName); 89 CPDF_Font* AddStandardFont(CPDF_Document* pDoc, CFX_ByteString& sFontName);
90 CPDF_Font* AddSystemFont(CPDF_Document* pDoc, CFX_ByteString& sFontName, 90 CPDF_Font* AddSystemFont(CPDF_Document* pDoc, CFX_ByteString& sFontName,
91 uint8_t nCharset); 91 uint8_t nCharset);
92 92
93 protected: 93 protected:
94 virtual CPDF_Font* FindFontSameCharset(CFX_ByteString& sFontAlias, int32_t nCharset); 94 virtual CPDF_Font* FindFontSameCharset(CFX_ByteString& sFontAlias, int32_t nCharset);
95 virtual void AddedFont(CPDF_Font* pFont, const CFX_ByteString& sFontAlias); 95 virtual void AddedFont(CPDF_Font* pFont, const CFX_ByteString& sFontAlias);
96 » FX_BOOL»» » » » » » » » » KnowWord(int32_t nFontIndex, FX_WORD word); 96 » bool» » » » » » » » » » KnowWord(int32_t nFontIndex, FX_WORD word);
97 97
98 virtual CPDF_Document* GetDocum ent(); 98 virtual CPDF_Document* GetDocum ent();
99 99
100 void Empty(); 100 void Empty();
101 » int32_t»» » » » » » » » GetFontIndex(const CFX_ByteString& sFontName, int32_t nCharset, FX_BOOL bFind); 101 » int32_t»» » » » » » » » GetFontIndex(const CFX_ByteString& sFontName, int32_t nCharset, bool bFind);
102 int32_t GetPWLFontIndex(FX_WORD word, int32_t nCharset); 102 int32_t GetPWLFontIndex(FX_WORD word, int32_t nCharset);
103 int32_t AddFontData(CPDF_Font* pFont, const CFX_ByteString& sFontAlias, int32_t nCharset = DEFAULT_CHARSET); 103 int32_t AddFontData(CPDF_Font* pFont, const CFX_ByteString& sFontAlias, int32_t nCharset = DEFAULT_CHARSET);
104 104
105 CFX_ByteString EncodeFontAlias(const CFX_ByteString& sFontName, int32_t nCharset); 105 CFX_ByteString EncodeFontAlias(const CFX_ByteString& sFontName, int32_t nCharset);
106 CFX_ByteString EncodeFontAlias(const CFX_ByteString& sFontName); 106 CFX_ByteString EncodeFontAlias(const CFX_ByteString& sFontName);
107 107
108 private: 108 private:
109 CFX_ByteString GetFontName(int32_t nFontIndex); 109 CFX_ByteString GetFontName(int32_t nFontIndex);
110 int32_t FindFont(const CFX_ByteString& sFontName, int32_t nCharset = DEFAULT_CHARSET); 110 int32_t FindFont(const CFX_ByteString& sFontName, int32_t nCharset = DEFAULT_CHARSET);
111 111
(...skipping 18 matching lines...) Expand all
130 CPWL_DocFontMap(IFX_SystemHandler* pSystemHandler, CPDF_Document* pAttac hedDoc); 130 CPWL_DocFontMap(IFX_SystemHandler* pSystemHandler, CPDF_Document* pAttac hedDoc);
131 virtual ~CPWL_DocFontMap(); 131 virtual ~CPWL_DocFontMap();
132 132
133 virtual CPDF_Document* GetDocum ent(); 133 virtual CPDF_Document* GetDocum ent();
134 134
135 private: 135 private:
136 CPDF_Document* m_pAttachedDoc; 136 CPDF_Document* m_pAttachedDoc;
137 }; 137 };
138 138
139 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_FONTMAP_H_ 139 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_FONTMAP_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/pdfwindow/PWL_EditCtrl.h ('k') | fpdfsdk/include/pdfwindow/PWL_Icon.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698