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 "fpdfsdk/formfiller/cffl_checkbox.h" | 7 #include "fpdfsdk/formfiller/cffl_checkbox.h" |
8 | 8 |
9 #include "fpdfsdk/formfiller/cffl_formfiller.h" | 9 #include "fpdfsdk/formfiller/cffl_formfiller.h" |
10 #include "fpdfsdk/include/fsdk_mgr.h" | 10 #include "fpdfsdk/include/fsdk_mgr.h" |
11 #include "fpdfsdk/include/pdfwindow/PWL_SpecialButton.h" | 11 #include "fpdfsdk/pdfwindow/PWL_SpecialButton.h" |
12 #include "public/fpdf_fwlevent.h" | 12 #include "public/fpdf_fwlevent.h" |
13 | 13 |
14 CFFL_CheckBox::CFFL_CheckBox(CPDFDoc_Environment* pApp, CPDFSDK_Widget* pWidget) | 14 CFFL_CheckBox::CFFL_CheckBox(CPDFDoc_Environment* pApp, CPDFSDK_Widget* pWidget) |
15 : CFFL_Button(pApp, pWidget) {} | 15 : CFFL_Button(pApp, pWidget) {} |
16 | 16 |
17 CFFL_CheckBox::~CFFL_CheckBox() {} | 17 CFFL_CheckBox::~CFFL_CheckBox() {} |
18 | 18 |
19 CPWL_Wnd* CFFL_CheckBox::NewPDFWindow(const PWL_CREATEPARAM& cp, | 19 CPWL_Wnd* CFFL_CheckBox::NewPDFWindow(const PWL_CREATEPARAM& cp, |
20 CPDFSDK_PageView* pPageView) { | 20 CPDFSDK_PageView* pPageView) { |
21 CPWL_CheckBox* pWnd = new CPWL_CheckBox(); | 21 CPWL_CheckBox* pWnd = new CPWL_CheckBox(); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 } | 107 } |
108 } | 108 } |
109 } | 109 } |
110 } | 110 } |
111 | 111 |
112 m_pWidget->SetCheck(bNewChecked, false); | 112 m_pWidget->SetCheck(bNewChecked, false); |
113 m_pWidget->UpdateField(); | 113 m_pWidget->UpdateField(); |
114 SetChangeMark(); | 114 SetChangeMark(); |
115 } | 115 } |
116 } | 116 } |
OLD | NEW |