| 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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 default: { bDefPro = TRUE; } | 352 default: { bDefPro = TRUE; } |
| 353 } | 353 } |
| 354 if (!bDefPro) { | 354 if (!bDefPro) { |
| 355 if (bDwordVal) { | 355 if (bDwordVal) { |
| 356 return &m_dwValue; | 356 return &m_dwValue; |
| 357 } | 357 } |
| 358 return &m_fValue; | 358 return &m_fValue; |
| 359 } | 359 } |
| 360 return CFWL_WidgetTP::GetCapacity(pThemePart, dwCapacity); | 360 return CFWL_WidgetTP::GetCapacity(pThemePart, dwCapacity); |
| 361 } | 361 } |
| 362 FWL_ERR CFWL_MonthCalendarTP::Initialize() { | 362 FWL_Error CFWL_MonthCalendarTP::Initialize() { |
| 363 InitTTO(); | 363 InitTTO(); |
| 364 return CFWL_WidgetTP::Initialize(); | 364 return CFWL_WidgetTP::Initialize(); |
| 365 } | 365 } |
| 366 FWL_ERR CFWL_MonthCalendarTP::Finalize() { | 366 FWL_Error CFWL_MonthCalendarTP::Finalize() { |
| 367 FinalizeTTO(); | 367 FinalizeTTO(); |
| 368 return CFWL_WidgetTP::Finalize(); | 368 return CFWL_WidgetTP::Finalize(); |
| 369 } | 369 } |
| 370 FX_BOOL CFWL_MonthCalendarTP::DrawTotalBK(CFWL_ThemeBackground* pParams, | 370 FX_BOOL CFWL_MonthCalendarTP::DrawTotalBK(CFWL_ThemeBackground* pParams, |
| 371 CFX_Matrix* pMatrix) { | 371 CFX_Matrix* pMatrix) { |
| 372 CFX_Path path; | 372 CFX_Path path; |
| 373 path.Create(); | 373 path.Create(); |
| 374 CFX_RectF rtTotal(pParams->m_rtPart); | 374 CFX_RectF rtTotal(pParams->m_rtPart); |
| 375 path.AddRectangle(rtTotal.left, rtTotal.top, rtTotal.width, rtTotal.height); | 375 path.AddRectangle(rtTotal.left, rtTotal.top, rtTotal.width, rtTotal.height); |
| 376 pParams->m_pGraphics->SaveGraphState(); | 376 pParams->m_pGraphics->SaveGraphState(); |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 569 } else { | 569 } else { |
| 570 m_pThemeData->clrCaption = ArgbEncode(0xff, 128, 128, 0); | 570 m_pThemeData->clrCaption = ArgbEncode(0xff, 128, 128, 0); |
| 571 m_pThemeData->clrSeperator = ArgbEncode(0xff, 128, 128, 64); | 571 m_pThemeData->clrSeperator = ArgbEncode(0xff, 128, 128, 64); |
| 572 m_pThemeData->clrDatesHoverBK = ArgbEncode(0xff, 217, 220, 191); | 572 m_pThemeData->clrDatesHoverBK = ArgbEncode(0xff, 217, 220, 191); |
| 573 m_pThemeData->clrDatesSelectedBK = ArgbEncode(0xff, 204, 208, 183); | 573 m_pThemeData->clrDatesSelectedBK = ArgbEncode(0xff, 204, 208, 183); |
| 574 m_pThemeData->clrDatesCircle = ArgbEncode(0xff, 128, 128, 0); | 574 m_pThemeData->clrDatesCircle = ArgbEncode(0xff, 128, 128, 0); |
| 575 m_pThemeData->clrToday = ArgbEncode(0xff, 0, 0, 0); | 575 m_pThemeData->clrToday = ArgbEncode(0xff, 0, 0, 0); |
| 576 m_pThemeData->clrBK = ArgbEncode(0xff, 255, 255, 255); | 576 m_pThemeData->clrBK = ArgbEncode(0xff, 255, 255, 255); |
| 577 } | 577 } |
| 578 } | 578 } |
| OLD | NEW |