summaryrefslogtreecommitdiff
path: root/sc/source/ui/inc/csvgrid.hxx
diff options
context:
space:
mode:
authorDaniel Rentz <dr@openoffice.org>2002-07-11 14:39:48 +0000
committerDaniel Rentz <dr@openoffice.org>2002-07-11 14:39:48 +0000
commitb53c4cfb5d5bb0cab1b69c0c895ac8c1af443c10 (patch)
treed55838237801f0c91f8c238f9c5d2a1048d57c57 /sc/source/ui/inc/csvgrid.hxx
parentb2276ff593b1be77621a9cdef5dbe1619ecaf496 (diff)
#100032# mouse drag for column selection, performance
Diffstat (limited to 'sc/source/ui/inc/csvgrid.hxx')
-rw-r--r--sc/source/ui/inc/csvgrid.hxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/sc/source/ui/inc/csvgrid.hxx b/sc/source/ui/inc/csvgrid.hxx
index 795e9542f5be..47c67d491912 100644
--- a/sc/source/ui/inc/csvgrid.hxx
+++ b/sc/source/ui/inc/csvgrid.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: csvgrid.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: dr $ $Date: 2002-07-08 08:19:56 $
+ * last change: $Author: dr $ $Date: 2002-07-11 15:38:26 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -127,6 +127,8 @@ private:
ScCsvStringVecVec maTexts; /// 2D-vector for cell texts.
sal_uInt32 mnRecentSelCol; /// Index of most recently selected column.
+ sal_uInt32 mnMTCurrCol; /// Current column of mouse tracking.
+ bool mbMTSelecting; /// Mouse tracking: true = select, false = deselect.
// ------------------------------------------------------------------------
public:
@@ -189,6 +191,7 @@ protected:
virtual void LoseFocus();
virtual void MouseButtonDown( const MouseEvent& rMEvt );
+ virtual void Tracking( const TrackingEvent& rTEvt );
virtual void KeyInput( const KeyEvent& rKEvt );
virtual void Command( const CommandEvent& rCEvt );
@@ -278,6 +281,9 @@ private:
/** Selects all columns. */
void SelectAll();
+ /** Executes selection action for a specific column. */
+ void DoSelectAction( sal_uInt32 nColIndex, sal_uInt16 nModifier );
+
// painting ---------------------------------------------------------------
protected:
virtual void Paint( const Rectangle& );
@@ -308,6 +314,9 @@ private:
/** Redraws the entire column (background and selection). */
void ImplDrawColumn( sal_uInt32 nColIndex );
+ /** Optimized drawing: Scrolls horizontally and redraws only missing parts. */
+ void ImplDrawHorzScrolled( sal_Int32 nOldPos );
+
/** Draws the cursor bar to the specified position to maGridDev. */
void ImplDrawCursor( sal_Int32 nPos );
/** Erases the cursor bar from the specified position from maGridDev. */