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/fxfa/app/xfa_fffield.h" | 7 #include "xfa/fxfa/app/xfa_fffield.h" |
8 | 8 |
| 9 #include "xfa/fwl/basewidget/ifwl_edit.h" |
| 10 #include "xfa/fwl/core/cfwl_message.h" |
| 11 #include "xfa/fwl/core/ifwl_widgetmgrdelegate.h" |
9 #include "xfa/fxfa/app/xfa_ffapp.h" | 12 #include "xfa/fxfa/app/xfa_ffapp.h" |
10 #include "xfa/fxfa/app/xfa_ffdoc.h" | 13 #include "xfa/fxfa/app/xfa_ffdoc.h" |
11 #include "xfa/fxfa/app/xfa_ffdocview.h" | 14 #include "xfa/fxfa/app/xfa_ffdocview.h" |
12 #include "xfa/fxfa/app/xfa_ffpageview.h" | 15 #include "xfa/fxfa/app/xfa_ffpageview.h" |
13 #include "xfa/fxfa/app/xfa_ffwidget.h" | 16 #include "xfa/fxfa/app/xfa_ffwidget.h" |
14 #include "xfa/fxfa/app/xfa_fwltheme.h" | 17 #include "xfa/fxfa/app/xfa_fwltheme.h" |
15 #include "xfa/fxfa/app/xfa_textlayout.h" | 18 #include "xfa/fxfa/app/xfa_textlayout.h" |
16 #include "xfa/fxgraphics/cfx_color.h" | 19 #include "xfa/fxgraphics/cfx_color.h" |
17 #include "xfa/fxgraphics/cfx_path.h" | 20 #include "xfa/fxgraphics/cfx_path.h" |
18 #include "xfa/include/fwl/basewidget/fwl_edit.h" | |
19 #include "xfa/include/fwl/core/fwl_widgetmgr.h" | |
20 #include "xfa/include/fwl/lightwidget/edit.h" | 21 #include "xfa/include/fwl/lightwidget/edit.h" |
21 #include "xfa/include/fwl/lightwidget/picturebox.h" | 22 #include "xfa/include/fwl/lightwidget/picturebox.h" |
22 | 23 |
23 CXFA_FFField::CXFA_FFField(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc) | 24 CXFA_FFField::CXFA_FFField(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc) |
24 : CXFA_FFWidget(pPageView, pDataAcc), m_pNormalWidget(NULL) { | 25 : CXFA_FFWidget(pPageView, pDataAcc), m_pNormalWidget(NULL) { |
25 m_rtUI.Set(0, 0, 0, 0); | 26 m_rtUI.Set(0, 0, 0, 0); |
26 m_rtCaption.Set(0, 0, 0, 0); | 27 m_rtCaption.Set(0, 0, 0, 0); |
27 } | 28 } |
28 CXFA_FFField::~CXFA_FFField() { | 29 CXFA_FFField::~CXFA_FFField() { |
29 CXFA_FFField::UnloadWidget(); | 30 CXFA_FFField::UnloadWidget(); |
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
828 break; | 829 break; |
829 } | 830 } |
830 default: {} | 831 default: {} |
831 } | 832 } |
832 return FWL_ERR_Succeeded; | 833 return FWL_ERR_Succeeded; |
833 } | 834 } |
834 FWL_ERR CXFA_FFField::OnDrawWidget(CFX_Graphics* pGraphics, | 835 FWL_ERR CXFA_FFField::OnDrawWidget(CFX_Graphics* pGraphics, |
835 const CFX_Matrix* pMatrix) { | 836 const CFX_Matrix* pMatrix) { |
836 return FWL_ERR_Succeeded; | 837 return FWL_ERR_Succeeded; |
837 } | 838 } |
OLD | NEW |