| 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/fxfa/app/xfa_fwltheme.h" | 7 #include "xfa/fxfa/app/xfa_fwltheme.h" |
| 8 | 8 |
| 9 #include "xfa/fde/tto/fde_textout.h" | 9 #include "xfa/fde/tto/fde_textout.h" |
| 10 #include "xfa/fgas/crt/fgas_codepage.h" | 10 #include "xfa/fgas/crt/fgas_codepage.h" |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 return &m_SizeAboveBelow; | 261 return &m_SizeAboveBelow; |
| 262 } break; | 262 } break; |
| 263 default: | 263 default: |
| 264 break; | 264 break; |
| 265 } | 265 } |
| 266 if (pThemePart->m_pWidget->GetClassID() == FWL_CLASSHASH_MonthCalendar && | 266 if (pThemePart->m_pWidget->GetClassID() == FWL_CLASSHASH_MonthCalendar && |
| 267 dwCapacity >= FWL_MCCAPACITY_Sun && dwCapacity <= FWL_MCCAPACITY_Today) { | 267 dwCapacity >= FWL_MCCAPACITY_Sun && dwCapacity <= FWL_MCCAPACITY_Today) { |
| 268 if (CXFA_FFWidget* pWidget = | 268 if (CXFA_FFWidget* pWidget = |
| 269 XFA_ThemeGetOuterWidget(pThemePart->m_pWidget)) { | 269 XFA_ThemeGetOuterWidget(pThemePart->m_pWidget)) { |
| 270 IXFA_AppProvider* pAppProvider = pWidget->GetAppProvider(); | 270 IXFA_AppProvider* pAppProvider = pWidget->GetAppProvider(); |
| 271 m_wsResource.Empty(); | 271 m_wsResource.clear(); |
| 272 pAppProvider->LoadString( | 272 pAppProvider->LoadString( |
| 273 XFA_IDS_StringWeekDay_Sun + dwCapacity - FWL_WGTCAPACITY_MAX - 5, | 273 XFA_IDS_StringWeekDay_Sun + dwCapacity - FWL_WGTCAPACITY_MAX - 5, |
| 274 m_wsResource); | 274 m_wsResource); |
| 275 if (!m_wsResource.IsEmpty()) { | 275 if (!m_wsResource.IsEmpty()) { |
| 276 return &m_wsResource; | 276 return &m_wsResource; |
| 277 } | 277 } |
| 278 } | 278 } |
| 279 } | 279 } |
| 280 return GetTheme(pThemePart->m_pWidget)->GetCapacity(pThemePart, dwCapacity); | 280 return GetTheme(pThemePart->m_pWidget)->GetCapacity(pThemePart, dwCapacity); |
| 281 } | 281 } |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 } | 423 } |
| 424 } | 424 } |
| 425 CFX_Color crLine(cr); | 425 CFX_Color crLine(cr); |
| 426 pParams->m_pGraphics->SetStrokeColor(&crLine); | 426 pParams->m_pGraphics->SetStrokeColor(&crLine); |
| 427 pParams->m_pGraphics->SetLineWidth(fWidth); | 427 pParams->m_pGraphics->SetLineWidth(fWidth); |
| 428 pParams->m_pGraphics->StrokePath(pParams->m_pPath, &pParams->m_matrix); | 428 pParams->m_pGraphics->StrokePath(pParams->m_pPath, &pParams->m_matrix); |
| 429 return TRUE; | 429 return TRUE; |
| 430 } | 430 } |
| 431 return CFWL_EditTP::DrawBackground(pParams); | 431 return CFWL_EditTP::DrawBackground(pParams); |
| 432 } | 432 } |
| OLD | NEW |