| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 CFWL_FormImp::~CFWL_FormImp() { | 94 CFWL_FormImp::~CFWL_FormImp() { |
| 95 RemoveSysButtons(); | 95 RemoveSysButtons(); |
| 96 delete m_pNoteLoop; | 96 delete m_pNoteLoop; |
| 97 } | 97 } |
| 98 | 98 |
| 99 FWL_ERR CFWL_FormImp::GetClassName(CFX_WideString& wsClass) const { | 99 FWL_ERR CFWL_FormImp::GetClassName(CFX_WideString& wsClass) const { |
| 100 wsClass = FWL_CLASS_Form; | 100 wsClass = FWL_CLASS_Form; |
| 101 return FWL_ERR_Succeeded; | 101 return FWL_ERR_Succeeded; |
| 102 } | 102 } |
| 103 | 103 |
| 104 uint32_t CFWL_FormImp::GetClassID() const { | |
| 105 return FWL_CLASSHASH_Form; | |
| 106 } | |
| 107 | |
| 108 FX_BOOL CFWL_FormImp::IsInstance(const CFX_WideStringC& wsClass) const { | 104 FX_BOOL CFWL_FormImp::IsInstance(const CFX_WideStringC& wsClass) const { |
| 109 if (wsClass == CFX_WideStringC(FWL_CLASS_Form)) | 105 if (wsClass == CFX_WideStringC(FWL_CLASS_Form)) |
| 110 return TRUE; | 106 return TRUE; |
| 111 return CFWL_WidgetImp::IsInstance(wsClass); | 107 return CFWL_WidgetImp::IsInstance(wsClass); |
| 112 } | 108 } |
| 113 | 109 |
| 114 FWL_ERR CFWL_FormImp::Initialize() { | 110 FWL_ERR CFWL_FormImp::Initialize() { |
| 115 if (CFWL_WidgetImp::Initialize() != FWL_ERR_Succeeded) | 111 if (CFWL_WidgetImp::Initialize() != FWL_ERR_Succeeded) |
| 116 return FWL_ERR_Indefinite; | 112 return FWL_ERR_Indefinite; |
| 117 RegisterForm(); | 113 RegisterForm(); |
| (...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1140 } | 1136 } |
| 1141 void CFWL_FormImpDelegate::OnWindowMove(CFWL_MsgWindowMove* pMsg) { | 1137 void CFWL_FormImpDelegate::OnWindowMove(CFWL_MsgWindowMove* pMsg) { |
| 1142 m_pOwner->m_pProperties->m_rtWidget.left = pMsg->m_fx; | 1138 m_pOwner->m_pProperties->m_rtWidget.left = pMsg->m_fx; |
| 1143 m_pOwner->m_pProperties->m_rtWidget.top = pMsg->m_fy; | 1139 m_pOwner->m_pProperties->m_rtWidget.top = pMsg->m_fy; |
| 1144 } | 1140 } |
| 1145 void CFWL_FormImpDelegate::OnClose(CFWL_MsgClose* pMsg) { | 1141 void CFWL_FormImpDelegate::OnClose(CFWL_MsgClose* pMsg) { |
| 1146 CFWL_EvtClose eClose; | 1142 CFWL_EvtClose eClose; |
| 1147 eClose.m_pSrcTarget = m_pOwner->m_pInterface; | 1143 eClose.m_pSrcTarget = m_pOwner->m_pInterface; |
| 1148 m_pOwner->DispatchEvent(&eClose); | 1144 m_pOwner->DispatchEvent(&eClose); |
| 1149 } | 1145 } |
| OLD | NEW |