diff options
author | Laurent Godard <lgodard.libre@laposte.net> | 2011-11-21 17:32:13 +0100 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-11-23 15:28:36 -0500 |
commit | 2ee55872ebc5aeb71041c3267d9b3baa9607b85b (patch) | |
tree | 37e4a75499cb58da715b6b46e363c30a76a3ba74 /sc/inc/docuno.hxx | |
parent | 364a3d2864973935b2cd18b328392d1b556456dd (diff) |
importSheet from an external provided document
define a new interface XSpreadsheets2
clean some String in docuno.cxx while i'm at it.
Diffstat (limited to 'sc/inc/docuno.hxx')
-rw-r--r-- | sc/inc/docuno.hxx | 11 |
1 files changed, 10 insertions, 1 deletions
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 <com/sun/star/sheet/XScenarios.hpp> #include <com/sun/star/sheet/XConsolidatable.hpp> #include <com/sun/star/sheet/XSpreadsheetDocument.hpp> +#include <com/sun/star/sheet/XSpreadsheets2.hpp> #include <com/sun/star/sheet/XDocumentAuditing.hpp> #include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/util/XProtectable.hpp> @@ -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 > |