Merge XFA to PDFium master at 4dc95e7 on 10/28/2014
[pdfium.git] / xfa / src / fxfa / src / app / xfa_ffcheckbutton.h
1 // Copyright 2014 PDFium Authors. All rights reserved.\r
2 // Use of this source code is governed by a BSD-style license that can be\r
3 // found in the LICENSE file.\r
4 \r
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com\r
6 \r
7 #ifndef _FXFA_FORMFILLER_CHECKBUTTON_IMP_H\r
8 #define _FXFA_FORMFILLER_CHECKBUTTON_IMP_H\r
9 class CXFA_FFExclGroup;\r
10 class CXFA_FFCheckButton : public CXFA_FFField\r
11 {\r
12 public:\r
13     CXFA_FFCheckButton(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc);\r
14     virtual ~CXFA_FFCheckButton();\r
15     virtual void                RenderWidget(CFX_Graphics* pGS, CFX_Matrix* pMatrix = NULL, FX_DWORD dwStatus = 0, FX_INT32 iRotate = 0);\r
16 \r
17     virtual FX_BOOL             LoadWidget();\r
18     virtual FX_BOOL             LayoutWidget();\r
19     virtual FX_BOOL             UpdateFWLData();\r
20     virtual void                UpdateWidgetProperty();\r
21     virtual FX_BOOL             OnLButtonUp(FX_DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy);\r
22     void                                SetFWLCheckState(XFA_CHECKSTATE eCheckState);\r
23     virtual FX_INT32    OnProcessMessage(CFWL_Message *pMessage);\r
24     virtual FWL_ERR             OnProcessEvent(CFWL_Event *pEvent);\r
25     virtual FWL_ERR             OnDrawWidget(CFX_Graphics *pGraphics, const CFX_Matrix *pMatrix = NULL);\r
26 \r
27 protected:\r
28     virtual FX_BOOL             CommitData();\r
29     virtual FX_BOOL             IsDataChanged();\r
30     void                                CapLeftRightPlacement(CXFA_Margin mgCap);\r
31     void                                AddUIMargin(FX_INT32 iCapPlacement);\r
32     XFA_CHECKSTATE              FWLState2XFAState();\r
33     IFWL_WidgetDelegate*        m_pOldDelegate;\r
34     CFX_RectF                   m_rtCheckBox;\r
35 };\r
36 #endif\r