| 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/theme/cfwl_monthcalendartp.h" | 7 #include "xfa/fwl/theme/cfwl_monthcalendartp.h" |
| 8 | 8 |
| 9 #include "xfa/fde/tto/fde_textout.h" | 9 #include "xfa/fde/tto/fde_textout.h" |
| 10 #include "xfa/fwl/basewidget/ifwl_monthcalendar.h" | 10 #include "xfa/fwl/basewidget/ifwl_monthcalendar.h" |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 default: { bDefPro = TRUE; } | 342 default: { bDefPro = TRUE; } |
| 343 } | 343 } |
| 344 if (!bDefPro) { | 344 if (!bDefPro) { |
| 345 if (bDwordVal) { | 345 if (bDwordVal) { |
| 346 return &m_dwValue; | 346 return &m_dwValue; |
| 347 } | 347 } |
| 348 return &m_fValue; | 348 return &m_fValue; |
| 349 } | 349 } |
| 350 return CFWL_WidgetTP::GetCapacity(pThemePart, dwCapacity); | 350 return CFWL_WidgetTP::GetCapacity(pThemePart, dwCapacity); |
| 351 } | 351 } |
| 352 FWL_ERR CFWL_MonthCalendarTP::Initialize() { | 352 FWL_Error CFWL_MonthCalendarTP::Initialize() { |
| 353 InitTTO(); | 353 InitTTO(); |
| 354 return CFWL_WidgetTP::Initialize(); | 354 return CFWL_WidgetTP::Initialize(); |
| 355 } | 355 } |
| 356 FWL_ERR CFWL_MonthCalendarTP::Finalize() { | 356 FWL_Error CFWL_MonthCalendarTP::Finalize() { |
| 357 FinalizeTTO(); | 357 FinalizeTTO(); |
| 358 return CFWL_WidgetTP::Finalize(); | 358 return CFWL_WidgetTP::Finalize(); |
| 359 } | 359 } |
| 360 FX_BOOL CFWL_MonthCalendarTP::DrawTotalBK(CFWL_ThemeBackground* pParams, | 360 FX_BOOL CFWL_MonthCalendarTP::DrawTotalBK(CFWL_ThemeBackground* pParams, |
| 361 CFX_Matrix* pMatrix) { | 361 CFX_Matrix* pMatrix) { |
| 362 CFX_Path path; | 362 CFX_Path path; |
| 363 path.Create(); | 363 path.Create(); |
| 364 CFX_RectF rtTotal(pParams->m_rtPart); | 364 CFX_RectF rtTotal(pParams->m_rtPart); |
| 365 path.AddRectangle(rtTotal.left, rtTotal.top, rtTotal.width, rtTotal.height); | 365 path.AddRectangle(rtTotal.left, rtTotal.top, rtTotal.width, rtTotal.height); |
| 366 pParams->m_pGraphics->SaveGraphState(); | 366 pParams->m_pGraphics->SaveGraphState(); |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 559 } else { | 559 } else { |
| 560 m_pThemeData->clrCaption = ArgbEncode(0xff, 128, 128, 0); | 560 m_pThemeData->clrCaption = ArgbEncode(0xff, 128, 128, 0); |
| 561 m_pThemeData->clrSeperator = ArgbEncode(0xff, 128, 128, 64); | 561 m_pThemeData->clrSeperator = ArgbEncode(0xff, 128, 128, 64); |
| 562 m_pThemeData->clrDatesHoverBK = ArgbEncode(0xff, 217, 220, 191); | 562 m_pThemeData->clrDatesHoverBK = ArgbEncode(0xff, 217, 220, 191); |
| 563 m_pThemeData->clrDatesSelectedBK = ArgbEncode(0xff, 204, 208, 183); | 563 m_pThemeData->clrDatesSelectedBK = ArgbEncode(0xff, 204, 208, 183); |
| 564 m_pThemeData->clrDatesCircle = ArgbEncode(0xff, 128, 128, 0); | 564 m_pThemeData->clrDatesCircle = ArgbEncode(0xff, 128, 128, 0); |
| 565 m_pThemeData->clrToday = ArgbEncode(0xff, 0, 0, 0); | 565 m_pThemeData->clrToday = ArgbEncode(0xff, 0, 0, 0); |
| 566 m_pThemeData->clrBK = ArgbEncode(0xff, 255, 255, 255); | 566 m_pThemeData->clrBK = ArgbEncode(0xff, 255, 255, 255); |
| 567 } | 567 } |
| 568 } | 568 } |
| OLD | NEW |