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 /offapi/com | |
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 'offapi/com')
-rw-r--r-- | offapi/com/sun/star/sheet/XSpreadsheets2.idl | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/offapi/com/sun/star/sheet/XSpreadsheets2.idl b/offapi/com/sun/star/sheet/XSpreadsheets2.idl new file mode 100644 index 000000000000..c4f8af13e2e0 --- /dev/null +++ b/offapi/com/sun/star/sheet/XSpreadsheets2.idl @@ -0,0 +1,75 @@ +/* + * Version: MPL 1.1 / GPLv3+ / LGPLv3+ + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * + * Author(s): Laurent Godard <lgodard.libre@laposte.net> + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 3 or later (the "GPLv3+"), or + * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), + * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable + * instead of those above. + */ + +#ifndef __com_sun_star_table_XSpreadsheets2_idl__ +#define __com_sun_star_table_XSpreadsheets2_idl__ + +#include <com/sun/star/sheet/XSpreadsheets.idl> +#include <com/sun/star/sheet/XSpreadsheetDocument.idl> +#include <com/sun/star/lang/IllegalArgumentException.idl> +#include <com/sun/star/uno/RuntimeException.idl> + +//============================================================================= + +module com { module sun { module star { module sheet { + +//============================================================================= + +/** extends XSpreadsheets interface to import external sheets. + + @see com::sun::star::sheet::Spreadsheets + */ +interface XSpreadsheets2: com::sun::star::sheet::XSpreadsheets +{ + /** copies a sheet from a source document. + + @param srcDoc + a valid XSpreadsheetDocument reference to source doc + + @param srcName + the source sheet name. + + @param nDestPosition + the destination sheet position. + + @returns the position of the imported sheet or -1 if not imported + + @throws ::com::sun::star::lang::IllegalArgumentException + @throws ::com::sun::star::uno::RuntimeException + + @since LibreOffice 3.5 + */ + long importSheet( + [in] com::sun::star::sheet::XSpreadsheetDocument srcDoc, + [in] string srcName, + [in] long nDestPosition) + raises (com::sun::star::lang::IllegalArgumentException, + com::sun::star::uno::RuntimeException); +}; + +//============================================================================= + +}; }; }; }; + +#endif + |