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_RadioButton.h" | 9 #include "../../include/formfiller/FFL_RadioButton.h" |
10 //#include "../include/FFL_Undo.h" | 10 //#include "../include/FFL_Undo.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 if (CPWL_RadioButton* pWnd = (CPWL_RadioButton*)GetPDFWindow(pPageView,
FALSE)) | 110 if (CPWL_RadioButton* pWnd = (CPWL_RadioButton*)GetPDFWindow(pPageView,
FALSE)) |
111 { | 111 { |
112 | 112 |
113 FX_BOOL bNewChecked = pWnd->IsChecked(); | 113 FX_BOOL bNewChecked = pWnd->IsChecked(); |
114 | 114 |
115 if (bNewChecked) | 115 if (bNewChecked) |
116 { | 116 { |
117 CPDF_FormField* pField = m_pWidget->GetFormField(); | 117 CPDF_FormField* pField = m_pWidget->GetFormField(); |
118 ASSERT(pField != NULL); | 118 ASSERT(pField != NULL); |
119 | 119 |
120 » » » for (FX_INT32 i=0,sz=pField->CountControls(); i<sz; i++) | 120 » » » for (int32_t i=0,sz=pField->CountControls(); i<sz; i++) |
121 { | 121 { |
122 if (CPDF_FormControl* pCtrl = pField->GetControl
(i)) | 122 if (CPDF_FormControl* pCtrl = pField->GetControl
(i)) |
123 { | 123 { |
124 if (pCtrl->IsChecked()) | 124 if (pCtrl->IsChecked()) |
125 { | 125 { |
126 break; | 126 break; |
127 } | 127 } |
128 } | 128 } |
129 } | 129 } |
130 } | 130 } |
131 | 131 |
132 m_pWidget->SetCheck(bNewChecked, FALSE); | 132 m_pWidget->SetCheck(bNewChecked, FALSE); |
133 m_pWidget->UpdateField(); | 133 m_pWidget->UpdateField(); |
134 SetChangeMark(); | 134 SetChangeMark(); |
135 } | 135 } |
136 } | 136 } |
137 | 137 |
OLD | NEW |