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

Side by Side Diff: xfa/include/fxfa/fxfa.h

Issue 1701883004: Banish CFX_ByteStringArray and CFX_WideStringArray to the XFA side. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Nits 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 | « xfa/include/fwl/lightwidget/edit.h ('k') | xfa/src/fwl/src/basewidget/fwl_editimp.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 FXFA_H_ 7 #ifndef FXFA_H_
8 #define FXFA_H_ 8 #define FXFA_H_
9 9
10 #include <vector>
11
10 class CFX_Graphics; 12 class CFX_Graphics;
11 class CPDF_Document; 13 class CPDF_Document;
12 class CXFA_Node; 14 class CXFA_Node;
13 class CXFA_NodeList; 15 class CXFA_NodeList;
14 class CXFA_WidgetAcc; 16 class CXFA_WidgetAcc;
15 class IFDE_XMLElement; 17 class IFDE_XMLElement;
16 class IFWL_AdapterTimerMgr; 18 class IFWL_AdapterTimerMgr;
17 class IFX_Font; 19 class IFX_Font;
18 class IXFA_App; 20 class IXFA_App;
19 class IXFA_AppProvider; 21 class IXFA_AppProvider;
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 virtual FX_BOOL Paste(IXFA_Widget* hWidget, const CFX_WideString& wsText) = 0; 333 virtual FX_BOOL Paste(IXFA_Widget* hWidget, const CFX_WideString& wsText) = 0;
332 virtual FX_BOOL SelectAll(IXFA_Widget* hWidget) = 0; 334 virtual FX_BOOL SelectAll(IXFA_Widget* hWidget) = 0;
333 virtual FX_BOOL Delete(IXFA_Widget* hWidget) = 0; 335 virtual FX_BOOL Delete(IXFA_Widget* hWidget) = 0;
334 virtual FX_BOOL DeSelect(IXFA_Widget* hWidget) = 0; 336 virtual FX_BOOL DeSelect(IXFA_Widget* hWidget) = 0;
335 virtual FX_BOOL CanUndo(IXFA_Widget* hWidget) = 0; 337 virtual FX_BOOL CanUndo(IXFA_Widget* hWidget) = 0;
336 virtual FX_BOOL CanRedo(IXFA_Widget* hWidget) = 0; 338 virtual FX_BOOL CanRedo(IXFA_Widget* hWidget) = 0;
337 virtual FX_BOOL Undo(IXFA_Widget* hWidget) = 0; 339 virtual FX_BOOL Undo(IXFA_Widget* hWidget) = 0;
338 virtual FX_BOOL Redo(IXFA_Widget* hWidget) = 0; 340 virtual FX_BOOL Redo(IXFA_Widget* hWidget) = 0;
339 virtual FX_BOOL GetSuggestWords(IXFA_Widget* hWidget, 341 virtual FX_BOOL GetSuggestWords(IXFA_Widget* hWidget,
340 CFX_PointF pointf, 342 CFX_PointF pointf,
341 CFX_ByteStringArray& sSuggest) = 0; 343 std::vector<CFX_ByteString>& sSuggest) = 0;
342 virtual FX_BOOL ReplaceSpellCheckWord(IXFA_Widget* hWidget, 344 virtual FX_BOOL ReplaceSpellCheckWord(IXFA_Widget* hWidget,
343 CFX_PointF pointf, 345 CFX_PointF pointf,
344 const CFX_ByteStringC& bsReplace) = 0; 346 const CFX_ByteStringC& bsReplace) = 0;
345 }; 347 };
346 #define XFA_INVALIDATE_AllPages 0x00000000 348 #define XFA_INVALIDATE_AllPages 0x00000000
347 #define XFA_INVALIDATE_CurrentPage 0x00000001 349 #define XFA_INVALIDATE_CurrentPage 0x00000001
348 #define XFA_PRINTOPT_ShowDialog 0x00000001 350 #define XFA_PRINTOPT_ShowDialog 0x00000001
349 #define XFA_PRINTOPT_CanCancel 0x00000002 351 #define XFA_PRINTOPT_CanCancel 0x00000002
350 #define XFA_PRINTOPT_ShrinkPage 0x00000004 352 #define XFA_PRINTOPT_ShrinkPage 0x00000004
351 #define XFA_PRINTOPT_AsImage 0x00000008 353 #define XFA_PRINTOPT_AsImage 0x00000008
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 FX_BOOL bCleared = TRUE) { 437 FX_BOOL bCleared = TRUE) {
436 return 0; 438 return 0;
437 } 439 }
438 virtual void GetURL(IXFA_Doc* hDoc, CFX_WideString& wsDocURL) = 0; 440 virtual void GetURL(IXFA_Doc* hDoc, CFX_WideString& wsDocURL) = 0;
439 virtual FX_ARGB GetHighlightColor(IXFA_Doc* hDoc) = 0; 441 virtual FX_ARGB GetHighlightColor(IXFA_Doc* hDoc) = 0;
440 442
441 virtual FX_BOOL SubmitData(IXFA_Doc* hDoc, CXFA_Submit submit) = 0; 443 virtual FX_BOOL SubmitData(IXFA_Doc* hDoc, CXFA_Submit submit) = 0;
442 virtual FX_BOOL CheckWord(IXFA_Doc* hDoc, const CFX_ByteStringC& sWord) = 0; 444 virtual FX_BOOL CheckWord(IXFA_Doc* hDoc, const CFX_ByteStringC& sWord) = 0;
443 virtual FX_BOOL GetSuggestWords(IXFA_Doc* hDoc, 445 virtual FX_BOOL GetSuggestWords(IXFA_Doc* hDoc,
444 const CFX_ByteStringC& sWord, 446 const CFX_ByteStringC& sWord,
445 CFX_ByteStringArray& sSuggest) = 0; 447 std::vector<CFX_ByteString>& sSuggest) = 0;
446 virtual FX_BOOL GetPDFScriptObject(IXFA_Doc* hDoc, 448 virtual FX_BOOL GetPDFScriptObject(IXFA_Doc* hDoc,
447 const CFX_ByteStringC& utf8Name, 449 const CFX_ByteStringC& utf8Name,
448 FXJSE_HVALUE hValue) = 0; 450 FXJSE_HVALUE hValue) = 0;
449 virtual FX_BOOL GetGlobalProperty(IXFA_Doc* hDoc, 451 virtual FX_BOOL GetGlobalProperty(IXFA_Doc* hDoc,
450 const CFX_ByteStringC& szPropName, 452 const CFX_ByteStringC& szPropName,
451 FXJSE_HVALUE hValue) = 0; 453 FXJSE_HVALUE hValue) = 0;
452 virtual FX_BOOL SetGlobalProperty(IXFA_Doc* hDoc, 454 virtual FX_BOOL SetGlobalProperty(IXFA_Doc* hDoc,
453 const CFX_ByteStringC& szPropName, 455 const CFX_ByteStringC& szPropName,
454 FXJSE_HVALUE hValue) = 0; 456 FXJSE_HVALUE hValue) = 0;
455 virtual CPDF_Document* OpenPDF(IXFA_Doc* hDoc, 457 virtual CPDF_Document* OpenPDF(IXFA_Doc* hDoc,
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
835 size_t size = 0) = 0; 837 size_t size = 0) = 0;
836 virtual void FinishChecksum() = 0; 838 virtual void FinishChecksum() = 0;
837 virtual void GetChecksum(CFX_ByteString& bsChecksum) = 0; 839 virtual void GetChecksum(CFX_ByteString& bsChecksum) = 0;
838 840
839 protected: 841 protected:
840 ~IXFA_ChecksumContext() {} 842 ~IXFA_ChecksumContext() {}
841 }; 843 };
842 IXFA_ChecksumContext* XFA_Checksum_Create(); 844 IXFA_ChecksumContext* XFA_Checksum_Create();
843 845
844 #endif // FXFA_H_ 846 #endif // FXFA_H_
OLDNEW
« no previous file with comments | « xfa/include/fwl/lightwidget/edit.h ('k') | xfa/src/fwl/src/basewidget/fwl_editimp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698