2007/02/27 14:01:50 bm 1.1.2.13: Disable controls and tabs when invalid ranges were entered 2005/11/14 17:53:43 iha 1.1.2.12: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/10/11 09:20:24 bm 1.1.2.11: license header change 2005/04/15 14:54:41 bm 1.1.2.10: data source and range choose dialog rework 2004/06/29 12:30:42 bm 1.1.2.9: class for sharing data and functionality between the range chooser and the data source (data series) tab pages. 2004/06/17 10:03:26 bm 1.1.2.8: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/05/24 17:47:59 bm 1.1.2.7: data source dialog is deprecated -> is a tabpage now 2004/05/07 16:24:53 iha 1.1.2.6: #i20344# moved RefButton to RangeSelectionButton 2004/04/27 13:28:48 bm 1.1.2.5: use internal role-name as key for role-entries. (listbox now contains internal-role-name (invisible), UI role-name, range string) 2004/04/15 17:25:47 bm 1.1.2.4: DialogSeries is now declared in cxx 2004/04/08 14:56:31 bm 1.1.2.3: applying categories to model, accept changes made in editfields (no check yet) 2004/04/07 18:46:22 bm 1.1.2.2: dialog uses internal data structure, additional field for label range 2004/03/19 14:26:55 bm 1.1.2.1: dialog for flexible source range selection
115 lines
3.5 KiB
C++
115 lines
3.5 KiB
C++
/*************************************************************************
|
|
*
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
|
*
|
|
* $RCSfile: dlg_DataSource.hxx,v $
|
|
*
|
|
* $Revision: 1.2 $
|
|
*
|
|
* last change: $Author: vg $ $Date: 2007-05-22 17:58:32 $
|
|
*
|
|
* The Contents of this file are made available subject to
|
|
* the terms of GNU Lesser General Public License Version 2.1.
|
|
*
|
|
*
|
|
* GNU Lesser General Public License Version 2.1
|
|
* =============================================
|
|
* Copyright 2005 by Sun Microsystems, Inc.
|
|
* 901 San Antonio Road, Palo Alto, CA 94303, USA
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License version 2.1, as published by the Free Software Foundation.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
* MA 02111-1307 USA
|
|
*
|
|
************************************************************************/
|
|
#ifndef CHART2_DATASOURCEDIALOG_HXX
|
|
#define CHART2_DATASOURCEDIALOG_HXX
|
|
|
|
// header for class TabDialog
|
|
#ifndef _SV_TABDLG_HXX
|
|
#include <vcl/tabdlg.hxx>
|
|
#endif
|
|
// header for class TabControl
|
|
#ifndef _SV_TABCTRL_HXX
|
|
#include <vcl/tabctrl.hxx>
|
|
#endif
|
|
// header for class OKButton
|
|
#ifndef _SV_BUTTON_HXX
|
|
#include <vcl/button.hxx>
|
|
#endif
|
|
|
|
#include "TabPageNotifiable.hxx"
|
|
|
|
#ifndef _COM_SUN_STAR_UNO_XCOMPONENTCONTEXT_HPP_
|
|
#include <com/sun/star/uno/XComponentContext.hpp>
|
|
#endif
|
|
#ifndef _COM_SUN_STAR_CHART2_XCHARTDOCUMENT_HPP_
|
|
#include <com/sun/star/chart2/XChartDocument.hpp>
|
|
#endif
|
|
|
|
// for auto_ptr
|
|
#include <memory>
|
|
|
|
namespace chart
|
|
{
|
|
|
|
class DataSourceTabControl;
|
|
class RangeChooserTabPage;
|
|
class DataSourceTabPage;
|
|
class ChartTypeTemplateProvider;
|
|
class DialogModel;
|
|
|
|
class DataSourceDialog :
|
|
public TabDialog,
|
|
public TabPageNotifiable
|
|
{
|
|
public:
|
|
explicit DataSourceDialog(
|
|
Window * pParent,
|
|
const ::com::sun::star::uno::Reference<
|
|
::com::sun::star::chart2::XChartDocument > & xChartDocument,
|
|
const ::com::sun::star::uno::Reference<
|
|
::com::sun::star::uno::XComponentContext > & xContext );
|
|
virtual ~DataSourceDialog();
|
|
|
|
// TabPageNotifiable
|
|
virtual void setInvalidPage( TabPage * pTabPage );
|
|
virtual void setValidPage( TabPage * pTabPage );
|
|
|
|
protected:
|
|
::com::sun::star::uno::Reference< ::com::sun::star::chart2::XChartDocument >
|
|
m_xChartDocument;
|
|
::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >
|
|
m_xContext;
|
|
::std::auto_ptr< ChartTypeTemplateProvider > m_apDocTemplateProvider;
|
|
::std::auto_ptr< DialogModel > m_apDialogModel;
|
|
|
|
private:
|
|
DataSourceTabControl* m_pTabControl;
|
|
OKButton m_aBtnOK;
|
|
CancelButton m_aBtnCancel;
|
|
HelpButton m_aBtnHelp;
|
|
|
|
RangeChooserTabPage * m_pRangeChooserTabePage;
|
|
DataSourceTabPage * m_pDataSourceTabPage;
|
|
bool m_bRangeChooserTabIsValid;
|
|
bool m_bDataSourceTabIsValid;
|
|
|
|
static USHORT m_nLastPageId;
|
|
};
|
|
|
|
} // namespace chart
|
|
|
|
// CHART2_DATASOURCEDIALOG_HXX
|
|
#endif
|