| OLD | NEW |
| 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 CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ | 7 #ifndef CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ |
| 8 #define CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ | 8 #define CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 | 710 |
| 711 void FixPageFields(const CPDF_Page* pPage); | 711 void FixPageFields(const CPDF_Page* pPage); |
| 712 | 712 |
| 713 protected: | 713 protected: |
| 714 static FX_BOOL m_bUpdateAP; | 714 static FX_BOOL m_bUpdateAP; |
| 715 | 715 |
| 716 void LoadField(CPDF_Dictionary* pFieldDict, int nLevel = 0); | 716 void LoadField(CPDF_Dictionary* pFieldDict, int nLevel = 0); |
| 717 | 717 |
| 718 CPDF_Object* GetFieldAttr(CPDF_Dictionary* pFieldDict, const FX_CHAR* name); | 718 CPDF_Object* GetFieldAttr(CPDF_Dictionary* pFieldDict, const FX_CHAR* name); |
| 719 | 719 |
| 720 CPDF_FormField* AddTerminalField(const CPDF_Dictionary* pFieldDict); | 720 CPDF_FormField* AddTerminalField(CPDF_Dictionary* pFieldDict); |
| 721 | 721 |
| 722 CPDF_FormControl* AddControl(const CPDF_FormField* pField, | 722 CPDF_FormControl* AddControl(const CPDF_FormField* pField, |
| 723 const CPDF_Dictionary* pWidgetDict); | 723 CPDF_Dictionary* pWidgetDict); |
| 724 | 724 |
| 725 void FDF_ImportField(CPDF_Dictionary* pField, | 725 void FDF_ImportField(CPDF_Dictionary* pField, |
| 726 const CFX_WideString& parent_name, | 726 const CFX_WideString& parent_name, |
| 727 FX_BOOL bNotify = FALSE, | 727 FX_BOOL bNotify = FALSE, |
| 728 int nLevel = 0); | 728 int nLevel = 0); |
| 729 | 729 |
| 730 FX_BOOL ValidateFieldName(CFX_WideString& csNewFieldName, | 730 FX_BOOL ValidateFieldName(CFX_WideString& csNewFieldName, |
| 731 int iType, | 731 int iType, |
| 732 const CPDF_FormField* pExcludedField, | 732 const CPDF_FormField* pExcludedField, |
| 733 const CPDF_FormControl* pExcludedControl); | 733 const CPDF_FormControl* pExcludedControl); |
| (...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1206 FX_FLOAT fc[4], | 1206 FX_FLOAT fc[4], |
| 1207 const CFX_ByteStringC& csEntry); | 1207 const CFX_ByteStringC& csEntry); |
| 1208 | 1208 |
| 1209 CFX_WideString GetCaption(const CFX_ByteStringC& csEntry); | 1209 CFX_WideString GetCaption(const CFX_ByteStringC& csEntry); |
| 1210 | 1210 |
| 1211 CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry); | 1211 CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry); |
| 1212 friend class CPDF_FormControl; | 1212 friend class CPDF_FormControl; |
| 1213 }; | 1213 }; |
| 1214 | 1214 |
| 1215 #endif // CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ | 1215 #endif // CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ |
| OLD | NEW |