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 to implement common functionality for CFFL_FormFiller sub-classes with 15 // text fields. 16 class CFFL_TextObject : public CFFL_FormFiller { 17 public: 18 // CFFL_FormFiller: 19 CPWL_Wnd* ResetPDFWindow(CPDFSDK_PageView* pPageView, 20 bool bRestoreValue) override; 21 22 protected: 23 CFFL_TextObject(CPDFSDK_FormFillEnvironment* pApp, CPDFSDK_Widget* pWidget); 24 ~CFFL_TextObject() override; 25 26 CBA_FontMap* MaybeCreateFontMap(); 27 28 private: 29 std::unique_ptr<CBA_FontMap> m_pFontMap; 30 }; 31 32 #endif // FPDFSDK_FORMFILLER_CFFL_TEXTOBJECT_H_ 33