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