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/basewidget/fwl_editimp.h" | 7 #include "xfa/src/fwl/basewidget/fwl_editimp.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
11 #include "xfa/include/fwl/basewidget/fwl_caret.h" | 11 #include "xfa/include/fwl/basewidget/fwl_caret.h" |
12 #include "xfa/include/fwl/basewidget/fwl_datetimepicker.h" | 12 #include "xfa/include/fwl/basewidget/fwl_datetimepicker.h" |
13 #include "xfa/include/fwl/core/fwl_theme.h" | 13 #include "xfa/include/fwl/core/fwl_theme.h" |
14 #include "xfa/src/fdp/include/fde_rdr.h" | 14 #include "xfa/src/fdp/include/fde_rdr.h" |
15 #include "xfa/src/fdp/include/fde_rdv.h" | 15 #include "xfa/src/fdp/include/fde_rdv.h" |
16 #include "xfa/src/fee/include/ifde_txtedtpage.h" | 16 #include "xfa/src/fee/include/ifde_txtedtpage.h" |
17 #include "xfa/src/fwl/src/basewidget/fwl_caretimp.h" | 17 #include "xfa/src/fwl/basewidget/fwl_caretimp.h" |
18 #include "xfa/src/fwl/src/basewidget/fwl_comboboximp.h" | 18 #include "xfa/src/fwl/basewidget/fwl_comboboximp.h" |
19 #include "xfa/src/fwl/src/basewidget/fwl_scrollbarimp.h" | 19 #include "xfa/src/fwl/basewidget/fwl_scrollbarimp.h" |
20 #include "xfa/src/fwl/src/core/fwl_appimp.h" | 20 #include "xfa/src/fwl/core/fwl_appimp.h" |
21 #include "xfa/src/fwl/src/core/fwl_noteimp.h" | 21 #include "xfa/src/fwl/core/fwl_noteimp.h" |
22 #include "xfa/src/fwl/src/core/fwl_targetimp.h" | 22 #include "xfa/src/fwl/core/fwl_targetimp.h" |
23 #include "xfa/src/fwl/src/core/fwl_threadimp.h" | 23 #include "xfa/src/fwl/core/fwl_threadimp.h" |
24 #include "xfa/src/fwl/src/core/fwl_widgetimp.h" | 24 #include "xfa/src/fwl/core/fwl_widgetimp.h" |
25 #include "xfa/src/fwl/src/core/fwl_widgetmgrimp.h" | 25 #include "xfa/src/fwl/core/fwl_widgetmgrimp.h" |
26 | 26 |
27 // static | 27 // static |
28 IFWL_Edit* IFWL_Edit::Create(const CFWL_WidgetImpProperties& properties, | 28 IFWL_Edit* IFWL_Edit::Create(const CFWL_WidgetImpProperties& properties, |
29 IFWL_Widget* pOuter) { | 29 IFWL_Widget* pOuter) { |
30 IFWL_Edit* pEdit = new IFWL_Edit; | 30 IFWL_Edit* pEdit = new IFWL_Edit; |
31 CFWL_EditImp* pEditImpl = new CFWL_EditImp(properties, pOuter); | 31 CFWL_EditImp* pEditImpl = new CFWL_EditImp(properties, pOuter); |
32 pEdit->SetImpl(pEditImpl); | 32 pEdit->SetImpl(pEditImpl); |
33 pEditImpl->SetInterface(pEdit); | 33 pEditImpl->SetInterface(pEdit); |
34 return pEdit; | 34 return pEdit; |
35 } | 35 } |
(...skipping 2105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2141 m_pOwner->UpdateCaret(); | 2141 m_pOwner->UpdateCaret(); |
2142 } | 2142 } |
2143 CFX_RectF rect; | 2143 CFX_RectF rect; |
2144 m_pOwner->GetWidgetRect(rect); | 2144 m_pOwner->GetWidgetRect(rect); |
2145 CFX_RectF rtInvalidate; | 2145 CFX_RectF rtInvalidate; |
2146 rtInvalidate.Set(0, 0, rect.width + 2, rect.height + 2); | 2146 rtInvalidate.Set(0, 0, rect.width + 2, rect.height + 2); |
2147 m_pOwner->Repaint(&rtInvalidate); | 2147 m_pOwner->Repaint(&rtInvalidate); |
2148 } | 2148 } |
2149 return TRUE; | 2149 return TRUE; |
2150 } | 2150 } |
2151 void CFWL_EditImpDelegate::DoCursor(CFWL_MsgMouse* pMsg) { | 2151 void CFWL_EditImpDelegate::DoCursor(CFWL_MsgMouse* pMsg) {} |
2152 } | |
OLD | NEW |