xref: /AOO41X/main/chart2/source/controller/inc/dlg_InsertDataLabel.hxx (revision de7b3f825c374d9f7270d1282e9d92876f197200)
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_DATALABELS_GRID_HXX
24 #define CHART2_DLG_INSERT_DATALABELS_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 // header for class SfxItemSet
33 #include <svl/itemset.hxx>
34 //for auto_ptr
35 #include <memory>
36 
37 class SvNumberFormatter;
38 
39 //.............................................................................
40 namespace chart
41 {
42 //.............................................................................
43 
44 class DataLabelResources;
45 class DataLabelsDialog : public ModalDialog
46 {
47 private:
48     OKButton            m_aBtnOK;
49     CancelButton        m_aBtnCancel;
50     HelpButton          m_aBtnHelp;
51     ::std::auto_ptr< DataLabelResources >    m_apDataLabelResources;
52 
53     const SfxItemSet&   m_rInAttrs;
54 
55     void Reset();
56 
57 public:
58     DataLabelsDialog(Window* pParent, const SfxItemSet& rInAttrs, SvNumberFormatter* pFormatter);
59     virtual ~DataLabelsDialog();
60 
61     void FillItemSet(SfxItemSet& rOutAttrs);
62 };
63 
64 //.............................................................................
65 } //namespace chart
66 //.............................................................................
67 
68 #endif
69