Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Side by Side Diff: fpdfsdk/src/formfiller/FFL_CheckBox.cpp

Issue 1566583002: Merge to XFA: Remove header files that only have includes. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Fix XFA Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/src/formfiller/FFL_CBA_Fontmap.cpp ('k') | fpdfsdk/src/formfiller/FFL_ComboBox.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/include/formfiller/FFL_CheckBox.h" 7 #include "fpdfsdk/include/formfiller/FFL_CheckBox.h"
8
8 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h" 9 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h"
9 #include "fpdfsdk/include/formfiller/FormFiller.h" 10 #include "fpdfsdk/include/fsdk_mgr.h"
10 11 #include "fpdfsdk/include/pdfwindow/PWL_SpecialButton.h"
11 /* ------------------------------- CFFL_CheckBox ------------------------------- 12 #include "public/fpdf_fwlevent.h"
12 */
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();
22 pWnd->Create(cp); 22 pWnd->Create(cp);
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 FX_BOOL CFFL_CheckBox::OnLButtonUp(CPDFSDK_PageView* pPageView, 73 FX_BOOL CFFL_CheckBox::OnLButtonUp(CPDFSDK_PageView* pPageView,
74 CPDFSDK_Annot* pAnnot, 74 CPDFSDK_Annot* pAnnot,
75 FX_UINT nFlags, 75 FX_UINT nFlags,
76 const CPDF_Point& point) { 76 const CPDF_Point& point) {
77 CFFL_Button::OnLButtonUp(pPageView, pAnnot, nFlags, point); 77 CFFL_Button::OnLButtonUp(pPageView, pAnnot, nFlags, point);
78 78
79 if (IsValid()) { 79 if (IsValid()) {
80 if (CPWL_CheckBox* pWnd = (CPWL_CheckBox*)GetPDFWindow(pPageView, TRUE)) { 80 if (CPWL_CheckBox* pWnd = (CPWL_CheckBox*)GetPDFWindow(pPageView, TRUE)) {
81 CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot; 81 CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot;
82 pWnd->SetCheck(!pWidget->IsChecked()); 82 pWnd->SetCheck(!pWidget->IsChecked());
83 // pWnd->SetCheck(!pWnd->IsChecked());
84 } 83 }
85 84
86 if (!CommitData(pPageView, nFlags)) 85 if (!CommitData(pPageView, nFlags))
87 return FALSE; 86 return FALSE;
88 } 87 }
89 88
90 return TRUE; 89 return TRUE;
91 } 90 }
92 91
93 FX_BOOL CFFL_CheckBox::IsDataChanged(CPDFSDK_PageView* pPageView) { 92 FX_BOOL CFFL_CheckBox::IsDataChanged(CPDFSDK_PageView* pPageView) {
(...skipping 16 matching lines...) Expand all
110 } 109 }
111 } 110 }
112 } 111 }
113 } 112 }
114 113
115 m_pWidget->SetCheck(bNewChecked, FALSE); 114 m_pWidget->SetCheck(bNewChecked, FALSE);
116 m_pWidget->UpdateField(); 115 m_pWidget->UpdateField();
117 SetChangeMark(); 116 SetChangeMark();
118 } 117 }
119 } 118 }
OLDNEW
« no previous file with comments | « fpdfsdk/src/formfiller/FFL_CBA_Fontmap.cpp ('k') | fpdfsdk/src/formfiller/FFL_ComboBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698