1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _CHART2_CREATION_TYPE_UNO_HXX
25 #define _CHART2_CREATION_TYPE_UNO_HXX
26 
27 #include "ServiceMacros.hxx"
28 #include <com/sun/star/awt/XWindow.hpp>
29 #include <com/sun/star/beans/XPropertySet.hpp>
30 #include <com/sun/star/frame/XModel.hpp>
31 #include <vcl/vclevent.hxx>
32 
33 #include <svtools/genericunodialog.hxx>
34 //.............................................................................
35 namespace chart
36 {
37 //.............................................................................
38 typedef ::svt::OGenericUnoDialog ChartTypeUnoDlg_BASE;
39 class ChartType;
40 class ChartTypeUnoDlg : public ChartTypeUnoDlg_BASE
41                         ,public ::comphelper::OPropertyArrayUsageHelper< ChartTypeUnoDlg >
42 {
43 public:
44     ChartTypeUnoDlg( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext );
45 
46     // XServiceInfo - static methods
47 	static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_Static(void);
48 	static ::rtl::OUString getImplementationName_Static(void) throw( ::com::sun::star::uno::RuntimeException );
49 	static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
50 			SAL_CALL Create(const ::com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >&);
51 private:
52     virtual ~ChartTypeUnoDlg();
53 
54     // OGenericUnoDialog overridables
55 	virtual void implInitialize(const com::sun::star::uno::Any& _rValue);
56     virtual Dialog*	createDialog(Window* _pParent);
57 
58     // XTypeProvider
59     virtual com::sun::star::uno::Sequence<sal_Int8> SAL_CALL getImplementationId(  ) throw(com::sun::star::uno::RuntimeException);
60     // XServiceInfo
61 	virtual ::rtl::OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException);
62 	virtual ::comphelper::StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
63 
64     // XPropertySet
65 	virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo>  SAL_CALL getPropertySetInfo() throw(::com::sun::star::uno::RuntimeException);
66 	virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
67 
68 	// OPropertyArrayUsageHelper
69 	virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const;
70 
71     //no default constructor
72     ChartTypeUnoDlg();
73     ChartTypeUnoDlg(const ChartTypeUnoDlg&); // no defined
74     void operator =(const ChartTypeUnoDlg&); // no defined
75 
76     ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >           m_xChartModel;
77 };
78 
79 //.............................................................................
80 } //namespace chart
81 //.............................................................................
82 #endif
83