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 FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ | 7 #ifndef FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ |
8 #define FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ | 8 #define FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ |
9 | 9 |
10 #if _FX_OS_ == _FX_ANDROID_ | 10 #if _FX_OS_ == _FX_ANDROID_ |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 FX_BOOL bIncludeOrExclude, | 224 FX_BOOL bIncludeOrExclude, |
225 FX_BOOL bUrlEncoded); | 225 FX_BOOL bUrlEncoded); |
226 FX_BOOL SubmitForm(const CFX_WideString& sDestination, FX_BOOL bUrlEncoded); | 226 FX_BOOL SubmitForm(const CFX_WideString& sDestination, FX_BOOL bUrlEncoded); |
227 FX_BOOL ExportFormToFDFTextBuf(CFX_ByteTextBuf& textBuf); | 227 FX_BOOL ExportFormToFDFTextBuf(CFX_ByteTextBuf& textBuf); |
228 FX_BOOL ExportFieldsToFDFTextBuf(const CFX_PtrArray& fields, | 228 FX_BOOL ExportFieldsToFDFTextBuf(const CFX_PtrArray& fields, |
229 FX_BOOL bIncludeOrExclude, | 229 FX_BOOL bIncludeOrExclude, |
230 CFX_ByteTextBuf& textBuf); | 230 CFX_ByteTextBuf& textBuf); |
231 CFX_WideString GetTemporaryFileName(const CFX_WideString& sFileExt); | 231 CFX_WideString GetTemporaryFileName(const CFX_WideString& sFileExt); |
232 | 232 |
233 private: | 233 private: |
234 virtual int BeforeValueChange(const CPDF_FormField* pField, | 234 // CPDF_FormNotify |
235 CFX_WideString& csValue); | 235 int BeforeValueChange(const CPDF_FormField* pField, |
236 virtual int AfterValueChange(const CPDF_FormField* pField); | 236 CFX_WideString& csValue) override; |
237 virtual int BeforeSelectionChange(const CPDF_FormField* pField, | 237 int AfterValueChange(const CPDF_FormField* pField) override; |
238 CFX_WideString& csValue); | 238 int BeforeSelectionChange(const CPDF_FormField* pField, |
239 virtual int AfterSelectionChange(const CPDF_FormField* pField); | 239 CFX_WideString& csValue) override; |
240 virtual int AfterCheckedStatusChange(const CPDF_FormField* pField, | 240 int AfterSelectionChange(const CPDF_FormField* pField) override; |
241 const CFX_ByteArray& statusArray); | 241 int AfterCheckedStatusChange(const CPDF_FormField* pField, |
242 virtual int BeforeFormReset(const CPDF_InterForm* pForm); | 242 const CFX_ByteArray& statusArray) override; |
243 virtual int AfterFormReset(const CPDF_InterForm* pForm); | 243 int BeforeFormReset(const CPDF_InterForm* pForm) override; |
244 virtual int BeforeFormImportData(const CPDF_InterForm* pForm); | 244 int AfterFormReset(const CPDF_InterForm* pForm) override; |
245 virtual int AfterFormImportData(const CPDF_InterForm* pForm); | 245 int BeforeFormImportData(const CPDF_InterForm* pForm) override; |
| 246 int AfterFormImportData(const CPDF_InterForm* pForm) override; |
246 | 247 |
247 FX_BOOL FDFToURLEncodedData(CFX_WideString csFDFFile, | 248 FX_BOOL FDFToURLEncodedData(CFX_WideString csFDFFile, |
248 CFX_WideString csTxtFile); | 249 CFX_WideString csTxtFile); |
249 FX_BOOL FDFToURLEncodedData(uint8_t*& pBuf, FX_STRSIZE& nBufSize); | 250 FX_BOOL FDFToURLEncodedData(uint8_t*& pBuf, FX_STRSIZE& nBufSize); |
250 int GetPageIndexByAnnotDict(CPDF_Document* pDocument, | 251 int GetPageIndexByAnnotDict(CPDF_Document* pDocument, |
251 CPDF_Dictionary* pAnnotDict) const; | 252 CPDF_Dictionary* pAnnotDict) const; |
252 void DoFDFBuffer(CFX_ByteString sBuffer); | 253 void DoFDFBuffer(CFX_ByteString sBuffer); |
253 | 254 |
254 using CPDFSDK_WidgetMap = std::map<CPDF_FormControl*, CPDFSDK_Widget*>; | 255 using CPDFSDK_WidgetMap = std::map<CPDF_FormControl*, CPDFSDK_Widget*>; |
255 | 256 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 static CPDF_Rect GetAnnotRect(CPDFSDK_Annot* pAnnot); | 299 static CPDF_Rect GetAnnotRect(CPDFSDK_Annot* pAnnot); |
299 | 300 |
300 CPDFSDK_PageView* m_pPageView; | 301 CPDFSDK_PageView* m_pPageView; |
301 CFX_ByteString m_sType; | 302 CFX_ByteString m_sType; |
302 CFX_ByteString m_sSubType; | 303 CFX_ByteString m_sSubType; |
303 int m_nTabs; | 304 int m_nTabs; |
304 CPDFSDK_Annots m_Annots; | 305 CPDFSDK_Annots m_Annots; |
305 }; | 306 }; |
306 | 307 |
307 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ | 308 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ |
OLD | NEW |