2010-10-27 12:43:08 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-21 14:30:25 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2013-10-23 22:48:59 +02:00
|
|
|
#ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_INC_DLG_DATASOURCE_HXX
|
|
|
|
#define INCLUDED_CHART2_SOURCE_CONTROLLER_INC_DLG_DATASOURCE_HXX
|
2007-05-22 16:58:32 +00:00
|
|
|
|
2018-11-26 20:30:25 +00:00
|
|
|
#include <vcl/weld.hxx>
|
2018-05-28 01:10:13 +02:00
|
|
|
#include <vcl/vclptr.hxx>
|
2007-05-22 16:58:32 +00:00
|
|
|
|
|
|
|
#include "TabPageNotifiable.hxx"
|
2018-05-28 01:10:13 +02:00
|
|
|
|
|
|
|
namespace com { namespace sun { namespace star { namespace chart2 { class XChartDocument; } } } }
|
|
|
|
namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }
|
2007-05-22 16:58:32 +00:00
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
2018-05-28 01:10:13 +02:00
|
|
|
class TabPage;
|
|
|
|
|
2007-05-22 16:58:32 +00:00
|
|
|
namespace chart
|
|
|
|
{
|
|
|
|
|
|
|
|
class RangeChooserTabPage;
|
|
|
|
class DataSourceTabPage;
|
|
|
|
class ChartTypeTemplateProvider;
|
|
|
|
class DialogModel;
|
|
|
|
|
2017-11-07 14:56:48 +02:00
|
|
|
class DataSourceDialog final :
|
2018-11-26 20:30:25 +00:00
|
|
|
public weld::GenericDialogController,
|
2007-05-22 16:58:32 +00:00
|
|
|
public TabPageNotifiable
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
explicit DataSourceDialog(
|
2018-11-26 20:30:25 +00:00
|
|
|
weld::Window * pParent,
|
2015-11-27 11:14:38 +02:00
|
|
|
const css::uno::Reference< css::chart2::XChartDocument > & xChartDocument,
|
|
|
|
const css::uno::Reference< css::uno::XComponentContext > & xContext );
|
2016-09-13 13:09:01 +02:00
|
|
|
virtual ~DataSourceDialog() override;
|
2007-05-22 16:58:32 +00:00
|
|
|
|
2018-11-26 20:30:25 +00:00
|
|
|
// from GenericDialogController base
|
|
|
|
virtual short run() override;
|
2009-08-26 12:47:18 +00:00
|
|
|
|
2007-05-22 16:58:32 +00:00
|
|
|
// TabPageNotifiable
|
2015-10-12 16:04:04 +02:00
|
|
|
virtual void setInvalidPage( TabPage * pTabPage ) override;
|
|
|
|
virtual void setValidPage( TabPage * pTabPage ) override;
|
2007-05-22 16:58:32 +00:00
|
|
|
|
2017-11-07 14:56:48 +02:00
|
|
|
private:
|
2018-11-26 20:30:25 +00:00
|
|
|
void DisableTabToggling();
|
|
|
|
void EnableTabToggling();
|
|
|
|
|
|
|
|
DECL_LINK(ActivatePageHdl, const OString&, void);
|
|
|
|
DECL_LINK(DeactivatePageHdl, const OString&, bool);
|
|
|
|
|
2017-02-15 23:55:18 +02:00
|
|
|
std::unique_ptr< ChartTypeTemplateProvider > m_apDocTemplateProvider;
|
|
|
|
std::unique_ptr< DialogModel > m_apDialogModel;
|
2007-05-22 16:58:32 +00:00
|
|
|
|
2015-05-07 14:11:50 +02:00
|
|
|
VclPtr<RangeChooserTabPage> m_pRangeChooserTabPage;
|
2015-03-09 14:29:30 +02:00
|
|
|
VclPtr<DataSourceTabPage> m_pDataSourceTabPage;
|
2007-05-22 16:58:32 +00:00
|
|
|
bool m_bRangeChooserTabIsValid;
|
|
|
|
bool m_bDataSourceTabIsValid;
|
2018-11-26 20:30:25 +00:00
|
|
|
bool m_bTogglingEnabled;
|
|
|
|
|
|
|
|
std::unique_ptr<weld::Notebook> m_xTabControl;
|
|
|
|
std::unique_ptr<weld::Button> m_xBtnOK;
|
2007-05-22 16:58:32 +00:00
|
|
|
|
2011-01-14 15:18:08 +01:00
|
|
|
static sal_uInt16 m_nLastPageId;
|
2007-05-22 16:58:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace chart
|
|
|
|
|
2013-10-23 22:48:59 +02:00
|
|
|
// INCLUDED_CHART2_SOURCE_CONTROLLER_INC_DLG_DATASOURCE_HXX
|
2007-05-22 16:58:32 +00:00
|
|
|
#endif
|
2010-10-27 12:43:08 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|