| 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 FPDFSDK_INCLUDE_PDFWINDOW_PWL_WND_H_ | 7 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_WND_H_ |
| 8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_WND_H_ | 8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_WND_H_ |
| 9 | 9 |
| 10 #include "../../../core/include/fxcrt/fx_basic.h" | 10 #include "../../../core/include/fxcrt/fx_basic.h" |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 | 277 |
| 278 private: | 278 private: |
| 279 CPWL_Timer* m_pTimer; | 279 CPWL_Timer* m_pTimer; |
| 280 }; | 280 }; |
| 281 | 281 |
| 282 class CPWL_Wnd : public CPWL_TimerHandler { | 282 class CPWL_Wnd : public CPWL_TimerHandler { |
| 283 friend class CPWL_MsgControl; | 283 friend class CPWL_MsgControl; |
| 284 | 284 |
| 285 public: | 285 public: |
| 286 CPWL_Wnd(); | 286 CPWL_Wnd(); |
| 287 virtual ~CPWL_Wnd(); | 287 ~CPWL_Wnd() override; |
| 288 | 288 |
| 289 void Create(const PWL_CREATEPARAM& cp); | 289 void Create(const PWL_CREATEPARAM& cp); |
| 290 virtual CFX_ByteString GetClassName() const; | 290 virtual CFX_ByteString GetClassName() const; |
| 291 void Destroy(); | 291 void Destroy(); |
| 292 void Move(const CPDF_Rect& rcNew, FX_BOOL bReset, FX_BOOL bRefresh); | 292 void Move(const CPDF_Rect& rcNew, FX_BOOL bReset, FX_BOOL bRefresh); |
| 293 virtual void InvalidateRect(CPDF_Rect* pRect = NULL); | 293 virtual void InvalidateRect(CPDF_Rect* pRect = NULL); |
| 294 | 294 |
| 295 void GetAppearanceStream(CFX_ByteString& sAppStream); | 295 void GetAppearanceStream(CFX_ByteString& sAppStream); |
| 296 void DrawAppearance(CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device); | 296 void DrawAppearance(CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device); |
| 297 | 297 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 FX_BOOL ClientHitTest(const CPDF_Point& point) const; | 366 FX_BOOL ClientHitTest(const CPDF_Point& point) const; |
| 367 FX_BOOL IsCaptureMouse() const; | 367 FX_BOOL IsCaptureMouse() const; |
| 368 | 368 |
| 369 const CPWL_Wnd* GetFocused() const; | 369 const CPWL_Wnd* GetFocused() const; |
| 370 FX_BOOL IsFocused() const; | 370 FX_BOOL IsFocused() const; |
| 371 FX_BOOL IsReadOnly() const; | 371 FX_BOOL IsReadOnly() const; |
| 372 CPWL_ScrollBar* GetVScrollBar() const; | 372 CPWL_ScrollBar* GetVScrollBar() const; |
| 373 | 373 |
| 374 IFX_Edit_FontMap* GetFontMap() const; | 374 IFX_Edit_FontMap* GetFontMap() const; |
| 375 IPWL_Provider* GetProvider() const; | 375 IPWL_Provider* GetProvider() const; |
| 376 virtual IFX_SystemHandler* GetSystemHandler() const; | |
| 377 IPWL_FocusHandler* GetFocusHandler() const; | 376 IPWL_FocusHandler* GetFocusHandler() const; |
| 378 | 377 |
| 379 int32_t GetTransparency(); | 378 int32_t GetTransparency(); |
| 380 void SetTransparency(int32_t nTransparency); | 379 void SetTransparency(int32_t nTransparency); |
| 381 | 380 |
| 382 CPDF_Matrix GetChildToRoot() const; | 381 CPDF_Matrix GetChildToRoot() const; |
| 383 CPDF_Matrix GetChildMatrix() const; | 382 CPDF_Matrix GetChildMatrix() const; |
| 384 void SetChildMatrix(const CPDF_Matrix& mt); | 383 void SetChildMatrix(const CPDF_Matrix& mt); |
| 385 CPDF_Matrix GetWindowMatrix() const; | 384 CPDF_Matrix GetWindowMatrix() const; |
| 386 | 385 |
| 387 virtual CPDF_Point ChildToParent(const CPDF_Point& point) const; | 386 virtual CPDF_Point ChildToParent(const CPDF_Point& point) const; |
| 388 virtual CPDF_Rect ChildToParent(const CPDF_Rect& rect) const; | 387 virtual CPDF_Rect ChildToParent(const CPDF_Rect& rect) const; |
| 389 virtual CPDF_Point ParentToChild(const CPDF_Point& point) const; | 388 virtual CPDF_Point ParentToChild(const CPDF_Point& point) const; |
| 390 virtual CPDF_Rect ParentToChild(const CPDF_Rect& rect) const; | 389 virtual CPDF_Rect ParentToChild(const CPDF_Rect& rect) const; |
| 391 | 390 |
| 392 // those methods only implemented by listctrl item | 391 // those methods only implemented by listctrl item |
| 393 virtual FX_FLOAT GetItemHeight(FX_FLOAT fLimitWidth) { return 0; } | 392 virtual FX_FLOAT GetItemHeight(FX_FLOAT fLimitWidth) { return 0; } |
| 394 virtual FX_FLOAT GetItemLeftMargin() { return 0; } | 393 virtual FX_FLOAT GetItemLeftMargin() { return 0; } |
| 395 virtual FX_FLOAT GetItemRightMargin() { return 0; } | 394 virtual FX_FLOAT GetItemRightMargin() { return 0; } |
| 396 | 395 |
| 397 void EnableWindow(FX_BOOL bEnable); | 396 void EnableWindow(FX_BOOL bEnable); |
| 398 FX_BOOL IsEnabled(); | 397 FX_BOOL IsEnabled(); |
| 399 virtual void SetCursor(); | 398 virtual void SetCursor(); |
| 400 | 399 |
| 401 protected: | 400 protected: |
| 401 // CPWL_TimerHandler |
| 402 IFX_SystemHandler* GetSystemHandler() const override; |
| 403 |
| 402 virtual void CreateChildWnd(const PWL_CREATEPARAM& cp); | 404 virtual void CreateChildWnd(const PWL_CREATEPARAM& cp); |
| 403 virtual void RePosChildWnd(); | 405 virtual void RePosChildWnd(); |
| 404 void GetAppearanceStream(CFX_ByteTextBuf& sAppStream); | 406 void GetAppearanceStream(CFX_ByteTextBuf& sAppStream); |
| 405 virtual void GetThisAppearanceStream(CFX_ByteTextBuf& sAppStream); | 407 virtual void GetThisAppearanceStream(CFX_ByteTextBuf& sAppStream); |
| 406 virtual void GetChildAppearanceStream(CFX_ByteTextBuf& sAppStream); | 408 virtual void GetChildAppearanceStream(CFX_ByteTextBuf& sAppStream); |
| 407 | 409 |
| 408 virtual void DrawThisAppearance(CFX_RenderDevice* pDevice, | 410 virtual void DrawThisAppearance(CFX_RenderDevice* pDevice, |
| 409 CPDF_Matrix* pUser2Device); | 411 CPDF_Matrix* pUser2Device); |
| 410 virtual void DrawChildAppearance(CFX_RenderDevice* pDevice, | 412 virtual void DrawChildAppearance(CFX_RenderDevice* pDevice, |
| 411 CPDF_Matrix* pUser2Device); | 413 CPDF_Matrix* pUser2Device); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 CPDF_Rect m_rcWindow; | 467 CPDF_Rect m_rcWindow; |
| 466 CPDF_Rect m_rcClip; | 468 CPDF_Rect m_rcClip; |
| 467 | 469 |
| 468 FX_BOOL m_bCreated; | 470 FX_BOOL m_bCreated; |
| 469 FX_BOOL m_bVisible; | 471 FX_BOOL m_bVisible; |
| 470 FX_BOOL m_bNotifying; | 472 FX_BOOL m_bNotifying; |
| 471 FX_BOOL m_bEnabled; | 473 FX_BOOL m_bEnabled; |
| 472 }; | 474 }; |
| 473 | 475 |
| 474 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_WND_H_ | 476 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_WND_H_ |
| OLD | NEW |