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