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 CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ | 7 #ifndef CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ |
8 #define CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ | 8 #define CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 }; | 78 }; |
79 | 79 |
80 #define PDFBOOKMARK_ITALIC 1 | 80 #define PDFBOOKMARK_ITALIC 1 |
81 #define PDFBOOKMARK_BOLD 2 | 81 #define PDFBOOKMARK_BOLD 2 |
82 class CPDF_Bookmark { | 82 class CPDF_Bookmark { |
83 public: | 83 public: |
84 CPDF_Bookmark() : m_pDict(nullptr) {} | 84 CPDF_Bookmark() : m_pDict(nullptr) {} |
85 explicit CPDF_Bookmark(CPDF_Dictionary* pDict) : m_pDict(pDict) {} | 85 explicit CPDF_Bookmark(CPDF_Dictionary* pDict) : m_pDict(pDict) {} |
86 | 86 |
87 CPDF_Dictionary* GetDict() const { return m_pDict; } | 87 CPDF_Dictionary* GetDict() const { return m_pDict; } |
88 FX_DWORD GetColorRef() const; | 88 uint32_t GetColorRef() const; |
89 FX_DWORD GetFontStyle() const; | 89 uint32_t GetFontStyle() const; |
90 CFX_WideString GetTitle() const; | 90 CFX_WideString GetTitle() const; |
91 CPDF_Dest GetDest(CPDF_Document* pDocument) const; | 91 CPDF_Dest GetDest(CPDF_Document* pDocument) const; |
92 CPDF_Action GetAction() const; | 92 CPDF_Action GetAction() const; |
93 | 93 |
94 protected: | 94 protected: |
95 CPDF_Dictionary* m_pDict; | 95 CPDF_Dictionary* m_pDict; |
96 }; | 96 }; |
97 | 97 |
98 #define PDFZOOM_XYZ 1 | 98 #define PDFZOOM_XYZ 1 |
99 #define PDFZOOM_FITPAGE 2 | 99 #define PDFZOOM_FITPAGE 2 |
100 #define PDFZOOM_FITHORZ 3 | 100 #define PDFZOOM_FITHORZ 3 |
101 #define PDFZOOM_FITVERT 4 | 101 #define PDFZOOM_FITVERT 4 |
102 #define PDFZOOM_FITRECT 5 | 102 #define PDFZOOM_FITRECT 5 |
103 #define PDFZOOM_FITBBOX 6 | 103 #define PDFZOOM_FITBBOX 6 |
104 #define PDFZOOM_FITBHORZ 7 | 104 #define PDFZOOM_FITBHORZ 7 |
105 #define PDFZOOM_FITBVERT 8 | 105 #define PDFZOOM_FITBVERT 8 |
106 class CPDF_Dest { | 106 class CPDF_Dest { |
107 public: | 107 public: |
108 CPDF_Dest() : m_pObj(nullptr) {} | 108 CPDF_Dest() : m_pObj(nullptr) {} |
109 explicit CPDF_Dest(CPDF_Object* pObj) : m_pObj(pObj) {} | 109 explicit CPDF_Dest(CPDF_Object* pObj) : m_pObj(pObj) {} |
110 | 110 |
111 CPDF_Object* GetObject() const { return m_pObj; } | 111 CPDF_Object* GetObject() const { return m_pObj; } |
112 CFX_ByteString GetRemoteName(); | 112 CFX_ByteString GetRemoteName(); |
113 int GetPageIndex(CPDF_Document* pDoc); | 113 int GetPageIndex(CPDF_Document* pDoc); |
114 FX_DWORD GetPageObjNum(); | 114 uint32_t GetPageObjNum(); |
115 int GetZoomMode(); | 115 int GetZoomMode(); |
116 FX_FLOAT GetParam(int index); | 116 FX_FLOAT GetParam(int index); |
117 | 117 |
118 protected: | 118 protected: |
119 CPDF_Object* m_pObj; | 119 CPDF_Object* m_pObj; |
120 }; | 120 }; |
121 | 121 |
122 class CPDF_OCContext : public IPDF_OCContext { | 122 class CPDF_OCContext : public IPDF_OCContext { |
123 public: | 123 public: |
124 enum UsageType { View = 0, Design, Print, Export }; | 124 enum UsageType { View = 0, Design, Print, Export }; |
(...skipping 22 matching lines...) Expand all Loading... |
147 | 147 |
148 CPDF_Document* m_pDocument; | 148 CPDF_Document* m_pDocument; |
149 UsageType m_eUsageType; | 149 UsageType m_eUsageType; |
150 std::map<const CPDF_Dictionary*, FX_BOOL> m_OCGStates; | 150 std::map<const CPDF_Dictionary*, FX_BOOL> m_OCGStates; |
151 }; | 151 }; |
152 | 152 |
153 class CPDF_ActionFields { | 153 class CPDF_ActionFields { |
154 public: | 154 public: |
155 explicit CPDF_ActionFields(const CPDF_Action* pAction) : m_pAction(pAction) {} | 155 explicit CPDF_ActionFields(const CPDF_Action* pAction) : m_pAction(pAction) {} |
156 | 156 |
157 FX_DWORD GetFieldsCount() const; | 157 uint32_t GetFieldsCount() const; |
158 std::vector<CPDF_Object*> GetAllFields() const; | 158 std::vector<CPDF_Object*> GetAllFields() const; |
159 CPDF_Object* GetField(FX_DWORD iIndex) const; | 159 CPDF_Object* GetField(uint32_t iIndex) const; |
160 | 160 |
161 protected: | 161 protected: |
162 const CPDF_Action* const m_pAction; | 162 const CPDF_Action* const m_pAction; |
163 }; | 163 }; |
164 | 164 |
165 #define PDFNAMED_NEXTPAGE 1 | 165 #define PDFNAMED_NEXTPAGE 1 |
166 #define PDFNAMED_PREVPAGE 2 | 166 #define PDFNAMED_PREVPAGE 2 |
167 #define PDFNAMED_FIRSTPAGE 3 | 167 #define PDFNAMED_FIRSTPAGE 3 |
168 #define PDFNAMED_LASTPAGE 4 | 168 #define PDFNAMED_LASTPAGE 4 |
169 #define PDFJS_MAXLENGTH 64 | 169 #define PDFJS_MAXLENGTH 64 |
(...skipping 27 matching lines...) Expand all Loading... |
197 CPDF_Dictionary* GetDict() const { return m_pDict; } | 197 CPDF_Dictionary* GetDict() const { return m_pDict; } |
198 CFX_ByteString GetTypeName() const { return m_pDict->GetStringBy("S"); } | 198 CFX_ByteString GetTypeName() const { return m_pDict->GetStringBy("S"); } |
199 ActionType GetType() const; | 199 ActionType GetType() const; |
200 CPDF_Dest GetDest(CPDF_Document* pDoc) const; | 200 CPDF_Dest GetDest(CPDF_Document* pDoc) const; |
201 CFX_WideString GetFilePath() const; | 201 CFX_WideString GetFilePath() const; |
202 FX_BOOL GetNewWindow() const { return m_pDict->GetBooleanBy("NewWindow"); } | 202 FX_BOOL GetNewWindow() const { return m_pDict->GetBooleanBy("NewWindow"); } |
203 CFX_ByteString GetURI(CPDF_Document* pDoc) const; | 203 CFX_ByteString GetURI(CPDF_Document* pDoc) const; |
204 FX_BOOL GetMouseMap() const { return m_pDict->GetBooleanBy("IsMap"); } | 204 FX_BOOL GetMouseMap() const { return m_pDict->GetBooleanBy("IsMap"); } |
205 FX_BOOL GetHideStatus() const { return m_pDict->GetBooleanBy("H", TRUE); } | 205 FX_BOOL GetHideStatus() const { return m_pDict->GetBooleanBy("H", TRUE); } |
206 CFX_ByteString GetNamedAction() const { return m_pDict->GetStringBy("N"); } | 206 CFX_ByteString GetNamedAction() const { return m_pDict->GetStringBy("N"); } |
207 FX_DWORD GetFlags() const { return m_pDict->GetIntegerBy("Flags"); } | 207 uint32_t GetFlags() const { return m_pDict->GetIntegerBy("Flags"); } |
208 CFX_WideString GetJavaScript() const; | 208 CFX_WideString GetJavaScript() const; |
209 CPDF_Dictionary* GetAnnot() const; | 209 CPDF_Dictionary* GetAnnot() const; |
210 int32_t GetOperationType() const; | 210 int32_t GetOperationType() const; |
211 CPDF_Stream* GetSoundStream() const { return m_pDict->GetStreamBy("Sound"); } | 211 CPDF_Stream* GetSoundStream() const { return m_pDict->GetStreamBy("Sound"); } |
212 FX_FLOAT GetVolume() const { return m_pDict->GetNumberBy("Volume"); } | 212 FX_FLOAT GetVolume() const { return m_pDict->GetNumberBy("Volume"); } |
213 FX_BOOL IsSynchronous() const { return m_pDict->GetBooleanBy("Synchronous"); } | 213 FX_BOOL IsSynchronous() const { return m_pDict->GetBooleanBy("Synchronous"); } |
214 FX_BOOL IsRepeat() const { return m_pDict->GetBooleanBy("Repeat"); } | 214 FX_BOOL IsRepeat() const { return m_pDict->GetBooleanBy("Repeat"); } |
215 FX_BOOL IsMixPlay() const { return m_pDict->GetBooleanBy("Mix"); } | 215 FX_BOOL IsMixPlay() const { return m_pDict->GetBooleanBy("Mix"); } |
216 FX_DWORD GetSubActionsCount() const; | 216 uint32_t GetSubActionsCount() const; |
217 CPDF_Action GetSubAction(FX_DWORD iIndex) const; | 217 CPDF_Action GetSubAction(uint32_t iIndex) const; |
218 | 218 |
219 protected: | 219 protected: |
220 CPDF_Dictionary* const m_pDict; | 220 CPDF_Dictionary* const m_pDict; |
221 }; | 221 }; |
222 | 222 |
223 class CPDF_AAction { | 223 class CPDF_AAction { |
224 public: | 224 public: |
225 enum AActionType { | 225 enum AActionType { |
226 CursorEnter = 0, | 226 CursorEnter = 0, |
227 CursorExit, | 227 CursorExit, |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 | 299 |
300 CPDF_Link GetLinkAtPoint(CPDF_Page* pPage, | 300 CPDF_Link GetLinkAtPoint(CPDF_Page* pPage, |
301 FX_FLOAT pdf_x, | 301 FX_FLOAT pdf_x, |
302 FX_FLOAT pdf_y, | 302 FX_FLOAT pdf_y, |
303 int* z_order); | 303 int* z_order); |
304 | 304 |
305 private: | 305 private: |
306 const std::vector<CPDF_Dictionary*>* GetPageLinks(CPDF_Page* pPage); | 306 const std::vector<CPDF_Dictionary*>* GetPageLinks(CPDF_Page* pPage); |
307 void LoadPageLinks(CPDF_Page* pPage, std::vector<CPDF_Dictionary*>* pList); | 307 void LoadPageLinks(CPDF_Page* pPage, std::vector<CPDF_Dictionary*>* pList); |
308 | 308 |
309 std::map<FX_DWORD, std::vector<CPDF_Dictionary*>> m_PageMap; | 309 std::map<uint32_t, std::vector<CPDF_Dictionary*>> m_PageMap; |
310 }; | 310 }; |
311 | 311 |
312 class CPDF_Link { | 312 class CPDF_Link { |
313 public: | 313 public: |
314 CPDF_Link() : m_pDict(nullptr) {} | 314 CPDF_Link() : m_pDict(nullptr) {} |
315 explicit CPDF_Link(CPDF_Dictionary* pDict) : m_pDict(pDict) {} | 315 explicit CPDF_Link(CPDF_Dictionary* pDict) : m_pDict(pDict) {} |
316 | 316 |
317 CPDF_Dictionary* GetDict() const { return m_pDict; } | 317 CPDF_Dictionary* GetDict() const { return m_pDict; } |
318 | 318 |
319 CFX_FloatRect GetRect(); | 319 CFX_FloatRect GetRect(); |
(...skipping 15 matching lines...) Expand all Loading... |
335 #define ANNOTFLAG_TOGGLENOVIEW 0x0100 | 335 #define ANNOTFLAG_TOGGLENOVIEW 0x0100 |
336 | 336 |
337 class CPDF_Annot : public CFX_PrivateData { | 337 class CPDF_Annot : public CFX_PrivateData { |
338 public: | 338 public: |
339 enum AppearanceMode { Normal, Rollover, Down }; | 339 enum AppearanceMode { Normal, Rollover, Down }; |
340 | 340 |
341 CPDF_Annot(CPDF_Dictionary* pDict, CPDF_AnnotList* pList); | 341 CPDF_Annot(CPDF_Dictionary* pDict, CPDF_AnnotList* pList); |
342 ~CPDF_Annot(); | 342 ~CPDF_Annot(); |
343 | 343 |
344 CFX_ByteString GetSubType() const; | 344 CFX_ByteString GetSubType() const; |
345 FX_DWORD GetFlags() const; | 345 uint32_t GetFlags() const; |
346 void GetRect(CFX_FloatRect& rect) const; | 346 void GetRect(CFX_FloatRect& rect) const; |
347 const CPDF_Dictionary* GetAnnotDict() const { return m_pAnnotDict; } | 347 const CPDF_Dictionary* GetAnnotDict() const { return m_pAnnotDict; } |
348 CPDF_Dictionary* GetAnnotDict() { return m_pAnnotDict; } | 348 CPDF_Dictionary* GetAnnotDict() { return m_pAnnotDict; } |
349 FX_BOOL DrawAppearance(CPDF_Page* pPage, | 349 FX_BOOL DrawAppearance(CPDF_Page* pPage, |
350 CFX_RenderDevice* pDevice, | 350 CFX_RenderDevice* pDevice, |
351 const CFX_Matrix* pUser2Device, | 351 const CFX_Matrix* pUser2Device, |
352 AppearanceMode mode, | 352 AppearanceMode mode, |
353 const CPDF_RenderOptions* pOptions); | 353 const CPDF_RenderOptions* pOptions); |
354 FX_BOOL DrawInContext(const CPDF_Page* pPage, | 354 FX_BOOL DrawInContext(const CPDF_Page* pPage, |
355 CPDF_RenderContext* pContext, | 355 CPDF_RenderContext* pContext, |
(...skipping 25 matching lines...) Expand all Loading... |
381 CPDF_RenderOptions* pOptions) { | 381 CPDF_RenderOptions* pOptions) { |
382 DisplayAnnots(pPage, nullptr, pContext, bPrinting, pMatrix, | 382 DisplayAnnots(pPage, nullptr, pContext, bPrinting, pMatrix, |
383 bShowWidget ? 3 : 1, pOptions, nullptr); | 383 bShowWidget ? 3 : 1, pOptions, nullptr); |
384 } | 384 } |
385 | 385 |
386 void DisplayAnnots(CPDF_Page* pPage, | 386 void DisplayAnnots(CPDF_Page* pPage, |
387 CFX_RenderDevice* pDevice, | 387 CFX_RenderDevice* pDevice, |
388 CPDF_RenderContext* pContext, | 388 CPDF_RenderContext* pContext, |
389 FX_BOOL bPrinting, | 389 FX_BOOL bPrinting, |
390 CFX_Matrix* pMatrix, | 390 CFX_Matrix* pMatrix, |
391 FX_DWORD dwAnnotFlags, | 391 uint32_t dwAnnotFlags, |
392 CPDF_RenderOptions* pOptions, | 392 CPDF_RenderOptions* pOptions, |
393 FX_RECT* pClipRect); | 393 FX_RECT* pClipRect); |
394 size_t Count() const { return m_AnnotList.size(); } | 394 size_t Count() const { return m_AnnotList.size(); } |
395 CPDF_Annot* GetAt(size_t index) const { return m_AnnotList[index]; } | 395 CPDF_Annot* GetAt(size_t index) const { return m_AnnotList[index]; } |
396 const std::vector<CPDF_Annot*>& All() const { return m_AnnotList; } | 396 const std::vector<CPDF_Annot*>& All() const { return m_AnnotList; } |
397 CPDF_Document* GetDocument() const { return m_pDocument; } | 397 CPDF_Document* GetDocument() const { return m_pDocument; } |
398 | 398 |
399 protected: | 399 protected: |
400 void DisplayPass(CPDF_Page* pPage, | 400 void DisplayPass(CPDF_Page* pPage, |
401 CFX_RenderDevice* pDevice, | 401 CFX_RenderDevice* pDevice, |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 static CPDF_Font* AddNativeFont(CPDF_Document* pDocument); | 480 static CPDF_Font* AddNativeFont(CPDF_Document* pDocument); |
481 | 481 |
482 FX_BOOL ValidateFieldName(CFX_WideString& csNewFieldName, int iType); | 482 FX_BOOL ValidateFieldName(CFX_WideString& csNewFieldName, int iType); |
483 | 483 |
484 FX_BOOL ValidateFieldName(const CPDF_FormField* pField, | 484 FX_BOOL ValidateFieldName(const CPDF_FormField* pField, |
485 CFX_WideString& csNewFieldName); | 485 CFX_WideString& csNewFieldName); |
486 | 486 |
487 FX_BOOL ValidateFieldName(const CPDF_FormControl* pControl, | 487 FX_BOOL ValidateFieldName(const CPDF_FormControl* pControl, |
488 CFX_WideString& csNewFieldName); | 488 CFX_WideString& csNewFieldName); |
489 | 489 |
490 FX_DWORD CountFields(const CFX_WideString& csFieldName = L""); | 490 uint32_t CountFields(const CFX_WideString& csFieldName = L""); |
491 | 491 |
492 CPDF_FormField* GetField(FX_DWORD index, | 492 CPDF_FormField* GetField(uint32_t index, |
493 const CFX_WideString& csFieldName = L""); | 493 const CFX_WideString& csFieldName = L""); |
494 | 494 |
495 CPDF_FormField* GetFieldByDict(CPDF_Dictionary* pFieldDict) const; | 495 CPDF_FormField* GetFieldByDict(CPDF_Dictionary* pFieldDict) const; |
496 | 496 |
497 CPDF_FormControl* GetControlAtPoint(CPDF_Page* pPage, | 497 CPDF_FormControl* GetControlAtPoint(CPDF_Page* pPage, |
498 FX_FLOAT pdf_x, | 498 FX_FLOAT pdf_x, |
499 FX_FLOAT pdf_y, | 499 FX_FLOAT pdf_y, |
500 int* z_order) const; | 500 int* z_order) const; |
501 | 501 |
502 CPDF_FormControl* GetControlByDict(const CPDF_Dictionary* pWidgetDict) const; | 502 CPDF_FormControl* GetControlByDict(const CPDF_Dictionary* pWidgetDict) const; |
503 | 503 |
504 CPDF_Document* GetDocument() const { return m_pDocument; } | 504 CPDF_Document* GetDocument() const { return m_pDocument; } |
505 | 505 |
506 CPDF_Dictionary* GetFormDict() const { return m_pFormDict; } | 506 CPDF_Dictionary* GetFormDict() const { return m_pFormDict; } |
507 | 507 |
508 FX_BOOL NeedConstructAP(); | 508 FX_BOOL NeedConstructAP(); |
509 | 509 |
510 void NeedConstructAP(FX_BOOL bNeedAP); | 510 void NeedConstructAP(FX_BOOL bNeedAP); |
511 | 511 |
512 int CountFieldsInCalculationOrder(); | 512 int CountFieldsInCalculationOrder(); |
513 | 513 |
514 CPDF_FormField* GetFieldInCalculationOrder(int index); | 514 CPDF_FormField* GetFieldInCalculationOrder(int index); |
515 | 515 |
516 int FindFieldInCalculationOrder(const CPDF_FormField* pField); | 516 int FindFieldInCalculationOrder(const CPDF_FormField* pField); |
517 | 517 |
518 FX_DWORD CountFormFonts(); | 518 uint32_t CountFormFonts(); |
519 | 519 |
520 CPDF_Font* GetFormFont(FX_DWORD index, CFX_ByteString& csNameTag); | 520 CPDF_Font* GetFormFont(uint32_t index, CFX_ByteString& csNameTag); |
521 | 521 |
522 CPDF_Font* GetFormFont(CFX_ByteString csNameTag); | 522 CPDF_Font* GetFormFont(CFX_ByteString csNameTag); |
523 | 523 |
524 CPDF_Font* GetFormFont(CFX_ByteString csFontName, CFX_ByteString& csNameTag); | 524 CPDF_Font* GetFormFont(CFX_ByteString csFontName, CFX_ByteString& csNameTag); |
525 | 525 |
526 CPDF_Font* GetNativeFormFont(uint8_t iCharSet, CFX_ByteString& csNameTag); | 526 CPDF_Font* GetNativeFormFont(uint8_t iCharSet, CFX_ByteString& csNameTag); |
527 | 527 |
528 CPDF_Font* GetNativeFormFont(CFX_ByteString& csNameTag); | 528 CPDF_Font* GetNativeFormFont(CFX_ByteString& csNameTag); |
529 | 529 |
530 FX_BOOL FindFormFont(const CPDF_Font* pFont, CFX_ByteString& csNameTag); | 530 FX_BOOL FindFormFont(const CPDF_Font* pFont, CFX_ByteString& csNameTag); |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 RichText, | 656 RichText, |
657 File, | 657 File, |
658 ListBox, | 658 ListBox, |
659 ComboBox, | 659 ComboBox, |
660 Sign | 660 Sign |
661 }; | 661 }; |
662 | 662 |
663 CFX_WideString GetFullName(); | 663 CFX_WideString GetFullName(); |
664 | 664 |
665 Type GetType() const { return m_Type; } | 665 Type GetType() const { return m_Type; } |
666 FX_DWORD GetFlags() const { return m_Flags; } | 666 uint32_t GetFlags() const { return m_Flags; } |
667 | 667 |
668 CPDF_Dictionary* GetFieldDict() const { return m_pDict; } | 668 CPDF_Dictionary* GetFieldDict() const { return m_pDict; } |
669 void SetFieldDict(CPDF_Dictionary* pDict) { m_pDict = pDict; } | 669 void SetFieldDict(CPDF_Dictionary* pDict) { m_pDict = pDict; } |
670 | 670 |
671 FX_BOOL ResetField(FX_BOOL bNotify = FALSE); | 671 FX_BOOL ResetField(FX_BOOL bNotify = FALSE); |
672 | 672 |
673 int CountControls() { return m_ControlList.GetSize(); } | 673 int CountControls() { return m_ControlList.GetSize(); } |
674 | 674 |
675 CPDF_FormControl* GetControl(int index) { return m_ControlList.GetAt(index); } | 675 CPDF_FormControl* GetControl(int index) { return m_ControlList.GetAt(index); } |
676 | 676 |
677 int GetControlIndex(const CPDF_FormControl* pControl); | 677 int GetControlIndex(const CPDF_FormControl* pControl); |
678 | 678 |
679 int GetFieldType(); | 679 int GetFieldType(); |
680 | 680 |
681 CPDF_AAction GetAdditionalAction(); | 681 CPDF_AAction GetAdditionalAction(); |
682 | 682 |
683 CFX_WideString GetAlternateName(); | 683 CFX_WideString GetAlternateName(); |
684 | 684 |
685 CFX_WideString GetMappingName(); | 685 CFX_WideString GetMappingName(); |
686 | 686 |
687 FX_DWORD GetFieldFlags(); | 687 uint32_t GetFieldFlags(); |
688 | 688 |
689 CFX_ByteString GetDefaultStyle(); | 689 CFX_ByteString GetDefaultStyle(); |
690 | 690 |
691 CFX_WideString GetRichTextString(); | 691 CFX_WideString GetRichTextString(); |
692 | 692 |
693 CFX_WideString GetValue(); | 693 CFX_WideString GetValue(); |
694 | 694 |
695 CFX_WideString GetDefaultValue(); | 695 CFX_WideString GetDefaultValue(); |
696 | 696 |
697 FX_BOOL SetValue(const CFX_WideString& value, FX_BOOL bNotify = FALSE); | 697 FX_BOOL SetValue(const CFX_WideString& value, FX_BOOL bNotify = FALSE); |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
774 | 774 |
775 void UpdateAP(CPDF_FormControl* pControl); | 775 void UpdateAP(CPDF_FormControl* pControl); |
776 | 776 |
777 CFX_WideString GetCheckValue(FX_BOOL bDefault); | 777 CFX_WideString GetCheckValue(FX_BOOL bDefault); |
778 | 778 |
779 FX_BOOL SetCheckValue(const CFX_WideString& value, | 779 FX_BOOL SetCheckValue(const CFX_WideString& value, |
780 FX_BOOL bDefault, | 780 FX_BOOL bDefault, |
781 FX_BOOL bNotify); | 781 FX_BOOL bNotify); |
782 | 782 |
783 CPDF_FormField::Type m_Type; | 783 CPDF_FormField::Type m_Type; |
784 FX_DWORD m_Flags; | 784 uint32_t m_Flags; |
785 CPDF_InterForm* m_pForm; | 785 CPDF_InterForm* m_pForm; |
786 CPDF_Dictionary* m_pDict; | 786 CPDF_Dictionary* m_pDict; |
787 CFX_ArrayTemplate<CPDF_FormControl*> m_ControlList; | 787 CFX_ArrayTemplate<CPDF_FormControl*> m_ControlList; |
788 FX_FLOAT m_FontSize; | 788 FX_FLOAT m_FontSize; |
789 CPDF_Font* m_pFont; | 789 CPDF_Font* m_pFont; |
790 | 790 |
791 friend class CPDF_InterForm; | 791 friend class CPDF_InterForm; |
792 friend class CPDF_FormControl; | 792 friend class CPDF_FormControl; |
793 }; | 793 }; |
794 | 794 |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1048 CFX_WideString GetCaption(const CFX_ByteStringC& csEntry) const; | 1048 CFX_WideString GetCaption(const CFX_ByteStringC& csEntry) const; |
1049 | 1049 |
1050 CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry) const; | 1050 CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry) const; |
1051 | 1051 |
1052 CPDF_Dictionary* const m_pDict; | 1052 CPDF_Dictionary* const m_pDict; |
1053 }; | 1053 }; |
1054 | 1054 |
1055 CFX_WideString FILESPEC_EncodeFileName(const CFX_WideStringC& filepath); | 1055 CFX_WideString FILESPEC_EncodeFileName(const CFX_WideStringC& filepath); |
1056 | 1056 |
1057 #endif // CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ | 1057 #endif // CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ |
OLD | NEW |