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 #include "xfa/src/fwl/src/core/include/fwl_panelimp.h" | 7 #include "xfa/src/fwl/src/core/include/fwl_panelimp.h" |
8 | 8 |
9 #include "xfa/include/fwl/core/fwl_content.h" | 9 #include "xfa/include/fwl/core/fwl_content.h" |
10 #include "xfa/include/fwl/core/fwl_grid.h" | 10 #include "xfa/include/fwl/core/fwl_grid.h" |
11 #include "xfa/include/fwl/core/fwl_panel.h" | 11 #include "xfa/include/fwl/core/fwl_panel.h" |
12 #include "xfa/src/foxitlib.h" | |
13 #include "xfa/src/fwl/src/core/include/fwl_noteimp.h" | 12 #include "xfa/src/fwl/src/core/include/fwl_noteimp.h" |
14 #include "xfa/src/fwl/src/core/include/fwl_targetimp.h" | 13 #include "xfa/src/fwl/src/core/include/fwl_targetimp.h" |
15 #include "xfa/src/fwl/src/core/include/fwl_widgetimp.h" | 14 #include "xfa/src/fwl/src/core/include/fwl_widgetimp.h" |
16 #include "xfa/src/fwl/src/core/include/fwl_widgetmgrimp.h" | 15 #include "xfa/src/fwl/src/core/include/fwl_widgetmgrimp.h" |
17 | 16 |
18 // static | 17 // static |
19 IFWL_Panel* IFWL_Panel::Create(CFWL_WidgetImpProperties& properties, | 18 IFWL_Panel* IFWL_Panel::Create(CFWL_WidgetImpProperties& properties, |
20 IFWL_Widget* pOuter) { | 19 IFWL_Widget* pOuter) { |
21 IFWL_Panel* pPanel = new IFWL_Panel; | 20 IFWL_Panel* pPanel = new IFWL_Panel; |
22 CFWL_PanelImp* pPanelImpl = new CFWL_PanelImp(properties, pOuter); | 21 CFWL_PanelImp* pPanelImpl = new CFWL_PanelImp(properties, pOuter); |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 IFWL_CustomPanel::IFWL_CustomPanel() {} | 143 IFWL_CustomPanel::IFWL_CustomPanel() {} |
145 IFWL_Content* IFWL_CustomPanel::GetContent() { | 144 IFWL_Content* IFWL_CustomPanel::GetContent() { |
146 return static_cast<CFWL_CustomPanelImp*>(GetImpl())->GetContent(); | 145 return static_cast<CFWL_CustomPanelImp*>(GetImpl())->GetContent(); |
147 } | 146 } |
148 FWL_ERR IFWL_CustomPanel::SetContent(IFWL_Content* pContent) { | 147 FWL_ERR IFWL_CustomPanel::SetContent(IFWL_Content* pContent) { |
149 return static_cast<CFWL_CustomPanelImp*>(GetImpl())->SetContent(pContent); | 148 return static_cast<CFWL_CustomPanelImp*>(GetImpl())->SetContent(pContent); |
150 } | 149 } |
151 FWL_ERR IFWL_CustomPanel::SetProxy(IFWL_Proxy* pProxy) { | 150 FWL_ERR IFWL_CustomPanel::SetProxy(IFWL_Proxy* pProxy) { |
152 return static_cast<CFWL_CustomPanelImp*>(GetImpl())->SetProxy(pProxy); | 151 return static_cast<CFWL_CustomPanelImp*>(GetImpl())->SetProxy(pProxy); |
153 } | 152 } |
OLD | NEW |