summaryrefslogtreecommitdiff
path: root/sw/source/core/text/portab.hxx
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2006-02-09 12:45:03 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2006-02-09 12:45:03 +0000
commitb6ca60184d5d59016df259d3b3570d82d0316c68 (patch)
tree7760256381f3942b9a1ff5d19132649d8eaaf481 /sw/source/core/text/portab.hxx
parent143813ed0110b22688df9ecbedd67a605cda30c0 (diff)
INTEGRATION: CWS rtfpp2 (1.5.148); FILE MERGED
2006/01/06 11:46:18 fme 1.5.148.1: #127428# More tab stop compatibility
Diffstat (limited to 'sw/source/core/text/portab.hxx')
-rw-r--r--sw/source/core/text/portab.hxx31
1 files changed, 26 insertions, 5 deletions
diff --git a/sw/source/core/text/portab.hxx b/sw/source/core/text/portab.hxx
index 84734a645790..e45c5df65ce3 100644
--- a/sw/source/core/text/portab.hxx
+++ b/sw/source/core/text/portab.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: portab.hxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: rt $ $Date: 2005-09-09 05:02:20 $
+ * last change: $Author: rt $ $Date: 2006-02-09 13:45:02 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -108,13 +108,34 @@ public:
class SwTabDecimalPortion : public SwTabPortion
{
- const xub_Unicode cTab;
+ const xub_Unicode mcTab;
+
+ /*
+ * During text formatting, we already store the width of the portions
+ * following the tab stop up to the decimal position. This value is
+ * evaluated during pLastTab->FormatEOL. FME 2006-01-06 #127428#.
+ */
+ USHORT mnWidthOfPortionsUpTpDecimalPosition;
+
public:
inline SwTabDecimalPortion( const KSHORT nTabPos, const xub_Unicode cTab,
const xub_Unicode cFill = '\0' )
- : SwTabPortion( nTabPos, cFill ), cTab(cTab)
+ : SwTabPortion( nTabPos, cFill ),
+ mcTab(cTab),
+ mnWidthOfPortionsUpTpDecimalPosition( USHRT_MAX )
{ SetWhichPor( POR_TABDECIMAL ); }
- inline xub_Unicode GetTabDecimal() const { return cTab; }
+
+ inline xub_Unicode GetTabDecimal() const { return mcTab; }
+
+ inline void SetWidthOfPortionsUpToDecimalPosition( USHORT nNew )
+ {
+ mnWidthOfPortionsUpTpDecimalPosition = nNew;
+ }
+ inline USHORT GetWidthOfPortionsUpToDecimalPosition() const
+ {
+ return mnWidthOfPortionsUpTpDecimalPosition;
+ }
+
OUTPUT_OPERATOR
};