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 _FSDK_BASEFORM_H_ | 7 #ifndef _FSDK_BASEFORM_H_ |
8 #define _FSDK_BASEFORM_H_ | 8 #define _FSDK_BASEFORM_H_ |
9 | 9 |
10 #if _FX_OS_ == _FX_ANDROID_ | 10 #if _FX_OS_ == _FX_ANDROID_ |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 FX_BOOL DoAction_Hide(co
nst CPDF_Action& action); | 264 FX_BOOL DoAction_Hide(co
nst CPDF_Action& action); |
265 FX_BOOL DoAction_SubmitF
orm(const CPDF_Action& action); | 265 FX_BOOL DoAction_SubmitF
orm(const CPDF_Action& action); |
266 FX_BOOL DoAction_ResetFo
rm(const CPDF_Action& action); | 266 FX_BOOL DoAction_ResetFo
rm(const CPDF_Action& action); |
267 FX_BOOL DoAction_ImportD
ata(const CPDF_Action& action); | 267 FX_BOOL DoAction_ImportD
ata(const CPDF_Action& action); |
268 | 268 |
269 void GetFieldFromObje
cts(const CFX_PtrArray& objects, CFX_PtrArray& fields); | 269 void GetFieldFromObje
cts(const CFX_PtrArray& objects, CFX_PtrArray& fields); |
270 FX_BOOL IsValidField(CPD
F_Dictionary* pFieldDict); | 270 FX_BOOL IsValidField(CPD
F_Dictionary* pFieldDict); |
271 FX_BOOL SubmitFields(con
st CFX_WideString& csDestination, const CFX_PtrArray& fields, | 271 FX_BOOL SubmitFields(con
st CFX_WideString& csDestination, const CFX_PtrArray& fields, |
272 FX_BOOL bIncludeOrExclude, FX_BOOL bUrlEncoded); | 272 FX_BOOL bIncludeOrExclude, FX_BOOL bUrlEncoded); |
273 FX_BOOL SubmitForm(const
CFX_WideString& sDestination, FX_BOOL bUrlEncoded); | 273 FX_BOOL SubmitForm(const
CFX_WideString& sDestination, FX_BOOL bUrlEncoded); |
274 FX_BOOL ImportFormFromFD
FFile(const CFX_WideString& csFDFFileName, FX_BOOL bNotify); | |
275 FX_BOOL ExportFormToFDFF
ile(const CFX_WideString& sFDFFileName); | |
276 FX_BOOL ExportFormToFDFT
extBuf(CFX_ByteTextBuf& textBuf); | 274 FX_BOOL ExportFormToFDFT
extBuf(CFX_ByteTextBuf& textBuf); |
277 FX_BOOL ExportFieldsToFD
FFile(const CFX_WideString& sFDFFileName, const CFX_PtrArray& fields, | |
278 FX_BOOL bIncludeOrExclude); | |
279 FX_BOOL ExportFieldsToFD
FTextBuf(const CFX_PtrArray& fields,FX_BOOL bIncludeOrExclude, CFX_ByteTextBuf&
textBuf); | 275 FX_BOOL ExportFieldsToFD
FTextBuf(const CFX_PtrArray& fields,FX_BOOL bIncludeOrExclude, CFX_ByteTextBuf&
textBuf); |
280 FX_BOOL ExportFormToTxtF
ile(const CFX_WideString& sTxtFileName); | |
281 FX_BOOL ImportFormFromTx
tFile(const CFX_WideString& sTxtFileName); | |
282 CFX_WideString GetTemporaryFileName(con
st CFX_WideString& sFileExt); | 276 CFX_WideString GetTemporaryFileName(con
st CFX_WideString& sFileExt); |
283 | 277 |
284 void SynchronizeField
(CPDF_FormField* pFormField, FX_BOOL bSynchronizeElse); | 278 void SynchronizeField
(CPDF_FormField* pFormField, FX_BOOL bSynchronizeElse); |
285 | 279 |
286 private: | 280 private: |
287 virtual int BeforeValueChang
e(const CPDF_FormField* pField, CFX_WideString& csValue); | 281 virtual int BeforeValueChang
e(const CPDF_FormField* pField, CFX_WideString& csValue); |
288 virtual int AfterValueChange
(const CPDF_FormField* pField); | 282 virtual int AfterValueChange
(const CPDF_FormField* pField); |
289 virtual int BeforeSelectionC
hange(const CPDF_FormField* pField, CFX_WideString& csValue); | 283 virtual int BeforeSelectionC
hange(const CPDF_FormField* pField, CFX_WideString& csValue); |
290 virtual int AfterSelectionCh
ange(const CPDF_FormField* pField); | 284 virtual int AfterSelectionCh
ange(const CPDF_FormField* pField); |
291 virtual int AfterCheckedStat
usChange(const CPDF_FormField* pField, const CFX_ByteArray& statusArray); | 285 virtual int AfterCheckedStat
usChange(const CPDF_FormField* pField, const CFX_ByteArray& statusArray); |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 CPDFSDK_PageView* m_pPageView; | 348 CPDFSDK_PageView* m_pPageView; |
355 CFX_ByteString m_sType; | 349 CFX_ByteString m_sType; |
356 CFX_ByteString m_sSubType; | 350 CFX_ByteString m_sSubType; |
357 int
m_nTabs; | 351 int
m_nTabs; |
358 | 352 |
359 CPDFSDK_Annots m_Annots; | 353 CPDFSDK_Annots m_Annots; |
360 }; | 354 }; |
361 | 355 |
362 #endif //#define _FSDK_BASEFORM_H_ | 356 #endif //#define _FSDK_BASEFORM_H_ |
363 | 357 |
OLD | NEW |