diff options
author | Niklas Nebel <nn@openoffice.org> | 2001-01-18 14:58:42 +0000 |
---|---|---|
committer | Niklas Nebel <nn@openoffice.org> | 2001-01-18 14:58:42 +0000 |
commit | d44694c5957042d05139dc9d8ebff1160d90fa18 (patch) | |
tree | f92af9b209a09c1864091faa8428bde5e3455f7a /sc/inc/textuno.hxx | |
parent | 05a07b1f6bf683bad8325091d20de1ca9c72b530 (diff) |
ScEditEngineTextObj
Diffstat (limited to 'sc/inc/textuno.hxx')
-rw-r--r-- | sc/inc/textuno.hxx | 37 |
1 files changed, 34 insertions, 3 deletions
diff --git a/sc/inc/textuno.hxx b/sc/inc/textuno.hxx index ae734e6257f5..284e52e8a361 100644 --- a/sc/inc/textuno.hxx +++ b/sc/inc/textuno.hxx @@ -2,9 +2,9 @@ * * $RCSfile: textuno.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: nn $ $Date: 2000-12-18 19:29:18 $ + * last change: $Author: nn $ $Date: 2001-01-18 15:55:11 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -89,9 +89,12 @@ class EditEngine; class EditTextObject; +class SvxEditEngineForwarder; class ScDocShell; class ScAddress; class ScCellObj; +class ScSimpleEditSource; +class ScEditEngineDefaulter; struct ScHeaderFieldData; @@ -309,8 +312,36 @@ public: com::sun::star::uno::XInterface> xObj ); }; +// ScAnnotationTextCursor isn't needed anymore - SvxUnoTextCursor is used instead -// ScAnnotationTextCursor nicht mehr - stattdessen wird einfach SvxUnoTextCursor benutzt + +// ScEditEngineTextObj for formatted cell content that is not inserted in a cell or header/footer +// (used for XML export of change tracking contents) + +class ScSimpleEditSourceHelper +{ + ScEditEngineDefaulter* pEditEngine; + SvxEditEngineForwarder* pForwarder; + ScSimpleEditSource* pOriginalSource; + +public: + ScSimpleEditSourceHelper(); + ~ScSimpleEditSourceHelper(); + + ScSimpleEditSource* GetOriginalSource() const { return pOriginalSource; } + ScEditEngineDefaulter* GetEditEngine() const { return pEditEngine; } +}; + +class ScEditEngineTextObj : public ScSimpleEditSourceHelper, public SvxUnoText +{ +public: + ScEditEngineTextObj(); + virtual ~ScEditEngineTextObj(); + + void SetText( const String& rStr ); + void SetText( const EditTextObject& rTextObject ); + EditTextObject* CreateTextObject(); +}; #endif |