| 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_IFWL_FORM_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_FORM_H_ |
| 8 #define XFA_FWL_CORE_IFWL_FORM_H_ | 8 #define XFA_FWL_CORE_IFWL_FORM_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 public: | 82 public: |
| 83 virtual CFX_DIBitmap* GetIcon(IFWL_Widget* pWidget, FX_BOOL bBig) = 0; | 83 virtual CFX_DIBitmap* GetIcon(IFWL_Widget* pWidget, FX_BOOL bBig) = 0; |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 class IFWL_Form : public IFWL_Widget { | 86 class IFWL_Form : public IFWL_Widget { |
| 87 public: | 87 public: |
| 88 IFWL_Form(const CFWL_WidgetImpProperties& properties, IFWL_Widget* pOuter); | 88 IFWL_Form(const CFWL_WidgetImpProperties& properties, IFWL_Widget* pOuter); |
| 89 ~IFWL_Form() override; | 89 ~IFWL_Form() override; |
| 90 | 90 |
| 91 // IFWL_Widget | 91 // IFWL_Widget |
| 92 FWL_Error GetClassName(CFX_WideString& wsClass) const override; | |
| 93 FWL_Type GetClassID() const override; | 92 FWL_Type GetClassID() const override; |
| 94 FX_BOOL IsInstance(const CFX_WideStringC& wsClass) const override; | 93 FX_BOOL IsInstance(const CFX_WideStringC& wsClass) const override; |
| 95 FWL_Error Initialize() override; | 94 FWL_Error Initialize() override; |
| 96 FWL_Error Finalize() override; | 95 void Finalize() override; |
| 97 | 96 |
| 98 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; | 97 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; |
| 99 FWL_Error GetClientRect(CFX_RectF& rect) override; | 98 FWL_Error GetClientRect(CFX_RectF& rect) override; |
| 100 FWL_Error Update() override; | 99 FWL_Error Update() override; |
| 101 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; | 100 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; |
| 102 FWL_Error DrawWidget(CFX_Graphics* pGraphics, | 101 FWL_Error DrawWidget(CFX_Graphics* pGraphics, |
| 103 const CFX_Matrix* pMatrix = nullptr) override; | 102 const CFX_Matrix* pMatrix = nullptr) override; |
| 104 | 103 |
| 105 FWL_FORMSIZE GetFormSize(); | 104 FWL_FORMSIZE GetFormSize(); |
| 106 FWL_Error SetFormSize(FWL_FORMSIZE eFormSize); | 105 FWL_Error SetFormSize(FWL_FORMSIZE eFormSize); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 IFWL_Widget* m_pSubFocus; | 166 IFWL_Widget* m_pSubFocus; |
| 168 RestoreInfo m_InfoStart; | 167 RestoreInfo m_InfoStart; |
| 169 FX_FLOAT m_fCXBorder; | 168 FX_FLOAT m_fCXBorder; |
| 170 FX_FLOAT m_fCYBorder; | 169 FX_FLOAT m_fCYBorder; |
| 171 int32_t m_iCaptureBtn; | 170 int32_t m_iCaptureBtn; |
| 172 int32_t m_iSysBox; | 171 int32_t m_iSysBox; |
| 173 int32_t m_eResizeType; | 172 int32_t m_eResizeType; |
| 174 FX_BOOL m_bLButtonDown; | 173 FX_BOOL m_bLButtonDown; |
| 175 bool m_bMaximized; | 174 bool m_bMaximized; |
| 176 FX_BOOL m_bSetMaximize; | 175 FX_BOOL m_bSetMaximize; |
| 177 FX_BOOL m_bCustomizeLayout; | 176 bool m_bCustomizeLayout; |
| 178 FWL_FORMSIZE m_eFormSize; | 177 FWL_FORMSIZE m_eFormSize; |
| 179 FX_BOOL m_bDoModalFlag; | 178 FX_BOOL m_bDoModalFlag; |
| 180 FX_FLOAT m_fSmallIconSz; | 179 FX_FLOAT m_fSmallIconSz; |
| 181 FX_FLOAT m_fBigIconSz; | 180 FX_FLOAT m_fBigIconSz; |
| 182 CFX_DIBitmap* m_pBigIcon; | 181 CFX_DIBitmap* m_pBigIcon; |
| 183 CFX_DIBitmap* m_pSmallIcon; | 182 CFX_DIBitmap* m_pSmallIcon; |
| 184 FX_BOOL m_bMouseIn; | 183 FX_BOOL m_bMouseIn; |
| 185 friend class CFWL_FormImpDelegate; | 184 friend class CFWL_FormImpDelegate; |
| 186 }; | 185 }; |
| 187 | 186 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 199 void OnMouseMove(CFWL_MsgMouse* pMsg); | 198 void OnMouseMove(CFWL_MsgMouse* pMsg); |
| 200 void OnMouseHover(CFWL_MsgMouse* pMsg); | 199 void OnMouseHover(CFWL_MsgMouse* pMsg); |
| 201 void OnMouseLeave(CFWL_MsgMouse* pMsg); | 200 void OnMouseLeave(CFWL_MsgMouse* pMsg); |
| 202 void OnLButtonDblClk(CFWL_MsgMouse* pMsg); | 201 void OnLButtonDblClk(CFWL_MsgMouse* pMsg); |
| 203 void OnWindowMove(CFWL_MsgWindowMove* pMsg); | 202 void OnWindowMove(CFWL_MsgWindowMove* pMsg); |
| 204 void OnClose(CFWL_MsgClose* pMsg); | 203 void OnClose(CFWL_MsgClose* pMsg); |
| 205 IFWL_Form* m_pOwner; | 204 IFWL_Form* m_pOwner; |
| 206 }; | 205 }; |
| 207 | 206 |
| 208 #endif // XFA_FWL_CORE_IFWL_FORM_H_ | 207 #endif // XFA_FWL_CORE_IFWL_FORM_H_ |
| OLD | NEW |