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 929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
940 return 0; | 940 return 0; |
941 } | 941 } |
942 virtual void AfterSelectionChange(CPDF_FormField* pField) {} | 942 virtual void AfterSelectionChange(CPDF_FormField* pField) {} |
943 virtual void AfterCheckedStatusChange(CPDF_FormField* pField) {} | 943 virtual void AfterCheckedStatusChange(CPDF_FormField* pField) {} |
944 virtual int BeforeFormReset(CPDF_InterForm* pForm) { return 0; } | 944 virtual int BeforeFormReset(CPDF_InterForm* pForm) { return 0; } |
945 virtual void AfterFormReset(CPDF_InterForm* pForm) {} | 945 virtual void AfterFormReset(CPDF_InterForm* pForm) {} |
946 virtual int BeforeFormImportData(CPDF_InterForm* pForm) { return 0; } | 946 virtual int BeforeFormImportData(CPDF_InterForm* pForm) { return 0; } |
947 virtual void AfterFormImportData(CPDF_InterForm* pForm) {} | 947 virtual void AfterFormImportData(CPDF_InterForm* pForm) {} |
948 }; | 948 }; |
949 | 949 |
950 FX_BOOL FPDF_GenerateAP(CPDF_Document* pDoc, CPDF_Dictionary* pAnnotDict); | |
951 | |
952 class CPDF_PageLabel { | 950 class CPDF_PageLabel { |
953 public: | 951 public: |
954 explicit CPDF_PageLabel(CPDF_Document* pDocument) : m_pDocument(pDocument) {} | 952 explicit CPDF_PageLabel(CPDF_Document* pDocument) : m_pDocument(pDocument) {} |
955 | 953 |
956 CFX_WideString GetLabel(int nPage) const; | 954 CFX_WideString GetLabel(int nPage) const; |
957 int32_t GetPageByLabel(const CFX_ByteStringC& bsLabel) const; | 955 int32_t GetPageByLabel(const CFX_ByteStringC& bsLabel) const; |
958 int32_t GetPageByLabel(const CFX_WideStringC& wsLabel) const; | 956 int32_t GetPageByLabel(const CFX_WideStringC& wsLabel) const; |
959 | 957 |
960 protected: | 958 protected: |
961 CPDF_Document* const m_pDocument; | 959 CPDF_Document* const m_pDocument; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1048 CFX_WideString GetCaption(const CFX_ByteStringC& csEntry) const; | 1046 CFX_WideString GetCaption(const CFX_ByteStringC& csEntry) const; |
1049 | 1047 |
1050 CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry) const; | 1048 CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry) const; |
1051 | 1049 |
1052 CPDF_Dictionary* const m_pDict; | 1050 CPDF_Dictionary* const m_pDict; |
1053 }; | 1051 }; |
1054 | 1052 |
1055 CFX_WideString FILESPEC_EncodeFileName(const CFX_WideStringC& filepath); | 1053 CFX_WideString FILESPEC_EncodeFileName(const CFX_WideStringC& filepath); |
1056 | 1054 |
1057 #endif // CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ | 1055 #endif // CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ |
OLD | NEW |