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

Side by Side Diff: core/src/fpdfdoc/doc_utils.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 | « core/src/fpdfdoc/doc_tagged.cpp ('k') | core/src/fpdfdoc/doc_utils.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 2015 PDFium Authors. All rights reserved. 1 // Copyright 2015 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 CORE_SRC_FPDFDOC_DOC_UTILS_H_ 7 #ifndef CORE_SRC_FPDFDOC_DOC_UTILS_H_
8 #define CORE_SRC_FPDFDOC_DOC_UTILS_H_ 8 #define CORE_SRC_FPDFDOC_DOC_UTILS_H_
9 9
10 CFX_WideString GetFullName(CPDF_Dictionary* pFieldDict); 10 CFX_WideString GetFullName(CPDF_Dictionary* pFieldDict);
11 void InitInterFormDict(CPDF_Dictionary*& pFormDict, CPDF_Docu ment* pDocument); 11 void InitInterFormDict(CPDF_Dictionary*& pFormDict, CPDF_Docu ment* pDocument);
12 FX_DWORD CountInterFormFonts(CPDF_Dictionary* pFormDict); 12 FX_DWORD CountInterFormFonts(CPDF_Dictionary* pFormDict);
13 CPDF_Font* GetInterFormFont(CPDF_Dictionary* pFormDict, CPDF_Docume nt* pDocument, FX_DWORD index, CFX_ByteString& csNameTag); 13 CPDF_Font* GetInterFormFont(CPDF_Dictionary* pFormDict, CPDF_Docume nt* pDocument, FX_DWORD index, CFX_ByteString& csNameTag);
14 CPDF_Font* GetInterFormFont(CPDF_Dictionary* pFormDict, CPDF_Docume nt* pDocument, CFX_ByteString csNameTag); 14 CPDF_Font* GetInterFormFont(CPDF_Dictionary* pFormDict, CPDF_Docume nt* pDocument, CFX_ByteString csNameTag);
15 CPDF_Font* GetInterFormFont(CPDF_Dictionary* pFormDict, CPDF_Docume nt* pDocument, CFX_ByteString csFontName, CFX_ByteString& csNameTag); 15 CPDF_Font* GetInterFormFont(CPDF_Dictionary* pFormDict, CPDF_Docume nt* pDocument, CFX_ByteString csFontName, CFX_ByteString& csNameTag);
16 CPDF_Font* GetNativeInterFormFont(CPDF_Dictionary* pFormDict, CPDF_ Document* pDocument, uint8_t charSet, CFX_ByteString& csNameTag); 16 CPDF_Font* GetNativeInterFormFont(CPDF_Dictionary* pFormDict, CPDF_ Document* pDocument, uint8_t charSet, CFX_ByteString& csNameTag);
17 CPDF_Font* GetNativeInterFormFont(CPDF_Dictionary* pFormDict, CPDF_ Document* pDocument, CFX_ByteString& csNameTag); 17 CPDF_Font* GetNativeInterFormFont(CPDF_Dictionary* pFormDict, CPDF_ Document* pDocument, CFX_ByteString& csNameTag);
18 FX_BOOL»» » FindInterFormFont(CPDF_Dictionary* pFormDict, const CPDF _Font* pFont, CFX_ByteString& csNameTag); 18 bool» » » FindInterFormFont(CPDF_Dictionary* pFormDict, const CPDF _Font* pFont, CFX_ByteString& csNameTag);
19 FX_BOOL»» » FindInterFormFont(CPDF_Dictionary* pFormDict, CPDF_Docum ent* pDocument, CFX_ByteString csFontName, CPDF_Font*& pFont, CFX_ByteString& cs NameTag); 19 bool» » » FindInterFormFont(CPDF_Dictionary* pFormDict, CPDF_Docum ent* pDocument, CFX_ByteString csFontName, CPDF_Font*& pFont, CFX_ByteString& cs NameTag);
20 void AddInterFormFont(CPDF_Dictionary*& pFormDict, CPDF_Docum ent* pDocument, const CPDF_Font* pFont, CFX_ByteString& csNameTag); 20 void AddInterFormFont(CPDF_Dictionary*& pFormDict, CPDF_Docum ent* pDocument, const CPDF_Font* pFont, CFX_ByteString& csNameTag);
21 CPDF_Font* AddNativeInterFormFont(CPDF_Dictionary*& pFormDict, CPDF _Document* pDocument, uint8_t charSet, CFX_ByteString& csNameTag); 21 CPDF_Font* AddNativeInterFormFont(CPDF_Dictionary*& pFormDict, CPDF _Document* pDocument, uint8_t charSet, CFX_ByteString& csNameTag);
22 CPDF_Font* AddNativeInterFormFont(CPDF_Dictionary*& pFormDict, CPDF _Document* pDocument, CFX_ByteString& csNameTag); 22 CPDF_Font* AddNativeInterFormFont(CPDF_Dictionary*& pFormDict, CPDF _Document* pDocument, CFX_ByteString& csNameTag);
23 void RemoveInterFormFont(CPDF_Dictionary* pFormDict, const CP DF_Font* pFont); 23 void RemoveInterFormFont(CPDF_Dictionary* pFormDict, const CP DF_Font* pFont);
24 void RemoveInterFormFont(CPDF_Dictionary* pFormDict, CFX_Byte String csNameTag); 24 void RemoveInterFormFont(CPDF_Dictionary* pFormDict, CFX_Byte String csNameTag);
25 CPDF_Font* GetDefaultInterFormFont(CPDF_Dictionary* pFormDict, CPDF _Document* pDocument); 25 CPDF_Font* GetDefaultInterFormFont(CPDF_Dictionary* pFormDict, CPDF _Document* pDocument);
26 void SetDefaultInterFormFont(CPDF_Dictionary*& pFormDict, CPD F_Document* pDocument, const CPDF_Font* pFont); 26 void SetDefaultInterFormFont(CPDF_Dictionary*& pFormDict, CPD F_Document* pDocument, const CPDF_Font* pFont);
27 void SaveCheckedFieldStatus(CPDF_FormField* pField, CFX_ByteA rray& statusArray); 27 void SaveCheckedFieldStatus(CPDF_FormField* pField, CFX_ByteA rray& statusArray);
28 FX_BOOL»» » NeedPDFEncodeForFieldFullName(const CFX_WideString& csFi eldName); 28 bool» » » NeedPDFEncodeForFieldFullName(const CFX_WideString& csFi eldName);
29 FX_BOOL»» » NeedPDFEncodeForFieldTree(CPDF_Dictionary* pFieldDict, i nt nLevel = 0); 29 bool» » » NeedPDFEncodeForFieldTree(CPDF_Dictionary* pFieldDict, i nt nLevel = 0);
30 void EncodeFieldName(const CFX_WideString& csName, CFX_ByteSt ring& csT); 30 void EncodeFieldName(const CFX_WideString& csName, CFX_ByteSt ring& csT);
31 void UpdateEncodeFieldName(CPDF_Dictionary* pFieldDict, int n Level = 0); 31 void UpdateEncodeFieldName(CPDF_Dictionary* pFieldDict, int n Level = 0);
32 32
33 #endif // CORE_SRC_FPDFDOC_DOC_UTILS_H_ 33 #endif // CORE_SRC_FPDFDOC_DOC_UTILS_H_
OLDNEW
« no previous file with comments | « core/src/fpdfdoc/doc_tagged.cpp ('k') | core/src/fpdfdoc/doc_utils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698