From c1e6894f29cb497effbc3005cc811cb5f7126856 Mon Sep 17 00:00:00 2001 From: Oliver Bolte Date: Wed, 16 Nov 2005 08:31:27 +0000 Subject: INTEGRATION: CWS thaiissues (1.16.34); FILE MERGED 2005/10/25 06:46:21 fme 1.16.34.1: #i55716# Feature - Control characters --- sw/source/core/text/porrst.hxx | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) (limited to 'sw/source/core/text/porrst.hxx') diff --git a/sw/source/core/text/porrst.hxx b/sw/source/core/text/porrst.hxx index c2f7e59780fb..8f1f9100f250 100644 --- a/sw/source/core/text/porrst.hxx +++ b/sw/source/core/text/porrst.hxx @@ -4,9 +4,9 @@ * * $RCSfile: porrst.hxx,v $ * - * $Revision: 1.16 $ + * $Revision: 1.17 $ * - * last change: $Author: rt $ $Date: 2005-09-09 05:02:07 $ + * last change: $Author: obo $ $Date: 2005-11-16 09:31:27 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -171,6 +171,33 @@ public: virtual sal_Bool Format( SwTxtFormatInfo &rInf ); }; +/************************************************************************* + * class SwControlCharPortion + *************************************************************************/ + +class SwControlCharPortion : public SwLinePortion +{ + +private: + mutable USHORT mnViewWidth; // used to cache a calculated value + mutable USHORT mnHalfCharWidth; // used to cache a calculated value + sal_Unicode mcChar; + +public: + + inline SwControlCharPortion( sal_Unicode cChar ) + : mnViewWidth( 0 ), mnHalfCharWidth( 0 ), mcChar( cChar ) + { + SetWhichPor( POR_CONTROLCHAR ); SetLen( 1 ); + } + + virtual void Paint( const SwTxtPaintInfo &rInf ) const; + virtual sal_Bool Format( SwTxtFormatInfo &rInf ); + virtual KSHORT GetViewWidth( const SwTxtSizeInfo& rInf ) const; +}; + + + /************************************************************************* * inline - Implementations *************************************************************************/ -- cgit v1.2.3