diff options
author | Andreas Martens <ama@openoffice.org> | 2000-11-21 10:29:48 +0000 |
---|---|---|
committer | Andreas Martens <ama@openoffice.org> | 2000-11-21 10:29:48 +0000 |
commit | d05f64ba91ca0524224b7d580b68e19c8a787fa8 (patch) | |
tree | fca80931276a47385994c6abf83c3d44bd6348f4 /sw/source/core/text/porrst.hxx | |
parent | 9f603cd8b867573772ef88c06f9620978666e9f9 (diff) |
New: Hanging punctuation
Diffstat (limited to 'sw/source/core/text/porrst.hxx')
-rw-r--r-- | sw/source/core/text/porrst.hxx | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/sw/source/core/text/porrst.hxx b/sw/source/core/text/porrst.hxx index 7f48e9d53762..940ab1d3fe94 100644 --- a/sw/source/core/text/porrst.hxx +++ b/sw/source/core/text/porrst.hxx @@ -2,9 +2,9 @@ * * $RCSfile: porrst.hxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-19 00:08:26 $ + * last change: $Author: ama $ $Date: 2000-11-21 11:14:20 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -136,6 +136,24 @@ public: OUTPUT_OPERATOR }; +/************************************************************************* + * class SwHangingPortion + * The characters which are forbidden at the start of a line like the dot and + * other punctuation marks are allowed to display in the margin of the page + * by a user option. + * The SwHangingPortion is the corresponding textportion to do that. + *************************************************************************/ + +class SwHangingPortion : public SwTxtPortion +{ + KSHORT nInnerWidth; +public: + inline SwHangingPortion( SwPosSize aSize ) : nInnerWidth( aSize.Width() ) + { SetWhichPor( POR_HNG ); SetLen( 1 ); Height( aSize.Height() ); } + + inline KSHORT GetInnerWidth() const { return nInnerWidth; } +}; + /************************************************************************* * inline - Implementations |