From 2ee55872ebc5aeb71041c3267d9b3baa9607b85b Mon Sep 17 00:00:00 2001 From: Laurent Godard Date: Mon, 21 Nov 2011 17:32:13 +0100 Subject: importSheet from an external provided document define a new interface XSpreadsheets2 clean some String in docuno.cxx while i'm at it. --- sc/inc/docuno.hxx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'sc/inc/docuno.hxx') diff --git a/sc/inc/docuno.hxx b/sc/inc/docuno.hxx index 5c5ad863b140..1ca0d7165dd1 100644 --- a/sc/inc/docuno.hxx +++ b/sc/inc/docuno.hxx @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -371,7 +372,7 @@ public: class ScTableSheetsObj : public cppu::WeakImplHelper5< - com::sun::star::sheet::XSpreadsheets, + com::sun::star::sheet::XSpreadsheets2, com::sun::star::sheet::XCellRangesAccess, com::sun::star::container::XEnumerationAccess, com::sun::star::container::XIndexAccess, @@ -399,6 +400,14 @@ public: const ::rtl::OUString& aCopy, sal_Int16 nDestination ) throw(::com::sun::star::uno::RuntimeException); + // XSpreadsheets2 + virtual sal_Int32 SAL_CALL importSheet( + const ::com::sun::star::uno::Reference < + ::com::sun::star::sheet::XSpreadsheetDocument > & xDocSrc, + const rtl::OUString& srcName, + const sal_Int32 nDestPosition) + throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); + // XCellRangesAccess virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XCell > -- cgit