• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2016 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #ifndef CORE_FPDFAPI_PAGE_CPDF_FORM_H_
8 #define CORE_FPDFAPI_PAGE_CPDF_FORM_H_
9 
10 #include "core/fpdfapi/page/cpdf_pageobjectholder.h"
11 
12 class CPDF_Document;
13 class CPDF_Dictionary;
14 class CPDF_Stream;
15 class CPDF_AllStates;
16 class CFX_Matrix;
17 class CPDF_Type3Char;
18 
19 class CPDF_Form : public CPDF_PageObjectHolder {
20  public:
21   CPDF_Form(CPDF_Document* pDocument,
22             CPDF_Dictionary* pPageResources,
23             CPDF_Stream* pFormStream,
24             CPDF_Dictionary* pParentResources = nullptr);
25   ~CPDF_Form() override;
26 
27   void ParseContent(CPDF_AllStates* pGraphicStates,
28                     const CFX_Matrix* pParentMatrix,
29                     CPDF_Type3Char* pType3Char,
30                     int level = 0);
31 
32  private:
33   void StartParse(CPDF_AllStates* pGraphicStates,
34                   const CFX_Matrix* pParentMatrix,
35                   CPDF_Type3Char* pType3Char,
36                   int level = 0);
37 };
38 
39 #endif  // CORE_FPDFAPI_PAGE_CPDF_FORM_H_
40