| 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_FPDFDOC_INCLUDE_FPDF_DOC_H_ | 7 #ifndef CORE_FPDFDOC_INCLUDE_FPDF_DOC_H_ |
| 8 #define CORE_FPDFDOC_INCLUDE_FPDF_DOC_H_ | 8 #define CORE_FPDFDOC_INCLUDE_FPDF_DOC_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 void SetFormNotify(IPDF_FormNotify* pNotify); | 526 void SetFormNotify(IPDF_FormNotify* pNotify); |
| 527 FX_BOOL HasXFAForm() const; | 527 FX_BOOL HasXFAForm() const; |
| 528 void FixPageFields(const CPDF_Page* pPage); | 528 void FixPageFields(const CPDF_Page* pPage); |
| 529 | 529 |
| 530 protected: | 530 protected: |
| 531 static FX_BOOL s_bUpdateAP; | 531 static FX_BOOL s_bUpdateAP; |
| 532 | 532 |
| 533 void LoadField(CPDF_Dictionary* pFieldDict, int nLevel = 0); | 533 void LoadField(CPDF_Dictionary* pFieldDict, int nLevel = 0); |
| 534 CPDF_Object* GetFieldAttr(CPDF_Dictionary* pFieldDict, const FX_CHAR* name); | 534 CPDF_Object* GetFieldAttr(CPDF_Dictionary* pFieldDict, const FX_CHAR* name); |
| 535 CPDF_FormField* AddTerminalField(CPDF_Dictionary* pFieldDict); | 535 CPDF_FormField* AddTerminalField(CPDF_Dictionary* pFieldDict); |
| 536 CPDF_FormControl* AddControl(const CPDF_FormField* pField, | 536 CPDF_FormControl* AddControl(CPDF_FormField* pField, |
| 537 CPDF_Dictionary* pWidgetDict); | 537 CPDF_Dictionary* pWidgetDict); |
| 538 void FDF_ImportField(CPDF_Dictionary* pField, | 538 void FDF_ImportField(CPDF_Dictionary* pField, |
| 539 const CFX_WideString& parent_name, | 539 const CFX_WideString& parent_name, |
| 540 FX_BOOL bNotify = FALSE, | 540 FX_BOOL bNotify = FALSE, |
| 541 int nLevel = 0); | 541 int nLevel = 0); |
| 542 FX_BOOL ValidateFieldName(CFX_WideString& csNewFieldName, | 542 FX_BOOL ValidateFieldName(CFX_WideString& csNewFieldName, |
| 543 int iType, | 543 int iType, |
| 544 const CPDF_FormField* pExcludedField, | 544 const CPDF_FormField* pExcludedField, |
| 545 const CPDF_FormControl* pExcludedControl); | 545 const CPDF_FormControl* pExcludedControl); |
| 546 int CompareFieldName(const CFX_WideString& name1, | 546 int CompareFieldName(const CFX_WideString& name1, |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 934 CFX_WideString GetCaption(const CFX_ByteString& csEntry) const; | 934 CFX_WideString GetCaption(const CFX_ByteString& csEntry) const; |
| 935 CPDF_Stream* GetIcon(const CFX_ByteString& csEntry) const; | 935 CPDF_Stream* GetIcon(const CFX_ByteString& csEntry) const; |
| 936 | 936 |
| 937 CPDF_Dictionary* const m_pDict; | 937 CPDF_Dictionary* const m_pDict; |
| 938 }; | 938 }; |
| 939 | 939 |
| 940 CPDF_Stream* FPDFDOC_GetAnnotAP(CPDF_Dictionary* pAnnotDict, | 940 CPDF_Stream* FPDFDOC_GetAnnotAP(CPDF_Dictionary* pAnnotDict, |
| 941 CPDF_Annot::AppearanceMode mode); | 941 CPDF_Annot::AppearanceMode mode); |
| 942 | 942 |
| 943 #endif // CORE_FPDFDOC_INCLUDE_FPDF_DOC_H_ | 943 #endif // CORE_FPDFDOC_INCLUDE_FPDF_DOC_H_ |
| OLD | NEW |