OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef _FWL_PANEL_H | 7 #ifndef _FWL_PANEL_H |
8 #define _FWL_PANEL_H | 8 #define _FWL_PANEL_H |
9 class IFWL_Widget; | 9 class IFWL_Widget; |
10 class IFWL_Content; | 10 class IFWL_Content; |
11 class IFWL_Panel; | 11 class IFWL_Panel; |
12 class IFWL_CustomPanel; | 12 class IFWL_CustomPanel; |
13 #define FWL_CLASS_Panel L"FWL_Panel" | 13 #define FWL_CLASS_Panel L"FWL_Panel" |
14 #define FWL_CLASSHASH_Panel 881567292 | 14 #define FWL_CLASSHASH_Panel 881567292 |
15 class IFWL_Panel : public IFWL_Widget { | 15 class IFWL_Panel : public IFWL_Widget { |
16 public: | 16 public: |
17 static IFWL_Panel* Create(); | 17 static IFWL_Panel* Create(); |
18 FWL_ERR Initialize(IFWL_Widget* pOuter = NULL); | 18 FWL_ERR Initialize(IFWL_Widget* pOuter = NULL); |
19 FWL_ERR Initialize(CFWL_WidgetImpProperties& properties, | 19 FWL_ERR Initialize(CFWL_WidgetImpProperties& properties, |
20 IFWL_Widget* pOuter = NULL); | 20 IFWL_Widget* pOuter = NULL); |
21 IFWL_Content* GetContent(); | 21 IFWL_Content* GetContent(); |
22 FWL_ERR SetContent(IFWL_Content* pContent); | 22 FWL_ERR SetContent(IFWL_Content* pContent); |
23 | 23 |
24 protected: | 24 protected: |
25 IFWL_Panel(); | 25 IFWL_Panel(); |
26 virtual ~IFWL_Panel(); | |
27 }; | 26 }; |
28 class IFWL_CustomPanel : public IFWL_Widget { | 27 class IFWL_CustomPanel : public IFWL_Widget { |
29 public: | 28 public: |
30 static IFWL_CustomPanel* Create(); | 29 static IFWL_CustomPanel* Create(); |
31 FWL_ERR Initialize(IFWL_Widget* pOuter = NULL); | 30 FWL_ERR Initialize(IFWL_Widget* pOuter = NULL); |
32 FWL_ERR Initialize(CFWL_WidgetImpProperties& properties, | 31 FWL_ERR Initialize(CFWL_WidgetImpProperties& properties, |
33 IFWL_Widget* pOuter = NULL); | 32 IFWL_Widget* pOuter = NULL); |
34 IFWL_Content* GetContent(); | 33 IFWL_Content* GetContent(); |
35 FWL_ERR SetContent(IFWL_Content* pContent); | 34 FWL_ERR SetContent(IFWL_Content* pContent); |
36 FWL_ERR SetProxy(IFWL_Proxy* pProxy); | 35 FWL_ERR SetProxy(IFWL_Proxy* pProxy); |
37 | 36 |
38 protected: | 37 protected: |
39 IFWL_CustomPanel(); | 38 IFWL_CustomPanel(); |
40 virtual ~IFWL_CustomPanel(); | |
41 }; | 39 }; |
42 #endif | 40 #endif |
OLD | NEW |