From dcd6c8a87317a81beea35a067667165b9e0f051b Mon Sep 17 00:00:00 2001
From: "Frank Schoenheit [fs]"
Date: Fri, 7 Jan 2011 15:28:22 +0100
Subject: [PATCH] gridsort: alllow removing columns from a grid control column
model
---
.../sun/star/awt/grid/XGridColumnModel.idl | 21 ++++++++++++++-----
1 file changed, 16 insertions(+), 5 deletions(-)
diff --git a/offapi/com/sun/star/awt/grid/XGridColumnModel.idl b/offapi/com/sun/star/awt/grid/XGridColumnModel.idl
index 94ddc4eb5eeb..49ad3cbc1f9a 100644
--- a/offapi/com/sun/star/awt/grid/XGridColumnModel.idl
+++ b/offapi/com/sun/star/awt/grid/XGridColumnModel.idl
@@ -64,11 +64,20 @@ interface XGridColumnModel
interface ::com::sun::star::util::XCloneable;
/** Returns the number of columns.
+
@returns
the number of columns.
*/
long getColumnCount();
+ /** creates a new column for use with the column model.
+
+ The newly created column is not yet inserted into the column container, you need to call addColumn
+ after you initialized the column object.
+ */
+ XGridColumn
+ createColumn();
+
/** Adds a column to the model.
You should use the createColumn member to create a new column. This gives
@@ -86,13 +95,15 @@ interface XGridColumnModel
long addColumn( [in] XGridColumn column )
raises ( ::com::sun::star::lang::IllegalArgumentException );
- /** creates a new column for use with the column model.
+ /** retrieves a column from the model
- The newly created column is not yet inserted into the column container, you need to call addColumn
- after you initialized the column object.
+ @param ColumnIndex
+ denotes the index of the column to remove
+ @throws ::com::sun::star::lang::IndexOutOfBoundsException
+ if ColumnIndex
does not denote a valid column index.
*/
- XGridColumn
- createColumn();
+ void removeColumn( [in] long ColumnIndex )
+ raises ( ::com::sun::star::lang::IndexOutOfBoundsException );
/** Returns all columns of the model.
@returns