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