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>
48 class DataSourceTabControl
;
49 class RangeChooserTabPage
;
50 class DataSourceTabPage
;
51 class ChartTypeTemplateProvider
;
54 class DataSourceDialog
:
56 public TabPageNotifiable
59 explicit DataSourceDialog(
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();
71 virtual void setInvalidPage( TabPage
* pTabPage
);
72 virtual void setValidPage( TabPage
* pTabPage
);
75 ::com::sun::star::uno::Reference
< ::com::sun::star::chart2::XChartDocument
>
77 ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XComponentContext
>
79 ::std::auto_ptr
< ChartTypeTemplateProvider
> m_apDocTemplateProvider
;
80 ::std::auto_ptr
< DialogModel
> m_apDialogModel
;
83 DataSourceTabControl
* m_pTabControl
;
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
;
98 // CHART2_DATASOURCEDIALOG_HXX
101 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */