OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_FORM_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_FORM_H_ |
8 #define CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_FORM_H_ | 8 #define CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_FORM_H_ |
9 | 9 |
10 #include "core/fpdfapi/fpdf_page/include/cpdf_pageobjectholder.h" | 10 #include "core/fpdfapi/fpdf_page/include/cpdf_pageobjectholder.h" |
11 | 11 |
12 class CPDF_Document; | 12 class CPDF_Document; |
13 class CPDF_Dictionary; | 13 class CPDF_Dictionary; |
14 class CPDF_Stream; | 14 class CPDF_Stream; |
15 class CPDF_AllStates; | 15 class CPDF_AllStates; |
16 class CFX_Matrix; | 16 class CFX_Matrix; |
17 class CPDF_Type3Char; | 17 class CPDF_Type3Char; |
18 | 18 |
19 class CPDF_Form : public CPDF_PageObjectHolder { | 19 class CPDF_Form : public CPDF_PageObjectHolder { |
20 public: | 20 public: |
21 CPDF_Form(CPDF_Document* pDocument, | 21 CPDF_Form(CPDF_Document* pDocument, |
22 CPDF_Dictionary* pPageResources, | 22 CPDF_Dictionary* pPageResources, |
23 CPDF_Stream* pFormStream, | 23 CPDF_Stream* pFormStream, |
24 CPDF_Dictionary* pParentResources = NULL); | 24 CPDF_Dictionary* pParentResources = NULL); |
25 | 25 |
26 ~CPDF_Form(); | 26 ~CPDF_Form(); |
27 | 27 |
28 void StartParse(CPDF_AllStates* pGraphicStates, | |
29 CFX_Matrix* pParentMatrix, | |
30 CPDF_Type3Char* pType3Char, | |
31 int level = 0); | |
32 | |
33 void ParseContent(CPDF_AllStates* pGraphicStates, | 28 void ParseContent(CPDF_AllStates* pGraphicStates, |
34 CFX_Matrix* pParentMatrix, | 29 const CFX_Matrix* pParentMatrix, |
35 CPDF_Type3Char* pType3Char, | 30 CPDF_Type3Char* pType3Char, |
36 int level = 0); | 31 int level = 0); |
37 | 32 |
38 CPDF_Form* Clone() const; | 33 CPDF_Form* Clone() const; |
| 34 |
| 35 private: |
| 36 void StartParse(CPDF_AllStates* pGraphicStates, |
| 37 const CFX_Matrix* pParentMatrix, |
| 38 CPDF_Type3Char* pType3Char, |
| 39 int level = 0); |
39 }; | 40 }; |
40 | 41 |
41 #endif // CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_FORM_H_ | 42 #endif // CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_FORM_H_ |
OLD | NEW |