OLD | NEW |
| (Empty) |
1 // Copyright 2014 PDFium Authors. All rights reserved. | |
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_INCLUDE_FWL_LIGHTWIDGET_CHECKBOX_H_ | |
8 #define XFA_INCLUDE_FWL_LIGHTWIDGET_CHECKBOX_H_ | |
9 | |
10 #include "xfa/fwl/basewidget/ifwl_checkbox.h" | |
11 #include "xfa/include/fwl/lightwidget/widget.h" | |
12 | |
13 class CFWL_CheckBox : public CFWL_Widget { | |
14 public: | |
15 static CFWL_CheckBox* Create(); | |
16 | |
17 FWL_ERR Initialize(const CFWL_WidgetProperties* pProperties = NULL); | |
18 FWL_ERR GetCaption(CFX_WideString& wsCaption); | |
19 FWL_ERR SetCaption(const CFX_WideStringC& wsCaption); | |
20 FWL_ERR SetBoxSize(FX_FLOAT fHeight); | |
21 int32_t GetCheckState(); | |
22 FWL_ERR SetCheckState(int32_t iCheck); | |
23 CFWL_CheckBox(); | |
24 virtual ~CFWL_CheckBox(); | |
25 | |
26 protected: | |
27 class CFWL_CheckBoxDP : public IFWL_CheckBoxDP { | |
28 public: | |
29 CFWL_CheckBoxDP(); | |
30 virtual FWL_ERR GetCaption(IFWL_Widget* pWidget, CFX_WideString& wsCaption); | |
31 virtual FX_FLOAT GetBoxSize(IFWL_Widget* pWidget); | |
32 FX_FLOAT m_fBoxHeight; | |
33 CFX_WideString m_wsCaption; | |
34 }; | |
35 CFWL_CheckBoxDP m_checkboxData; | |
36 }; | |
37 | |
38 #endif // XFA_INCLUDE_FWL_LIGHTWIDGET_CHECKBOX_H_ | |
OLD | NEW |