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

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

Issue 1416113010: Merge to XFA: Remove CFX_PtrArray usage in fpdfsdk. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 1 month 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/src/fpdfdoc/doc_form.cpp ('k') | fpdfsdk/include/jsapi/fxjs_v8.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 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 explicit CPDFSDK_InterForm(CPDFSDK_Document* pDocument); 235 explicit CPDFSDK_InterForm(CPDFSDK_Document* pDocument);
236 ~CPDFSDK_InterForm() override; 236 ~CPDFSDK_InterForm() override;
237 237
238 CPDF_InterForm* GetInterForm() const { return m_pInterForm; } 238 CPDF_InterForm* GetInterForm() const { return m_pInterForm; }
239 CPDFSDK_Document* GetDocument() const { return m_pDocument; } 239 CPDFSDK_Document* GetDocument() const { return m_pDocument; }
240 240
241 FX_BOOL HighlightWidgets(); 241 FX_BOOL HighlightWidgets();
242 242
243 CPDFSDK_Widget* GetSibling(CPDFSDK_Widget* pWidget, FX_BOOL bNext) const; 243 CPDFSDK_Widget* GetSibling(CPDFSDK_Widget* pWidget, FX_BOOL bNext) const;
244 CPDFSDK_Widget* GetWidget(CPDF_FormControl* pControl) const; 244 CPDFSDK_Widget* GetWidget(CPDF_FormControl* pControl) const;
245 void GetWidgets(const CFX_WideString& sFieldName, CFX_PtrArray& widgets); 245 void GetWidgets(const CFX_WideString& sFieldName,
246 void GetWidgets(CPDF_FormField* pField, CFX_PtrArray& widgets); 246 std::vector<CPDFSDK_Widget*>* widgets) const;
247 void GetWidgets(CPDF_FormField* pField,
248 std::vector<CPDFSDK_Widget*>* widgets) const;
247 249
248 void AddMap(CPDF_FormControl* pControl, CPDFSDK_Widget* pWidget); 250 void AddMap(CPDF_FormControl* pControl, CPDFSDK_Widget* pWidget);
249 void RemoveMap(CPDF_FormControl* pControl); 251 void RemoveMap(CPDF_FormControl* pControl);
250 252
251 void AddXFAMap(IXFA_Widget* hWidget, CPDFSDK_XFAWidget* pWidget); 253 void AddXFAMap(IXFA_Widget* hWidget, CPDFSDK_XFAWidget* pWidget);
252 void RemoveXFAMap(IXFA_Widget* hWidget); 254 void RemoveXFAMap(IXFA_Widget* hWidget);
253 CPDFSDK_XFAWidget* GetXFAWidget(IXFA_Widget* hWidget); 255 CPDFSDK_XFAWidget* GetXFAWidget(IXFA_Widget* hWidget);
254 256
255 void EnableCalculate(FX_BOOL bEnabled); 257 void EnableCalculate(FX_BOOL bEnabled);
256 FX_BOOL IsCalculateEnabled() const; 258 FX_BOOL IsCalculateEnabled() const;
(...skipping 20 matching lines...) Expand all
277 void ResetFieldAppearance(CPDF_FormField* pFormField, 279 void ResetFieldAppearance(CPDF_FormField* pFormField,
278 const FX_WCHAR* sValue, 280 const FX_WCHAR* sValue,
279 FX_BOOL bValueChanged); 281 FX_BOOL bValueChanged);
280 void UpdateField(CPDF_FormField* pFormField); 282 void UpdateField(CPDF_FormField* pFormField);
281 283
282 FX_BOOL DoAction_Hide(const CPDF_Action& action); 284 FX_BOOL DoAction_Hide(const CPDF_Action& action);
283 FX_BOOL DoAction_SubmitForm(const CPDF_Action& action); 285 FX_BOOL DoAction_SubmitForm(const CPDF_Action& action);
284 FX_BOOL DoAction_ResetForm(const CPDF_Action& action); 286 FX_BOOL DoAction_ResetForm(const CPDF_Action& action);
285 FX_BOOL DoAction_ImportData(const CPDF_Action& action); 287 FX_BOOL DoAction_ImportData(const CPDF_Action& action);
286 288
287 void GetFieldFromObjects(const CFX_PtrArray& objects, CFX_PtrArray& fields); 289 std::vector<CPDF_FormField*> GetFieldFromObjects(
290 const std::vector<CPDF_Object*>& objects) const;
288 FX_BOOL IsValidField(CPDF_Dictionary* pFieldDict); 291 FX_BOOL IsValidField(CPDF_Dictionary* pFieldDict);
289 FX_BOOL SubmitFields(const CFX_WideString& csDestination, 292 FX_BOOL SubmitFields(const CFX_WideString& csDestination,
290 const CFX_PtrArray& fields, 293 const std::vector<CPDF_FormField*>& fields,
291 FX_BOOL bIncludeOrExclude, 294 FX_BOOL bIncludeOrExclude,
292 FX_BOOL bUrlEncoded); 295 FX_BOOL bUrlEncoded);
293 FX_BOOL SubmitForm(const CFX_WideString& sDestination, FX_BOOL bUrlEncoded); 296 FX_BOOL SubmitForm(const CFX_WideString& sDestination, FX_BOOL bUrlEncoded);
294 FX_BOOL ExportFormToFDFTextBuf(CFX_ByteTextBuf& textBuf); 297 FX_BOOL ExportFormToFDFTextBuf(CFX_ByteTextBuf& textBuf);
295 FX_BOOL ExportFieldsToFDFTextBuf(const CFX_PtrArray& fields, 298 FX_BOOL ExportFieldsToFDFTextBuf(const std::vector<CPDF_FormField*>& fields,
296 FX_BOOL bIncludeOrExclude, 299 FX_BOOL bIncludeOrExclude,
297 CFX_ByteTextBuf& textBuf); 300 CFX_ByteTextBuf& textBuf);
298 CFX_WideString GetTemporaryFileName(const CFX_WideString& sFileExt); 301 CFX_WideString GetTemporaryFileName(const CFX_WideString& sFileExt);
299 302
300 void SynchronizeField(CPDF_FormField* pFormField, FX_BOOL bSynchronizeElse); 303 void SynchronizeField(CPDF_FormField* pFormField, FX_BOOL bSynchronizeElse);
301 304
302 private: 305 private:
303 // CPDF_FormNotify 306 // CPDF_FormNotify
304 int BeforeValueChange(const CPDF_FormField* pField, 307 int BeforeValueChange(const CPDF_FormField* pField,
305 CFX_WideString& csValue) override; 308 CFX_WideString& csValue) override;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 static CPDF_Rect GetAnnotRect(CPDFSDK_Annot* pAnnot); 374 static CPDF_Rect GetAnnotRect(CPDFSDK_Annot* pAnnot);
372 375
373 CPDFSDK_PageView* m_pPageView; 376 CPDFSDK_PageView* m_pPageView;
374 CFX_ByteString m_sType; 377 CFX_ByteString m_sType;
375 CFX_ByteString m_sSubType; 378 CFX_ByteString m_sSubType;
376 int m_nTabs; 379 int m_nTabs;
377 CPDFSDK_Annots m_Annots; 380 CPDFSDK_Annots m_Annots;
378 }; 381 };
379 382
380 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ 383 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_
OLDNEW
« no previous file with comments | « core/src/fpdfdoc/doc_form.cpp ('k') | fpdfsdk/include/jsapi/fxjs_v8.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698