diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-06 15:49:16 +0900 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-05-07 09:57:50 +0200 |
commit | 29b1e6718f6ebdb45d2a8c6a89a86bc0a6bbb3ae (patch) | |
tree | 2e405f964e47ee481926d8af5b2a70a81987119f /include/vcl/textview.hxx | |
parent | c299413c6d51280804e1996330a960d02050507d (diff) |
refactor "TextEdit" & co. to use RenderContext
Change-Id: Ib26ecb9640d23714acec73304f26e2fd6af90ed4
Diffstat (limited to 'include/vcl/textview.hxx')
-rw-r--r-- | include/vcl/textview.hxx | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/include/vcl/textview.hxx b/include/vcl/textview.hxx index baf97a9a2063..721c0c06a706 100644 --- a/include/vcl/textview.hxx +++ b/include/vcl/textview.hxx @@ -25,10 +25,11 @@ #include <vcl/dllapi.h> #include <vcl/dndhelp.hxx> #include <vcl/textdata.hxx> +#include <vcl/window.hxx> class TextEngine; class OutputDevice; -namespace vcl { class Window; } + class KeyEvent; class MouseEvent; class CommandEvent; @@ -37,11 +38,7 @@ class SelectionEngine; class VirtualDevice; struct TextDDInfo; -namespace com { -namespace sun { -namespace star { -namespace datatransfer { -namespace clipboard { +namespace com { namespace sun { namespace star { namespace datatransfer { namespace clipboard { class XClipboard; }}}}} @@ -72,8 +69,8 @@ protected: void ImpSetSelection( const TextSelection& rNewSel, bool bUI ); bool IsInSelection( const TextPaM& rPaM ); - void ImpPaint( OutputDevice* pOut, const Point& rStartPos, Rectangle const* pPaintArea, TextSelection const* pPaintRange = 0, TextSelection const* pSelection = 0 ); - void ImpPaint( const Rectangle& rRect, bool bUseVirtDev ); + void ImpPaint(vcl::RenderContext& rRenderContext, const Point& rStartPos, Rectangle const* pPaintArea, TextSelection const* pPaintRange = 0, TextSelection const* pSelection = 0); + void ImpPaint(vcl::RenderContext& rRenderContext, const Rectangle& rRect, bool bUseVirtDev); void ImpShowCursor( bool bGotoCursor, bool bForceVisCursor, bool bEndKey ); void ImpHighlight( const TextSelection& rSel ); void ImpSetSelection( const TextSelection& rSelection ); @@ -127,8 +124,8 @@ public: void InsertText( const OUString& rNew, bool bSelect = false ); - bool KeyInput( const KeyEvent& rKeyEvent ); - void Paint( const Rectangle& rRect ); + bool KeyInput( const KeyEvent& rKeyEvent ); + void Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect); void MouseButtonUp( const MouseEvent& rMouseEvent ); void MouseButtonDown( const MouseEvent& rMouseEvent ); void MouseMove( const MouseEvent& rMouseEvent ); |