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
cxfa_ffdropdown.h
Go to the documentation of this file.
1// Copyright 2018 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 XFA_FXFA_CXFA_FFDROPDOWN_H_
8#define XFA_FXFA_CXFA_FFDROPDOWN_H_
9
10#include "core/fxcrt/widestring.h"
11#include "xfa/fxfa/cxfa_fffield.h"
12
13class CXFA_FFComboBox;
14
16 public:
18 ~CXFA_FFDropDown() override;
19
20 // CXFA_FFField:
21 CXFA_FFDropDown* AsDropDown() override;
22
23 virtual void InsertItem(const WideString& wsLabel, int32_t nIndex) = 0;
24 virtual void DeleteItem(int32_t nIndex) = 0;
25 virtual CXFA_FFComboBox* AsComboBox();
26
27 protected:
28 explicit CXFA_FFDropDown(CXFA_Node* pNode);
29};
30
31inline CXFA_FFComboBox* ToComboBox(CXFA_FFDropDown* pDropDown) {
32 return pDropDown ? pDropDown->AsComboBox() : nullptr;
33}
34
35#endif // XFA_FXFA_CXFA_FFDROPDOWN_H_
#define FWL_STYLEEXT_CMB_ListItemLeftAlign
#define FWL_STYLEEXT_CMB_EditVCenter
#define FWL_STYLEEXT_CMB_EditVFar
#define FWL_STYLEEXT_CMB_DropDown
#define FWL_STYLEEXT_CMB_ListItemCenterAlign
#define FWL_STYLEEXT_CMB_EditVNear
#define FWL_STYLEEXT_CMB_EditHNear
#define FWL_STYLEEXT_CMB_EditHCenter
#define FWL_STYLEEXT_CMB_ReadOnly
#define FWL_STYLEEXT_CMB_EditJustified
#define FWL_STYLEEXT_EDT_AutoHScroll
Definition cfwl_edit.h:22
#define FWL_STYLEEXT_EDT_ReadOnly
Definition cfwl_edit.h:19
void SetCurSel(int32_t iSel)
Type GetType() const
Definition cfwl_event.h:39
void RegisterEventTarget(CFWL_Widget *pListener, CFWL_Widget *pEventSource)
void SetDelegate(IFWL_WidgetDelegate *delegate)
void SetAdapterIface(AdapterIface *pItem)
CFWL_App * GetFWLApp() const
constexpr CFX_RectF()=default
XFA_EVENTTYPE m_eType
CXFA_EventParam(XFA_EVENTTYPE type)
void Trace(cppgc::Visitor *visitor) const override
bool CanRedo() override
void OnPostOpen(CFWL_Widget *pWidget)
void DeleteItem(int32_t nIndex) override
bool PtInActiveRect(const CFX_PointF &point) override
void Delete() override
bool LoadWidget() override
bool OnKillFocus(CXFA_FFWidget *pNewWidget) override
void OnPreOpen(CFWL_Widget *pWidget)
bool CanCut() override
bool CanUndo() override
void UpdateWidgetProperty() override
void OnProcessEvent(CFWL_Event *pEvent) override
void OnSelectChanged(CFWL_Widget *pWidget, bool bLButtonUp)
bool Paste(const WideString &wsPaste) override
bool OnRButtonUp(Mask< XFA_FWL_KeyFlag > dwFlags, const CFX_PointF &point) override
bool CanPaste() override
bool UpdateFWLData() override
CFX_RectF GetBBox(FocusOption focus) override
void SetItemState(int32_t nIndex, bool bSelected)
bool CanCopy() override
bool Undo() override
bool CanSelectAll() override
void OnTextChanged(CFWL_Widget *pWidget, const WideString &wsChanged)
FormFieldType GetFormFieldType() override
void OnDrawWidget(CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix) override
void DeSelect() override
~CXFA_FFComboBox() override
bool Redo() override
void OnProcessMessage(CFWL_Message *pMessage) override
bool IsDataChanged() override
absl::optional< WideString > Cut() override
CXFA_FFComboBox * AsComboBox() override
absl::optional< WideString > Copy() override
bool CommitData() override
void InsertItem(const WideString &wsLabel, int32_t nIndex) override
WideString GetText() override
void SelectAll() override
~CXFA_FFDropDown() override
virtual void DeleteItem(int32_t nIndex)=0
virtual void InsertItem(const WideString &wsLabel, int32_t nIndex)=0
virtual CXFA_FFComboBox * AsComboBox()
CXFA_FFDropDown(CXFA_Node *pNode)
CXFA_FFDropDown * AsDropDown() override
bool OnKillFocus(CXFA_FFWidget *pNewWidget) override
bool ProcessCommittedData()
bool LoadWidget() override
bool OnRButtonUp(Mask< XFA_FWL_KeyFlag > dwFlags, const CFX_PointF &point) override
void SetNormalWidget(CFWL_Widget *widget)
void OnProcessEvent(CFWL_Event *pEvent) override
uint32_t UpdateUIProperty()
virtual CFX_RectF GetBBox(FocusOption focus)
CXFA_FFDoc * GetDoc()
XFA_AttributeValue GetHorizontalAlign()
Definition cxfa_para.cpp:57
XFA_AttributeValue GetVerticalAlign()
Definition cxfa_para.cpp:63
FormFieldType
@ XFA_EVENT_PostOpen
@ XFA_EVENT_PreOpen
@ XFA_EVENT_Change
@ XFA_EVENT_Unknown
CXFA_FFComboBox * ToComboBox(CXFA_FFDropDown *pDropDown)
XFA_FWL_KeyFlag
XFA_AttributeValue
Definition fxfa_basic.h:60
#define CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
Definition heap.h:32
Definition heap.h:12