• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 _FWL_CHECKBOX_LIGHT_H
8 #define _FWL_CHECKBOX_LIGHT_H
9 class CFWL_Widget;
10 class CFWL_WidgetProperties;
11 class IFWL_CheckBoxDP;
12 class CFWL_CheckBox;
13 class CFWL_CheckBoxDP;
14 class CFWL_CheckBox : public CFWL_Widget {
15  public:
16   static CFWL_CheckBox* Create();
17 
18   FWL_ERR Initialize(const CFWL_WidgetProperties* pProperties = NULL);
19   FWL_ERR GetCaption(CFX_WideString& wsCaption);
20   FWL_ERR SetCaption(const CFX_WideStringC& wsCaption);
21   FWL_ERR SetBoxSize(FX_FLOAT fHeight);
22   int32_t GetCheckState();
23   FWL_ERR SetCheckState(int32_t iCheck);
24   CFWL_CheckBox();
25   virtual ~CFWL_CheckBox();
26 
27  protected:
28   class CFWL_CheckBoxDP : public IFWL_CheckBoxDP {
29    public:
30     CFWL_CheckBoxDP();
31     virtual FWL_ERR GetCaption(IFWL_Widget* pWidget, CFX_WideString& wsCaption);
32     virtual FX_FLOAT GetBoxSize(IFWL_Widget* pWidget);
33     FX_FLOAT m_fBoxHeight;
34     CFX_WideString m_wsCaption;
35   };
36   CFWL_CheckBoxDP m_checkboxData;
37 };
38 #endif
39