FX_BOOL considered harmful, part 2.
[pdfium.git] / fpdfsdk / include / pdfwindow / PWL_SpecialButton.h
index 5561301..14e576d 100644 (file)
@@ -1,63 +1,56 @@
-// Copyright 2014 PDFium Authors. All rights reserved.\r
-// Use of this source code is governed by a BSD-style license that can be\r
-// found in the LICENSE file.\r
\r
-// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com\r
-\r
-#ifndef _PWL_SPECIALBUTTON_H_\r
-#define _PWL_SPECIALBUTTON_H_\r
-\r
-#if _MSC_VER > 1000\r
-#pragma once\r
-#endif // _MSC_VER > 1000\r
-\r
-class PWL_CLASS CPWL_PushButton : public CPWL_Button  \r
-{\r
-public:\r
-       CPWL_PushButton();\r
-       virtual ~CPWL_PushButton();\r
-\r
-public:\r
-       virtual CFX_ByteString          GetClassName() const;\r
-       virtual CPDF_Rect                       GetFocusRect() const;\r
-};\r
-\r
-class PWL_CLASS CPWL_CheckBox : public CPWL_Button\r
-{\r
-public:\r
-       CPWL_CheckBox();\r
-       virtual ~CPWL_CheckBox();\r
-\r
-public:\r
-       virtual CFX_ByteString          GetClassName() const;\r
-       virtual FX_BOOL                         OnLButtonUp(const CPDF_Point & point);\r
-       virtual FX_BOOL                         OnChar(FX_WORD nChar);\r
-\r
-       void                                            SetCheck(FX_BOOL bCheck);\r
-       FX_BOOL                                         IsChecked() const;\r
-\r
-private:\r
-       FX_BOOL                                         m_bChecked;\r
-};\r
-\r
-class PWL_CLASS CPWL_RadioButton : public CPWL_Button\r
-{\r
-public:\r
-       CPWL_RadioButton();\r
-       virtual ~CPWL_RadioButton();\r
-\r
-public:\r
-       virtual CFX_ByteString          GetClassName() const;\r
-       virtual FX_BOOL                         OnLButtonUp(const CPDF_Point & point);\r
-       virtual FX_BOOL                         OnChar(FX_WORD nChar);\r
-\r
-       void                                            SetCheck(FX_BOOL bCheck);\r
-       FX_BOOL                                         IsChecked() const;\r
-\r
-private:\r
-       FX_BOOL                                         m_bChecked;\r
-};\r
-\r
-#endif\r
-\r
-\r
+// Copyright 2014 PDFium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
+
+#ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_SPECIALBUTTON_H_
+#define FPDFSDK_INCLUDE_PDFWINDOW_PWL_SPECIALBUTTON_H_
+
+#include "PWL_Button.h"
+
+class PWL_CLASS CPWL_PushButton : public CPWL_Button
+{
+public:
+       CPWL_PushButton();
+       virtual ~CPWL_PushButton();
+
+       virtual CFX_ByteString          GetClassName() const;
+       virtual CPDF_Rect                       GetFocusRect() const;
+};
+
+class PWL_CLASS CPWL_CheckBox : public CPWL_Button
+{
+public:
+       CPWL_CheckBox();
+       virtual ~CPWL_CheckBox();
+
+       virtual CFX_ByteString          GetClassName() const;
+       virtual bool                            OnLButtonUp(const CPDF_Point & point, FX_DWORD nFlag);
+       virtual bool                            OnChar(FX_WORD nChar, FX_DWORD nFlag);
+
+       void                                            SetCheck(bool bCheck);
+       bool                                            IsChecked() const;
+
+private:
+       bool                                            m_bChecked;
+};
+
+class PWL_CLASS CPWL_RadioButton : public CPWL_Button
+{
+public:
+       CPWL_RadioButton();
+       virtual ~CPWL_RadioButton();
+
+       virtual CFX_ByteString          GetClassName() const;
+       virtual bool                            OnLButtonUp(const CPDF_Point & point, FX_DWORD nFlag);
+       virtual bool                            OnChar(FX_WORD nChar, FX_DWORD nFlag);
+
+       void                                            SetCheck(bool bCheck);
+       bool                                            IsChecked() const;
+
+private:
+       bool                                            m_bChecked;
+};
+
+#endif  // FPDFSDK_INCLUDE_PDFWINDOW_PWL_SPECIALBUTTON_H_