summaryrefslogtreecommitdiff
path: root/sw/source/core/text/porrst.hxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2005-11-16 08:31:27 +0000
committerOliver Bolte <obo@openoffice.org>2005-11-16 08:31:27 +0000
commitc1e6894f29cb497effbc3005cc811cb5f7126856 (patch)
tree8749c5f3fe196b02ab0c73c62d29dca41cd94c6b /sw/source/core/text/porrst.hxx
parent04a96e1dc1691a2276163e7a4928a66cd4379071 (diff)
INTEGRATION: CWS thaiissues (1.16.34); FILE MERGED
2005/10/25 06:46:21 fme 1.16.34.1: #i55716# Feature - Control characters
Diffstat (limited to 'sw/source/core/text/porrst.hxx')
-rw-r--r--sw/source/core/text/porrst.hxx31
1 files changed, 29 insertions, 2 deletions
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.
@@ -172,6 +172,33 @@ public:
};
/*************************************************************************
+ * 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
*************************************************************************/