Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_CHART_CHARTDATACHANGEEVENT_HPP
2 : : #define INCLUDED_COM_SUN_STAR_CHART_CHARTDATACHANGEEVENT_HPP
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/chart/ChartDataChangeEvent.hdl"
7 : :
8 : : #include "com/sun/star/chart/ChartDataChangeType.hpp"
9 : : #include "com/sun/star/lang/EventObject.hpp"
10 : : #include "com/sun/star/uno/Type.hxx"
11 : : #include "cppu/unotype.hxx"
12 : : #include "sal/types.h"
13 : : #include "typelib/typeclass.h"
14 : : #include "typelib/typedescription.h"
15 : :
16 : : namespace com { namespace sun { namespace star { namespace chart {
17 : :
18 : 4 : inline ChartDataChangeEvent::ChartDataChangeEvent() SAL_THROW(())
19 : : : ::com::sun::star::lang::EventObject()
20 : : , Type(::com::sun::star::chart::ChartDataChangeType_ALL)
21 : : , StartColumn(0)
22 : : , EndColumn(0)
23 : : , StartRow(0)
24 : 4 : , EndRow(0)
25 : : {
26 : 4 : }
27 : :
28 : 20 : inline ChartDataChangeEvent::ChartDataChangeEvent(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& Source_, const ::com::sun::star::chart::ChartDataChangeType& Type_, const ::sal_Int16& StartColumn_, const ::sal_Int16& EndColumn_, const ::sal_Int16& StartRow_, const ::sal_Int16& EndRow_) SAL_THROW(())
29 : : : ::com::sun::star::lang::EventObject(Source_)
30 : : , Type(Type_)
31 : : , StartColumn(StartColumn_)
32 : : , EndColumn(EndColumn_)
33 : : , StartRow(StartRow_)
34 : 20 : , EndRow(EndRow_)
35 : : {
36 : 20 : }
37 : :
38 : : } } } }
39 : :
40 : : namespace com { namespace sun { namespace star { namespace chart {
41 : :
42 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::chart::ChartDataChangeEvent const *) {
43 : : //TODO: On certain platforms with weak memory models, the following code can result in some threads observing that the_type points to garbage
44 : : static ::typelib_TypeDescriptionReference * the_type = 0;
45 : : if (the_type == 0) {
46 : : ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "com.sun.star.chart.ChartDataChangeEvent");
47 : : }
48 : : return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
49 : : }
50 : :
51 : : } } } }
52 : :
53 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::chart::ChartDataChangeEvent const *) SAL_THROW(()) {
54 : : return ::cppu::UnoType< ::com::sun::star::chart::ChartDataChangeEvent >::get();
55 : : }
56 : :
57 : : #endif // INCLUDED_COM_SUN_STAR_CHART_CHARTDATACHANGEEVENT_HPP
|