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 #ifndef _CHART2_DLG_INSERT_LEGEND_GRID_HXX
24 #define _CHART2_DLG_INSERT_LEGEND_GRID_HXX
25 
26 // header for class ModalDialog
27 #include <vcl/dialog.hxx>
28 // header for class CheckBox
29 #ifndef _SV_BUTTON_HXX
30 #include <vcl/button.hxx>
31 #endif
32 //for auto_ptr
33 #include <memory>
34 #include <com/sun/star/frame/XModel.hpp>
35 #include <com/sun/star/uno/XComponentContext.hpp>
36 
37 //.............................................................................
38 namespace chart
39 {
40 //.............................................................................
41 
42 class LegendPositionResources;
43 class SchLegendDlg : public ModalDialog
44 {
45 private:
46 	::std::auto_ptr< LegendPositionResources >    m_apLegendPositionResources;
47 
48 	OKButton		aBtnOK;
49 	CancelButton	aBtnCancel;
50 	HelpButton		aBtnHelp;
51 
52 public:
53 	SchLegendDlg( Window* pParent, const ::com::sun::star::uno::Reference<
54                        ::com::sun::star::uno::XComponentContext>& xCC );
55 	virtual ~SchLegendDlg();
56 
57     void init( const ::com::sun::star::uno::Reference<
58                        ::com::sun::star::frame::XModel >& xChartModel );
59     bool writeToModel( const ::com::sun::star::uno::Reference<
60                        ::com::sun::star::frame::XModel >& xChartModel ) const;
61 };
62 
63 //.............................................................................
64 } //namespace chart
65 //.............................................................................
66 
67 #endif
68 
69