• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2017 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 FPDFSDK_FORMFILLER_CFFL_TEXTOBJECT_H_
8 #define FPDFSDK_FORMFILLER_CFFL_TEXTOBJECT_H_
9 
10 #include <memory>
11 
12 #include "fpdfsdk/formfiller/cffl_formfiller.h"
13 
14 class CBA_FontMap;
15 
16 // Class to implement common functionality for CFFL_FormFiller sub-classes with
17 // text fields.
18 class CFFL_TextObject : public CFFL_FormFiller {
19  public:
20   // CFFL_FormFiller:
21   CPWL_Wnd* ResetPWLWindow(CPDFSDK_PageView* pPageView,
22                            bool bRestoreValue) override;
23 
24  protected:
25   CFFL_TextObject(CPDFSDK_FormFillEnvironment* pApp, CPDFSDK_Widget* pWidget);
26   ~CFFL_TextObject() override;
27 
28   CBA_FontMap* MaybeCreateFontMap();
29 
30  private:
31   std::unique_ptr<CBA_FontMap> m_pFontMap;
32 };
33 
34 #endif  // FPDFSDK_FORMFILLER_CFFL_TEXTOBJECT_H_
35