| 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/core/ifwl_monthcalendar.h" | 7 #include "xfa/fwl/core/ifwl_monthcalendar.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 pTheme->GetCapacity(¶ms, CFWL_WidgetCapacity::November)); | 115 pTheme->GetCapacity(¶ms, CFWL_WidgetCapacity::November)); |
| 116 } | 116 } |
| 117 | 117 |
| 118 return static_cast<CFX_WideString*>( | 118 return static_cast<CFX_WideString*>( |
| 119 pTheme->GetCapacity(¶ms, CFWL_WidgetCapacity::December)); | 119 pTheme->GetCapacity(¶ms, CFWL_WidgetCapacity::December)); |
| 120 } | 120 } |
| 121 | 121 |
| 122 } // namespace | 122 } // namespace |
| 123 | 123 |
| 124 IFWL_MonthCalendar::IFWL_MonthCalendar( | 124 IFWL_MonthCalendar::IFWL_MonthCalendar( |
| 125 const IFWL_App* app, | 125 const CFWL_App* app, |
| 126 std::unique_ptr<CFWL_WidgetProperties> properties, | 126 std::unique_ptr<CFWL_WidgetProperties> properties, |
| 127 IFWL_Widget* pOuter) | 127 IFWL_Widget* pOuter) |
| 128 : IFWL_Widget(app, std::move(properties), pOuter), | 128 : IFWL_Widget(app, std::move(properties), pOuter), |
| 129 m_bInitialized(false), | 129 m_bInitialized(false), |
| 130 m_pDateTime(new CFX_DateTime), | 130 m_pDateTime(new CFX_DateTime), |
| 131 m_iCurYear(2011), | 131 m_iCurYear(2011), |
| 132 m_iCurMonth(1), | 132 m_iCurMonth(1), |
| 133 m_iYear(2011), | 133 m_iYear(2011), |
| 134 m_iMonth(1), | 134 m_iMonth(1), |
| 135 m_iDay(1), | 135 m_iDay(1), |
| (...skipping 974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1110 uint32_t dwSt, | 1110 uint32_t dwSt, |
| 1111 CFX_RectF rc, | 1111 CFX_RectF rc, |
| 1112 CFX_WideString& wsday) | 1112 CFX_WideString& wsday) |
| 1113 : iDay(day), | 1113 : iDay(day), |
| 1114 iDayOfWeek(dayofweek), | 1114 iDayOfWeek(dayofweek), |
| 1115 dwStates(dwSt), | 1115 dwStates(dwSt), |
| 1116 rect(rc), | 1116 rect(rc), |
| 1117 wsDay(wsday) {} | 1117 wsDay(wsday) {} |
| 1118 | 1118 |
| 1119 IFWL_MonthCalendar::DATEINFO::~DATEINFO() {} | 1119 IFWL_MonthCalendar::DATEINFO::~DATEINFO() {} |
| OLD | NEW |