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 "xfa/fwl/basewidget/fwl_datetimepickerimp.h" | 7 #include "xfa/fwl/basewidget/fwl_datetimepickerimp.h" |
8 | 8 |
9 #include "xfa/fwl/basewidget/fwl_editimp.h" | 9 #include "xfa/fwl/basewidget/fwl_editimp.h" |
10 #include "xfa/fwl/basewidget/fwl_formproxyimp.h" | 10 #include "xfa/fwl/basewidget/fwl_formproxyimp.h" |
(...skipping 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1174 } | 1174 } |
1175 if (m_pOwner->m_pEdit->GetStates() & FWL_WGTSTATE_Focused) { | 1175 if (m_pOwner->m_pEdit->GetStates() & FWL_WGTSTATE_Focused) { |
1176 pMsg->m_pSrcTarget = m_pOwner->m_pEdit.get(); | 1176 pMsg->m_pSrcTarget = m_pOwner->m_pEdit.get(); |
1177 IFWL_WidgetDelegate* pDelegate = m_pOwner->m_pEdit->SetDelegate(NULL); | 1177 IFWL_WidgetDelegate* pDelegate = m_pOwner->m_pEdit->SetDelegate(NULL); |
1178 pDelegate->OnProcessMessage(pMsg); | 1178 pDelegate->OnProcessMessage(pMsg); |
1179 } | 1179 } |
1180 } | 1180 } |
1181 rtInvalidate.Inflate(2, 2); | 1181 rtInvalidate.Inflate(2, 2); |
1182 m_pOwner->Repaint(&rtInvalidate); | 1182 m_pOwner->Repaint(&rtInvalidate); |
1183 } | 1183 } |
| 1184 |
| 1185 CFWL_DateTimePickerImp::CFWL_MonthCalendarImpDP::CFWL_MonthCalendarImpDP() { |
| 1186 m_iCurYear = 2010; |
| 1187 m_iCurMonth = 3; |
| 1188 m_iCurDay = 29; |
| 1189 } |
| 1190 |
| 1191 FWL_Error CFWL_DateTimePickerImp::CFWL_MonthCalendarImpDP::GetCaption( |
| 1192 IFWL_Widget* pWidget, |
| 1193 CFX_WideString& wsCaption) { |
| 1194 return FWL_Error::Succeeded; |
| 1195 } |
| 1196 |
| 1197 int32_t CFWL_DateTimePickerImp::CFWL_MonthCalendarImpDP::GetCurDay( |
| 1198 IFWL_Widget* pWidget) { |
| 1199 return m_iCurDay; |
| 1200 } |
| 1201 |
| 1202 int32_t CFWL_DateTimePickerImp::CFWL_MonthCalendarImpDP::GetCurMonth( |
| 1203 IFWL_Widget* pWidget) { |
| 1204 return m_iCurMonth; |
| 1205 } |
| 1206 |
| 1207 int32_t CFWL_DateTimePickerImp::CFWL_MonthCalendarImpDP::GetCurYear( |
| 1208 IFWL_Widget* pWidget) { |
| 1209 return m_iCurYear; |
| 1210 } |
OLD | NEW |