| 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 #ifndef XFA_FWL_CORE_FWL_FORMIMP_H_ | 7 #ifndef XFA_FWL_CORE_FWL_FORMIMP_H_ |
| 8 #define XFA_FWL_CORE_FWL_FORMIMP_H_ | 8 #define XFA_FWL_CORE_FWL_FORMIMP_H_ |
| 9 | 9 |
| 10 #include "xfa/fwl/core/fwl_panelimp.h" | 10 #include "xfa/fwl/core/fwl_panelimp.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 bDisabled ? m_dwState |= FWL_SYSBUTTONSTATE_Disabled | 48 bDisabled ? m_dwState |= FWL_SYSBUTTONSTATE_Disabled |
| 49 : m_dwState &= ~FWL_SYSBUTTONSTATE_Disabled; | 49 : m_dwState &= ~FWL_SYSBUTTONSTATE_Disabled; |
| 50 } | 50 } |
| 51 int32_t GetPartState() { | 51 int32_t GetPartState() { |
| 52 return (IsDisabled() ? FWL_PARTSTATE_FRM_Disabled : (m_dwState + 1)); | 52 return (IsDisabled() ? FWL_PARTSTATE_FRM_Disabled : (m_dwState + 1)); |
| 53 } | 53 } |
| 54 | 54 |
| 55 CFX_RectF m_rtBtn; | 55 CFX_RectF m_rtBtn; |
| 56 uint32_t m_dwState; | 56 uint32_t m_dwState; |
| 57 }; | 57 }; |
| 58 |
| 58 enum FORM_RESIZETYPE { | 59 enum FORM_RESIZETYPE { |
| 59 FORM_RESIZETYPE_None = 0, | 60 FORM_RESIZETYPE_None = 0, |
| 60 FORM_RESIZETYPE_Cap, | 61 FORM_RESIZETYPE_Cap, |
| 61 FORM_RESIZETYPE_Left, | |
| 62 FORM_RESIZETYPE_Top, | |
| 63 FORM_RESIZETYPE_Right, | |
| 64 FORM_RESIZETYPE_Bottom, | |
| 65 FORM_RESIZETYPE_LeftTop, | |
| 66 FORM_RESIZETYPE_LeftBottom, | |
| 67 FORM_RESIZETYPE_RightTop, | |
| 68 FORM_RESIZETYPE_RightBottom | |
| 69 }; | 62 }; |
| 63 |
| 70 typedef struct RestoreResizeInfo { | 64 typedef struct RestoreResizeInfo { |
| 71 CFX_PointF m_ptStart; | 65 CFX_PointF m_ptStart; |
| 72 CFX_SizeF m_szStart; | 66 CFX_SizeF m_szStart; |
| 73 } RestoreInfo; | 67 } RestoreInfo; |
| 68 |
| 74 class CFWL_FormImp : public CFWL_PanelImp { | 69 class CFWL_FormImp : public CFWL_PanelImp { |
| 75 public: | 70 public: |
| 76 CFWL_FormImp(const CFWL_WidgetImpProperties& properties, IFWL_Widget* pOuter); | 71 CFWL_FormImp(const CFWL_WidgetImpProperties& properties, IFWL_Widget* pOuter); |
| 77 virtual ~CFWL_FormImp(); | 72 virtual ~CFWL_FormImp(); |
| 78 virtual FWL_ERR GetClassName(CFX_WideString& wsClass) const; | 73 virtual FWL_ERR GetClassName(CFX_WideString& wsClass) const; |
| 79 virtual uint32_t GetClassID() const; | 74 virtual uint32_t GetClassID() const; |
| 80 virtual FX_BOOL IsInstance(const CFX_WideStringC& wsClass) const; | 75 virtual FX_BOOL IsInstance(const CFX_WideStringC& wsClass) const; |
| 81 virtual FWL_ERR Initialize(); | 76 virtual FWL_ERR Initialize(); |
| 82 virtual FWL_ERR Finalize(); | 77 virtual FWL_ERR Finalize(); |
| 83 | 78 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 void OnMouseMove(CFWL_MsgMouse* pMsg); | 181 void OnMouseMove(CFWL_MsgMouse* pMsg); |
| 187 void OnMouseHover(CFWL_MsgMouse* pMsg); | 182 void OnMouseHover(CFWL_MsgMouse* pMsg); |
| 188 void OnMouseLeave(CFWL_MsgMouse* pMsg); | 183 void OnMouseLeave(CFWL_MsgMouse* pMsg); |
| 189 void OnLButtonDblClk(CFWL_MsgMouse* pMsg); | 184 void OnLButtonDblClk(CFWL_MsgMouse* pMsg); |
| 190 void OnWindowMove(CFWL_MsgWindowMove* pMsg); | 185 void OnWindowMove(CFWL_MsgWindowMove* pMsg); |
| 191 void OnClose(CFWL_MsgClose* pMsg); | 186 void OnClose(CFWL_MsgClose* pMsg); |
| 192 CFWL_FormImp* m_pOwner; | 187 CFWL_FormImp* m_pOwner; |
| 193 }; | 188 }; |
| 194 | 189 |
| 195 #endif // XFA_FWL_CORE_FWL_FORMIMP_H_ | 190 #endif // XFA_FWL_CORE_FWL_FORMIMP_H_ |
| OLD | NEW |