From 874f54d0c957e1759d0830dd60ac18c047733782 Mon Sep 17 00:00:00 2001 From: Frank Meies Date: Thu, 4 Apr 2002 11:27:19 +0000 Subject: #95586# Accessibility - Call PortionHandler for ISO portions --- sw/source/core/text/porref.cxx | 18 ++++++++++++++++-- sw/source/core/text/porref.hxx | 8 ++++++-- sw/source/core/text/portox.cxx | 16 ++++++++++++++-- sw/source/core/text/portox.hxx | 8 ++++++-- 4 files changed, 42 insertions(+), 8 deletions(-) (limited to 'sw') 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 +#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 +#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 }; -- cgit v1.2.3