:: com :: sun :: star :: sheet ::

interface XSpreadsheets2
Base Interfaces
XSpreadsheets2XSpreadsheets
   ┗ ::com::sun::star::container::XNameContainer
      ┗ ::com::sun::star::container::XNameReplace
         ┗ ::com::sun::star::container::XNameAccess
            ┗ ::com::sun::star::container::XElementAccess

XSpreadsheets
(referenced interface's summary:)
provides methods to access the spreadsheets by name and to insert, copy, remove and rearrange spreadsheets.

Methods' Summary
importSheet copies a sheet from a source document.  
Methods' Details
importSheet
long
importSheet( [in] XSpreadsheetDocument  srcDoc,
[in] string  srcName,
[in] long  nDestPosition )
raises( ::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::lang::IndexOutOfBoundsException );

Description
copies a sheet from a source document.
Parameter srcDoc
a valid XSpreadsheetDocument reference to source doc
Parameter srcName
the source sheet name. Throw IllegalArgumentException if not valid
Parameter nDestPosition
the destination sheet position. Throw IndexOutOfBoundsException if not valid
Returns
the position of the imported sheet
Throws
::com::sun::star::lang::IllegalArgumentException
Throws
com::sun::star::lang::IndexOutOfBoundsException
Since
LibreOffice 3.5
Top of Page