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/lightwidget/cfwl_datetimepicker.h" | 7 #include "xfa/fwl/lightwidget/cfwl_datetimepicker.h" |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 int32_t CFWL_DateTimePicker::GetSelRange(int32_t nIndex, int32_t& nStart) { | 52 int32_t CFWL_DateTimePicker::GetSelRange(int32_t nIndex, int32_t& nStart) { |
53 return static_cast<IFWL_DateTimePicker*>(m_pIface) | 53 return static_cast<IFWL_DateTimePicker*>(m_pIface) |
54 ->GetSelRange(nIndex, nStart); | 54 ->GetSelRange(nIndex, nStart); |
55 } | 55 } |
56 | 56 |
57 FWL_ERR CFWL_DateTimePicker::GetEditText(CFX_WideString& wsText) { | 57 FWL_ERR CFWL_DateTimePicker::GetEditText(CFX_WideString& wsText) { |
58 return static_cast<IFWL_DateTimePicker*>(m_pIface)->GetEditText(wsText); | 58 return static_cast<IFWL_DateTimePicker*>(m_pIface)->GetEditText(wsText); |
59 } | 59 } |
60 | 60 |
61 FWL_ERR CFWL_DateTimePicker::SetEditText(const CFX_WideStringC& wsText) { | 61 FWL_ERR CFWL_DateTimePicker::SetEditText(const CFX_WideString& wsText) { |
62 return static_cast<IFWL_DateTimePicker*>(m_pIface)->SetEditText(wsText); | 62 return static_cast<IFWL_DateTimePicker*>(m_pIface)->SetEditText(wsText); |
63 } | 63 } |
64 | 64 |
65 FWL_ERR CFWL_DateTimePicker::GetCurSel(int32_t& iYear, | 65 FWL_ERR CFWL_DateTimePicker::GetCurSel(int32_t& iYear, |
66 int32_t& iMonth, | 66 int32_t& iMonth, |
67 int32_t& iDay) { | 67 int32_t& iDay) { |
68 return static_cast<IFWL_DateTimePicker*>(m_pIface) | 68 return static_cast<IFWL_DateTimePicker*>(m_pIface) |
69 ->GetCurSel(iYear, iMonth, iDay); | 69 ->GetCurSel(iYear, iMonth, iDay); |
70 } | 70 } |
71 | 71 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 | 162 |
163 FWL_ERR CFWL_DateTimePicker::SetEditLimit(int32_t nLimit) { | 163 FWL_ERR CFWL_DateTimePicker::SetEditLimit(int32_t nLimit) { |
164 return static_cast<IFWL_DateTimePicker*>(m_pIface)->SetEditLimit(nLimit); | 164 return static_cast<IFWL_DateTimePicker*>(m_pIface)->SetEditLimit(nLimit); |
165 } | 165 } |
166 | 166 |
167 FWL_ERR CFWL_DateTimePicker::ModifyEditStylesEx(uint32_t dwStylesExAdded, | 167 FWL_ERR CFWL_DateTimePicker::ModifyEditStylesEx(uint32_t dwStylesExAdded, |
168 uint32_t dwStylesExRemoved) { | 168 uint32_t dwStylesExRemoved) { |
169 return static_cast<IFWL_DateTimePicker*>(m_pIface) | 169 return static_cast<IFWL_DateTimePicker*>(m_pIface) |
170 ->ModifyEditStylesEx(dwStylesExAdded, dwStylesExRemoved); | 170 ->ModifyEditStylesEx(dwStylesExAdded, dwStylesExRemoved); |
171 } | 171 } |
OLD | NEW |