Merge XFA to PDFium master at 4dc95e7 on 10/28/2014
[pdfium.git] / xfa / include / fwl / core / fwl_panel.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_PANEL_H\r
8 #define _FWL_PANEL_H\r
9 class IFWL_Widget;\r
10 class IFWL_Content;\r
11 class IFWL_Panel;\r
12 class IFWL_CustomPanel;\r
13 #define FWL_CLASS_Panel                                 L"FWL_Panel"\r
14 #define FWL_CLASSHASH_Panel                             881567292\r
15 class IFWL_Panel : public IFWL_Widget\r
16 {\r
17 public:\r
18     static IFWL_Panel* Create();\r
19     FWL_ERR                     Initialize(IFWL_Widget *pOuter = NULL);\r
20     FWL_ERR                     Initialize(CFWL_WidgetImpProperties &properties, IFWL_Widget *pOuter = NULL);\r
21     IFWL_Content*       GetContent();\r
22     FWL_ERR                     SetContent(IFWL_Content *pContent);\r
23 protected:\r
24     IFWL_Panel();\r
25     virtual ~IFWL_Panel();\r
26 };\r
27 class IFWL_CustomPanel : public IFWL_Widget\r
28 {\r
29 public:\r
30     static IFWL_CustomPanel* Create();\r
31     FWL_ERR                     Initialize(IFWL_Widget *pOuter = NULL);\r
32     FWL_ERR                     Initialize(CFWL_WidgetImpProperties &properties, IFWL_Widget *pOuter = NULL);\r
33     IFWL_Content*       GetContent();\r
34     FWL_ERR                     SetContent(IFWL_Content *pContent);\r
35     FWL_ERR                     SetProxy(IFWL_Proxy *pProxy);\r
36 protected:\r
37     IFWL_CustomPanel();\r
38     virtual ~IFWL_CustomPanel();\r
39 };\r
40 #endif\r