• 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 "core/fpdfdoc/cpdf_annot.h"
11 #include "core/fxcrt/fx_system.h"
12 
13 class CPDF_Dictionary;
14 class CPDF_Document;
15 
16 class CPVT_GenerateAP {
17  public:
18   enum FormType { kTextField, kComboBox, kListBox };
19 
20   static void GenerateFormAP(CPDF_Document* pDoc,
21                              CPDF_Dictionary* pAnnotDict,
22                              FormType type);
23 
24   static void GenerateEmptyAP(CPDF_Document* pDoc, CPDF_Dictionary* pAnnotDict);
25 
26   static bool GenerateAnnotAP(CPDF_Document* pDoc,
27                               CPDF_Dictionary* pAnnotDict,
28                               CPDF_Annot::Subtype subtype);
29 
30   CPVT_GenerateAP() = delete;
31   CPVT_GenerateAP(const CPVT_GenerateAP&) = delete;
32   CPVT_GenerateAP& operator=(const CPVT_GenerateAP&) = delete;
33 };
34 
35 #endif  // CORE_FPDFDOC_CPVT_GENERATEAP_H_
36