| 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/core/fwl_formimp.h" | 7 #include "xfa/fwl/core/fwl_formimp.h" |
| 8 | 8 |
| 9 #include "xfa/fde/tto/fde_textout.h" | 9 #include "xfa/fde/tto/fde_textout.h" |
| 10 #include "xfa/fwl/basewidget/fwl_formproxyimp.h" | 10 #include "xfa/fwl/basewidget/fwl_formproxyimp.h" |
| (...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 750 CFX_DIBitmap* pSmallIcon = pData->GetIcon(m_pInterface, FALSE); | 750 CFX_DIBitmap* pSmallIcon = pData->GetIcon(m_pInterface, FALSE); |
| 751 if (pBigIcon) | 751 if (pBigIcon) |
| 752 m_pBigIcon = pBigIcon; | 752 m_pBigIcon = pBigIcon; |
| 753 if (pSmallIcon) | 753 if (pSmallIcon) |
| 754 m_pSmallIcon = pSmallIcon; | 754 m_pSmallIcon = pSmallIcon; |
| 755 } | 755 } |
| 756 void CFWL_FormImp::UpdateCaption() { | 756 void CFWL_FormImp::UpdateCaption() { |
| 757 CFWL_WidgetMgr* pWidgetMgr = CFWL_WidgetMgr::GetInstance(); | 757 CFWL_WidgetMgr* pWidgetMgr = CFWL_WidgetMgr::GetInstance(); |
| 758 if (!pWidgetMgr) | 758 if (!pWidgetMgr) |
| 759 return; | 759 return; |
| 760 IFWL_FormDP* pData = | 760 IFWL_DataProvider* pData = m_pProperties->m_pDataProvider; |
| 761 static_cast<IFWL_FormDP*>(m_pProperties->m_pDataProvider); | |
| 762 if (!pData) | 761 if (!pData) |
| 763 return; | 762 return; |
| 764 CFX_WideString text; | 763 CFX_WideString text; |
| 765 pData->GetCaption(m_pInterface, text); | 764 pData->GetCaption(m_pInterface, text); |
| 766 } | 765 } |
| 767 void CFWL_FormImp::DoWidthLimit(FX_FLOAT& fLeft, | 766 void CFWL_FormImp::DoWidthLimit(FX_FLOAT& fLeft, |
| 768 FX_FLOAT& fWidth, | 767 FX_FLOAT& fWidth, |
| 769 FX_FLOAT fCurX, | 768 FX_FLOAT fCurX, |
| 770 FX_FLOAT fSpace, | 769 FX_FLOAT fSpace, |
| 771 FX_FLOAT fLimitMin, | 770 FX_FLOAT fLimitMin, |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1135 | 1134 |
| 1136 uint32_t CFWL_SysBtn::GetPartState() const { | 1135 uint32_t CFWL_SysBtn::GetPartState() const { |
| 1137 if (IsDisabled()) | 1136 if (IsDisabled()) |
| 1138 return CFWL_PartState_Disabled; | 1137 return CFWL_PartState_Disabled; |
| 1139 if (m_dwState & FWL_SYSBUTTONSTATE_Pressed) | 1138 if (m_dwState & FWL_SYSBUTTONSTATE_Pressed) |
| 1140 return CFWL_PartState_Pressed; | 1139 return CFWL_PartState_Pressed; |
| 1141 if (m_dwState & FWL_SYSBUTTONSTATE_Hover) | 1140 if (m_dwState & FWL_SYSBUTTONSTATE_Hover) |
| 1142 return CFWL_PartState_Hovered; | 1141 return CFWL_PartState_Hovered; |
| 1143 return CFWL_PartState_Normal; | 1142 return CFWL_PartState_Normal; |
| 1144 } | 1143 } |
| OLD | NEW |