Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(341)

Side by Side Diff: xfa/fwl/core/ifwl_monthcalendar.cpp

Issue 2506253004: Split fwl/core class pt I. (Closed)
Patch Set: Rebase to master Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fwl/core/ifwl_monthcalendar.h ('k') | xfa/fwl/core/ifwl_picturebox.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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() {}
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_monthcalendar.h ('k') | xfa/fwl/core/ifwl_picturebox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698