fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / chart2 / source / controller / inc / dlg_DataSource.hxx
blob4a2187ab7eede607a6f7f95f60ebe575be78235c
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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>
30 #include <memory>
32 namespace chart
35 class DataSourceTabControl;
36 class RangeChooserTabPage;
37 class DataSourceTabPage;
38 class ChartTypeTemplateProvider;
39 class DialogModel;
41 class DataSourceDialog :
42 public TabDialog,
43 public TabPageNotifiable
45 public:
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;
58 // TabPageNotifiable
59 virtual void setInvalidPage( TabPage * pTabPage ) SAL_OVERRIDE;
60 virtual void setValidPage( TabPage * pTabPage ) SAL_OVERRIDE;
62 protected:
63 ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XChartDocument >
64 m_xChartDocument;
65 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >
66 m_xContext;
67 ::std::unique_ptr< ChartTypeTemplateProvider > m_apDocTemplateProvider;
68 ::std::unique_ptr< DialogModel > m_apDialogModel;
70 private:
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;
82 } // namespace chart
84 // INCLUDED_CHART2_SOURCE_CONTROLLER_INC_DLG_DATASOURCE_HXX
85 #endif
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */