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 987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
998 | 998 |
999 CPDF_Dictionary* m_pWidgetDict; | 999 CPDF_Dictionary* m_pWidgetDict; |
1000 friend class CPDF_InterForm; | 1000 friend class CPDF_InterForm; |
1001 friend class CPDF_FormField; | 1001 friend class CPDF_FormField; |
1002 }; | 1002 }; |
1003 | 1003 |
1004 class CPDF_FormNotify { | 1004 class CPDF_FormNotify { |
1005 public: | 1005 public: |
1006 virtual ~CPDF_FormNotify() {} | 1006 virtual ~CPDF_FormNotify() {} |
1007 | 1007 |
1008 virtual int BeforeValueChange(const CPDF_FormField* pField, | 1008 virtual int BeforeValueChange(CPDF_FormField* pField, |
1009 CFX_WideString& csValue) { | 1009 const CFX_WideString& csValue) { |
1010 return 0; | 1010 return 0; |
1011 } | 1011 } |
1012 virtual int AfterValueChange(const CPDF_FormField* pField) { return 0; } | 1012 virtual void AfterValueChange(CPDF_FormField* pField) {} |
1013 | 1013 virtual int BeforeSelectionChange(CPDF_FormField* pField, |
1014 virtual int BeforeSelectionChange(const CPDF_FormField* pField, | 1014 const CFX_WideString& csValue) { |
1015 CFX_WideString& csValue) { | |
1016 return 0; | 1015 return 0; |
1017 } | 1016 } |
1018 virtual int AfterSelectionChange(const CPDF_FormField* pField) { return 0; } | 1017 virtual void AfterSelectionChange(CPDF_FormField* pField) {} |
1019 | |
1020 virtual void AfterCheckedStatusChange(CPDF_FormField* pField) {} | 1018 virtual void AfterCheckedStatusChange(CPDF_FormField* pField) {} |
1021 virtual int BeforeFormReset(const CPDF_InterForm* pForm) { return 0; } | 1019 virtual int BeforeFormReset(CPDF_InterForm* pForm) { return 0; } |
1022 virtual int AfterFormReset(const CPDF_InterForm* pForm) { return 0; } | 1020 virtual void AfterFormReset(CPDF_InterForm* pForm) {} |
1023 virtual int BeforeFormImportData(const CPDF_InterForm* pForm) { return 0; } | 1021 virtual int BeforeFormImportData(CPDF_InterForm* pForm) { return 0; } |
1024 virtual int AfterFormImportData(const CPDF_InterForm* pForm) { return 0; } | 1022 virtual void AfterFormImportData(CPDF_InterForm* pForm) {} |
1025 }; | 1023 }; |
1026 | 1024 |
1027 FX_BOOL FPDF_GenerateAP(CPDF_Document* pDoc, CPDF_Dictionary* pAnnotDict); | 1025 FX_BOOL FPDF_GenerateAP(CPDF_Document* pDoc, CPDF_Dictionary* pAnnotDict); |
1028 class CPDF_PageLabel { | 1026 class CPDF_PageLabel { |
1029 public: | 1027 public: |
1030 explicit CPDF_PageLabel(CPDF_Document* pDocument) { m_pDocument = pDocument; } | 1028 explicit CPDF_PageLabel(CPDF_Document* pDocument) { m_pDocument = pDocument; } |
1031 | 1029 |
1032 CFX_WideString GetLabel(int nPage) const; | 1030 CFX_WideString GetLabel(int nPage) const; |
1033 | 1031 |
1034 int32_t GetPageByLabel(const CFX_ByteStringC& bsLabel) const; | 1032 int32_t GetPageByLabel(const CFX_ByteStringC& bsLabel) const; |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1131 CFX_WideString GetCaption(const CFX_ByteStringC& csEntry) const; | 1129 CFX_WideString GetCaption(const CFX_ByteStringC& csEntry) const; |
1132 | 1130 |
1133 CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry) const; | 1131 CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry) const; |
1134 | 1132 |
1135 CPDF_Dictionary* const m_pDict; | 1133 CPDF_Dictionary* const m_pDict; |
1136 }; | 1134 }; |
1137 | 1135 |
1138 CFX_WideString FILESPEC_EncodeFileName(const CFX_WideStringC& filepath); | 1136 CFX_WideString FILESPEC_EncodeFileName(const CFX_WideStringC& filepath); |
1139 | 1137 |
1140 #endif // CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ | 1138 #endif // CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ |
OLD | NEW |