1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #ifndef _CHART2_CREATION_WIZARD_HXX
30 #define _CHART2_CREATION_WIZARD_HXX
32 #include "ServiceMacros.hxx"
33 #include "TimerTriggeredControllerLock.hxx"
34 #include "TabPageNotifiable.hxx"
36 #include <com/sun/star/chart2/XChartDocument.hpp>
37 #include <svtools/roadmapwizard.hxx>
38 #include <com/sun/star/uno/XComponentContext.hpp>
43 //.............................................................................
46 //.............................................................................
48 class RangeChooserTabPage
;
49 class DataSourceTabPage
;
50 class ChartTypeTemplateProvider
;
53 class CreationWizard
: public
55 , public TabPageNotifiable
58 CreationWizard( Window
* pParent
,
59 const ::com::sun::star::uno::Reference
<
60 ::com::sun::star::frame::XModel
>& xChartModel
61 , const ::com::sun::star::uno::Reference
<
62 ::com::sun::star::uno::XComponentContext
>& xContext
63 , 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
64 virtual ~CreationWizard();
69 virtual void setInvalidPage( TabPage
* pTabPage
);
70 virtual void setValidPage( TabPage
* pTabPage
);
73 virtual sal_Bool
leaveState( WizardState _nState
);
74 virtual WizardState
determineNextState(WizardState nCurrentState
) const;
75 virtual void enterState(WizardState nState
);
77 virtual String
getStateDisplayName( WizardState nState
) const;
80 //no default constructor
83 virtual svt::OWizardPage
* createPage(WizardState nState
);
85 ::com::sun::star::uno::Reference
<
86 ::com::sun::star::chart2::XChartDocument
> m_xChartModel
;
87 ::com::sun::star::uno::Reference
<
88 ::com::sun::star::uno::XComponentContext
> m_xCC
;
90 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
91 ChartTypeTemplateProvider
* m_pTemplateProvider
;
92 SAL_WNODEPRECATED_DECLARATIONS_PUSH
93 ::std::auto_ptr
< DialogModel
> m_apDialogModel
;
94 SAL_WNODEPRECATED_DECLARATIONS_POP
96 WizardState m_nFirstState
;
97 WizardState m_nLastState
;
99 TimerTriggeredControllerLock m_aTimerTriggeredControllerLock
;
101 // RangeChooserTabPage * m_pRangeChooserTabePage;
102 // DataSourceTabPage * m_pDataSourceTabPage;
105 //.............................................................................
107 //.............................................................................
110 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */