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

Side by Side Diff: core/src/fpdfdoc/doc_utils.h

Issue 1776713004: Move CPDF_NumberTree to fpdfdoc. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: 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
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 #include <vector> 10 #include <vector>
11 11
12 class CPDF_Dictionary;
13 class CPDF_FormField;
14
15 class CPDF_NumberTree {
16 public:
17 CPDF_NumberTree(CPDF_Dictionary* pRoot) { m_pRoot = pRoot; }
Oliver Chang 2016/03/10 00:45:45 initialiser list?
Tom Sepez 2016/03/10 00:54:28 Done.
18
19 CPDF_Object* LookupValue(int num);
Oliver Chang 2016/03/10 00:45:45 while you're here, can this be made const?
Tom Sepez 2016/03/10 00:54:28 Done.
Oliver Chang 2016/03/10 00:55:25 Sorry, I meant CPDF_Object* LookupValue(int num) c
Tom Sepez 2016/03/10 00:58:40 Done.
20
21 protected:
22 CPDF_Dictionary* m_pRoot;
23 };
24
12 CFX_WideString GetFullName(CPDF_Dictionary* pFieldDict); 25 CFX_WideString GetFullName(CPDF_Dictionary* pFieldDict);
13 void InitInterFormDict(CPDF_Dictionary*& pFormDict, CPDF_Document* pDocument); 26 void InitInterFormDict(CPDF_Dictionary*& pFormDict, CPDF_Document* pDocument);
14 FX_DWORD CountInterFormFonts(CPDF_Dictionary* pFormDict); 27 FX_DWORD CountInterFormFonts(CPDF_Dictionary* pFormDict);
15 CPDF_Font* GetInterFormFont(CPDF_Dictionary* pFormDict, 28 CPDF_Font* GetInterFormFont(CPDF_Dictionary* pFormDict,
16 CPDF_Document* pDocument, 29 CPDF_Document* pDocument,
17 FX_DWORD index, 30 FX_DWORD index,
18 CFX_ByteString& csNameTag); 31 CFX_ByteString& csNameTag);
19 CPDF_Font* GetInterFormFont(CPDF_Dictionary* pFormDict, 32 CPDF_Font* GetInterFormFont(CPDF_Dictionary* pFormDict,
20 CPDF_Document* pDocument, 33 CPDF_Document* pDocument,
21 CFX_ByteString csNameTag); 34 CFX_ByteString csNameTag);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 void SetDefaultInterFormFont(CPDF_Dictionary*& pFormDict, 69 void SetDefaultInterFormFont(CPDF_Dictionary*& pFormDict,
57 CPDF_Document* pDocument, 70 CPDF_Document* pDocument,
58 const CPDF_Font* pFont); 71 const CPDF_Font* pFont);
59 std::vector<bool> SaveCheckedFieldStatus(CPDF_FormField* pField); 72 std::vector<bool> SaveCheckedFieldStatus(CPDF_FormField* pField);
60 FX_BOOL NeedPDFEncodeForFieldFullName(const CFX_WideString& csFieldName); 73 FX_BOOL NeedPDFEncodeForFieldFullName(const CFX_WideString& csFieldName);
61 FX_BOOL NeedPDFEncodeForFieldTree(CPDF_Dictionary* pFieldDict, int nLevel = 0); 74 FX_BOOL NeedPDFEncodeForFieldTree(CPDF_Dictionary* pFieldDict, int nLevel = 0);
62 void EncodeFieldName(const CFX_WideString& csName, CFX_ByteString& csT); 75 void EncodeFieldName(const CFX_WideString& csName, CFX_ByteString& csT);
63 void UpdateEncodeFieldName(CPDF_Dictionary* pFieldDict, int nLevel = 0); 76 void UpdateEncodeFieldName(CPDF_Dictionary* pFieldDict, int nLevel = 0);
64 77
65 #endif // CORE_SRC_FPDFDOC_DOC_UTILS_H_ 78 #endif // CORE_SRC_FPDFDOC_DOC_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698