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 | 10 |
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
717 pTheme->GetCapacity(&part, CFWL_WidgetCapacity::Width)); | 717 pTheme->GetCapacity(&part, CFWL_WidgetCapacity::Width)); |
718 if (m_pProperties->m_dwStyleExes & FWL_STYLEEXT_MCD_WeekNumbers) | 718 if (m_pProperties->m_dwStyleExes & FWL_STYLEEXT_MCD_WeekNumbers) |
719 m_fMCWid += m_fWeekNumWid; | 719 m_fMCWid += m_fWeekNumWid; |
720 | 720 |
721 m_fMCHei = *static_cast<FX_FLOAT*>( | 721 m_fMCHei = *static_cast<FX_FLOAT*>( |
722 pTheme->GetCapacity(&part, CFWL_WidgetCapacity::Height)); | 722 pTheme->GetCapacity(&part, CFWL_WidgetCapacity::Height)); |
723 } | 723 } |
724 | 724 |
725 void IFWL_MonthCalendar::InitDate() { | 725 void IFWL_MonthCalendar::InitDate() { |
726 if (m_pProperties->m_pDataProvider) { | 726 if (m_pProperties->m_pDataProvider) { |
727 IFWL_MonthCalendarDP* pDateProv = | 727 IFWL_MonthCalendar::DataProvider* pDateProv = |
728 static_cast<IFWL_MonthCalendarDP*>(m_pProperties->m_pDataProvider); | 728 static_cast<IFWL_MonthCalendar::DataProvider*>( |
| 729 m_pProperties->m_pDataProvider); |
729 m_iYear = pDateProv->GetCurYear(this); | 730 m_iYear = pDateProv->GetCurYear(this); |
730 m_iMonth = pDateProv->GetCurMonth(this); | 731 m_iMonth = pDateProv->GetCurMonth(this); |
731 m_iDay = pDateProv->GetCurDay(this); | 732 m_iDay = pDateProv->GetCurDay(this); |
732 m_iCurYear = m_iYear; | 733 m_iCurYear = m_iYear; |
733 m_iCurMonth = m_iMonth; | 734 m_iCurMonth = m_iMonth; |
734 } else { | 735 } else { |
735 m_iDay = 1; | 736 m_iDay = 1; |
736 m_iMonth = 1; | 737 m_iMonth = 1; |
737 m_iYear = 1; | 738 m_iYear = 1; |
738 m_iCurYear = m_iYear; | 739 m_iCurYear = m_iYear; |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1108 uint32_t dwSt, | 1109 uint32_t dwSt, |
1109 CFX_RectF rc, | 1110 CFX_RectF rc, |
1110 CFX_WideString& wsday) | 1111 CFX_WideString& wsday) |
1111 : iDay(day), | 1112 : iDay(day), |
1112 iDayOfWeek(dayofweek), | 1113 iDayOfWeek(dayofweek), |
1113 dwStates(dwSt), | 1114 dwStates(dwSt), |
1114 rect(rc), | 1115 rect(rc), |
1115 wsDay(wsday) {} | 1116 wsDay(wsday) {} |
1116 | 1117 |
1117 IFWL_MonthCalendar::DATEINFO::~DATEINFO() {} | 1118 IFWL_MonthCalendar::DATEINFO::~DATEINFO() {} |
OLD | NEW |