LCOV - code coverage report
Current view: top level - chart2/source/controller/inc - dlg_CreationWizard.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 2 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 3 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       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/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      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 .
      18             :  */
      19             : 
      20             : #ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_INC_DLG_CREATIONWIZARD_HXX
      21             : #define INCLUDED_CHART2_SOURCE_CONTROLLER_INC_DLG_CREATIONWIZARD_HXX
      22             : 
      23             : #include "TimerTriggeredControllerLock.hxx"
      24             : #include "TabPageNotifiable.hxx"
      25             : #include "../dialogs/DialogModel.hxx"
      26             : 
      27             : #include <com/sun/star/chart2/XChartDocument.hpp>
      28             : #include <svtools/roadmapwizard.hxx>
      29             : #include <com/sun/star/uno/XComponentContext.hpp>
      30             : 
      31             : #include <boost/noncopyable.hpp>
      32             : #include <boost/scoped_ptr.hpp>
      33             : 
      34             : namespace chart
      35             : {
      36             : 
      37             : class RangeChooserTabPage;
      38             : class DataSourceTabPage;
      39             : class ChartTypeTemplateProvider;
      40             : 
      41           0 : class CreationWizard : public svt::RoadmapWizard, public TabPageNotifiable
      42             : {
      43             : public:
      44             :     CreationWizard( vcl::Window* pParent,
      45             :         const ::com::sun::star::uno::Reference<
      46             :         ::com::sun::star::frame::XModel >& xChartModel
      47             :         , const ::com::sun::star::uno::Reference<
      48             :         ::com::sun::star::uno::XComponentContext >& xContext
      49             :         , 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
      50             : 
      51           0 :     bool isClosable() { /*@todo*/ return m_bIsClosable;}
      52             : 
      53             :     // TabPageNotifiable
      54             :     virtual void setInvalidPage( TabPage * pTabPage ) SAL_OVERRIDE;
      55             :     virtual void setValidPage( TabPage * pTabPage ) SAL_OVERRIDE;
      56             : 
      57             : protected:
      58             :     virtual bool            leaveState( WizardState _nState ) SAL_OVERRIDE;
      59             :     virtual WizardState     determineNextState(WizardState nCurrentState) const SAL_OVERRIDE;
      60             :     virtual void            enterState(WizardState nState) SAL_OVERRIDE;
      61             : 
      62             :     virtual OUString        getStateDisplayName( WizardState nState ) const SAL_OVERRIDE;
      63             : 
      64             : private:
      65             :     //no default constructor
      66             :     CreationWizard();
      67             : 
      68             :     virtual VclPtr<TabPage> createPage(WizardState nState) SAL_OVERRIDE;
      69             : 
      70             :     ::com::sun::star::uno::Reference<
      71             :                        ::com::sun::star::chart2::XChartDocument >   m_xChartModel;
      72             :     ::com::sun::star::uno::Reference<
      73             :                        ::com::sun::star::uno::XComponentContext>    m_xCC;
      74             :     bool m_bIsClosable;
      75             :     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
      76             :     ChartTypeTemplateProvider*   m_pTemplateProvider;
      77             :     boost::scoped_ptr<DialogModel> m_pDialogModel;
      78             : 
      79             :     WizardState m_nFirstState;
      80             :     WizardState m_nLastState;
      81             : 
      82             :     TimerTriggeredControllerLock   m_aTimerTriggeredControllerLock;
      83             : 
      84             : //     RangeChooserTabPage * m_pRangeChooserTabPage;
      85             : //     DataSourceTabPage *   m_pDataSourceTabPage;
      86             :     bool                  m_bCanTravel;
      87             : };
      88             : } //namespace chart
      89             : #endif
      90             : 
      91             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11