| 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 #ifndef XFA_FWL_CORE_CFWL_MONTHCALENDAR_H_ | 7 #ifndef XFA_FWL_CORE_CFWL_MONTHCALENDAR_H_ |
| 8 #define XFA_FWL_CORE_CFWL_MONTHCALENDAR_H_ | 8 #define XFA_FWL_CORE_CFWL_MONTHCALENDAR_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 const CFX_Matrix* pMatrix); | 129 const CFX_Matrix* pMatrix); |
| 130 void DrawDatesIn(CFX_Graphics* pGraphics, | 130 void DrawDatesIn(CFX_Graphics* pGraphics, |
| 131 IFWL_ThemeProvider* pTheme, | 131 IFWL_ThemeProvider* pTheme, |
| 132 const CFX_Matrix* pMatrix); | 132 const CFX_Matrix* pMatrix); |
| 133 void DrawDatesOut(CFX_Graphics* pGraphics, | 133 void DrawDatesOut(CFX_Graphics* pGraphics, |
| 134 IFWL_ThemeProvider* pTheme, | 134 IFWL_ThemeProvider* pTheme, |
| 135 const CFX_Matrix* pMatrix); | 135 const CFX_Matrix* pMatrix); |
| 136 void DrawDatesInCircle(CFX_Graphics* pGraphics, | 136 void DrawDatesInCircle(CFX_Graphics* pGraphics, |
| 137 IFWL_ThemeProvider* pTheme, | 137 IFWL_ThemeProvider* pTheme, |
| 138 const CFX_Matrix* pMatrix); | 138 const CFX_Matrix* pMatrix); |
| 139 CFX_SizeF CalcSize(bool bAutoSize = false); | 139 CFX_SizeF CalcSize(); |
| 140 void Layout(); | 140 void Layout(); |
| 141 void CalcHeadSize(); | 141 void CalcHeadSize(); |
| 142 void CalcTodaySize(); | 142 void CalcTodaySize(); |
| 143 void CalDateItem(); | 143 void CalDateItem(); |
| 144 void GetCapValue(); | 144 void GetCapValue(); |
| 145 void InitDate(); | 145 void InitDate(); |
| 146 void ClearDateItem(); | 146 void ClearDateItem(); |
| 147 void ResetDateItem(); | 147 void ResetDateItem(); |
| 148 void NextMonth(); | 148 void NextMonth(); |
| 149 void PrevMonth(); | 149 void PrevMonth(); |
| 150 void ChangeToMonth(int32_t iYear, int32_t iMonth); | 150 void ChangeToMonth(int32_t iYear, int32_t iMonth); |
| 151 void RemoveSelDay(int32_t iDay, bool bAll = false); | 151 void RemoveSelDay(); |
| 152 void AddSelDay(int32_t iDay); | 152 void AddSelDay(int32_t iDay); |
| 153 void JumpToToday(); | 153 void JumpToToday(); |
| 154 void GetHeadText(int32_t iYear, int32_t iMonth, CFX_WideString& wsHead); | 154 void GetHeadText(int32_t iYear, int32_t iMonth, CFX_WideString& wsHead); |
| 155 void GetTodayText(int32_t iYear, | 155 void GetTodayText(int32_t iYear, |
| 156 int32_t iMonth, | 156 int32_t iMonth, |
| 157 int32_t iDay, | 157 int32_t iDay, |
| 158 CFX_WideString& wsToday); | 158 CFX_WideString& wsToday); |
| 159 int32_t GetDayAtPoint(FX_FLOAT x, FX_FLOAT y); | 159 int32_t GetDayAtPoint(FX_FLOAT x, FX_FLOAT y); |
| 160 void GetDayRect(int32_t iDay, CFX_RectF& rtDay); | 160 void GetDayRect(int32_t iDay, CFX_RectF& rtDay); |
| 161 void OnLButtonDown(CFWL_MsgMouse* pMsg); | 161 void OnLButtonDown(CFWL_MsgMouse* pMsg); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 FX_FLOAT m_fDateCellHei; | 218 FX_FLOAT m_fDateCellHei; |
| 219 FX_FLOAT m_fTodayWid; | 219 FX_FLOAT m_fTodayWid; |
| 220 FX_FLOAT m_fTodayHei; | 220 FX_FLOAT m_fTodayHei; |
| 221 FX_FLOAT m_fTodayFlagWid; | 221 FX_FLOAT m_fTodayFlagWid; |
| 222 FX_FLOAT m_fMCWid; | 222 FX_FLOAT m_fMCWid; |
| 223 FX_FLOAT m_fMCHei; | 223 FX_FLOAT m_fMCHei; |
| 224 bool m_bFlag; | 224 bool m_bFlag; |
| 225 }; | 225 }; |
| 226 | 226 |
| 227 #endif // XFA_FWL_CORE_CFWL_MONTHCALENDAR_H_ | 227 #endif // XFA_FWL_CORE_CFWL_MONTHCALENDAR_H_ |
| OLD | NEW |