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/include/formfiller/FFL_RadioButton.h" | 7 #include "fpdfsdk/include/formfiller/FFL_RadioButton.h" |
8 | 8 |
9 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h" | 9 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h" |
10 #include "fpdfsdk/include/fsdk_mgr.h" | 10 #include "fpdfsdk/include/fsdk_mgr.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 return TRUE; | 67 return TRUE; |
68 } | 68 } |
69 default: | 69 default: |
70 return CFFL_FormFiller::OnChar(pAnnot, nChar, nFlags); | 70 return CFFL_FormFiller::OnChar(pAnnot, nChar, nFlags); |
71 } | 71 } |
72 } | 72 } |
73 | 73 |
74 FX_BOOL CFFL_RadioButton::OnLButtonUp(CPDFSDK_PageView* pPageView, | 74 FX_BOOL CFFL_RadioButton::OnLButtonUp(CPDFSDK_PageView* pPageView, |
75 CPDFSDK_Annot* pAnnot, | 75 CPDFSDK_Annot* pAnnot, |
76 FX_UINT nFlags, | 76 FX_UINT nFlags, |
77 const CPDF_Point& point) { | 77 const CFX_FloatPoint& point) { |
78 CFFL_Button::OnLButtonUp(pPageView, pAnnot, nFlags, point); | 78 CFFL_Button::OnLButtonUp(pPageView, pAnnot, nFlags, point); |
79 | 79 |
80 if (IsValid()) { | 80 if (IsValid()) { |
81 if (CPWL_RadioButton* pWnd = | 81 if (CPWL_RadioButton* pWnd = |
82 (CPWL_RadioButton*)GetPDFWindow(pPageView, TRUE)) | 82 (CPWL_RadioButton*)GetPDFWindow(pPageView, TRUE)) |
83 pWnd->SetCheck(TRUE); | 83 pWnd->SetCheck(TRUE); |
84 | 84 |
85 if (!CommitData(pPageView, nFlags)) | 85 if (!CommitData(pPageView, nFlags)) |
86 return FALSE; | 86 return FALSE; |
87 } | 87 } |
(...skipping 24 matching lines...) Expand all Loading... |
112 } | 112 } |
113 } | 113 } |
114 } | 114 } |
115 } | 115 } |
116 | 116 |
117 m_pWidget->SetCheck(bNewChecked, FALSE); | 117 m_pWidget->SetCheck(bNewChecked, FALSE); |
118 m_pWidget->UpdateField(); | 118 m_pWidget->UpdateField(); |
119 SetChangeMark(); | 119 SetChangeMark(); |
120 } | 120 } |
121 } | 121 } |
OLD | NEW |