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_BASEWIDGET_FWL_EDITIMP_H_ | 7 #ifndef XFA_FWL_BASEWIDGET_FWL_EDITIMP_H_ |
8 #define XFA_FWL_BASEWIDGET_FWL_EDITIMP_H_ | 8 #define XFA_FWL_BASEWIDGET_FWL_EDITIMP_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 20 matching lines...) Expand all Loading... |
31 | 31 |
32 // CFWL_WidgetImp: | 32 // CFWL_WidgetImp: |
33 FWL_ERR GetClassName(CFX_WideString& wsClass) const override; | 33 FWL_ERR GetClassName(CFX_WideString& wsClass) const override; |
34 uint32_t GetClassID() const override; | 34 uint32_t GetClassID() const override; |
35 FWL_ERR Initialize() override; | 35 FWL_ERR Initialize() override; |
36 FWL_ERR Finalize() override; | 36 FWL_ERR Finalize() override; |
37 FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; | 37 FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; |
38 FWL_ERR SetWidgetRect(const CFX_RectF& rect) override; | 38 FWL_ERR SetWidgetRect(const CFX_RectF& rect) override; |
39 FWL_ERR Update() override; | 39 FWL_ERR Update() override; |
40 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; | 40 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; |
41 FWL_ERR SetStates(uint32_t dwStates, FX_BOOL bSet = TRUE) override; | 41 void SetStates(uint32_t dwStates, FX_BOOL bSet = TRUE) override; |
42 FWL_ERR DrawWidget(CFX_Graphics* pGraphics, | 42 FWL_ERR DrawWidget(CFX_Graphics* pGraphics, |
43 const CFX_Matrix* pMatrix = NULL) override; | 43 const CFX_Matrix* pMatrix = NULL) override; |
44 FWL_ERR SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override; | 44 FWL_ERR SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override; |
45 | 45 |
46 virtual FWL_ERR SetText(const CFX_WideString& wsText); | 46 virtual FWL_ERR SetText(const CFX_WideString& wsText); |
47 virtual int32_t GetTextLength() const; | 47 virtual int32_t GetTextLength() const; |
48 virtual FWL_ERR GetText(CFX_WideString& wsText, | 48 virtual FWL_ERR GetText(CFX_WideString& wsText, |
49 int32_t nStart = 0, | 49 int32_t nStart = 0, |
50 int32_t nCount = -1) const; | 50 int32_t nCount = -1) const; |
51 virtual FWL_ERR ClearText(); | 51 virtual FWL_ERR ClearText(); |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 void OnButtonDblClk(CFWL_MsgMouse* pMsg); | 189 void OnButtonDblClk(CFWL_MsgMouse* pMsg); |
190 void OnMouseMove(CFWL_MsgMouse* pMsg); | 190 void OnMouseMove(CFWL_MsgMouse* pMsg); |
191 void OnKeyDown(CFWL_MsgKey* pMsg); | 191 void OnKeyDown(CFWL_MsgKey* pMsg); |
192 void OnChar(CFWL_MsgKey* pMsg); | 192 void OnChar(CFWL_MsgKey* pMsg); |
193 FX_BOOL OnScroll(IFWL_ScrollBar* pScrollBar, uint32_t dwCode, FX_FLOAT fPos); | 193 FX_BOOL OnScroll(IFWL_ScrollBar* pScrollBar, uint32_t dwCode, FX_FLOAT fPos); |
194 void DoCursor(CFWL_MsgMouse* pMsg); | 194 void DoCursor(CFWL_MsgMouse* pMsg); |
195 CFWL_EditImp* m_pOwner; | 195 CFWL_EditImp* m_pOwner; |
196 }; | 196 }; |
197 | 197 |
198 #endif // XFA_FWL_BASEWIDGET_FWL_EDITIMP_H_ | 198 #endif // XFA_FWL_BASEWIDGET_FWL_EDITIMP_H_ |
OLD | NEW |