2010-10-27 12:43:08 +01:00
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2012-07-17 12:30:48 +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 .
*/
2007-05-22 16:58:03 +00:00
2013-10-23 22:48:59 +02:00
# ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_INC_DLG_CREATIONWIZARD_HXX
# define INCLUDED_CHART2_SOURCE_CONTROLLER_INC_DLG_CREATIONWIZARD_HXX
2007-05-22 16:58:03 +00:00
# include "TimerTriggeredControllerLock.hxx"
# include "TabPageNotifiable.hxx"
2015-01-14 16:16:32 +02:00
# include "../dialogs/DialogModel.hxx"
2007-05-22 16:58:03 +00:00
# include <com/sun/star/chart2/XChartDocument.hpp>
# include <svtools/roadmapwizard.hxx>
# include <com/sun/star/uno/XComponentContext.hpp>
2014-05-12 19:54:18 -04:00
# include <boost/noncopyable.hpp>
2015-09-14 14:43:18 +01:00
# include <memory>
2007-05-22 16:58:03 +00:00
namespace chart
{
class RangeChooserTabPage ;
class DataSourceTabPage ;
class ChartTypeTemplateProvider ;
2014-06-30 19:50:06 +02:00
class CreationWizard : public svt : : RoadmapWizard , public TabPageNotifiable
2007-05-22 16:58:03 +00:00
{
public :
2014-09-23 11:20:40 +02:00
CreationWizard ( vcl : : Window * pParent ,
2007-05-22 16:58:03 +00:00
const : : com : : sun : : star : : uno : : Reference <
: : com : : sun : : star : : frame : : XModel > & xChartModel
, const : : com : : sun : : star : : uno : : Reference <
: : com : : sun : : star : : uno : : XComponentContext > & xContext
, sal_Int32 nOnePageOnlyIndex = - 1 ) ; //if nOnePageOnlyIndex is an index of an exsisting page starting with 0, then only this page is displayed without next/previous and roadmap
2014-06-09 10:09:42 +02:00
bool isClosable ( ) { /*@todo*/ return m_bIsClosable ; }
2007-05-22 16:58:03 +00:00
// TabPageNotifiable
2014-03-27 18:12:18 +01:00
virtual void setInvalidPage ( TabPage * pTabPage ) SAL_OVERRIDE ;
virtual void setValidPage ( TabPage * pTabPage ) SAL_OVERRIDE ;
2007-05-22 16:58:03 +00:00
protected :
2014-03-27 18:12:18 +01:00
virtual bool leaveState ( WizardState _nState ) SAL_OVERRIDE ;
virtual WizardState determineNextState ( WizardState nCurrentState ) const SAL_OVERRIDE ;
virtual void enterState ( WizardState nState ) SAL_OVERRIDE ;
2007-05-22 16:58:03 +00:00
2014-03-27 18:12:18 +01:00
virtual OUString getStateDisplayName ( WizardState nState ) const SAL_OVERRIDE ;
2007-05-22 16:58:03 +00:00
private :
//no default constructor
CreationWizard ( ) ;
2015-04-20 14:00:04 +01:00
virtual VclPtr < TabPage > createPage ( WizardState nState ) SAL_OVERRIDE ;
2007-05-22 16:58:03 +00:00
: : com : : sun : : star : : uno : : Reference <
: : com : : sun : : star : : chart2 : : XChartDocument > m_xChartModel ;
: : com : : sun : : star : : uno : : Reference <
: : com : : sun : : star : : uno : : XComponentContext > m_xCC ;
bool m_bIsClosable ;
sal_Int32 m_nOnePageOnlyIndex ; //if nOnePageOnlyIndex is an index of an exsisting page starting with 0, then only this page is displayed without next/previous and roadmap
ChartTypeTemplateProvider * m_pTemplateProvider ;
2015-09-14 14:43:18 +01:00
std : : unique_ptr < DialogModel > m_pDialogModel ;
2007-05-22 16:58:03 +00:00
WizardState m_nFirstState ;
WizardState m_nLastState ;
TimerTriggeredControllerLock m_aTimerTriggeredControllerLock ;
2015-05-07 14:11:50 +02:00
// RangeChooserTabPage * m_pRangeChooserTabPage;
2007-05-22 16:58:03 +00:00
// DataSourceTabPage * m_pDataSourceTabPage;
bool m_bCanTravel ;
} ;
} //namespace chart
# endif
2010-10-27 12:43:08 +01:00
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */