summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorFrank Meies <fme@openoffice.org>2002-04-04 11:27:19 +0000
committerFrank Meies <fme@openoffice.org>2002-04-04 11:27:19 +0000
commit874f54d0c957e1759d0830dd60ac18c047733782 (patch)
treec2748ac0ab6c8a3767cc54e2320ee020123a40da /sw/source
parent619001930e5862ec22af50debd9a1ec070b65a32 (diff)
#95586# Accessibility - Call PortionHandler for ISO portions
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/text/porref.cxx18
-rw-r--r--sw/source/core/text/porref.hxx8
-rw-r--r--sw/source/core/text/portox.cxx16
-rw-r--r--sw/source/core/text/portox.hxx8
4 files changed, 42 insertions, 8 deletions
diff --git a/sw/source/core/text/porref.cxx b/sw/source/core/text/porref.cxx
index 20bf07d287fe..a97e12c0b56c 100644
--- a/sw/source/core/text/porref.cxx
+++ b/sw/source/core/text/porref.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: porref.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: mh $ $Date: 2001-10-25 17:11:36 $
+ * last change: $Author: fme $ $Date: 2002-04-04 12:27:19 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -65,6 +65,9 @@
#pragma hdrstop
+#ifndef _SW_PORTIONHANDLER_HXX
+#include <SwPortionHandler.hxx>
+#endif
#include "viewopt.hxx" // SwViewOptions
#include "txtcfg.hxx"
@@ -135,4 +138,15 @@ void SwIsoRefPortion::Paint( const SwTxtPaintInfo &rInf ) const
rInf.DrawViewOpt( *this, POR_REF );
}
+/*************************************************************************
+ * virtual SwIsoRefPortion::HandlePortion()
+ *************************************************************************/
+
+void SwIsoRefPortion::HandlePortion( SwPortionHandler& rPH ) const
+{
+ String aString;
+ rPH.Special( GetLen(), aString, GetWhichPor() );
+}
+
+
diff --git a/sw/source/core/text/porref.hxx b/sw/source/core/text/porref.hxx
index 1974b3f382d8..479a83e794e1 100644
--- a/sw/source/core/text/porref.hxx
+++ b/sw/source/core/text/porref.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: porref.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: fme $ $Date: 2001-05-28 16:20:44 $
+ * last change: $Author: fme $ $Date: 2002-04-04 12:27:19 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -89,6 +89,10 @@ public:
virtual void Paint( const SwTxtPaintInfo &rInf ) const;
virtual SwLinePortion *Compress();
virtual KSHORT GetViewWidth( const SwTxtSizeInfo &rInf ) const;
+
+ // Accessibility: pass information about this portion to the PortionHandler
+ virtual void HandlePortion( SwPortionHandler& rPH ) const;
+
OUTPUT_OPERATOR
};
diff --git a/sw/source/core/text/portox.cxx b/sw/source/core/text/portox.cxx
index cf17aaae6321..47ef80c6ff7c 100644
--- a/sw/source/core/text/portox.cxx
+++ b/sw/source/core/text/portox.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: portox.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: mh $ $Date: 2001-10-25 17:12:49 $
+ * last change: $Author: fme $ $Date: 2002-04-04 12:27:19 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -65,6 +65,9 @@
#pragma hdrstop
+#ifndef _SW_PORTIONHANDLER_HXX
+#include <SwPortionHandler.hxx>
+#endif
#include "viewopt.hxx" // SwViewOptions
#include "txtcfg.hxx"
@@ -136,4 +139,13 @@ void SwIsoToxPortion::Paint( const SwTxtPaintInfo &rInf ) const
rInf.DrawViewOpt( *this, POR_TOX );
}
+/*************************************************************************
+ * virtual SwIsoToxPortion::HandlePortion()
+ *************************************************************************/
+
+void SwIsoToxPortion::HandlePortion( SwPortionHandler& rPH ) const
+{
+ String aString;
+ rPH.Special( GetLen(), aString, GetWhichPor() );
+}
diff --git a/sw/source/core/text/portox.hxx b/sw/source/core/text/portox.hxx
index df56d0617a62..acad3fb6edb5 100644
--- a/sw/source/core/text/portox.hxx
+++ b/sw/source/core/text/portox.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: portox.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: fme $ $Date: 2001-05-28 16:20:44 $
+ * last change: $Author: fme $ $Date: 2002-04-04 12:27:19 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -91,6 +91,10 @@ public:
virtual void Paint( const SwTxtPaintInfo &rInf ) const;
virtual SwLinePortion *Compress();
virtual KSHORT GetViewWidth( const SwTxtSizeInfo &rInf ) const;
+
+ // Accessibility: pass information about this portion to the PortionHandler
+ virtual void HandlePortion( SwPortionHandler& rPH ) const;
+
OUTPUT_OPERATOR
};