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_formimp.h" | 7 #include "xfa/fwl/core/fwl_formimp.h" |
8 | 8 |
| 9 #include "xfa/fde/tto/fde_textout.h" |
| 10 #include "xfa/fwl/basewidget/fwl_formproxyimp.h" |
| 11 #include "xfa/fwl/core/fwl_appimp.h" |
| 12 #include "xfa/fwl/core/fwl_noteimp.h" |
| 13 #include "xfa/fwl/core/fwl_panelimp.h" |
| 14 #include "xfa/fwl/core/fwl_targetimp.h" |
| 15 #include "xfa/fwl/core/fwl_threadimp.h" |
| 16 #include "xfa/fwl/core/fwl_widgetimp.h" |
| 17 #include "xfa/fwl/core/fwl_widgetmgrimp.h" |
9 #include "xfa/include/fwl/adapter/fwl_adapterwidgetmgr.h" | 18 #include "xfa/include/fwl/adapter/fwl_adapterwidgetmgr.h" |
10 #include "xfa/include/fwl/core/fwl_app.h" | 19 #include "xfa/include/fwl/core/fwl_app.h" |
11 #include "xfa/include/fwl/core/fwl_content.h" | 20 #include "xfa/include/fwl/core/fwl_content.h" |
12 #include "xfa/include/fwl/core/fwl_theme.h" | 21 #include "xfa/include/fwl/core/fwl_theme.h" |
13 #include "xfa/src/fde/tto/fde_textout.h" | |
14 #include "xfa/src/fwl/basewidget/fwl_formproxyimp.h" | |
15 #include "xfa/src/fwl/core/fwl_appimp.h" | |
16 #include "xfa/src/fwl/core/fwl_noteimp.h" | |
17 #include "xfa/src/fwl/core/fwl_panelimp.h" | |
18 #include "xfa/src/fwl/core/fwl_targetimp.h" | |
19 #include "xfa/src/fwl/core/fwl_threadimp.h" | |
20 #include "xfa/src/fwl/core/fwl_widgetimp.h" | |
21 #include "xfa/src/fwl/core/fwl_widgetmgrimp.h" | |
22 | 22 |
23 #define FWL_SYSBTNSIZE 21 | 23 #define FWL_SYSBTNSIZE 21 |
24 #define FWL_SYSBTNMARGIN 5 | 24 #define FWL_SYSBTNMARGIN 5 |
25 #define FWL_SYSBTNSPAN 2 | 25 #define FWL_SYSBTNSPAN 2 |
26 #define FWL_CornerEnlarge 10 | 26 #define FWL_CornerEnlarge 10 |
27 | 27 |
28 // static | 28 // static |
29 IFWL_Form* IFWL_Form::CreateFormProxy(CFWL_WidgetImpProperties& properties, | 29 IFWL_Form* IFWL_Form::CreateFormProxy(CFWL_WidgetImpProperties& properties, |
30 CFX_WideString* classname, | 30 CFX_WideString* classname, |
31 IFWL_Widget* pOuter) { | 31 IFWL_Widget* pOuter) { |
(...skipping 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1166 eClose.m_pSrcTarget = m_pOwner->m_pInterface; | 1166 eClose.m_pSrcTarget = m_pOwner->m_pInterface; |
1167 m_pOwner->DispatchEvent(&eClose); | 1167 m_pOwner->DispatchEvent(&eClose); |
1168 } | 1168 } |
1169 FWL_ERR FWL_Accelerator_SetForm(IFWL_Form* pFrom, | 1169 FWL_ERR FWL_Accelerator_SetForm(IFWL_Form* pFrom, |
1170 CFX_MapAccelerators* pMapAccel) { | 1170 CFX_MapAccelerators* pMapAccel) { |
1171 CFWL_FormImp* pImp = static_cast<CFWL_FormImp*>(pFrom->GetImpl()); | 1171 CFWL_FormImp* pImp = static_cast<CFWL_FormImp*>(pFrom->GetImpl()); |
1172 if (!pImp) | 1172 if (!pImp) |
1173 return FWL_ERR_Indefinite; | 1173 return FWL_ERR_Indefinite; |
1174 return FWL_ERR_Succeeded; | 1174 return FWL_ERR_Succeeded; |
1175 } | 1175 } |
OLD | NEW |