diff options
author | Luke Symes <allsymes@gmail.com> | 2011-06-22 15:56:50 +1200 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@novell.com> | 2011-06-22 13:57:52 +0300 |
commit | 657a01ef25b43df56bc6752b18c9797d49b7201b (patch) | |
tree | 4c9f5cbe6038c0d17f31464fcf133afc27108c7c /svtools/source/inc | |
parent | 16c9d63da67897e51960f3684d8d05b06f2c8f81 (diff) |
Implement ScrollToAbsPos for listboxes.
Scrolls the listbox so the given entry is the first visible entry.
The existing MakeVisible is not good enough since it won't scroll
down if the given entry is already visible.
Signed-off-by: Tor Lillqvist <tlillqvist@novell.com>
Diffstat (limited to 'svtools/source/inc')
-rw-r--r-- | svtools/source/inc/svimpbox.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/svtools/source/inc/svimpbox.hxx b/svtools/source/inc/svimpbox.hxx index c7603827f61e..d38046a6f47c 100644 --- a/svtools/source/inc/svimpbox.hxx +++ b/svtools/source/inc/svimpbox.hxx @@ -313,6 +313,7 @@ public: void SetCurEntry( SvLBoxEntry* ); Point GetEntryPosition( SvLBoxEntry* ) const; void MakeVisible( SvLBoxEntry* pEntry, sal_Bool bMoveToTop=sal_False ); + void ScrollToAbsPos( long nPos ); void PaintDDCursor( SvLBoxEntry* ); |