summaryrefslogtreecommitdiff
path: root/sw/inc/crstate.hxx
diff options
context:
space:
mode:
authorAndreas Martens <ama@openoffice.org>2000-11-30 10:09:18 +0000
committerAndreas Martens <ama@openoffice.org>2000-11-30 10:09:18 +0000
commit6445b484b80d8a9790f1fc0e9911776bd0481d50 (patch)
tree0c7170cdc091b788c7bea04e4150718043a7ff47 /sw/inc/crstate.hxx
parentd49c7dcc459137e6270782c0c72f008ba354c7fa (diff)
Fix: Selection inside/overlapping doubleline portions
Diffstat (limited to 'sw/inc/crstate.hxx')
-rw-r--r--sw/inc/crstate.hxx19
1 files changed, 15 insertions, 4 deletions
diff --git a/sw/inc/crstate.hxx b/sw/inc/crstate.hxx
index ecea83656a9b..84e37e53647f 100644
--- a/sw/inc/crstate.hxx
+++ b/sw/inc/crstate.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: crstate.hxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: ama $ $Date: 2000-11-28 14:26:32 $
+ * last change: $Author: ama $ $Date: 2000-11-30 11:04:39 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -95,6 +95,12 @@ struct SwFillCrsrPos
{}
};
+struct Sw2LinesPos
+{
+ SwRect aLine; // Position and size of the line
+ SwRect aPortion; // Position and size of the (2line) portion
+};
+
// CrsrTravelling-Staties (fuer GetCrsrOfst)
enum CrsrMoveState
{
@@ -110,6 +116,7 @@ enum CrsrMoveState
struct SwCrsrMoveState
{
SwFillCrsrPos *pFill; // fuer das automatische Auffuellen mit Tabs etc.
+ Sw2LinesPos *p2Lines; // for selections inside/around 2line portions
Point aRealHeight; // enthaelt dann die Position/Hoehe des Cursors
CrsrMoveState eState;
BOOL bStop :1;
@@ -123,9 +130,11 @@ struct SwCrsrMoveState
BOOL bFillRet :1; // wird nur im FillModus temp. genutzt
BOOL bSetInReadOnly :1; // ReadOnlyBereiche duerfen betreten werden
BOOL bRealWidth :1; // Calculation of the width required
+ BOOL b2Lines :1; // Check 2line portions and fill p2Lines
SwCrsrMoveState( CrsrMoveState eSt = MV_NONE ) :
pFill( NULL ),
+ p2Lines( NULL ),
eState( eSt ),
bStop( FALSE ),
bRealHeight( FALSE ),
@@ -134,7 +143,8 @@ struct SwCrsrMoveState
bFtnNoInfo( FALSE ),
bExactOnly( FALSE ),
bSetInReadOnly( FALSE ),
- bRealWidth( FALSE )
+ bRealWidth( FALSE ),
+ b2Lines( FALSE )
{}
SwCrsrMoveState( SwFillCrsrPos *pInitFill ) :
pFill( pInitFill ),
@@ -146,7 +156,8 @@ struct SwCrsrMoveState
bFtnNoInfo( FALSE ),
bExactOnly( FALSE ),
bSetInReadOnly( FALSE ),
- bRealWidth( FALSE )
+ bRealWidth( FALSE ),
+ b2Lines( FALSE )
{}
};