Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cffl_textobject.h
Go to the documentation of this file.
1// Copyright 2017 The PDFium Authors
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_formfield.h"
13
14class CPDF_BAFontMap;
15
16// Class to implement common functionality for CFFL_FormField sub-classes with
17// text fields.
19 public:
20 // CFFL_FormField:
21 CPWL_Wnd* ResetPWLWindow(const CPDFSDK_PageView* pPageView) override;
22 CPWL_Wnd* RestorePWLWindow(const CPDFSDK_PageView* pPageView) override;
23
24 protected:
25 CFFL_TextObject(CFFL_InteractiveFormFiller* pFormFiller,
26 CPDFSDK_Widget* pWidget);
27 ~CFFL_TextObject() override;
28
29 CPDF_BAFontMap* GetOrCreateFontMap();
30
31 private:
32 std::unique_ptr<CPDF_BAFontMap> m_pFontMap;
33};
34
35#endif // FPDFSDK_FORMFILLER_CFFL_TEXTOBJECT_H_
bool OnChar(CPDFSDK_Widget *pWidget, uint32_t nChar, Mask< FWL_EVENTFLAG > nFlags) override
void SavePWLWindowState(const CPDFSDK_PageView *pPageView) override
void SaveData(const CPDFSDK_PageView *pPageView) override
std::unique_ptr< CPWL_Wnd > NewPWLWindow(const CPWL_Wnd::CreateParams &cp, std::unique_ptr< IPWL_FillerNotify::PerWindowData > pAttachedData) override
void RecreatePWLWindowFromSavedState(const CPDFSDK_PageView *pPageView) override
void GetActionData(const CPDFSDK_PageView *pPageView, CPDF_AAction::AActionType type, CFFL_FieldAction &fa) override
bool IsDataChanged(const CPDFSDK_PageView *pPageView) override
~CFFL_ComboBox() override
CPWL_Wnd::CreateParams GetCreateParam() override
CFFL_ComboBox(CFFL_InteractiveFormFiller *pFormFiller, CPDFSDK_Widget *pWidget)
void SetActionData(const CPDFSDK_PageView *pPageView, CPDF_AAction::AActionType type, const CFFL_FieldAction &fa) override
bool IsIndexSelected(int index) override
bool SetIndexSelected(int index, bool selected) override
void OnSetFocusForEdit(CPWL_Edit *pEdit) override
virtual bool OnChar(CPDFSDK_Widget *pAnnot, uint32_t nChar, Mask< FWL_EVENTFLAG > nFlags)
CPWL_Wnd * GetPWLWindow(const CPDFSDK_PageView *pPageView) const
CPWL_Wnd * CreateOrUpdatePWLWindow(const CPDFSDK_PageView *pPageView)
virtual CPWL_Wnd::CreateParams GetCreateParam()
CPDFSDK_PageView * GetCurPageView()
bool IsValid() const
void SetFormField(CFFL_FormField *pFormField)
~CFFL_TextObject() override
CPDF_BAFontMap * GetOrCreateFontMap()
CFFL_TextObject(CFFL_InteractiveFormFiller *pFormFiller, CPDFSDK_Widget *pWidget)
CPWL_Wnd * ResetPWLWindow(const CPDFSDK_PageView *pPageView) override
CPWL_Wnd * RestorePWLWindow(const CPDFSDK_PageView *pPageView) override
void SetSelect(int32_t nItemIndex)
int32_t GetSelect() const
WideString GetText() override
CPWL_Edit * GetEdit() const
bool IsTextFull() const
WideString GetText() override
void SetCharSet(FX_Charset nCharSet)
Definition cpwl_edit.h:81
void SetSelection(int32_t nStartChar, int32_t nEndChar)
std::pair< int32_t, int32_t > GetSelection() const
void ReplaceSelection(const WideString &text) override
void SetReadyToInput()
#define PCBS_ALLOWCUSTOMTEXT
Definition cpwl_wnd.h:59
FX_Charset
Definition fx_codepage.h:70
@ kChineseSimplified