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> |
| 11 #include <memory> |
11 #include <vector> | 12 #include <vector> |
12 | 13 |
13 #include "core/include/fpdfapi/fpdf_parser.h" | 14 #include "core/include/fpdfapi/fpdf_parser.h" |
14 #include "core/include/fpdfapi/fpdf_render.h" | 15 #include "core/include/fpdfapi/fpdf_render.h" |
15 #include "third_party/base/nonstd_unique_ptr.h" | |
16 | 16 |
17 class CFieldTree; | 17 class CFieldTree; |
18 class CPDF_AAction; | 18 class CPDF_AAction; |
19 class CPDF_Action; | 19 class CPDF_Action; |
20 class CPDF_ActionFields; | 20 class CPDF_ActionFields; |
21 class CPDF_Annot; | 21 class CPDF_Annot; |
22 class CPDF_AnnotList; | 22 class CPDF_AnnotList; |
23 class CPDF_ApSettings; | 23 class CPDF_ApSettings; |
24 class CPDF_Bookmark; | 24 class CPDF_Bookmark; |
25 class CPDF_BookmarkTree; | 25 class CPDF_BookmarkTree; |
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
693 const CFX_ByteString& name2); | 693 const CFX_ByteString& name2); |
694 | 694 |
695 CPDF_Document* const m_pDocument; | 695 CPDF_Document* const m_pDocument; |
696 | 696 |
697 FX_BOOL m_bGenerateAP; | 697 FX_BOOL m_bGenerateAP; |
698 | 698 |
699 CPDF_Dictionary* m_pFormDict; | 699 CPDF_Dictionary* m_pFormDict; |
700 | 700 |
701 std::map<const CPDF_Dictionary*, CPDF_FormControl*> m_ControlMap; | 701 std::map<const CPDF_Dictionary*, CPDF_FormControl*> m_ControlMap; |
702 | 702 |
703 nonstd::unique_ptr<CFieldTree> m_pFieldTree; | 703 std::unique_ptr<CFieldTree> m_pFieldTree; |
704 | 704 |
705 CFX_ByteString m_bsEncoding; | 705 CFX_ByteString m_bsEncoding; |
706 | 706 |
707 CPDF_FormNotify* m_pFormNotify; | 707 CPDF_FormNotify* m_pFormNotify; |
708 | 708 |
709 FX_BOOL m_bUpdated; | 709 FX_BOOL m_bUpdated; |
710 friend class CPDF_FormControl; | 710 friend class CPDF_FormControl; |
711 friend class CPDF_FormField; | 711 friend class CPDF_FormField; |
712 }; | 712 }; |
713 #define FORMFIELD_READONLY 0x01 | 713 #define FORMFIELD_READONLY 0x01 |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1061 }; | 1061 }; |
1062 | 1062 |
1063 class CPDF_Metadata { | 1063 class CPDF_Metadata { |
1064 public: | 1064 public: |
1065 explicit CPDF_Metadata(CPDF_Document* pDoc); | 1065 explicit CPDF_Metadata(CPDF_Document* pDoc); |
1066 ~CPDF_Metadata(); | 1066 ~CPDF_Metadata(); |
1067 | 1067 |
1068 const CXML_Element* GetRoot() const; | 1068 const CXML_Element* GetRoot() const; |
1069 | 1069 |
1070 private: | 1070 private: |
1071 nonstd::unique_ptr<CXML_Element> m_pXmlElement; | 1071 std::unique_ptr<CXML_Element> m_pXmlElement; |
1072 }; | 1072 }; |
1073 | 1073 |
1074 class CPDF_ViewerPreferences { | 1074 class CPDF_ViewerPreferences { |
1075 public: | 1075 public: |
1076 explicit CPDF_ViewerPreferences(CPDF_Document* pDoc); | 1076 explicit CPDF_ViewerPreferences(CPDF_Document* pDoc); |
1077 | 1077 |
1078 ~CPDF_ViewerPreferences(); | 1078 ~CPDF_ViewerPreferences(); |
1079 | 1079 |
1080 FX_BOOL IsDirectionR2L() const; | 1080 FX_BOOL IsDirectionR2L() const; |
1081 | 1081 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1152 CFX_WideString GetCaption(const CFX_ByteStringC& csEntry) const; | 1152 CFX_WideString GetCaption(const CFX_ByteStringC& csEntry) const; |
1153 | 1153 |
1154 CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry) const; | 1154 CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry) const; |
1155 | 1155 |
1156 CPDF_Dictionary* const m_pDict; | 1156 CPDF_Dictionary* const m_pDict; |
1157 }; | 1157 }; |
1158 | 1158 |
1159 CFX_WideString FILESPEC_EncodeFileName(const CFX_WideStringC& filepath); | 1159 CFX_WideString FILESPEC_EncodeFileName(const CFX_WideStringC& filepath); |
1160 | 1160 |
1161 #endif // CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ | 1161 #endif // CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ |
OLD | NEW |