Merge XFA to PDFium master at 4dc95e7 on 10/28/2014
[pdfium.git] / xfa / include / fwl / lightwidget / checkbox.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 _FWL_CHECKBOX_LIGHT_H\r
8 #define _FWL_CHECKBOX_LIGHT_H\r
9 class CFWL_Widget;\r
10 class CFWL_WidgetProperties;\r
11 class IFWL_CheckBoxDP;\r
12 class CFWL_CheckBox;\r
13 class CFWL_CheckBoxDP;\r
14 class CFWL_CheckBox : public CFWL_Widget\r
15 {\r
16 public:\r
17     static CFWL_CheckBox* Create();\r
18 \r
19     FWL_ERR             Initialize(const CFWL_WidgetProperties *pProperties = NULL);\r
20     FWL_ERR             GetCaption(CFX_WideString &wsCaption);\r
21     FWL_ERR             SetCaption(FX_WSTR wsCaption);\r
22     FWL_ERR             SetBoxSize(FX_FLOAT fHeight);\r
23     FX_INT32    GetCheckState();\r
24     FWL_ERR             SetCheckState(FX_INT32 iCheck);\r
25     CFWL_CheckBox();\r
26     virtual ~CFWL_CheckBox();\r
27 protected:\r
28     class CFWL_CheckBoxDP : public IFWL_CheckBoxDP\r
29     {\r
30     public:\r
31         CFWL_CheckBoxDP();\r
32         virtual FWL_ERR GetCaption(IFWL_Widget *pWidget, CFX_WideString &wsCaption);\r
33         virtual FX_FLOAT GetBoxSize(IFWL_Widget *pWidget);\r
34         FX_FLOAT           m_fBoxHeight;\r
35         CFX_WideString m_wsCaption;\r
36     };\r
37     CFWL_CheckBoxDP m_checkboxData;\r
38 };\r
39 #endif\r