summaryrefslogtreecommitdiff
path: root/sw/source/core/text/portxt.cxx
diff options
context:
space:
mode:
authorFrank Meies <fme@openoffice.org>2002-02-28 11:42:19 +0000
committerFrank Meies <fme@openoffice.org>2002-02-28 11:42:19 +0000
commit6829122e78bc5614930e1b03595ef74eece941ff (patch)
treea9893f5d172a0b987a17137e8fb51c221df954f0 /sw/source/core/text/portxt.cxx
parent6c76e70c31ef21bdf4c8bf21b425386a5b1d4166 (diff)
#95586# Accessibility - Handling of text portions
Diffstat (limited to 'sw/source/core/text/portxt.cxx')
-rw-r--r--sw/source/core/text/portxt.cxx25
1 files changed, 23 insertions, 2 deletions
diff --git a/sw/source/core/text/portxt.cxx b/sw/source/core/text/portxt.cxx
index 9f23d4f294bb..1cf6c55bab4a 100644
--- a/sw/source/core/text/portxt.cxx
+++ b/sw/source/core/text/portxt.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: portxt.cxx,v $
*
- * $Revision: 1.18 $
+ * $Revision: 1.19 $
*
- * last change: $Author: fme $ $Date: 2002-02-07 11:18:13 $
+ * last change: $Author: fme $ $Date: 2002-02-28 12:42:19 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -78,6 +78,9 @@
#ifndef _ERRHDL_HXX
#include <errhdl.hxx> // ASSERT
#endif
+#ifndef _SW_PORTIONHANDLER_HXX
+#include <SwPortionHandler.hxx>
+#endif
#ifndef _TXTCFG_HXX
#include <txtcfg.hxx>
#endif
@@ -685,6 +688,15 @@ long SwTxtPortion::CalcSpacing( short nSpaceAdd, const SwTxtSizeInfo &rInf ) con
}
/*************************************************************************
+ * virtual SwTxtPortion::HandlePortion()
+ *************************************************************************/
+
+void SwTxtPortion::HandlePortion( SwPortionHandler& rPH ) const
+{
+ rPH.Text( GetLen(), GetWhichPor() );
+}
+
+/*************************************************************************
* class SwHolePortion
*************************************************************************/
@@ -722,3 +734,12 @@ sal_Bool SwHolePortion::Format( SwTxtFormatInfo &rInf )
return rInf.IsFull() || rInf.X() >= rInf.Width();
}
+/*************************************************************************
+ * virtual SwHolePortion::HandlePortion()
+ *************************************************************************/
+
+void SwHolePortion::HandlePortion( SwPortionHandler& rPH ) const
+{
+ rPH.Text( GetLen(), GetWhichPor() );
+}
+