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_fflistbox.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 XFA_FXFA_CXFA_FFLISTBOX_H_
8#define XFA_FXFA_CXFA_FFLISTBOX_H_
9
10#include "v8/include/cppgc/member.h"
11#include "v8/include/cppgc/prefinalizer.h"
12#include "xfa/fxfa/cxfa_ffdropdown.h"
13
14class CXFA_FFListBox final : public CXFA_FFDropDown {
15 CPPGC_USING_PRE_FINALIZER(CXFA_FFListBox, PreFinalize);
16
17 public:
19 ~CXFA_FFListBox() override;
20
21 void PreFinalize();
22
23 // CXFA_FFField:
24 void Trace(cppgc::Visitor* visitor) const override;
25 bool LoadWidget() override;
26 [[nodiscard]] bool OnKillFocus(CXFA_FFWidget* pNewWidget) override;
27 void OnProcessMessage(CFWL_Message* pMessage) override;
28 void OnProcessEvent(CFWL_Event* pEvent) override;
29 void OnDrawWidget(CFGAS_GEGraphics* pGraphics,
30 const CFX_Matrix& matrix) override;
32
33 // CXFA_FFDropDown:
34 void InsertItem(const WideString& wsLabel, int32_t nIndex) override;
35 void DeleteItem(int32_t nIndex) override;
36
37 void OnSelectChanged(CFWL_Widget* pWidget);
38 void SetItemState(int32_t nIndex, bool bSelected);
39
40 private:
41 explicit CXFA_FFListBox(CXFA_Node* pNode);
42
43 bool CommitData() override;
44 bool UpdateFWLData() override;
45 bool IsDataChanged() override;
46
47 uint32_t GetAlignment();
48
49 cppgc::Member<IFWL_WidgetDelegate> m_pOldDelegate;
50};
51
52#endif // XFA_FXFA_CXFA_FFLISTBOX_H_
#define FWL_STYLEEXT_LTB_MultiSelection
#define FWL_STYLEEXT_LTB_ShowScrollBarFocus
#define FWL_STYLEEXT_LTB_CenterAlign
#define FWL_STYLEEXT_LTB_RightAlign
#define FWL_STYLEEXT_LTB_LeftAlign
#define FWL_STYLE_WGT_NoBackground
Definition cfwl_widget.h:39
#define FWL_STYLE_WGT_VScroll
Definition cfwl_widget.h:37
Type GetType() const
Definition cfwl_event.h:39
bool IsSelected() const
void UnregisterEventTarget(CFWL_Widget *pListener)
void RegisterEventTarget(CFWL_Widget *pListener, CFWL_Widget *pEventSource)
void SetDelegate(IFWL_WidgetDelegate *delegate)
void SetAdapterIface(AdapterIface *pItem)
virtual void ModifyStyleExts(uint32_t dwStyleExtsAdded, uint32_t dwStyleExtsRemoved)
void ModifyStyles(uint32_t dwStylesAdded, uint32_t dwStylesRemoved)
CFWL_App * GetFWLApp() const
CXFA_EventParam(XFA_EVENTTYPE type)
CXFA_FFDropDown(CXFA_Node *pNode)
bool OnKillFocus(CXFA_FFWidget *pNewWidget) override
bool ProcessCommittedData()
bool LoadWidget() override
void SetNormalWidget(CFWL_Widget *widget)
void OnProcessEvent(CFWL_Event *pEvent) override
bool UpdateFWLData() override
void DeleteItem(int32_t nIndex) override
void InsertItem(const WideString &wsLabel, int32_t nIndex) override
~CXFA_FFListBox() override
void OnProcessMessage(CFWL_Message *pMessage) override
void SetItemState(int32_t nIndex, bool bSelected)
void OnProcessEvent(CFWL_Event *pEvent) override
void Trace(cppgc::Visitor *visitor) const override
void OnSelectChanged(CFWL_Widget *pWidget)
bool CommitData() override
bool OnKillFocus(CXFA_FFWidget *pNewWidget) override
FormFieldType GetFormFieldType() override
void OnDrawWidget(CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix) override
bool LoadWidget() override
bool IsDataChanged() override
XFA_AttributeValue GetHorizontalAlign()
Definition cxfa_para.cpp:57
FormFieldType
@ XFA_EVENT_Change
XFA_AttributeValue
Definition fxfa_basic.h:60
#define CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
Definition heap.h:32
Definition heap.h:12