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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 FX_BOOL SubmitForm(const CFX_WideString& sDestination, FX_BOOL bUrlEncoded); | 300 FX_BOOL SubmitForm(const CFX_WideString& sDestination, FX_BOOL bUrlEncoded); |
301 FX_BOOL ExportFormToFDFTextBuf(CFX_ByteTextBuf& textBuf); | 301 FX_BOOL ExportFormToFDFTextBuf(CFX_ByteTextBuf& textBuf); |
302 FX_BOOL ExportFieldsToFDFTextBuf(const CFX_PtrArray& fields, | 302 FX_BOOL ExportFieldsToFDFTextBuf(const CFX_PtrArray& fields, |
303 FX_BOOL bIncludeOrExclude, | 303 FX_BOOL bIncludeOrExclude, |
304 CFX_ByteTextBuf& textBuf); | 304 CFX_ByteTextBuf& textBuf); |
305 CFX_WideString GetTemporaryFileName(const CFX_WideString& sFileExt); | 305 CFX_WideString GetTemporaryFileName(const CFX_WideString& sFileExt); |
306 | 306 |
307 void SynchronizeField(CPDF_FormField* pFormField, FX_BOOL bSynchronizeElse); | 307 void SynchronizeField(CPDF_FormField* pFormField, FX_BOOL bSynchronizeElse); |
308 | 308 |
309 private: | 309 private: |
310 virtual int BeforeValueChange(const CPDF_FormField* pField, | 310 // CPDF_FormNotify |
311 CFX_WideString& csValue); | 311 int BeforeValueChange(const CPDF_FormField* pField, |
312 virtual int AfterValueChange(const CPDF_FormField* pField); | 312 CFX_WideString& csValue) override; |
313 virtual int BeforeSelectionChange(const CPDF_FormField* pField, | 313 int AfterValueChange(const CPDF_FormField* pField) override; |
314 CFX_WideString& csValue); | 314 int BeforeSelectionChange(const CPDF_FormField* pField, |
315 virtual int AfterSelectionChange(const CPDF_FormField* pField); | 315 CFX_WideString& csValue) override; |
316 virtual int AfterCheckedStatusChange(const CPDF_FormField* pField, | 316 int AfterSelectionChange(const CPDF_FormField* pField) override; |
317 const CFX_ByteArray& statusArray); | 317 int AfterCheckedStatusChange(const CPDF_FormField* pField, |
318 virtual int BeforeFormReset(const CPDF_InterForm* pForm); | 318 const CFX_ByteArray& statusArray) override; |
319 virtual int AfterFormReset(const CPDF_InterForm* pForm); | 319 int BeforeFormReset(const CPDF_InterForm* pForm) override; |
320 virtual int BeforeFormImportData(const CPDF_InterForm* pForm); | 320 int AfterFormReset(const CPDF_InterForm* pForm) override; |
321 virtual int AfterFormImportData(const CPDF_InterForm* pForm); | 321 int BeforeFormImportData(const CPDF_InterForm* pForm) override; |
| 322 int AfterFormImportData(const CPDF_InterForm* pForm) override; |
322 | 323 |
323 FX_BOOL FDFToURLEncodedData(CFX_WideString csFDFFile, | 324 FX_BOOL FDFToURLEncodedData(CFX_WideString csFDFFile, |
324 CFX_WideString csTxtFile); | 325 CFX_WideString csTxtFile); |
325 FX_BOOL FDFToURLEncodedData(uint8_t*& pBuf, FX_STRSIZE& nBufSize); | 326 FX_BOOL FDFToURLEncodedData(uint8_t*& pBuf, FX_STRSIZE& nBufSize); |
326 int GetPageIndexByAnnotDict(CPDF_Document* pDocument, | 327 int GetPageIndexByAnnotDict(CPDF_Document* pDocument, |
327 CPDF_Dictionary* pAnnotDict) const; | 328 CPDF_Dictionary* pAnnotDict) const; |
328 void DoFDFBuffer(CFX_ByteString sBuffer); | 329 void DoFDFBuffer(CFX_ByteString sBuffer); |
329 | 330 |
330 using CPDFSDK_WidgetMap = std::map<CPDF_FormControl*, CPDFSDK_Widget*>; | 331 using CPDFSDK_WidgetMap = std::map<CPDF_FormControl*, CPDFSDK_Widget*>; |
331 | 332 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 static CPDF_Rect GetAnnotRect(CPDFSDK_Annot* pAnnot); | 379 static CPDF_Rect GetAnnotRect(CPDFSDK_Annot* pAnnot); |
379 | 380 |
380 CPDFSDK_PageView* m_pPageView; | 381 CPDFSDK_PageView* m_pPageView; |
381 CFX_ByteString m_sType; | 382 CFX_ByteString m_sType; |
382 CFX_ByteString m_sSubType; | 383 CFX_ByteString m_sSubType; |
383 int m_nTabs; | 384 int m_nTabs; |
384 CPDFSDK_Annots m_Annots; | 385 CPDFSDK_Annots m_Annots; |
385 }; | 386 }; |
386 | 387 |
387 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ | 388 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ |
OLD | NEW |