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/core/fwl_widgetimp.h" | 7 #include "xfa/fwl/core/fwl_widgetimp.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
| 11 #include "xfa/fde/tto/fde_textout.h" |
| 12 #include "xfa/fwl/core/fwl_appimp.h" |
| 13 #include "xfa/fwl/core/fwl_noteimp.h" |
| 14 #include "xfa/fwl/core/fwl_targetimp.h" |
| 15 #include "xfa/fwl/core/fwl_threadimp.h" |
| 16 #include "xfa/fwl/core/fwl_widgetmgrimp.h" |
11 #include "xfa/include/fwl/adapter/fwl_adapternative.h" | 17 #include "xfa/include/fwl/adapter/fwl_adapternative.h" |
12 #include "xfa/include/fwl/adapter/fwl_adapterthreadmgr.h" | 18 #include "xfa/include/fwl/adapter/fwl_adapterthreadmgr.h" |
13 #include "xfa/include/fwl/adapter/fwl_adapterwidgetmgr.h" | 19 #include "xfa/include/fwl/adapter/fwl_adapterwidgetmgr.h" |
14 #include "xfa/include/fwl/basewidget/fwl_combobox.h" | 20 #include "xfa/include/fwl/basewidget/fwl_combobox.h" |
15 #include "xfa/include/fwl/basewidget/fwl_datetimepicker.h" | 21 #include "xfa/include/fwl/basewidget/fwl_datetimepicker.h" |
16 #include "xfa/include/fwl/basewidget/fwl_menu.h" | 22 #include "xfa/include/fwl/basewidget/fwl_menu.h" |
17 #include "xfa/include/fwl/core/fwl_app.h" | 23 #include "xfa/include/fwl/core/fwl_app.h" |
18 #include "xfa/include/fwl/core/fwl_content.h" | 24 #include "xfa/include/fwl/core/fwl_content.h" |
19 #include "xfa/include/fwl/core/fwl_form.h" | 25 #include "xfa/include/fwl/core/fwl_form.h" |
20 #include "xfa/include/fwl/core/fwl_theme.h" | 26 #include "xfa/include/fwl/core/fwl_theme.h" |
21 #include "xfa/src/fde/tto/fde_textout.h" | |
22 #include "xfa/src/fwl/core/fwl_appimp.h" | |
23 #include "xfa/src/fwl/core/fwl_noteimp.h" | |
24 #include "xfa/src/fwl/core/fwl_targetimp.h" | |
25 #include "xfa/src/fwl/core/fwl_threadimp.h" | |
26 #include "xfa/src/fwl/core/fwl_widgetmgrimp.h" | |
27 | 27 |
28 FWL_ERR IFWL_Widget::GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize) { | 28 FWL_ERR IFWL_Widget::GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize) { |
29 return static_cast<CFWL_WidgetImp*>(GetImpl()) | 29 return static_cast<CFWL_WidgetImp*>(GetImpl()) |
30 ->GetWidgetRect(rect, bAutoSize); | 30 ->GetWidgetRect(rect, bAutoSize); |
31 } | 31 } |
32 FWL_ERR IFWL_Widget::GetGlobalRect(CFX_RectF& rect) { | 32 FWL_ERR IFWL_Widget::GetGlobalRect(CFX_RectF& rect) { |
33 return static_cast<CFWL_WidgetImp*>(GetImpl())->GetGlobalRect(rect); | 33 return static_cast<CFWL_WidgetImp*>(GetImpl())->GetGlobalRect(rect); |
34 } | 34 } |
35 FWL_ERR IFWL_Widget::SetWidgetRect(const CFX_RectF& rect) { | 35 FWL_ERR IFWL_Widget::SetWidgetRect(const CFX_RectF& rect) { |
36 return static_cast<CFWL_WidgetImp*>(GetImpl())->SetWidgetRect(rect); | 36 return static_cast<CFWL_WidgetImp*>(GetImpl())->SetWidgetRect(rect); |
(...skipping 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1092 FWL_ERR FWL_EnabelWidget(IFWL_Widget* widget, FX_BOOL bEnable) { | 1092 FWL_ERR FWL_EnabelWidget(IFWL_Widget* widget, FX_BOOL bEnable) { |
1093 widget->SetStates(FWL_WGTSTATE_Disabled, !bEnable); | 1093 widget->SetStates(FWL_WGTSTATE_Disabled, !bEnable); |
1094 IFWL_WidgetMgr* widgetMgr = FWL_GetWidgetMgr(); | 1094 IFWL_WidgetMgr* widgetMgr = FWL_GetWidgetMgr(); |
1095 IFWL_Widget* child = widgetMgr->GetWidget(widget, FWL_WGTRELATION_FirstChild); | 1095 IFWL_Widget* child = widgetMgr->GetWidget(widget, FWL_WGTRELATION_FirstChild); |
1096 while (child) { | 1096 while (child) { |
1097 FWL_EnabelWidget(child, bEnable); | 1097 FWL_EnabelWidget(child, bEnable); |
1098 child = widgetMgr->GetWidget(child, FWL_WGTRELATION_NextSibling); | 1098 child = widgetMgr->GetWidget(child, FWL_WGTRELATION_NextSibling); |
1099 } | 1099 } |
1100 return FWL_ERR_Succeeded; | 1100 return FWL_ERR_Succeeded; |
1101 } | 1101 } |
OLD | NEW |