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

Side by Side Diff: core/include/fpdfdoc/fpdf_doc.h

Issue 1660633003: Fix prototypes for CPDF_FormNotify. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | fpdfsdk/include/fsdk_baseform.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 979 matching lines...) Expand 10 before | Expand all | Expand 10 after
990 990
991 CPDF_Dictionary* m_pWidgetDict; 991 CPDF_Dictionary* m_pWidgetDict;
992 friend class CPDF_InterForm; 992 friend class CPDF_InterForm;
993 friend class CPDF_FormField; 993 friend class CPDF_FormField;
994 }; 994 };
995 995
996 class CPDF_FormNotify { 996 class CPDF_FormNotify {
997 public: 997 public:
998 virtual ~CPDF_FormNotify() {} 998 virtual ~CPDF_FormNotify() {}
999 999
1000 virtual int BeforeValueChange(const CPDF_FormField* pField, 1000 virtual int BeforeValueChange(CPDF_FormField* pField,
1001 CFX_WideString& csValue) { 1001 const CFX_WideString& csValue) {
1002 return 0; 1002 return 0;
1003 } 1003 }
1004 virtual int AfterValueChange(const CPDF_FormField* pField) { return 0; } 1004 virtual void AfterValueChange(CPDF_FormField* pField) {}
1005 1005 virtual int BeforeSelectionChange(CPDF_FormField* pField,
1006 virtual int BeforeSelectionChange(const CPDF_FormField* pField, 1006 const CFX_WideString& csValue) {
1007 CFX_WideString& csValue) {
1008 return 0; 1007 return 0;
1009 } 1008 }
1010 virtual int AfterSelectionChange(const CPDF_FormField* pField) { return 0; } 1009 virtual void AfterSelectionChange(CPDF_FormField* pField) {}
1011
1012 virtual void AfterCheckedStatusChange(CPDF_FormField* pField) {} 1010 virtual void AfterCheckedStatusChange(CPDF_FormField* pField) {}
1013 virtual int BeforeFormReset(const CPDF_InterForm* pForm) { return 0; } 1011 virtual int BeforeFormReset(CPDF_InterForm* pForm) { return 0; }
1014 virtual int AfterFormReset(const CPDF_InterForm* pForm) { return 0; } 1012 virtual void AfterFormReset(CPDF_InterForm* pForm) {}
1015 virtual int BeforeFormImportData(const CPDF_InterForm* pForm) { return 0; } 1013 virtual int BeforeFormImportData(CPDF_InterForm* pForm) { return 0; }
1016 virtual int AfterFormImportData(const CPDF_InterForm* pForm) { return 0; } 1014 virtual void AfterFormImportData(CPDF_InterForm* pForm) {}
1017 }; 1015 };
1018 1016
1019 FX_BOOL FPDF_GenerateAP(CPDF_Document* pDoc, CPDF_Dictionary* pAnnotDict); 1017 FX_BOOL FPDF_GenerateAP(CPDF_Document* pDoc, CPDF_Dictionary* pAnnotDict);
1020 class CPDF_PageLabel { 1018 class CPDF_PageLabel {
1021 public: 1019 public:
1022 explicit CPDF_PageLabel(CPDF_Document* pDocument) { m_pDocument = pDocument; } 1020 explicit CPDF_PageLabel(CPDF_Document* pDocument) { m_pDocument = pDocument; }
1023 1021
1024 CFX_WideString GetLabel(int nPage) const; 1022 CFX_WideString GetLabel(int nPage) const;
1025 1023
1026 int32_t GetPageByLabel(const CFX_ByteStringC& bsLabel) const; 1024 int32_t GetPageByLabel(const CFX_ByteStringC& bsLabel) const;
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
1123 CFX_WideString GetCaption(const CFX_ByteStringC& csEntry) const; 1121 CFX_WideString GetCaption(const CFX_ByteStringC& csEntry) const;
1124 1122
1125 CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry) const; 1123 CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry) const;
1126 1124
1127 CPDF_Dictionary* const m_pDict; 1125 CPDF_Dictionary* const m_pDict;
1128 }; 1126 };
1129 1127
1130 CFX_WideString FILESPEC_EncodeFileName(const CFX_WideStringC& filepath); 1128 CFX_WideString FILESPEC_EncodeFileName(const CFX_WideStringC& filepath);
1131 1129
1132 #endif // CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ 1130 #endif // CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_
OLDNEW
« no previous file with comments | « no previous file | fpdfsdk/include/fsdk_baseform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698