diff options
author | Frank Meies <fme@openoffice.org> | 2002-02-27 12:10:15 +0000 |
---|---|---|
committer | Frank Meies <fme@openoffice.org> | 2002-02-27 12:10:15 +0000 |
commit | 88ced61b1e59705c69cac83cdbb83efb9b6bcfa1 (patch) | |
tree | c838df18e1c791e7c8cc5d8e07dcb53815e46797 /sw | |
parent | 9d065146c3fef1069b6b5e531ff425dd1de4c5bd (diff) |
#95586# HandlePortion implemented for SwKernPortion
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/text/porrst.cxx | 13 | ||||
-rw-r--r-- | sw/source/core/text/porrst.hxx | 7 |
2 files changed, 16 insertions, 4 deletions
diff --git a/sw/source/core/text/porrst.cxx b/sw/source/core/text/porrst.cxx index b55281cc2b07..324311947549 100644 --- a/sw/source/core/text/porrst.cxx +++ b/sw/source/core/text/porrst.cxx @@ -2,9 +2,9 @@ * * $RCSfile: porrst.cxx,v $ * - * $Revision: 1.22 $ + * $Revision: 1.23 $ * - * last change: $Author: fme $ $Date: 2002-02-08 15:22:58 $ + * last change: $Author: fme $ $Date: 2002-02-27 13:09:41 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -114,6 +114,9 @@ #ifndef _ERRHDL_HXX #include <errhdl.hxx> // ASSERT #endif +#ifndef _SW_PORTIONHANDLER_HXX +#include <SwPortionHandler.hxx> +#endif #ifndef _TXTCFG_HXX #include <txtcfg.hxx> #endif @@ -329,6 +332,12 @@ void SwKernPortion::FormatEOL( SwTxtFormatInfo &rInf ) rInf.GetLast()->FormatEOL( rInf ); } +void SwKernPortion::HandlePortion( SwPortionHandler& rPH ) const +{ + String aString; + rPH.Special( GetLen(), aString, GetWhichPor() ); +} + SwArrowPortion::SwArrowPortion( const SwLinePortion &rPortion ) : bLeft( sal_True ) { diff --git a/sw/source/core/text/porrst.hxx b/sw/source/core/text/porrst.hxx index aa399536acec..21c68f4f987a 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.7 $ + * $Revision: 1.8 $ * - * last change: $Author: fme $ $Date: 2002-01-21 08:30:44 $ + * last change: $Author: fme $ $Date: 2002-02-27 13:10:15 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -99,6 +99,7 @@ public: virtual void Paint( const SwTxtPaintInfo &rInf ) const; virtual sal_Bool Format( SwTxtFormatInfo &rInf ); virtual KSHORT GetViewWidth( const SwTxtSizeInfo &rInf ) const; + USHORT GetRestWidth() const { return nRestWidth; } virtual xub_StrLen GetCrsrOfst( const MSHORT nOfst ) const; OUTPUT_OPERATOR }; @@ -137,6 +138,8 @@ public: virtual void FormatEOL( SwTxtFormatInfo &rInf ); virtual void Paint( const SwTxtPaintInfo &rInf ) const; + virtual void HandlePortion( SwPortionHandler& rPH ) const; + OUTPUT_OPERATOR }; |