summaryrefslogtreecommitdiff
path: root/sc/inc/textuno.hxx
diff options
context:
space:
mode:
authorNiklas Nebel <nn@openoffice.org>2000-12-18 18:30:26 +0000
committerNiklas Nebel <nn@openoffice.org>2000-12-18 18:30:26 +0000
commit4f4a8c8c5ec90d527c9f5f26771cd9a1de3d4fe4 (patch)
tree19254c1458d85cb013a93809b95db7995ada0d26 /sc/inc/textuno.hxx
parent3ead0b1dd6f02b9c434bff35cc36c00948aa68fd (diff)
#80606# TextCursor: use own objects for getText/getStart/getEnd
Diffstat (limited to 'sc/inc/textuno.hxx')
-rw-r--r--sc/inc/textuno.hxx36
1 files changed, 29 insertions, 7 deletions
diff --git a/sc/inc/textuno.hxx b/sc/inc/textuno.hxx
index 580eb7133276..ae734e6257f5 100644
--- a/sc/inc/textuno.hxx
+++ b/sc/inc/textuno.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: textuno.hxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 16:44:50 $
+ * last change: $Author: nn $ $Date: 2000-12-18 19:29:18 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -91,6 +91,7 @@ class EditEngine;
class EditTextObject;
class ScDocShell;
class ScAddress;
+class ScCellObj;
struct ScHeaderFieldData;
@@ -173,6 +174,8 @@ public:
USHORT nP );
virtual ~ScHeaderFooterTextObj();
+ const SvxUnoText& GetUnoText() const;
+
static void FillDummyFieldData( ScHeaderFieldData& rData );
// XText
@@ -247,18 +250,27 @@ public:
};
-// abgeleitete Cursor-Objekte nur, um per getImplementation unterscheiden zu koennen
+// derived cursor objects for getImplementation and getText/getStart/getEnd
//! uno3: SvxUnoTextCursor is not derived from XUnoTunnel, but should be (?)
class ScCellTextCursor : public SvxUnoTextCursor
{
+ ScCellObj& rTextObj;
+
public:
- ScCellTextCursor();
ScCellTextCursor(const ScCellTextCursor& rOther);
- ScCellTextCursor(const SvxUnoText& rText);
+ ScCellTextCursor(ScCellObj& rText);
virtual ~ScCellTextCursor();
+ // SvxUnoTextCursor methods reimplemented here:
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XText > SAL_CALL
+ getText() throw(::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > SAL_CALL
+ getStart() throw(::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > SAL_CALL
+ getEnd() throw(::com::sun::star::uno::RuntimeException);
+
// XUnoTunnel
virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence<
sal_Int8 >& aIdentifier )
@@ -271,12 +283,22 @@ public:
class ScHeaderFooterTextCursor : public SvxUnoTextCursor
{
+private:
+ ScHeaderFooterTextObj& rTextObj;
+
public:
- ScHeaderFooterTextCursor();
ScHeaderFooterTextCursor(const ScHeaderFooterTextCursor& rOther);
- ScHeaderFooterTextCursor(const SvxUnoText& rText);
+ ScHeaderFooterTextCursor(ScHeaderFooterTextObj& rText);
virtual ~ScHeaderFooterTextCursor();
+ // SvxUnoTextCursor methods reimplemented here:
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XText > SAL_CALL
+ getText() throw(::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > SAL_CALL
+ getStart() throw(::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > SAL_CALL
+ getEnd() throw(::com::sun::star::uno::RuntimeException);
+
// XUnoTunnel
virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence<
sal_Int8 >& aIdentifier )