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

Side by Side Diff: fpdfsdk/include/fsdk_baseform.h

Issue 1668483004: Merge to XFA: Fix prototypes for CPDF_FormNotify. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: One more identifier to replace. 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 | « core/include/fpdfdoc/fpdf_doc.h ('k') | fpdfsdk/src/fsdk_baseform.cpp » ('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 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 #ifdef PDF_ENABLE_XFA 275 #ifdef PDF_ENABLE_XFA
276 void AddXFAMap(IXFA_Widget* hWidget, CPDFSDK_XFAWidget* pWidget); 276 void AddXFAMap(IXFA_Widget* hWidget, CPDFSDK_XFAWidget* pWidget);
277 void RemoveXFAMap(IXFA_Widget* hWidget); 277 void RemoveXFAMap(IXFA_Widget* hWidget);
278 CPDFSDK_XFAWidget* GetXFAWidget(IXFA_Widget* hWidget); 278 CPDFSDK_XFAWidget* GetXFAWidget(IXFA_Widget* hWidget);
279 void XfaEnableCalculate(FX_BOOL bEnabled); 279 void XfaEnableCalculate(FX_BOOL bEnabled);
280 FX_BOOL IsXfaCalculateEnabled() const; 280 FX_BOOL IsXfaCalculateEnabled() const;
281 FX_BOOL IsXfaValidationsEnabled(); 281 FX_BOOL IsXfaValidationsEnabled();
282 void XfaSetValidationsEnabled(FX_BOOL bEnabled); 282 void XfaSetValidationsEnabled(FX_BOOL bEnabled);
283 #endif // PDF_ENABLE_XFA 283 #endif // PDF_ENABLE_XFA
284 284
285 void OnKeyStrokeCommit(CPDF_FormField* pFormField, 285 FX_BOOL OnKeyStrokeCommit(CPDF_FormField* pFormField,
286 CFX_WideString& csValue, 286 const CFX_WideString& csValue);
287 FX_BOOL& bRC); 287 FX_BOOL OnValidate(CPDF_FormField* pFormField, const CFX_WideString& csValue);
288 void OnValidate(CPDF_FormField* pFormField,
289 CFX_WideString& csValue,
290 FX_BOOL& bRC);
291 void OnCalculate(CPDF_FormField* pFormField = NULL); 288 void OnCalculate(CPDF_FormField* pFormField = NULL);
292 CFX_WideString OnFormat(CPDF_FormField* pFormField, FX_BOOL& bFormated); 289 CFX_WideString OnFormat(CPDF_FormField* pFormField, FX_BOOL& bFormated);
293 290
294 void ResetFieldAppearance(CPDF_FormField* pFormField, 291 void ResetFieldAppearance(CPDF_FormField* pFormField,
295 const FX_WCHAR* sValue, 292 const FX_WCHAR* sValue,
296 FX_BOOL bValueChanged); 293 FX_BOOL bValueChanged);
297 void UpdateField(CPDF_FormField* pFormField); 294 void UpdateField(CPDF_FormField* pFormField);
298 295
299 FX_BOOL DoAction_Hide(const CPDF_Action& action); 296 FX_BOOL DoAction_Hide(const CPDF_Action& action);
300 FX_BOOL DoAction_SubmitForm(const CPDF_Action& action); 297 FX_BOOL DoAction_SubmitForm(const CPDF_Action& action);
(...skipping 12 matching lines...) Expand all
313 FX_BOOL ExportFieldsToFDFTextBuf(const std::vector<CPDF_FormField*>& fields, 310 FX_BOOL ExportFieldsToFDFTextBuf(const std::vector<CPDF_FormField*>& fields,
314 FX_BOOL bIncludeOrExclude, 311 FX_BOOL bIncludeOrExclude,
315 CFX_ByteTextBuf& textBuf); 312 CFX_ByteTextBuf& textBuf);
316 CFX_WideString GetTemporaryFileName(const CFX_WideString& sFileExt); 313 CFX_WideString GetTemporaryFileName(const CFX_WideString& sFileExt);
317 314
318 #ifdef PDF_ENABLE_XFA 315 #ifdef PDF_ENABLE_XFA
319 void SynchronizeField(CPDF_FormField* pFormField, FX_BOOL bSynchronizeElse); 316 void SynchronizeField(CPDF_FormField* pFormField, FX_BOOL bSynchronizeElse);
320 #endif // PDF_ENABLE_XFA 317 #endif // PDF_ENABLE_XFA
321 318
322 private: 319 private:
323 // CPDF_FormNotify 320 // CPDF_FormNotify:
324 int BeforeValueChange(const CPDF_FormField* pField, 321 int BeforeValueChange(CPDF_FormField* pField,
325 CFX_WideString& csValue) override; 322 const CFX_WideString& csValue) override;
326 int AfterValueChange(const CPDF_FormField* pField) override; 323 void AfterValueChange(CPDF_FormField* pField) override;
327 int BeforeSelectionChange(const CPDF_FormField* pField, 324 int BeforeSelectionChange(CPDF_FormField* pField,
328 CFX_WideString& csValue) override; 325 const CFX_WideString& csValue) override;
329 int AfterSelectionChange(const CPDF_FormField* pField) override; 326 void AfterSelectionChange(CPDF_FormField* pField) override;
330 void AfterCheckedStatusChange(CPDF_FormField* pField) override; 327 void AfterCheckedStatusChange(CPDF_FormField* pField) override;
331 int BeforeFormReset(const CPDF_InterForm* pForm) override; 328 int BeforeFormReset(CPDF_InterForm* pForm) override;
332 int AfterFormReset(const CPDF_InterForm* pForm) override; 329 void AfterFormReset(CPDF_InterForm* pForm) override;
333 int BeforeFormImportData(const CPDF_InterForm* pForm) override; 330 int BeforeFormImportData(CPDF_InterForm* pForm) override;
334 int AfterFormImportData(const CPDF_InterForm* pForm) override; 331 void AfterFormImportData(CPDF_InterForm* pForm) override;
335 332
336 FX_BOOL FDFToURLEncodedData(CFX_WideString csFDFFile, 333 FX_BOOL FDFToURLEncodedData(CFX_WideString csFDFFile,
337 CFX_WideString csTxtFile); 334 CFX_WideString csTxtFile);
338 FX_BOOL FDFToURLEncodedData(uint8_t*& pBuf, FX_STRSIZE& nBufSize); 335 FX_BOOL FDFToURLEncodedData(uint8_t*& pBuf, FX_STRSIZE& nBufSize);
339 int GetPageIndexByAnnotDict(CPDF_Document* pDocument, 336 int GetPageIndexByAnnotDict(CPDF_Document* pDocument,
340 CPDF_Dictionary* pAnnotDict) const; 337 CPDF_Dictionary* pAnnotDict) const;
341 338
342 using CPDFSDK_WidgetMap = std::map<CPDF_FormControl*, CPDFSDK_Widget*>; 339 using CPDFSDK_WidgetMap = std::map<CPDF_FormControl*, CPDFSDK_Widget*>;
343 340
344 CPDFSDK_Document* m_pDocument; 341 CPDFSDK_Document* m_pDocument;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 const CPDFSDK_Annot* p2); 395 const CPDFSDK_Annot* p2);
399 396
400 TabOrder m_eTabOrder; 397 TabOrder m_eTabOrder;
401 CPDFSDK_PageView* m_pPageView; 398 CPDFSDK_PageView* m_pPageView;
402 CFX_ByteString m_sType; 399 CFX_ByteString m_sType;
403 CFX_ByteString m_sSubType; 400 CFX_ByteString m_sSubType;
404 std::vector<CPDFSDK_Annot*> m_Annots; 401 std::vector<CPDFSDK_Annot*> m_Annots;
405 }; 402 };
406 403
407 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ 404 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_
OLDNEW
« no previous file with comments | « core/include/fpdfdoc/fpdf_doc.h ('k') | fpdfsdk/src/fsdk_baseform.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698