diff options
-rw-r--r-- | offapi/UnoApi_offapi.mk | 2 | ||||
-rw-r--r-- | offapi/com/sun/star/awt/grid/DefaultGridColumnModel.idl | 5 | ||||
-rw-r--r-- | toolkit/source/controls/grid/gridcontrol.cxx | 4 |
3 files changed, 4 insertions, 7 deletions
diff --git a/offapi/UnoApi_offapi.mk b/offapi/UnoApi_offapi.mk index 081a0d3c799a..5835d63d0acc 100644 --- a/offapi/UnoApi_offapi.mk +++ b/offapi/UnoApi_offapi.mk @@ -64,6 +64,7 @@ $(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/awt,\ UnoControlDialogModelProvider \ )) $(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/awt/grid,\ + DefaultGridColumnModel \ DefaultGridDataModel \ SortableGridDataModel \ )) @@ -579,7 +580,6 @@ $(eval $(call gb_UnoApi_add_idlfiles_noheader,offapi,offapi/com/sun/star/awt,\ UnoControlTimeFieldModel \ )) $(eval $(call gb_UnoApi_add_idlfiles_noheader,offapi,offapi/com/sun/star/awt/grid,\ - DefaultGridColumnModel \ GridColumn \ UnoControlGrid \ UnoControlGridModel \ diff --git a/offapi/com/sun/star/awt/grid/DefaultGridColumnModel.idl b/offapi/com/sun/star/awt/grid/DefaultGridColumnModel.idl index 3ff19f0128ad..4f7a9a8338a7 100644 --- a/offapi/com/sun/star/awt/grid/DefaultGridColumnModel.idl +++ b/offapi/com/sun/star/awt/grid/DefaultGridColumnModel.idl @@ -28,10 +28,7 @@ /** If you do not want to implement the XGridColumnModel yourself, use this service. @since OOo 3.3 */ -service DefaultGridColumnModel -{ - interface com::sun::star::awt::grid::XGridColumnModel; -}; +service DefaultGridColumnModel : com::sun::star::awt::grid::XGridColumnModel; }; }; }; };}; diff --git a/toolkit/source/controls/grid/gridcontrol.cxx b/toolkit/source/controls/grid/gridcontrol.cxx index 8b04f51f1dc3..939e6f16b610 100644 --- a/toolkit/source/controls/grid/gridcontrol.cxx +++ b/toolkit/source/controls/grid/gridcontrol.cxx @@ -27,7 +27,7 @@ #include <com/sun/star/awt/grid/XMutableGridDataModel.hpp> #include <com/sun/star/awt/grid/DefaultGridDataModel.hpp> #include <com/sun/star/awt/grid/SortableGridDataModel.hpp> -#include <com/sun/star/awt/grid/XGridColumnModel.hpp> +#include <com/sun/star/awt/grid/DefaultGridColumnModel.hpp> #include <toolkit/helper/unopropertyarrayhelper.hxx> #include <toolkit/helper/property.hxx> #include <com/sun/star/awt/XVclWindowPeer.hpp> @@ -61,7 +61,7 @@ namespace Reference< XGridColumnModel > lcl_getDefaultColumnModel_throw( const Reference<XComponentContext> & i_context ) { - Reference< XGridColumnModel > const xColumnModel( i_context->getServiceManager()->createInstanceWithContext( "com.sun.star.awt.grid.DefaultGridColumnModel", i_context ), UNO_QUERY_THROW ); + Reference< XGridColumnModel > const xColumnModel = DefaultGridColumnModel::create( i_context ); return xColumnModel; } } |