| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | |
| 6 | |
| 7 #ifndef XFA_INCLUDE_FWL_THEME_MONTHCALENDARTP_H_ | |
| 8 #define XFA_INCLUDE_FWL_THEME_MONTHCALENDARTP_H_ | |
| 9 | |
| 10 #include "xfa/include/fwl/theme/widgettp.h" | |
| 11 | |
| 12 class CFWL_MonthCalendarTP : public CFWL_WidgetTP { | |
| 13 public: | |
| 14 CFWL_MonthCalendarTP(); | |
| 15 virtual ~CFWL_MonthCalendarTP(); | |
| 16 virtual FX_BOOL IsValidWidget(IFWL_Widget* pWidget); | |
| 17 virtual uint32_t SetThemeID(IFWL_Widget* pWidget, | |
| 18 uint32_t dwThemeID, | |
| 19 FX_BOOL bChildren = TRUE); | |
| 20 virtual FX_BOOL DrawBackground(CFWL_ThemeBackground* pParams); | |
| 21 virtual FX_BOOL DrawText(CFWL_ThemeText* pParams); | |
| 22 virtual void* GetCapacity(CFWL_ThemePart* pThemePart, uint32_t dwCapacity); | |
| 23 virtual FWL_ERR Initialize(); | |
| 24 virtual FWL_ERR Finalize(); | |
| 25 | |
| 26 protected: | |
| 27 FX_BOOL DrawTotalBK(CFWL_ThemeBackground* pParams, CFX_Matrix* pMatrix); | |
| 28 FX_BOOL DrawHeadBk(CFWL_ThemeBackground* pParams, CFX_Matrix* pMatrix); | |
| 29 FX_BOOL DrawLButton(CFWL_ThemeBackground* pParams, CFX_Matrix* pMatrix); | |
| 30 FX_BOOL DrawRButton(CFWL_ThemeBackground* pParams, CFX_Matrix* pMatrix); | |
| 31 FX_BOOL DrawDatesInBK(CFWL_ThemeBackground* pParams, CFX_Matrix* pMatrix); | |
| 32 FX_BOOL DrawDatesInCircle(CFWL_ThemeBackground* pParams, CFX_Matrix* pMatrix); | |
| 33 FX_BOOL DrawTodayCircle(CFWL_ThemeBackground* pParams, CFX_Matrix* pMatrix); | |
| 34 FX_BOOL DrawHSeperator(CFWL_ThemeBackground* pParams, CFX_Matrix* pMatrix); | |
| 35 FX_BOOL DrawWeekNumSep(CFWL_ThemeBackground* pParams, CFX_Matrix* pMatrix); | |
| 36 FWLTHEME_STATE GetState(uint32_t dwFWLStates); | |
| 37 void SetThemeData(uint32_t dwThemeID); | |
| 38 class MCThemeData { | |
| 39 public: | |
| 40 FX_ARGB clrCaption; | |
| 41 FX_ARGB clrSeperator; | |
| 42 FX_ARGB clrDatesHoverBK; | |
| 43 FX_ARGB clrDatesSelectedBK; | |
| 44 FX_ARGB clrDatesCircle; | |
| 45 FX_ARGB clrToday; | |
| 46 FX_ARGB clrBK; | |
| 47 } * m_pThemeData; | |
| 48 CFX_WideString wsResource; | |
| 49 }; | |
| 50 | |
| 51 #endif // XFA_INCLUDE_FWL_THEME_MONTHCALENDARTP_H_ | |
| OLD | NEW |