diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2007-07-06 08:58:41 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2007-07-06 08:58:41 +0000 |
commit | 9b04b6486643b7b89a8359d48dd92ebf329e0cd6 (patch) | |
tree | e61da006539771cbd5c9c49383e897b3610db05a /vcl/source/window/split.cxx | |
parent | 34818a516a5b4a386e95e7e0bf9250a9c6bddd25 (diff) |
INTEGRATION: CWS oj14 (1.15.26); FILE MERGED
2006/11/07 09:45:37 oj 1.15.26.4: RESYNC: (1.17-1.18); FILE MERGED
2006/07/04 08:01:18 oj 1.15.26.3: RESYNC: (1.16-1.17); FILE MERGED
2006/01/03 13:43:17 oj 1.15.26.2: RESYNC: (1.15-1.16); FILE MERGED
2005/10/05 06:33:44 oj 1.15.26.1: new handler for end, is called when the split ends
Diffstat (limited to 'vcl/source/window/split.cxx')
-rw-r--r-- | vcl/source/window/split.cxx | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/vcl/source/window/split.cxx b/vcl/source/window/split.cxx index 856d76e75238..11631f91546f 100644 --- a/vcl/source/window/split.cxx +++ b/vcl/source/window/split.cxx @@ -4,9 +4,9 @@ * * $RCSfile: split.cxx,v $ * - * $Revision: 1.19 $ + * $Revision: 1.20 $ * - * last change: $Author: hr $ $Date: 2007-06-27 20:33:30 $ + * last change: $Author: rt $ $Date: 2007-07-06 09:58:41 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -294,6 +294,7 @@ void Splitter::MouseButtonDown( const MouseEvent& rMEvt ) SetSplitPosPixel( aPos.Y() ); mnLastSplitPos = nTemp; Split(); + EndSplit(); } } else @@ -322,6 +323,7 @@ void Splitter::Tracking( const TrackingEvent& rTEvt ) mnLastSplitPos = 0; Split(); } + EndSplit(); } else if ( mbDragFull ) { @@ -405,6 +407,7 @@ void Splitter::ImplKbdTracking( KeyCode aKeyCode ) { SetSplitPosPixel( mnStartSplitPos ); Split(); + EndSplit(); } mnStartSplitPos = 0; } @@ -507,6 +510,14 @@ void Splitter::Split() // ----------------------------------------------------------------------- +void Splitter::EndSplit() +{ + if ( maEndSplitHdl.IsSet() ) + maEndSplitHdl.Call( this ); +} + +// ----------------------------------------------------------------------- + void Splitter::Splitting( Point& /* rSplitPos */ ) { } @@ -621,6 +632,7 @@ void Splitter::ImplRestoreSplitter() SetSplitPosPixel( aPos.Y() ); mnLastSplitPos = nTemp; Split(); + EndSplit(); } @@ -719,6 +731,7 @@ void Splitter::KeyInput( const KeyEvent& rKEvt ) SetSplitPosPixel( aPos.Y() ); mnLastSplitPos = nTemp; Split(); + EndSplit(); // Shift-Del deletes both splitters if( aKeyCode.IsShift() && pSibling ) |