diff options
author | Frank Schoenheit [fs] <frank.schoenheit@oracle.com> | 2011-01-07 13:08:22 +0100 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@oracle.com> | 2011-01-07 13:08:22 +0100 |
commit | e7b637e116923120d57539a7bd858216207d12b4 (patch) | |
tree | 030d7f67e44d98598eb2efb07ff391bb135d0c00 /offapi/com/sun/star/awt | |
parent | 26b3f767ad1c0c6384486f4f5cfea46640b79ee9 (diff) |
gridsort: added XGridColumnModel::createColumn
Diffstat (limited to 'offapi/com/sun/star/awt')
-rw-r--r-- | offapi/com/sun/star/awt/grid/XGridColumnModel.idl | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/offapi/com/sun/star/awt/grid/XGridColumnModel.idl b/offapi/com/sun/star/awt/grid/XGridColumnModel.idl index 462fdf47d..b2127efb1 100644 --- a/offapi/com/sun/star/awt/grid/XGridColumnModel.idl +++ b/offapi/com/sun/star/awt/grid/XGridColumnModel.idl @@ -34,6 +34,7 @@ #include <com/sun/star/awt/grid/XGridColumn.idl> #include <com/sun/star/container/XContainer.idl> #include <com/sun/star/lang/IndexOutOfBoundsException.idl> +#include <com/sun/star/lang/IllegalArgumentException.idl> //============================================================================= @@ -69,22 +70,29 @@ interface XGridColumnModel long getColumnCount(); /** Adds a column to the model. + + </p>You should use the <member>createColumn</member> member to create a new column. This gives + implementations of the <code>XGridColumnModel</code> interface the possibility to provide own column + implementations which extend the basic <type>GridColumn</type> type.</p> + @param column the column to add to the model. - @returns - the index of new created column. + the index of new created column. + + @throws ::com::sun::star::lang::IllegalArgumentException + if the given column is not a valid element for the column container, or if it is <NULL/>. */ - long addColumn( [in] XGridColumn column ); + long addColumn( [in] XGridColumn column ) + raises ( ::com::sun::star::lang::IllegalArgumentException ); - /* - long getSelectedCount(); - - sequence<XGridColumn> getSelectedColumns(); - - sequence<long> getSelectedIndex(); - + /** creates a new column for use with the column model. + + <p>The newly created column is not yet inserted into the column container, you need to call <member>addColumn</member> + after you initialized the column object.</p> */ + XGridColumn + createColumn(); /** Returns all columns of the model. @returns |