summaryrefslogtreecommitdiff
path: root/sw/source/core/text/widorp.hxx
diff options
context:
space:
mode:
authorFrank Meies <fme@openoffice.org>2001-12-05 08:08:20 +0000
committerFrank Meies <fme@openoffice.org>2001-12-05 08:08:20 +0000
commitc9bd9b6cadf344d8df163e4ffae320cc1dde7c5f (patch)
treef0261d53d4e58a92b74c23a5c90b361feb5e5ee3 /sw/source/core/text/widorp.hxx
parent5ce8e45a60a07d05cd789e7c2d989fe0adbddac2 (diff)
Chg: Vertical Formatting - Widows and orphans
Diffstat (limited to 'sw/source/core/text/widorp.hxx')
-rw-r--r--sw/source/core/text/widorp.hxx22
1 files changed, 19 insertions, 3 deletions
diff --git a/sw/source/core/text/widorp.hxx b/sw/source/core/text/widorp.hxx
index 697acb879bda..f1480c39ab21 100644
--- a/sw/source/core/text/widorp.hxx
+++ b/sw/source/core/text/widorp.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: widorp.hxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-19 00:08:26 $
+ * last change: $Author: fme $ $Date: 2001-12-05 09:05:03 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -70,7 +70,11 @@ class SwTxtFrmBreak
{
private:
SwTwips nRstHeight;
+#ifdef VERTICAL_LAYOUT
+ SwTwips nOrigin;
+#else
const SwTwips nOrigin;
+#endif
protected:
SwTxtFrm *pFrm;
sal_Bool bBreak;
@@ -95,7 +99,19 @@ public:
// anderen Wert zurueckliefert.
// Es wird dabei davon ausgegangen, dass rLine auf der letzten Zeile
// steht, die nicht mehr passt.
- void SetRstHeight( const SwTxtMargin &rLine ) { nRstHeight = rLine.Y() - nOrigin; }
+
+#ifdef VERTICAL_LAYOUT
+ void SetRstHeight( const SwTxtMargin &rLine )
+ {
+ if ( pFrm->IsVertical() )
+ nRstHeight = nOrigin - pFrm->SwitchHorizontalToVertical( rLine.Y() );
+ else
+ nRstHeight = rLine.Y() - nOrigin;
+ }
+#else
+ void SetRstHeight( const SwTxtMargin &rLine ) { nRstHeight = rLine.Y() - nOrigin; }
+#endif
+
SwTwips GetRstHeight() const { return nRstHeight; }
};