Initial commit.
[pdfium.git] / fpdfsdk / include / pdfwindow / PWL_SpecialButton.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 _PWL_SPECIALBUTTON_H_\r
8 #define _PWL_SPECIALBUTTON_H_\r
9 \r
10 #if _MSC_VER > 1000\r
11 #pragma once\r
12 #endif // _MSC_VER > 1000\r
13 \r
14 class PWL_CLASS CPWL_PushButton : public CPWL_Button  \r
15 {\r
16 public:\r
17         CPWL_PushButton();\r
18         virtual ~CPWL_PushButton();\r
19 \r
20 public:\r
21         virtual CFX_ByteString          GetClassName() const;\r
22         virtual CPDF_Rect                       GetFocusRect() const;\r
23 };\r
24 \r
25 class PWL_CLASS CPWL_CheckBox : public CPWL_Button\r
26 {\r
27 public:\r
28         CPWL_CheckBox();\r
29         virtual ~CPWL_CheckBox();\r
30 \r
31 public:\r
32         virtual CFX_ByteString          GetClassName() const;\r
33         virtual FX_BOOL                         OnLButtonUp(const CPDF_Point & point);\r
34         virtual FX_BOOL                         OnChar(FX_WORD nChar);\r
35 \r
36         void                                            SetCheck(FX_BOOL bCheck);\r
37         FX_BOOL                                         IsChecked() const;\r
38 \r
39 private:\r
40         FX_BOOL                                         m_bChecked;\r
41 };\r
42 \r
43 class PWL_CLASS CPWL_RadioButton : public CPWL_Button\r
44 {\r
45 public:\r
46         CPWL_RadioButton();\r
47         virtual ~CPWL_RadioButton();\r
48 \r
49 public:\r
50         virtual CFX_ByteString          GetClassName() const;\r
51         virtual FX_BOOL                         OnLButtonUp(const CPDF_Point & point);\r
52         virtual FX_BOOL                         OnChar(FX_WORD nChar);\r
53 \r
54         void                                            SetCheck(FX_BOOL bCheck);\r
55         FX_BOOL                                         IsChecked() const;\r
56 \r
57 private:\r
58         FX_BOOL                                         m_bChecked;\r
59 };\r
60 \r
61 #endif\r
62 \r
63 \r