Bump for 3.6-28
[LibreOffice.git] / chart2 / source / controller / inc / dlg_DataSource.hxx
blob140066f5b5c1037de7fd79a7c5667458abc19fbc
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
28 #ifndef CHART2_DATASOURCEDIALOG_HXX
29 #define CHART2_DATASOURCEDIALOG_HXX
31 // header for class TabDialog
32 #include <vcl/tabdlg.hxx>
33 // header for class TabControl
34 #include <vcl/tabctrl.hxx>
35 // header for class OKButton
36 #include <vcl/button.hxx>
38 #include "TabPageNotifiable.hxx"
39 #include <com/sun/star/uno/XComponentContext.hpp>
40 #include <com/sun/star/chart2/XChartDocument.hpp>
42 // for auto_ptr
43 #include <memory>
45 namespace chart
48 class DataSourceTabControl;
49 class RangeChooserTabPage;
50 class DataSourceTabPage;
51 class ChartTypeTemplateProvider;
52 class DialogModel;
54 class DataSourceDialog :
55 public TabDialog,
56 public TabPageNotifiable
58 public:
59 explicit DataSourceDialog(
60 Window * pParent,
61 const ::com::sun::star::uno::Reference<
62 ::com::sun::star::chart2::XChartDocument > & xChartDocument,
63 const ::com::sun::star::uno::Reference<
64 ::com::sun::star::uno::XComponentContext > & xContext );
65 virtual ~DataSourceDialog();
67 // from Dialog (base of TabDialog)
68 virtual short Execute();
70 // TabPageNotifiable
71 virtual void setInvalidPage( TabPage * pTabPage );
72 virtual void setValidPage( TabPage * pTabPage );
74 protected:
75 ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XChartDocument >
76 m_xChartDocument;
77 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >
78 m_xContext;
79 ::std::auto_ptr< ChartTypeTemplateProvider > m_apDocTemplateProvider;
80 ::std::auto_ptr< DialogModel > m_apDialogModel;
82 private:
83 DataSourceTabControl* m_pTabControl;
84 OKButton m_aBtnOK;
85 CancelButton m_aBtnCancel;
86 HelpButton m_aBtnHelp;
88 RangeChooserTabPage * m_pRangeChooserTabePage;
89 DataSourceTabPage * m_pDataSourceTabPage;
90 bool m_bRangeChooserTabIsValid;
91 bool m_bDataSourceTabIsValid;
93 static sal_uInt16 m_nLastPageId;
96 } // namespace chart
98 // CHART2_DATASOURCEDIALOG_HXX
99 #endif
101 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */