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 "../../include/formfiller/FormFiller.h" | 7 #include "../../include/formfiller/FormFiller.h" |
8 #include "../../include/formfiller/FFL_FormFiller.h" | 8 #include "../../include/formfiller/FFL_FormFiller.h" |
9 #include "../../include/formfiller/FFL_CheckBox.h" | 9 #include "../../include/formfiller/FFL_CheckBox.h" |
10 | 10 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 { | 117 { |
118 | 118 |
119 FX_BOOL bNewChecked = pWnd->IsChecked(); | 119 FX_BOOL bNewChecked = pWnd->IsChecked(); |
120 | 120 |
121 | 121 |
122 if (bNewChecked) | 122 if (bNewChecked) |
123 { | 123 { |
124 CPDF_FormField* pField = m_pWidget->GetFormField(); | 124 CPDF_FormField* pField = m_pWidget->GetFormField(); |
125 ASSERT(pField != NULL); | 125 ASSERT(pField != NULL); |
126 | 126 |
127 » » » for (FX_INT32 i=0,sz=pField->CountControls(); i<sz; i++) | 127 » » » for (int32_t i=0,sz=pField->CountControls(); i<sz; i++) |
128 { | 128 { |
129 if (CPDF_FormControl* pCtrl = pField->GetControl
(i)) | 129 if (CPDF_FormControl* pCtrl = pField->GetControl
(i)) |
130 { | 130 { |
131 if (pCtrl->IsChecked()) | 131 if (pCtrl->IsChecked()) |
132 { | 132 { |
133 break; | 133 break; |
134 } | 134 } |
135 } | 135 } |
136 } | 136 } |
137 } | 137 } |
138 | 138 |
139 m_pWidget->SetCheck(bNewChecked, FALSE); | 139 m_pWidget->SetCheck(bNewChecked, FALSE); |
140 m_pWidget->UpdateField(); | 140 m_pWidget->UpdateField(); |
141 SetChangeMark(); | 141 SetChangeMark(); |
142 } | 142 } |
143 | 143 |
144 } | 144 } |
OLD | NEW |