diff options
author | Daniel Vogelheim <dvo@openoffice.org> | 2001-01-10 20:11:43 +0000 |
---|---|---|
committer | Daniel Vogelheim <dvo@openoffice.org> | 2001-01-10 20:11:43 +0000 |
commit | c7f0c9c915f9c16525738797c61a16935067297c (patch) | |
tree | fd43aaaaffa37584daeb15948cea016861d1df51 /sw/inc | |
parent | 52d244dee88b111631680d8cd4c8b922f9640c15 (diff) |
- added: redline ID property
- added: SwXRedlineText class for XML redline import
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/unoprnms.hxx | 5 | ||||
-rw-r--r-- | sw/inc/unoredline.hxx | 32 |
2 files changed, 33 insertions, 4 deletions
diff --git a/sw/inc/unoprnms.hxx b/sw/inc/unoprnms.hxx index e37465b03b7b..265a845c7313 100644 --- a/sw/inc/unoprnms.hxx +++ b/sw/inc/unoprnms.hxx @@ -2,9 +2,9 @@ * * $RCSfile: unoprnms.hxx,v $ * - * $Revision: 1.29 $ + * $Revision: 1.30 $ * - * last change: $Author: dvo $ $Date: 2001-01-02 14:29:22 $ + * last change: $Author: dvo $ $Date: 2001-01-10 21:11:43 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -641,6 +641,7 @@ extern const SwPropNameLen __FAR_DATA UNO_NAME_REDLINE_DATE_TIME; extern const SwPropNameLen __FAR_DATA UNO_NAME_REDLINE_COMMENT; extern const SwPropNameLen __FAR_DATA UNO_NAME_REDLINE_TYPE; extern const SwPropNameLen __FAR_DATA UNO_NAME_REDLINE_SUCCESSOR_DATA; +extern const SwPropNameLen __FAR_DATA UNO_NAME_REDLINE_IDENTIFIER; #endif diff --git a/sw/inc/unoredline.hxx b/sw/inc/unoredline.hxx index dc872c03e5df..0785f94c3364 100644 --- a/sw/inc/unoredline.hxx +++ b/sw/inc/unoredline.hxx @@ -2,9 +2,9 @@ * * $RCSfile: unoredline.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: os $ $Date: 2000-12-21 12:17:15 $ + * last change: $Author: dvo $ $Date: 2001-01-10 21:11:43 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -68,6 +68,34 @@ /* -----------------------------19.12.00 11:35-------------------------------- ---------------------------------------------------------------------------*/ + +/** + * SwXRedlineText provides an XText which may be used to write + * directly into a redline node. It got implemented to enable XML + * import of redlines and should not be used directly via the API. + */ +class SwXRedlineText : + public SwXText, + public cppu::OWeakObject +{ + SwNodeIndex aNodeIndex; + +public: + SwXRedlineText(SwDoc* pDoc, SwNodeIndex aNodeIndex); + + virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw(::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL acquire( ) throw(){OWeakObject::acquire();} + virtual void SAL_CALL release( ) throw(){OWeakObject::release();} + + virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw(::com::sun::star::uno::RuntimeException); + virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) throw(::com::sun::star::uno::RuntimeException); + + //XText + virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextCursor > SAL_CALL createTextCursor(void) throw( ::com::sun::star::uno::RuntimeException ); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextCursor > SAL_CALL createTextCursorByRange(const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > & aTextPosition) throw( ::com::sun::star::uno::RuntimeException ); + +}; + class SwXRedlinePortion : public SwXTextPortion, public SwXText, public ::com::sun::star::container::XEnumerationAccess |