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_ffcheckbutton.h
Go to the documentation of this file.
1// Copyright 2014 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_FFCHECKBUTTON_H_
8#define XFA_FXFA_CXFA_FFCHECKBUTTON_H_
9
10#include "v8/include/cppgc/member.h"
11#include "xfa/fxfa/cxfa_fffield.h"
12#include "xfa/fxfa/cxfa_ffpageview.h"
13#include "xfa/fxfa/parser/cxfa_node.h"
14
15class CXFA_CheckButton;
16
17class CXFA_FFCheckButton final : public CXFA_FFField {
18 public:
20 ~CXFA_FFCheckButton() override;
21
22 void Trace(cppgc::Visitor* visitor) const override;
23
24 // CXFA_FFField
26 const CFX_Matrix& matrix,
27 HighlightOption highlight) override;
28
29 bool LoadWidget() override;
30 bool PerformLayout() override;
31 bool UpdateFWLData() override;
32 void UpdateWidgetProperty() override;
33 bool OnLButtonUp(Mask<XFA_FWL_KeyFlag> dwFlags,
34 const CFX_PointF& point) override;
35 void OnProcessMessage(CFWL_Message* pMessage) override;
36 void OnProcessEvent(CFWL_Event* pEvent) override;
37 void OnDrawWidget(CFGAS_GEGraphics* pGraphics,
38 const CFX_Matrix& matrix) override;
40
41 void SetFWLCheckState(XFA_CheckState eCheckState);
42
43 private:
44 CXFA_FFCheckButton(CXFA_Node* pNode, CXFA_CheckButton* button);
45
46 bool CommitData() override;
47 bool IsDataChanged() override;
48 void CapLeftRightPlacement(const CXFA_Margin* captionMargin);
49 void AddUIMargin(XFA_AttributeValue iCapPlacement);
50 XFA_CheckState FWLState2XFAState();
51
52 cppgc::Member<IFWL_WidgetDelegate> m_pOldDelegate;
53 cppgc::Member<CXFA_CheckButton> const button_;
54 CFX_RectF m_CheckBoxRect;
55};
56
57#endif // XFA_FXFA_CXFA_FFCHECKBUTTON_H_
#define FWL_STYLEEXT_CKB_SignShapeMask
#define FWL_STYLEEXT_CKB_SignShapeSquare
#define FWL_STATE_CKB_Neutral
#define FWL_STYLEEXT_CKB_SignShapeCheck
#define FWL_STYLEEXT_CKB_SignShapeStar
#define FWL_STATE_CKB_Checked
#define FWL_STYLEEXT_CKB_SignShapeCircle
#define FWL_STYLEEXT_CKB_3State
#define FWL_STYLEEXT_CKB_RadioButton
#define FWL_STYLEEXT_CKB_SignShapeDiamond
#define FWL_STYLEEXT_CKB_SignShapeCross
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)
virtual void ModifyStyleExts(uint32_t dwStyleExtsAdded, uint32_t dwStyleExtsRemoved)
CFWL_App * GetFWLApp() const
CFX_Matrix(float a1, float b1, float c1, float d1, float e1, float f1)
void Concat(const CFX_Matrix &right)
CFX_RectF & operator=(const CFX_RectF &other)=default
float bottom() const
void Normalize()
float right() const
float GetReserve() const
CXFA_Margin * GetMarginIfExists()
XFA_AttributeValue GetPlacementType()
CXFA_EventParam(XFA_EVENTTYPE type)
bool IsDataChanged() override
void Trace(cppgc::Visitor *visitor) const override
void SetFWLCheckState(XFA_CheckState eCheckState)
void UpdateWidgetProperty() override
bool PerformLayout() override
FormFieldType GetFormFieldType() override
bool OnLButtonUp(Mask< XFA_FWL_KeyFlag > dwFlags, const CFX_PointF &point) override
void OnProcessMessage(CFWL_Message *pMessage) override
void OnDrawWidget(CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix) override
bool UpdateFWLData() override
bool LoadWidget() override
~CXFA_FFCheckButton() override
void RenderWidget(CFGAS_GEGraphics *pGS, const CFX_Matrix &matrix, HighlightOption highlight) override
void OnProcessEvent(CFWL_Event *pEvent) override
CXFA_FFField(CXFA_Node *pNode)
CFX_PointF FWLToClient(const CFX_PointF &point)
CFX_RectF m_UIRect
bool ProcessCommittedData()
virtual void SetFWLRect()
bool LoadWidget() override
void SetNormalWidget(CFWL_Widget *widget)
void OnProcessEvent(CFWL_Event *pEvent) override
void RenderCaption(CFGAS_GEGraphics *pGS, const CFX_Matrix &pMatrix)
CFX_RectF m_CaptionRect
void SendMessageToFWLWidget(CFWL_Message *pMessage)
CFX_Matrix GetRotateMatrix() override
virtual bool PerformLayout()
virtual void RenderWidget(CFGAS_GEGraphics *pGS, const CFX_Matrix &matrix, HighlightOption highlight)
bool HasVisibleStatus() const
void SetButtonDown(bool bSet)
CXFA_FFApp * GetApp()
CFX_RectF GetRectWithoutRotate()
CXFA_FFDocView * GetDocView() const
XFA_EventError ProcessEvent(CXFA_FFDocView *pDocView, XFA_AttributeValue iActivity, CXFA_EventParam *pEventParam)
CXFA_Margin * GetMarginIfExists() const
XFA_AttributeValue GetHorizontalAlign()
Definition cxfa_para.cpp:57
XFA_AttributeValue GetVerticalAlign()
Definition cxfa_para.cpp:63
FormFieldType
@ XFA_EVENT_Change
void XFA_RectWithoutMargin(CFX_RectF *rt, const CXFA_Margin *margin)
XFA_CheckState
Definition cxfa_node.h:64
XFA_FWL_KeyFlag
XFA_AttributeValue
Definition fxfa_basic.h:60
#define CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
Definition heap.h:32
Definition heap.h:12