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
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
\r
7 #ifndef _FWL_CHECKBOX_LIGHT_H
\r
8 #define _FWL_CHECKBOX_LIGHT_H
\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
17 static CFWL_CheckBox* Create();
\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
26 virtual ~CFWL_CheckBox();
\r
28 class CFWL_CheckBoxDP : public IFWL_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
37 CFWL_CheckBoxDP m_checkboxData;
\r