Kaydet (Commit) 34e5e9c6 authored tarafından Noel Grandin's avatar Noel Grandin

fdo#46808, Convert awt::grid::DefaultGridColumnModel to new style

Change-Id: Id1b63847e21954c689dfa3c549713dbf5b1858c3
üst 670e2329
...@@ -64,6 +64,7 @@ $(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/awt,\ ...@@ -64,6 +64,7 @@ $(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/awt,\
UnoControlDialogModelProvider \ UnoControlDialogModelProvider \
)) ))
$(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/awt/grid,\ $(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/awt/grid,\
DefaultGridColumnModel \
DefaultGridDataModel \ DefaultGridDataModel \
SortableGridDataModel \ SortableGridDataModel \
)) ))
...@@ -579,7 +580,6 @@ $(eval $(call gb_UnoApi_add_idlfiles_noheader,offapi,offapi/com/sun/star/awt,\ ...@@ -579,7 +580,6 @@ $(eval $(call gb_UnoApi_add_idlfiles_noheader,offapi,offapi/com/sun/star/awt,\
UnoControlTimeFieldModel \ UnoControlTimeFieldModel \
)) ))
$(eval $(call gb_UnoApi_add_idlfiles_noheader,offapi,offapi/com/sun/star/awt/grid,\ $(eval $(call gb_UnoApi_add_idlfiles_noheader,offapi,offapi/com/sun/star/awt/grid,\
DefaultGridColumnModel \
GridColumn \ GridColumn \
UnoControlGrid \ UnoControlGrid \
UnoControlGridModel \ UnoControlGridModel \
......
...@@ -28,10 +28,7 @@ ...@@ -28,10 +28,7 @@
/** If you do not want to implement the XGridColumnModel yourself, use this service. /** If you do not want to implement the XGridColumnModel yourself, use this service.
@since OOo 3.3 @since OOo 3.3
*/ */
service DefaultGridColumnModel service DefaultGridColumnModel : com::sun::star::awt::grid::XGridColumnModel;
{
interface com::sun::star::awt::grid::XGridColumnModel;
};
}; }; }; };}; }; }; }; };};
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#include <com/sun/star/awt/grid/XMutableGridDataModel.hpp> #include <com/sun/star/awt/grid/XMutableGridDataModel.hpp>
#include <com/sun/star/awt/grid/DefaultGridDataModel.hpp> #include <com/sun/star/awt/grid/DefaultGridDataModel.hpp>
#include <com/sun/star/awt/grid/SortableGridDataModel.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/unopropertyarrayhelper.hxx>
#include <toolkit/helper/property.hxx> #include <toolkit/helper/property.hxx>
#include <com/sun/star/awt/XVclWindowPeer.hpp> #include <com/sun/star/awt/XVclWindowPeer.hpp>
...@@ -61,7 +61,7 @@ namespace ...@@ -61,7 +61,7 @@ namespace
Reference< XGridColumnModel > lcl_getDefaultColumnModel_throw( const Reference<XComponentContext> & i_context ) 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; return xColumnModel;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment