diff options
author | Luke Dixon <6b8b4567@gmail.com> | 2010-11-14 21:56:24 +0000 |
---|---|---|
committer | Jonas Finnemann Jensen <jopsen@gmail.com> | 2010-11-15 17:35:11 +0100 |
commit | ba00765e6bbcbca6bb53a705e6cb041c04502bda (patch) | |
tree | 35b5d0fe68b3cbfc1918c8a8e5c7ef9f540c9496 /starmath/inc/view.hxx | |
parent | 829beed1564e4da2be034fbf58204b0c32311712 (diff) |
Blinking caret for visual formula editor.
Diffstat (limited to 'starmath/inc/view.hxx')
-rw-r--r-- | starmath/inc/view.hxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/starmath/inc/view.hxx b/starmath/inc/view.hxx index 063d6b08dd11..ff2b6b226ba9 100644 --- a/starmath/inc/view.hxx +++ b/starmath/inc/view.hxx @@ -35,6 +35,7 @@ #include <sfx2/shell.hxx> #include <sfx2/viewfac.hxx> #include <sfx2/viewfrm.hxx> +#include <vcl/timer.hxx> #include <svtools/colorcfg.hxx> #include "edit.hxx" #include "node.hxx" @@ -56,6 +57,8 @@ class SmGraphicWindow : public ScrollableWindow // old style editing pieces Rectangle aCursorRect; bool bIsCursorVisible; + + AutoTimer aCaretBlinkTimer; public: bool IsCursorVisible() const { return bIsCursorVisible; } void ShowCursor(bool bShow); @@ -88,7 +91,10 @@ protected: private: void RepaintViewShellDoc(); - + DECL_LINK(CaretBlinkTimerHdl, AutoTimer *); + void CaretBlinkInit(); + void CaretBlinkStart(); + void CaretBlinkStop(); public: SmGraphicWindow(SmViewShell* pShell); ~SmGraphicWindow(); |