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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 m_pMaxBox(nullptr), | 72 m_pMaxBox(nullptr), |
73 m_pCaptionBox(nullptr), | 73 m_pCaptionBox(nullptr), |
74 m_pNoteLoop(nullptr), | 74 m_pNoteLoop(nullptr), |
75 m_pSubFocus(nullptr), | 75 m_pSubFocus(nullptr), |
76 m_fCXBorder(0), | 76 m_fCXBorder(0), |
77 m_fCYBorder(0), | 77 m_fCYBorder(0), |
78 m_iCaptureBtn(-1), | 78 m_iCaptureBtn(-1), |
79 m_iSysBox(0), | 79 m_iSysBox(0), |
80 m_eResizeType(FORM_RESIZETYPE_None), | 80 m_eResizeType(FORM_RESIZETYPE_None), |
81 m_bLButtonDown(FALSE), | 81 m_bLButtonDown(FALSE), |
82 m_bMaximized(FALSE), | 82 m_bMaximized(false), |
83 m_bSetMaximize(FALSE), | 83 m_bSetMaximize(FALSE), |
84 m_bCustomizeLayout(FALSE), | 84 m_bCustomizeLayout(FALSE), |
85 m_eFormSize(FWL_FORMSIZE_Manual), | 85 m_eFormSize(FWL_FORMSIZE_Manual), |
86 m_bDoModalFlag(FALSE), | 86 m_bDoModalFlag(FALSE), |
87 m_pBigIcon(nullptr), | 87 m_pBigIcon(nullptr), |
88 m_pSmallIcon(nullptr), | 88 m_pSmallIcon(nullptr), |
89 m_bMouseIn(FALSE) { | 89 m_bMouseIn(FALSE) { |
90 m_rtRelative.Reset(); | 90 m_rtRelative.Reset(); |
91 m_rtCaption.Reset(); | 91 m_rtCaption.Reset(); |
92 m_rtRestore.Reset(); | 92 m_rtRestore.Reset(); |
(...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1121 } | 1121 } |
1122 void CFWL_FormImpDelegate::OnWindowMove(CFWL_MsgWindowMove* pMsg) { | 1122 void CFWL_FormImpDelegate::OnWindowMove(CFWL_MsgWindowMove* pMsg) { |
1123 m_pOwner->m_pProperties->m_rtWidget.left = pMsg->m_fx; | 1123 m_pOwner->m_pProperties->m_rtWidget.left = pMsg->m_fx; |
1124 m_pOwner->m_pProperties->m_rtWidget.top = pMsg->m_fy; | 1124 m_pOwner->m_pProperties->m_rtWidget.top = pMsg->m_fy; |
1125 } | 1125 } |
1126 void CFWL_FormImpDelegate::OnClose(CFWL_MsgClose* pMsg) { | 1126 void CFWL_FormImpDelegate::OnClose(CFWL_MsgClose* pMsg) { |
1127 CFWL_EvtClose eClose; | 1127 CFWL_EvtClose eClose; |
1128 eClose.m_pSrcTarget = m_pOwner->m_pInterface; | 1128 eClose.m_pSrcTarget = m_pOwner->m_pInterface; |
1129 m_pOwner->DispatchEvent(&eClose); | 1129 m_pOwner->DispatchEvent(&eClose); |
1130 } | 1130 } |
OLD | NEW |