• 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_FPDFDOC_CPVT_GENERATEAP_H_
8 #define CORE_FPDFDOC_CPVT_GENERATEAP_H_
9 
10 #include <memory>
11 
12 #include "core/fpdfdoc/cpdf_defaultappearance.h"
13 #include "core/fpdfdoc/cpdf_variabletext.h"
14 #include "core/fxcrt/fx_coordinates.h"
15 #include "core/fxcrt/fx_string.h"
16 #include "core/fxcrt/fx_system.h"
17 #include "core/fxge/cfx_color.h"
18 
19 class CPDF_Dictionary;
20 class CPDF_Document;
21 struct CPVT_Dash;
22 
23 class CPVT_GenerateAP {
24  public:
25   enum Type { kTextField, kComboBox, kListBox };
26 
27   static void GenerateFormAP(Type type,
28                              CPDF_Document* pDoc,
29                              CPDF_Dictionary* pAnnotDict);
30   static void GenerateEmptyAP(CPDF_Document* pDoc, CPDF_Dictionary* pAnnotDict);
31 
32   static bool GenerateAnnotAP(CPDF_Annot::Subtype subtype,
33                               CPDF_Document* pDoc,
34                               CPDF_Dictionary* pAnnotDict);
35 };
36 
37 #endif  // CORE_FPDFDOC_CPVT_GENERATEAP_H_
38