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_ffcheckbutton.h" | 7 #include "xfa/fxfa/app/xfa_ffcheckbutton.h" |
8 | 8 |
9 #include "xfa/fwl/core/cfwl_message.h" | 9 #include "xfa/fwl/core/cfwl_message.h" |
10 #include "xfa/fwl/core/ifwl_notedriver.h" | 10 #include "xfa/fwl/core/ifwl_notedriver.h" |
11 #include "xfa/fwl/core/ifwl_widgetmgrdelegate.h" | 11 #include "xfa/fwl/core/ifwl_widgetmgrdelegate.h" |
12 #include "xfa/fwl/lightwidget/cfwl_checkbox.h" | 12 #include "xfa/fwl/lightwidget/cfwl_checkbox.h" |
13 #include "xfa/fxfa/app/xfa_ffapp.h" | |
14 #include "xfa/fxfa/app/xfa_ffdoc.h" | |
15 #include "xfa/fxfa/app/xfa_ffdocview.h" | |
16 #include "xfa/fxfa/app/xfa_ffexclgroup.h" | 13 #include "xfa/fxfa/app/xfa_ffexclgroup.h" |
17 #include "xfa/fxfa/app/xfa_fffield.h" | 14 #include "xfa/fxfa/app/xfa_fffield.h" |
18 #include "xfa/fxfa/app/xfa_ffpageview.h" | |
19 #include "xfa/fxfa/app/xfa_ffwidget.h" | 15 #include "xfa/fxfa/app/xfa_ffwidget.h" |
| 16 #include "xfa/include/fxfa/xfa_ffapp.h" |
| 17 #include "xfa/include/fxfa/xfa_ffdoc.h" |
| 18 #include "xfa/include/fxfa/xfa_ffdocview.h" |
| 19 #include "xfa/include/fxfa/xfa_ffpageview.h" |
20 | 20 |
21 CXFA_FFCheckButton::CXFA_FFCheckButton(CXFA_FFPageView* pPageView, | 21 CXFA_FFCheckButton::CXFA_FFCheckButton(CXFA_FFPageView* pPageView, |
22 CXFA_WidgetAcc* pDataAcc) | 22 CXFA_WidgetAcc* pDataAcc) |
23 : CXFA_FFField(pPageView, pDataAcc), m_pOldDelegate(NULL) { | 23 : CXFA_FFField(pPageView, pDataAcc), m_pOldDelegate(NULL) { |
24 m_rtCheckBox.Set(0, 0, 0, 0); | 24 m_rtCheckBox.Set(0, 0, 0, 0); |
25 } | 25 } |
26 CXFA_FFCheckButton::~CXFA_FFCheckButton() {} | 26 CXFA_FFCheckButton::~CXFA_FFCheckButton() {} |
27 FX_BOOL CXFA_FFCheckButton::LoadWidget() { | 27 FX_BOOL CXFA_FFCheckButton::LoadWidget() { |
28 CFWL_CheckBox* pCheckBox = CFWL_CheckBox::Create(); | 28 CFWL_CheckBox* pCheckBox = CFWL_CheckBox::Create(); |
29 pCheckBox->Initialize(); | 29 pCheckBox->Initialize(); |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 break; | 328 break; |
329 } | 329 } |
330 default: {} | 330 default: {} |
331 } | 331 } |
332 return m_pOldDelegate->OnProcessEvent(pEvent); | 332 return m_pOldDelegate->OnProcessEvent(pEvent); |
333 } | 333 } |
334 FWL_ERR CXFA_FFCheckButton::OnDrawWidget(CFX_Graphics* pGraphics, | 334 FWL_ERR CXFA_FFCheckButton::OnDrawWidget(CFX_Graphics* pGraphics, |
335 const CFX_Matrix* pMatrix) { | 335 const CFX_Matrix* pMatrix) { |
336 return m_pOldDelegate->OnDrawWidget(pGraphics, pMatrix); | 336 return m_pOldDelegate->OnDrawWidget(pGraphics, pMatrix); |
337 } | 337 } |
OLD | NEW |