Merge XFA to PDFium master at 4dc95e7 on 10/28/2014
[pdfium.git] / xfa / include / fwl / lightwidget / pushbutton.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 _FWL_PUSHBUTTON_LIGHT_H\r
8 #define _FWL_PUSHBUTTON_LIGHT_H\r
9 class CFWL_Widget;\r
10 class CFWL_WidgetProperties;\r
11 class IFWL_PushButtonDP;\r
12 class CFWL_PushButton;\r
13 class CFWL_PushButtonDP;\r
14 class CFWL_PushButton : public CFWL_Widget\r
15 {\r
16 public:\r
17     static CFWL_PushButton* Create();\r
18     FWL_ERR Initialize(const CFWL_WidgetProperties *pProperties = NULL);\r
19     FWL_ERR     GetCaption(CFX_WideString &wsCaption);\r
20     FWL_ERR SetCaption(FX_WSTR wsCaption);\r
21     CFX_DIBitmap*       GetPicture();\r
22     FWL_ERR                     SetPicture(CFX_DIBitmap *pBitmap);\r
23     CFWL_PushButton();\r
24     virtual ~CFWL_PushButton();\r
25 protected:\r
26     class CFWL_PushButtonDP : public IFWL_PushButtonDP\r
27     {\r
28     public:\r
29         CFWL_PushButtonDP(): m_pBitmap(NULL) {}\r
30         FWL_ERR GetCaption(IFWL_Widget *pWidget, CFX_WideString &wsCaption);\r
31         virtual CFX_DIBitmap*   GetPicture(IFWL_Widget *pWidget);\r
32         CFX_WideString m_wsCaption;\r
33         CFX_DIBitmap    *m_pBitmap;\r
34     };\r
35     CFWL_PushButtonDP m_buttonData;\r
36 };\r
37 #endif\r