OLD | NEW |
| (Empty) |
1 // Copyright 2016 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 #include "xfa/fwl/core/cfwl_widgetproperties.h" | |
8 | |
9 #include "xfa/fwl/core/cfwl_widget.h" | |
10 | |
11 CFWL_WidgetProperties::CFWL_WidgetProperties() | |
12 : m_dwStyles(FWL_WGTSTYLE_Child), | |
13 m_dwStyleExes(0), | |
14 m_dwStates(0), | |
15 m_pParent(nullptr), | |
16 m_pOwner(nullptr) { | |
17 m_rtWidget.Set(0, 0, 0, 0); | |
18 } | |
19 | |
20 CFWL_WidgetProperties::~CFWL_WidgetProperties() {} | |
21 | |
22 CFWL_WidgetProperties::CFWL_WidgetProperties( | |
23 const CFWL_WidgetProperties& other) = default; | |
24 | |
25 CFWL_WidgetImpProperties CFWL_WidgetProperties::MakeWidgetImpProperties( | |
26 IFWL_DataProvider* pDataProvider) const { | |
27 CFWL_WidgetImpProperties result; | |
28 result.m_ctmOnParent = m_ctmOnParent; | |
29 result.m_rtWidget = m_rtWidget; | |
30 result.m_dwStyles = m_dwStyles; | |
31 result.m_dwStyleExes = m_dwStyleExes; | |
32 result.m_dwStates = m_dwStates; | |
33 if (m_pParent) | |
34 result.m_pParent = m_pParent->GetWidget(); | |
35 if (m_pOwner) | |
36 result.m_pOwner = m_pOwner->GetWidget(); | |
37 result.m_pDataProvider = pDataProvider; | |
38 return result; | |
39 } | |
OLD | NEW |