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

Side by Side Diff: core/include/fpdfdoc/fpdf_doc.h

Issue 1087053002: Merge to XFA: Kill CFX_Object. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 8 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/fpdfapi/fpdf_serial.h ('k') | core/include/fpdfdoc/fpdf_tagged.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 _FPDF_DOC_H_ 7 #ifndef _FPDF_DOC_H_
8 #define _FPDF_DOC_H_ 8 #define _FPDF_DOC_H_
9 #ifndef _FPDF_PARSER_ 9 #ifndef _FPDF_PARSER_
10 #include "../fpdfapi/fpdf_parser.h" 10 #include "../fpdfapi/fpdf_parser.h"
(...skipping 24 matching lines...) Expand all
35 class CPDF_FileSpec; 35 class CPDF_FileSpec;
36 class CPDF_IconFit; 36 class CPDF_IconFit;
37 class CPDF_DefaultAppearance; 37 class CPDF_DefaultAppearance;
38 class CPDF_InterForm; 38 class CPDF_InterForm;
39 class CPDF_FormField; 39 class CPDF_FormField;
40 class CPDF_FormNotify; 40 class CPDF_FormNotify;
41 class CPDF_FormControl; 41 class CPDF_FormControl;
42 class CPDF_LWinParam; 42 class CPDF_LWinParam;
43 class CFieldTree; 43 class CFieldTree;
44 class CPDF_ApSettings; 44 class CPDF_ApSettings;
45 class CPDF_NameTree : public CFX_Object 45 class CPDF_NameTree
46 { 46 {
47 public: 47 public:
48 48
49 CPDF_NameTree(CPDF_Dictionary* pRoot) 49 CPDF_NameTree(CPDF_Dictionary* pRoot)
50 { 50 {
51 m_pRoot = pRoot; 51 m_pRoot = pRoot;
52 } 52 }
53 53
54 CPDF_NameTree(CPDF_Document* pDoc, FX_BSTR category); 54 CPDF_NameTree(CPDF_Document* pDoc, FX_BSTR category);
55 55
(...skipping 10 matching lines...) Expand all
66 66
67 CPDF_Dictionary* GetRoot() const 67 CPDF_Dictionary* GetRoot() const
68 { 68 {
69 return m_pRoot; 69 return m_pRoot;
70 } 70 }
71 71
72 protected: 72 protected:
73 73
74 CPDF_Dictionary* m_pRoot; 74 CPDF_Dictionary* m_pRoot;
75 }; 75 };
76 class CPDF_BookmarkTree : public CFX_Object 76 class CPDF_BookmarkTree
77 { 77 {
78 public: 78 public:
79 CPDF_BookmarkTree(CPDF_Document* pDoc) : m_pDocument(pDoc) {} 79 CPDF_BookmarkTree(CPDF_Document* pDoc) : m_pDocument(pDoc) {}
80 80
81 CPDF_Bookmark GetFirstChild(const CPDF_Bookmark& parent) const ; 81 CPDF_Bookmark GetFirstChild(const CPDF_Bookmark& parent) const ;
82 82
83 CPDF_Bookmark GetNextSibling(const CPDF_Bookmark& bookmark) co nst; 83 CPDF_Bookmark GetNextSibling(const CPDF_Bookmark& bookmark) co nst;
84 84
85 CPDF_Document* GetDocument() const { return m_pDocument; } 85 CPDF_Document* GetDocument() const { return m_pDocument; }
86 86
87 protected: 87 protected:
88 CPDF_Document* m_pDocument; 88 CPDF_Document* m_pDocument;
89 }; 89 };
90 #define PDFBOOKMARK_ITALIC 1 90 #define PDFBOOKMARK_ITALIC 1
91 #define PDFBOOKMARK_BOLD 2 91 #define PDFBOOKMARK_BOLD 2
92 class CPDF_Bookmark : public CFX_Object 92 class CPDF_Bookmark
93 { 93 {
94 public: 94 public:
95 95
96 CPDF_Bookmark() : m_pDict(NULL) {} 96 CPDF_Bookmark() : m_pDict(NULL) {}
97 97
98 explicit CPDF_Bookmark(CPDF_Dictionary* pDict) : m_pDict(pDict) {} 98 explicit CPDF_Bookmark(CPDF_Dictionary* pDict) : m_pDict(pDict) {}
99 99
100 CPDF_Dictionary* GetDict() const { return m_pDict; } 100 CPDF_Dictionary* GetDict() const { return m_pDict; }
101 101
102 operator bool() const { return m_pDict != NULL; } 102 operator bool() const { return m_pDict != NULL; }
(...skipping 11 matching lines...) Expand all
114 CPDF_Dictionary* m_pDict; 114 CPDF_Dictionary* m_pDict;
115 }; 115 };
116 #define PDFZOOM_XYZ 1 116 #define PDFZOOM_XYZ 1
117 #define PDFZOOM_FITPAGE 2 117 #define PDFZOOM_FITPAGE 2
118 #define PDFZOOM_FITHORZ 3 118 #define PDFZOOM_FITHORZ 3
119 #define PDFZOOM_FITVERT 4 119 #define PDFZOOM_FITVERT 4
120 #define PDFZOOM_FITRECT 5 120 #define PDFZOOM_FITRECT 5
121 #define PDFZOOM_FITBBOX 6 121 #define PDFZOOM_FITBBOX 6
122 #define PDFZOOM_FITBHORZ 7 122 #define PDFZOOM_FITBHORZ 7
123 #define PDFZOOM_FITBVERT 8 123 #define PDFZOOM_FITBVERT 8
124 class CPDF_Dest : public CFX_Object 124 class CPDF_Dest
125 { 125 {
126 public: 126 public:
127 CPDF_Dest() : m_pObj(nullptr) { } 127 CPDF_Dest() : m_pObj(nullptr) { }
128 explicit CPDF_Dest(CPDF_Object* pObj) : m_pObj(pObj) { } 128 explicit CPDF_Dest(CPDF_Object* pObj) : m_pObj(pObj) { }
129 129
130 operator bool () const { return m_pObj != NULL; } 130 operator bool () const { return m_pObj != NULL; }
131 CPDF_Object* GetObject() const { return m_pObj; } 131 CPDF_Object* GetObject() const { return m_pObj; }
132 132
133 CFX_ByteString GetRemoteName(); 133 CFX_ByteString GetRemoteName();
134 int GetPageIndex(CPDF_Document* pDoc); 134 int GetPageIndex(CPDF_Document* pDoc);
135 FX_DWORD GetPageObjNum(); 135 FX_DWORD GetPageObjNum();
136 int GetZoomMode(); 136 int GetZoomMode();
137 FX_FLOAT GetParam(int index); 137 FX_FLOAT GetParam(int index);
138 138
139 protected: 139 protected:
140 CPDF_Object* m_pObj; 140 CPDF_Object* m_pObj;
141 }; 141 };
142 class CPDF_OCContext : public CFX_Object, public IPDF_OCContext 142 class CPDF_OCContext : public IPDF_OCContext
143 { 143 {
144 public: 144 public:
145 145
146 enum UsageType { 146 enum UsageType {
147 View = 0, 147 View = 0,
148 Design, 148 Design,
149 Print, 149 Print,
150 Export 150 Export
151 }; 151 };
152 152
(...skipping 25 matching lines...) Expand all
178 FX_BOOL GetOCGVE(CPDF_Array *pExpression, FX_BOOL bFromC onfig, int nLevel = 0); 178 FX_BOOL GetOCGVE(CPDF_Array *pExpression, FX_BOOL bFromC onfig, int nLevel = 0);
179 179
180 FX_BOOL LoadOCMDState(const CPDF_Dictionary *pOCMDDict, FX_BOOL bFromConfig); 180 FX_BOOL LoadOCMDState(const CPDF_Dictionary *pOCMDDict, FX_BOOL bFromConfig);
181 181
182 CPDF_Document *m_pDocument; 182 CPDF_Document *m_pDocument;
183 183
184 UsageType m_eUsageType; 184 UsageType m_eUsageType;
185 185
186 CFX_MapPtrTemplate<const CPDF_Dictionary*, void*> m_OCGStates; 186 CFX_MapPtrTemplate<const CPDF_Dictionary*, void*> m_OCGStates;
187 }; 187 };
188 class CPDF_LWinParam : public CFX_Object 188 class CPDF_LWinParam
189 { 189 {
190 public: 190 public:
191 191
192 CPDF_LWinParam(CPDF_Dictionary* pDict) 192 CPDF_LWinParam(CPDF_Dictionary* pDict)
193 { 193 {
194 m_pDict = pDict; 194 m_pDict = pDict;
195 } 195 }
196 196
197 operator CPDF_Dictionary* () const 197 operator CPDF_Dictionary* () const
198 { 198 {
(...skipping 18 matching lines...) Expand all
217 } 217 }
218 218
219 219
220 inline CFX_ByteString GetParameter() 220 inline CFX_ByteString GetParameter()
221 { 221 {
222 return m_pDict->GetString("P"); 222 return m_pDict->GetString("P");
223 } 223 }
224 224
225 CPDF_Dictionary* m_pDict; 225 CPDF_Dictionary* m_pDict;
226 }; 226 };
227 class CPDF_ActionFields : public CFX_Object 227 class CPDF_ActionFields
228 { 228 {
229 public: 229 public:
230 230
231 CPDF_ActionFields(const CPDF_Action* pAction) 231 CPDF_ActionFields(const CPDF_Action* pAction)
232 { 232 {
233 m_pAction = (CPDF_Action*)pAction; 233 m_pAction = (CPDF_Action*)pAction;
234 } 234 }
235 235
236 operator CPDF_Action*() const 236 operator CPDF_Action*() const
237 { 237 {
238 return m_pAction; 238 return m_pAction;
239 } 239 }
240 240
241 FX_DWORD GetFieldsCount() const; 241 FX_DWORD GetFieldsCount() const;
242 242
243 void GetAllFields(CFX_PtrArray& field Objects) const; 243 void GetAllFields(CFX_PtrArray& field Objects) const;
244 244
245 CPDF_Object* GetField(FX_DWORD iIndex) const; 245 CPDF_Object* GetField(FX_DWORD iIndex) const;
246 246
247 CPDF_Action* m_pAction; 247 CPDF_Action* m_pAction;
248 }; 248 };
249 249
250 #define PDFNAMED_NEXTPAGE 1 250 #define PDFNAMED_NEXTPAGE 1
251 #define PDFNAMED_PREVPAGE 2 251 #define PDFNAMED_PREVPAGE 2
252 #define PDFNAMED_FIRSTPAGE 3 252 #define PDFNAMED_FIRSTPAGE 3
253 #define PDFNAMED_LASTPAGE 4 253 #define PDFNAMED_LASTPAGE 4
254 #define PDFJS_MAXLENGTH 64 254 #define PDFJS_MAXLENGTH 64
255 class CPDF_Action : public CFX_Object 255 class CPDF_Action
256 { 256 {
257 public: 257 public:
258 enum ActionType { 258 enum ActionType {
259 Unknown = 0, 259 Unknown = 0,
260 GoTo, 260 GoTo,
261 GoToR, 261 GoToR,
262 GoToE, 262 GoToE,
263 Launch, 263 Launch,
264 Thread, 264 Thread,
265 URI, 265 URI,
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 405
406 406
407 407
408 FX_DWORD GetSubActionsCount() const; 408 FX_DWORD GetSubActionsCount() const;
409 409
410 CPDF_Action GetSubAction(FX_DWORD iIndex) const; 410 CPDF_Action GetSubAction(FX_DWORD iIndex) const;
411 411
412 protected: 412 protected:
413 CPDF_Dictionary* m_pDict; 413 CPDF_Dictionary* m_pDict;
414 }; 414 };
415 class CPDF_AAction : public CFX_Object 415 class CPDF_AAction
416 { 416 {
417 public: 417 public:
418 418
419 CPDF_AAction(CPDF_Dictionary* pDict = NULL) 419 CPDF_AAction(CPDF_Dictionary* pDict = NULL)
420 { 420 {
421 m_pDict = pDict; 421 m_pDict = pDict;
422 } 422 }
423 423
424 operator CPDF_Dictionary*() const 424 operator CPDF_Dictionary*() const
425 { 425 {
(...skipping 27 matching lines...) Expand all
453 FX_BOOL ActionExist(AActionType eType) const; 453 FX_BOOL ActionExist(AActionType eType) const;
454 454
455 CPDF_Action GetAction(AActionType eType) const; 455 CPDF_Action GetAction(AActionType eType) const;
456 456
457 FX_POSITION GetStartPos() const; 457 FX_POSITION GetStartPos() const;
458 458
459 CPDF_Action GetNextAction(FX_POSITION& pos, AActionType& eTy pe) const; 459 CPDF_Action GetNextAction(FX_POSITION& pos, AActionType& eTy pe) const;
460 460
461 CPDF_Dictionary* m_pDict; 461 CPDF_Dictionary* m_pDict;
462 }; 462 };
463 class CPDF_DocJSActions : public CFX_Object 463 class CPDF_DocJSActions
464 { 464 {
465 public: 465 public:
466 CPDF_DocJSActions(CPDF_Document* pDoc); 466 CPDF_DocJSActions(CPDF_Document* pDoc);
467 467
468 468
469 int CountJSActions() const; 469 int CountJSActions() const;
470 470
471 CPDF_Action GetJSAction(int index, CFX_ByteString& csName) c onst; 471 CPDF_Action GetJSAction(int index, CFX_ByteString& csName) c onst;
472 472
473 CPDF_Action GetJSAction(const CFX_ByteString& csName) const; 473 CPDF_Action GetJSAction(const CFX_ByteString& csName) const;
474 474
475 int FindJSAction(const CFX_ByteString& csNam e) const; 475 int FindJSAction(const CFX_ByteString& csNam e) const;
476 476
477 477
478 CPDF_Document* GetDocument() const 478 CPDF_Document* GetDocument() const
479 { 479 {
480 return m_pDocument; 480 return m_pDocument;
481 } 481 }
482 482
483 protected: 483 protected:
484 484
485 CPDF_Document* m_pDocument; 485 CPDF_Document* m_pDocument;
486 }; 486 };
487 class CPDF_FileSpec : public CFX_Object 487 class CPDF_FileSpec
488 { 488 {
489 public: 489 public:
490 490
491 CPDF_FileSpec(); 491 CPDF_FileSpec();
492 492
493 CPDF_FileSpec(CPDF_Object *pObj) 493 CPDF_FileSpec(CPDF_Object *pObj)
494 { 494 {
495 m_pObj = pObj; 495 m_pObj = pObj;
496 } 496 }
497 497
498 operator CPDF_Object*() const 498 operator CPDF_Object*() const
499 { 499 {
500 return m_pObj; 500 return m_pObj;
501 } 501 }
502 502
503 FX_BOOL IsURL() const; 503 FX_BOOL IsURL() const;
504 504
505 FX_BOOL GetFileName(CFX_WideString &wsFileName) const; 505 FX_BOOL GetFileName(CFX_WideString &wsFileName) const;
506 506
507 CPDF_Stream* GetFileStream() const; 507 CPDF_Stream* GetFileStream() const;
508 508
509 void SetFileName(FX_WSTR wsFileName, FX_BOOL bURL = F ALSE); 509 void SetFileName(FX_WSTR wsFileName, FX_BOOL bURL = F ALSE);
510 protected: 510 protected:
511 511
512 CPDF_Object *m_pObj; 512 CPDF_Object *m_pObj;
513 }; 513 };
514 class CPDF_LinkList : public CFX_Object 514 class CPDF_LinkList
515 { 515 {
516 public: 516 public:
517 517
518 CPDF_LinkList(CPDF_Document* pDoc) 518 CPDF_LinkList(CPDF_Document* pDoc)
519 { 519 {
520 m_pDocument = pDoc; 520 m_pDocument = pDoc;
521 } 521 }
522 522
523 ~CPDF_LinkList(); 523 ~CPDF_LinkList();
524 524
(...skipping 10 matching lines...) Expand all
535 protected: 535 protected:
536 536
537 CPDF_Document* m_pDocument; 537 CPDF_Document* m_pDocument;
538 538
539 CFX_MapPtrToPtr m_PageMap; 539 CFX_MapPtrToPtr m_PageMap;
540 540
541 CFX_PtrArray* GetPageLinks(CPDF_Page* pPage); 541 CFX_PtrArray* GetPageLinks(CPDF_Page* pPage);
542 542
543 void LoadPageLinks(CPDF_Page* pPage, CFX_PtrA rray* pList); 543 void LoadPageLinks(CPDF_Page* pPage, CFX_PtrA rray* pList);
544 }; 544 };
545 class CPDF_Link : public CFX_Object 545 class CPDF_Link
546 { 546 {
547 public: 547 public:
548 CPDF_Link() : m_pDict(nullptr) { } 548 CPDF_Link() : m_pDict(nullptr) { }
549 explicit CPDF_Link(CPDF_Dictionary* pDict) : m_pDict(pDict) { } 549 explicit CPDF_Link(CPDF_Dictionary* pDict) : m_pDict(pDict) { }
550 550
551 CPDF_Dictionary* GetDict() const { return m_pDict; } 551 CPDF_Dictionary* GetDict() const { return m_pDict; }
552 552
553 CFX_FloatRect GetRect(); 553 CFX_FloatRect GetRect();
554 CPDF_Dest GetDest(CPDF_Document* pDoc); 554 CPDF_Dest GetDest(CPDF_Document* pDoc);
555 CPDF_Action GetAction(); 555 CPDF_Action GetAction();
556 556
557 protected: 557 protected:
558 CPDF_Dictionary* m_pDict; 558 CPDF_Dictionary* m_pDict;
559 }; 559 };
560 #define ANNOTFLAG_INVISIBLE 1 560 #define ANNOTFLAG_INVISIBLE 1
561 #define ANNOTFLAG_HIDDEN 2 561 #define ANNOTFLAG_HIDDEN 2
562 #define ANNOTFLAG_PRINT 4 562 #define ANNOTFLAG_PRINT 4
563 #define ANNOTFLAG_NOZOOM 8 563 #define ANNOTFLAG_NOZOOM 8
564 #define ANNOTFLAG_NOROTATE 0x10 564 #define ANNOTFLAG_NOROTATE 0x10
565 #define ANNOTFLAG_NOVIEW 0x20 565 #define ANNOTFLAG_NOVIEW 0x20
566 #define ANNOTFLAG_READONLY 0x40 566 #define ANNOTFLAG_READONLY 0x40
567 #define ANNOTFLAG_LOCKED 0x80 567 #define ANNOTFLAG_LOCKED 0x80
568 #define ANNOTFLAG_TOGGLENOVIEW 0x100 568 #define ANNOTFLAG_TOGGLENOVIEW 0x100
569 class CPDF_Annot : public CFX_PrivateData, public CFX_Object 569 class CPDF_Annot : public CFX_PrivateData
570 { 570 {
571 public: 571 public:
572 572
573 CPDF_Annot(CPDF_Dictionary* pDict); 573 CPDF_Annot(CPDF_Dictionary* pDict);
574 574
575 ~CPDF_Annot(); 575 ~CPDF_Annot();
576 576
577 CPDF_Dictionary* m_pAnnotDict; 577 CPDF_Dictionary* m_pAnnotDict;
578 578
579 CFX_ByteString GetSubType() const; 579 CFX_ByteString GetSubType() const;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 private: 616 private:
617 617
618 CFX_MapPtrToPtr m_APMap; 618 CFX_MapPtrToPtr m_APMap;
619 protected: 619 protected:
620 friend class CPDF_AnnotList; 620 friend class CPDF_AnnotList;
621 621
622 CPDF_AnnotList* m_pList; 622 CPDF_AnnotList* m_pList;
623 623
624 CPDF_Reference* NewAnnotRef(); 624 CPDF_Reference* NewAnnotRef();
625 }; 625 };
626 class CPDF_AnnotList : public CFX_Object 626 class CPDF_AnnotList
627 { 627 {
628 public: 628 public:
629 629
630 CPDF_AnnotList(CPDF_Page* pPage); 630 CPDF_AnnotList(CPDF_Page* pPage);
631 631
632 ~CPDF_AnnotList(); 632 ~CPDF_AnnotList();
633 633
634 void GetAnnotMatrix(const CPDF_Dictionary* pAnnotDict, const CFX_Matr ix* pUser2Device, CFX_Matrix &matrix) const; 634 void GetAnnotMatrix(const CPDF_Dictionary* pAnnotDict, const CFX_Matr ix* pUser2Device, CFX_Matrix &matrix) const;
635 635
636 void GetAnnotRect(const CPDF_Dictionary* pAnnotDict, const CFX_Matrix * pUser2Device, CPDF_Rect &rtAnnot) const; 636 void GetAnnotRect(const CPDF_Dictionary* pAnnotDict, const CFX_Matrix * pUser2Device, CPDF_Rect &rtAnnot) const;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 688
689 void DisplayPass(const CPDF_Page* pPage, CFX_ RenderDevice* pDevice, 689 void DisplayPass(const CPDF_Page* pPage, CFX_ RenderDevice* pDevice,
690 CPDF_RenderContext* pContext, FX_BOOL bPrint ing, CFX_AffineMatrix* pMatrix, 690 CPDF_RenderContext* pContext, FX_BOOL bPrint ing, CFX_AffineMatrix* pMatrix,
691 FX_BOOL bWidget, CPDF_RenderOptions* pOption s, FX_RECT* clip_rect); 691 FX_BOOL bWidget, CPDF_RenderOptions* pOption s, FX_RECT* clip_rect);
692 friend class CPDF_Annot; 692 friend class CPDF_Annot;
693 }; 693 };
694 #define COLORTYPE_TRANSPARENT 0 694 #define COLORTYPE_TRANSPARENT 0
695 #define COLORTYPE_GRAY 1 695 #define COLORTYPE_GRAY 1
696 #define COLORTYPE_RGB 2 696 #define COLORTYPE_RGB 2
697 #define COLORTYPE_CMYK 3 697 #define COLORTYPE_CMYK 3
698 class CPDF_DefaultAppearance : public CFX_Object 698 class CPDF_DefaultAppearance
699 { 699 {
700 public: 700 public:
701 701
702 CPDF_DefaultAppearance(const CFX_ByteString& csDA = "") 702 CPDF_DefaultAppearance(const CFX_ByteString& csDA = "")
703 { 703 {
704 m_csDA = csDA; 704 m_csDA = csDA;
705 } 705 }
706 706
707 CPDF_DefaultAppearance(const CPDF_DefaultAppearance& cDA) 707 CPDF_DefaultAppearance(const CPDF_DefaultAppearance& cDA)
708 { 708 {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 CFX_ByteString m_csDA; 760 CFX_ByteString m_csDA;
761 }; 761 };
762 #define FIELDTYPE_UNKNOWN 0 762 #define FIELDTYPE_UNKNOWN 0
763 #define FIELDTYPE_PUSHBUTTON 1 763 #define FIELDTYPE_PUSHBUTTON 1
764 #define FIELDTYPE_CHECKBOX 2 764 #define FIELDTYPE_CHECKBOX 2
765 #define FIELDTYPE_RADIOBUTTON 3 765 #define FIELDTYPE_RADIOBUTTON 3
766 #define FIELDTYPE_COMBOBOX 4 766 #define FIELDTYPE_COMBOBOX 4
767 #define FIELDTYPE_LISTBOX 5 767 #define FIELDTYPE_LISTBOX 5
768 #define FIELDTYPE_TEXTFIELD 6 768 #define FIELDTYPE_TEXTFIELD 6
769 #define FIELDTYPE_SIGNATURE 7 769 #define FIELDTYPE_SIGNATURE 7
770 class CPDF_InterForm : public CFX_PrivateData, public CFX_Object 770 class CPDF_InterForm : public CFX_PrivateData
771 { 771 {
772 public: 772 public:
773 773
774 CPDF_InterForm(CPDF_Document* pDocument, FX_BOOL bUpdateAP); 774 CPDF_InterForm(CPDF_Document* pDocument, FX_BOOL bUpdateAP);
775 775
776 ~CPDF_InterForm(); 776 ~CPDF_InterForm();
777 777
778 778
779 779
780 static void EnableUpdateAP(FX_BOOL bUpdateAP); 780 static void EnableUpdateAP(FX_BOOL bUpdateAP);
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
1018 #define FORMFIELD_REQUIRED 0x02 1018 #define FORMFIELD_REQUIRED 0x02
1019 #define FORMFIELD_NOEXPORT 0x04 1019 #define FORMFIELD_NOEXPORT 0x04
1020 #define FORMRADIO_NOTOGGLEOFF 0x100 1020 #define FORMRADIO_NOTOGGLEOFF 0x100
1021 #define FORMRADIO_UNISON 0x200 1021 #define FORMRADIO_UNISON 0x200
1022 #define FORMTEXT_MULTILINE 0x100 1022 #define FORMTEXT_MULTILINE 0x100
1023 #define FORMTEXT_PASSWORD 0x200 1023 #define FORMTEXT_PASSWORD 0x200
1024 #define FORMTEXT_NOSCROLL 0x400 1024 #define FORMTEXT_NOSCROLL 0x400
1025 #define FORMTEXT_COMB 0x800 1025 #define FORMTEXT_COMB 0x800
1026 #define FORMCOMBO_EDIT 0x100 1026 #define FORMCOMBO_EDIT 0x100
1027 #define FORMLIST_MULTISELECT 0x100 1027 #define FORMLIST_MULTISELECT 0x100
1028 class CPDF_FormField : public CFX_Object 1028 class CPDF_FormField
1029 { 1029 {
1030 public: 1030 public:
1031 1031
1032 enum Type { 1032 enum Type {
1033 Unknown, 1033 Unknown,
1034 PushButton, 1034 PushButton,
1035 RadioButton, 1035 RadioButton,
1036 CheckBox, 1036 CheckBox,
1037 Text, 1037 Text,
1038 RichText, 1038 RichText,
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
1241 CFX_WideString GetCheckValue(FX_BOOL bDefault); 1241 CFX_WideString GetCheckValue(FX_BOOL bDefault);
1242 1242
1243 FX_BOOL SetCheckValue(const CFX_WideStri ng& value, FX_BOOL bDefault, FX_BOOL bNotify); 1243 FX_BOOL SetCheckValue(const CFX_WideStri ng& value, FX_BOOL bDefault, FX_BOOL bNotify);
1244 1244
1245 1245
1246 FX_FLOAT m_FontSize; 1246 FX_FLOAT m_FontSize;
1247 1247
1248 CPDF_Font* m_pFont; 1248 CPDF_Font* m_pFont;
1249 }; 1249 };
1250 CPDF_Object* FPDF_GetFieldAttr(CPDF_Dictionary* pFieldDict, const FX_CHAR* na me, int nLevel = 0); 1250 CPDF_Object* FPDF_GetFieldAttr(CPDF_Dictionary* pFieldDict, const FX_CHAR* na me, int nLevel = 0);
1251 class CPDF_IconFit : public CFX_Object 1251 class CPDF_IconFit
1252 { 1252 {
1253 public: 1253 public:
1254 1254
1255 CPDF_IconFit(CPDF_Dictionary* pDict = NULL) 1255 CPDF_IconFit(CPDF_Dictionary* pDict = NULL)
1256 { 1256 {
1257 m_pDict = pDict; 1257 m_pDict = pDict;
1258 } 1258 }
1259 1259
1260 operator CPDF_Dictionary*() const 1260 operator CPDF_Dictionary*() const
1261 { 1261 {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1293 CPDF_Dictionary* m_pDict; 1293 CPDF_Dictionary* m_pDict;
1294 }; 1294 };
1295 1295
1296 #define TEXTPOS_CAPTION 0 1296 #define TEXTPOS_CAPTION 0
1297 #define TEXTPOS_ICON 1 1297 #define TEXTPOS_ICON 1
1298 #define TEXTPOS_BELOW 2 1298 #define TEXTPOS_BELOW 2
1299 #define TEXTPOS_ABOVE 3 1299 #define TEXTPOS_ABOVE 3
1300 #define TEXTPOS_RIGHT 4 1300 #define TEXTPOS_RIGHT 4
1301 #define TEXTPOS_LEFT 5 1301 #define TEXTPOS_LEFT 5
1302 #define TEXTPOS_OVERLAID 6 1302 #define TEXTPOS_OVERLAID 6
1303 class CPDF_FormControl : public CFX_Object 1303 class CPDF_FormControl
1304 { 1304 {
1305 public: 1305 public:
1306 1306
1307 CPDF_FormField::Type GetType() 1307 CPDF_FormField::Type GetType()
1308 { 1308 {
1309 return m_pField->GetType(); 1309 return m_pField->GetType();
1310 } 1310 }
1311 1311
1312 CPDF_InterForm* GetInterForm() const 1312 CPDF_InterForm* GetInterForm() const
1313 { 1313 {
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
1501 CPDF_ApSettings GetMK(FX_BOOL bCreate); 1501 CPDF_ApSettings GetMK(FX_BOOL bCreate);
1502 1502
1503 CPDF_InterForm* m_pForm; 1503 CPDF_InterForm* m_pForm;
1504 1504
1505 CPDF_FormField* m_pField; 1505 CPDF_FormField* m_pField;
1506 1506
1507 CPDF_Dictionary* m_pWidgetDict; 1507 CPDF_Dictionary* m_pWidgetDict;
1508 friend class CPDF_InterForm; 1508 friend class CPDF_InterForm;
1509 friend class CPDF_FormField; 1509 friend class CPDF_FormField;
1510 }; 1510 };
1511 class CPDF_FormNotify : public CFX_Object 1511 class CPDF_FormNotify
1512 { 1512 {
1513 public: 1513 public:
1514 1514
1515 virtual ~CPDF_FormNotify() {} 1515 virtual ~CPDF_FormNotify() {}
1516 1516
1517 virtual int BeforeValueChange(const CPDF_FormField* pField, CFX_Wide String& csValue) 1517 virtual int BeforeValueChange(const CPDF_FormField* pField, CFX_Wide String& csValue)
1518 { 1518 {
1519 return 0; 1519 return 0;
1520 } 1520 }
1521 1521
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1553 { 1553 {
1554 return 0; 1554 return 0;
1555 } 1555 }
1556 1556
1557 virtual int AfterFormImportData(const CPDF_InterForm* pForm) 1557 virtual int AfterFormImportData(const CPDF_InterForm* pForm)
1558 { 1558 {
1559 return 0; 1559 return 0;
1560 } 1560 }
1561 }; 1561 };
1562 FX_BOOL FPDF_GenerateAP(CPDF_Document* pDoc, CPDF_Dictionary* pAnnotDict ); 1562 FX_BOOL FPDF_GenerateAP(CPDF_Document* pDoc, CPDF_Dictionary* pAnnotDict );
1563 class CPDF_PageLabel : public CFX_Object 1563 class CPDF_PageLabel
1564 { 1564 {
1565 public: 1565 public:
1566 1566
1567 CPDF_PageLabel(CPDF_Document* pDocument) 1567 CPDF_PageLabel(CPDF_Document* pDocument)
1568 { 1568 {
1569 m_pDocument = pDocument; 1569 m_pDocument = pDocument;
1570 } 1570 }
1571 1571
1572 1572
1573 CFX_WideString GetLabel(int nPage) cons t; 1573 CFX_WideString GetLabel(int nPage) cons t;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
1617 1617
1618 FX_INT32 NumCopies() const; 1618 FX_INT32 NumCopies() const;
1619 1619
1620 CPDF_Array* PrintPageRange() const; 1620 CPDF_Array* PrintPageRange() const;
1621 1621
1622 CFX_ByteString Duplex() const; 1622 CFX_ByteString Duplex() const;
1623 1623
1624 protected: 1624 protected:
1625 CPDF_Document* m_pDoc; 1625 CPDF_Document* m_pDoc;
1626 }; 1626 };
1627 class CPDF_ApSettings : public CFX_Object 1627 class CPDF_ApSettings
1628 { 1628 {
1629 public: 1629 public:
1630 1630
1631 CPDF_ApSettings(CPDF_Dictionary* pDict = NULL) 1631 CPDF_ApSettings(CPDF_Dictionary* pDict = NULL)
1632 { 1632 {
1633 m_pDict = pDict; 1633 m_pDict = pDict;
1634 } 1634 }
1635 1635
1636 operator CPDF_Dictionary* () const 1636 operator CPDF_Dictionary* () const
1637 { 1637 {
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
1746 FX_FLOAT GetOriginalColor(int index, FX_BSTR csEn try); 1746 FX_FLOAT GetOriginalColor(int index, FX_BSTR csEn try);
1747 1747
1748 void GetOriginalColor(int& iColorType , FX_FLOAT fc[4], FX_BSTR csEntry); 1748 void GetOriginalColor(int& iColorType , FX_FLOAT fc[4], FX_BSTR csEntry);
1749 1749
1750 CFX_WideString GetCaption(FX_BSTR csEntry); 1750 CFX_WideString GetCaption(FX_BSTR csEntry);
1751 1751
1752 CPDF_Stream* GetIcon(FX_BSTR csEntry); 1752 CPDF_Stream* GetIcon(FX_BSTR csEntry);
1753 friend class CPDF_FormControl; 1753 friend class CPDF_FormControl;
1754 }; 1754 };
1755 #endif 1755 #endif
OLDNEW
« no previous file with comments | « core/include/fpdfapi/fpdf_serial.h ('k') | core/include/fpdfdoc/fpdf_tagged.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698