summaryrefslogtreecommitdiff
path: root/offapi
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2011-03-24 13:56:14 +0100
committerFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2011-03-24 13:56:14 +0100
commitd91dbe70121ec3d14d2d392b5bbd1b60624eeb14 (patch)
tree0d770852e89f3931d02d59d1940d045ae3b47a7e /offapi
parentb24c3700adbc03ed10d1ed856db628c8928df553 (diff)
gridfixes: #i117398# XMutableGridDataModel: allow inserting rows at arbitrary positions
Diffstat (limited to 'offapi')
-rwxr-xr-xoffapi/com/sun/star/awt/grid/XMutableGridDataModel.idl36
1 files changed, 34 insertions, 2 deletions
diff --git a/offapi/com/sun/star/awt/grid/XMutableGridDataModel.idl b/offapi/com/sun/star/awt/grid/XMutableGridDataModel.idl
index 5e10820ff9ef..20749aaa0c8c 100755
--- a/offapi/com/sun/star/awt/grid/XMutableGridDataModel.idl
+++ b/offapi/com/sun/star/awt/grid/XMutableGridDataModel.idl
@@ -41,7 +41,7 @@ module com { module sun { module star { module awt { module grid {
*/
interface XMutableGridDataModel : XGridDataModel
{
- /** adds a row to the model.
+ /** appends a row to the model.
@param Heading
denotes the heading of the row.
@@ -50,7 +50,7 @@ interface XMutableGridDataModel : XGridDataModel
*/
void addRow( [in] any Heading, [in] sequence< any > Data );
- /** adds multiple rows of data to the model.
+ /** appends multiple rows of data to the model.
@param Headings
denotes the headings of the to-be-added rows.
@param Data
@@ -61,6 +61,38 @@ interface XMutableGridDataModel : XGridDataModel
void addRows( [in] sequence< any > Headings, [in] sequence< sequence< any > > Data )
raises ( ::com::sun::star::lang::IllegalArgumentException );
+ /** inserts a row into the set of data rows
+
+ @param Index
+ denotes the position at which the row is to be inserted
+ @param Heading
+ denotes the heading of the row.
+ @param Data
+ specifies the content of the row.
+ @throws ::com::sun::star::lang::IndexOutOfBoundsException
+ if <code>Index</code> is smaller than <code>0</code> or greater than the number of
+ rows in the model.
+ */
+ void insertRow( [in] long Index, [in] any Heading, [in] sequence< any > Data )
+ raises ( ::com::sun::star::lang::IndexOutOfBoundsException );
+
+ /** inserts multiple rows of data into the model.
+ @param Index
+ denotes the position at which the rows are to be inserted
+ @param Headings
+ denotes the headings of the to-be-added rows.
+ @param Data
+ specifies the data of the rows to be added.
+ @throws ::com::sun::star::lang::IllegalArgumentException
+ if <code>Titles</code> and <code>Data</code> are of different length.
+ @throws ::com::sun::star::lang::IndexOutOfBoundsException
+ if <code>Index</code> is smaller than <code>0</code> or greater than the number of
+ rows in the model.
+ */
+ void insertRows( [in] long Index, [in] sequence< any > Headings, [in] sequence< sequence< any > > Data )
+ raises ( ::com::sun::star::lang::IndexOutOfBoundsException
+ , ::com::sun::star::lang::IllegalArgumentException );
+
/** removes a row of data from the model
@param RowIndex