From f419ae6585e43ba6ce06a1bbfd944d95be1b92e0 Mon Sep 17 00:00:00 2001 From: Oliver Specht Date: Tue, 19 Dec 2000 14:58:30 +0000 Subject: redline portions implemented --- sw/inc/unoport.hxx | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'sw/inc/unoport.hxx') diff --git a/sw/inc/unoport.hxx b/sw/inc/unoport.hxx index b14d87ba709a..7dd6ca681f6b 100644 --- a/sw/inc/unoport.hxx +++ b/sw/inc/unoport.hxx @@ -2,9 +2,9 @@ * * $RCSfile: unoport.hxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: os $ $Date: 2000-12-19 09:44:33 $ + * last change: $Author: os $ $Date: 2000-12-19 15:46:40 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -79,6 +79,9 @@ #ifndef _COM_SUN_STAR_CONTAINER_XCONTENTENUMERATIONACCESS_HPP_ #include #endif +#ifndef _COM_SUN_STAR_CONTAINER_XENUMERATIONACCESS_HPP_ +#include +#endif #ifndef _COM_SUN_STAR_BEANS_XPROPERTYSTATE_HPP_ #include #endif @@ -95,6 +98,7 @@ class SwFmtFld; class SwFrmFmt; class SwUnoCrsr; +class SwRedline; /* -----------------29.05.98 14:42------------------- * * --------------------------------------------------*/ @@ -110,7 +114,9 @@ enum SwTextPortionType PORTION_TOXMARK_START, PORTION_TOXMARK_END, PORTION_BOOKMARK_START, - PORTION_BOOKMARK_END + PORTION_BOOKMARK_END, + PORTION_REDLINE_START, + PORTION_REDLINE_END }; class SwXTextPortion : public cppu::WeakImplHelper6 @@ -140,6 +146,7 @@ class SwXTextPortion : public cppu::WeakImplHelper6 BOOL bIsCollapsed; SwFmtFld* GetFldFmt(BOOL bInit = sal_False); +protected: SwUnoCrsr* GetCrsr() const { return (SwUnoCrsr*)GetRegisteredIn(); } public: SwXTextPortion(const SwUnoCrsr* pPortionCrsr, ::com::sun::star::uno::Reference< ::com::sun::star::text::XText > xParent, SwTextPortionType eType ); @@ -206,7 +213,8 @@ public: void SetControlChar(sal_Int16 nSet) {nControlChar = nSet;} - void SetIsCollapsed(BOOL bSet) { bIsCollapsed = bSet;} + BOOL IsCollapsed() const { return bIsCollapsed;} + void SetCollapsed(BOOL bSet) { bIsCollapsed = bSet;} //falls es mal als service erzeugt werden kann //void attachToRange(const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > & xTextRange)throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException ); -- cgit v1.2.3