1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_INC_DLG_DATASOURCE_HXX
20 #define INCLUDED_CHART2_SOURCE_CONTROLLER_INC_DLG_DATASOURCE_HXX
22 #include <vcl/tabdlg.hxx>
23 #include <vcl/tabctrl.hxx>
24 #include <vcl/button.hxx>
26 #include "TabPageNotifiable.hxx"
27 #include <com/sun/star/uno/XComponentContext.hpp>
28 #include <com/sun/star/chart2/XChartDocument.hpp>
35 class DataSourceTabControl
;
36 class RangeChooserTabPage
;
37 class DataSourceTabPage
;
38 class ChartTypeTemplateProvider
;
41 class DataSourceDialog
:
43 public TabPageNotifiable
46 explicit DataSourceDialog(
47 vcl::Window
* pParent
,
48 const ::com::sun::star::uno::Reference
<
49 ::com::sun::star::chart2::XChartDocument
> & xChartDocument
,
50 const ::com::sun::star::uno::Reference
<
51 ::com::sun::star::uno::XComponentContext
> & xContext
);
52 virtual ~DataSourceDialog();
53 virtual void dispose() SAL_OVERRIDE
;
55 // from Dialog (base of TabDialog)
56 virtual short Execute() SAL_OVERRIDE
;
59 virtual void setInvalidPage( TabPage
* pTabPage
) SAL_OVERRIDE
;
60 virtual void setValidPage( TabPage
* pTabPage
) SAL_OVERRIDE
;
63 ::com::sun::star::uno::Reference
< ::com::sun::star::chart2::XChartDocument
>
65 ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XComponentContext
>
67 ::std::unique_ptr
< ChartTypeTemplateProvider
> m_apDocTemplateProvider
;
68 ::std::unique_ptr
< DialogModel
> m_apDialogModel
;
71 VclPtr
<DataSourceTabControl
> m_pTabControl
;
72 VclPtr
<OKButton
> m_pBtnOK
;
74 VclPtr
<RangeChooserTabPage
> m_pRangeChooserTabPage
;
75 VclPtr
<DataSourceTabPage
> m_pDataSourceTabPage
;
76 bool m_bRangeChooserTabIsValid
;
77 bool m_bDataSourceTabIsValid
;
79 static sal_uInt16 m_nLastPageId
;
84 // INCLUDED_CHART2_SOURCE_CONTROLLER_INC_DLG_DATASOURCE_HXX
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */