LCOV - code coverage report
Current view: top level - sw/source/core/uibase/inc - mailmergewizard.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 9 0.0 %
Date: 2014-04-14 Functions: 0 8 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             : #ifndef INCLUDED_SW_SOURCE_UI_INC_MAILMERGEWIZARD_HXX
      20             : #define INCLUDED_SW_SOURCE_UI_INC_MAILMERGEWIZARD_HXX
      21             : 
      22             : #include <svtools/roadmapwizard.hxx>
      23             : #include "rtl/ustring.hxx"
      24             : 
      25             : class SwView;
      26             : class SwMailMergeConfigItem;
      27             : 
      28             : #define MM_DOCUMENTSELECTPAGE   0
      29             : #define MM_OUTPUTTYPETPAGE      1
      30             : #define MM_ADDRESSBLOCKPAGE     2
      31             : #define MM_GREETINGSPAGE        3
      32             : #define MM_LAYOUTPAGE           4
      33             : #define MM_PREPAREMERGEPAGE     5
      34             : #define MM_MERGEPAGE            6
      35             : #define MM_OUTPUTPAGE           7
      36             : 
      37             : class SwMailMergeWizard : public ::svt::RoadmapWizard
      38             : {
      39             :     SwView*                 m_pSwView;
      40             :     OUString                sDocumentURL;
      41             :     bool                    m_bDocumentLoad;
      42             : 
      43             :     SwMailMergeConfigItem&  m_rConfigItem;
      44             : 
      45             :     OUString                m_sStarting;
      46             :     OUString                m_sDocumentType;
      47             :     OUString                m_sAddressBlock;
      48             :     OUString                m_sAddressList;
      49             :     OUString                m_sGreetingsLine;
      50             :     OUString                m_sLayout;
      51             :     OUString                m_sPrepareMerge;
      52             :     OUString                m_sMerge;
      53             :     OUString                m_sOutput;
      54             :     OUString                m_sFinish;
      55             : 
      56             :     sal_uInt16              m_nRestartPage;
      57             : 
      58             :     using svt::OWizardMachine::skipUntil;
      59             : 
      60             : protected:
      61             :     virtual svt::OWizardPage*       createPage(WizardState _nState) SAL_OVERRIDE;
      62             :     virtual void                    enterState( WizardState _nState ) SAL_OVERRIDE;
      63             : 
      64             : // roadmap feature ??
      65             : //    virtual sal_Bool            prepareLeaveCurrentState( CommitPageReason _eReason );
      66             :     virtual OUString                getStateDisplayName( WizardState _nState ) const SAL_OVERRIDE;
      67             : 
      68             : public:
      69             :     SwMailMergeWizard(SwView& rView, SwMailMergeConfigItem& rConfigItem);
      70             :     virtual ~SwMailMergeWizard();
      71             : 
      72           0 :     SwView*                     GetSwView() {return m_pSwView;}
      73           0 :     SwMailMergeConfigItem&      GetConfigItem() { return m_rConfigItem;}
      74             : 
      75           0 :     void                    SetReloadDocument(const OUString& rURL) {sDocumentURL = rURL;}
      76           0 :     OUString                GetReloadDocument() const {return sDocumentURL;}
      77             : 
      78             :     //next step requires loading of document
      79           0 :     void                    SetDocumentLoad(bool bSet) {m_bDocumentLoad = bSet;}
      80             : 
      81             :     void                    UpdateRoadmap();
      82             :     void                    CreateTargetDocument();
      83             : 
      84           0 :     sal_uInt16              GetRestartPage() const {return m_nRestartPage;}
      85           0 :     void                    SetRestartPage(sal_uInt16 nPage) { m_nRestartPage = nPage;}
      86             : 
      87           0 :     sal_Bool                skipUntil( sal_uInt16 nPage)
      88           0 :                                 {return ::svt::RoadmapWizard::skipUntil(WizardState(nPage));}
      89             : 
      90             :     void                    updateRoadmapItemLabel( WizardState _nState );
      91             : 
      92             :     virtual short           Execute() SAL_OVERRIDE;
      93             :     virtual void            StartExecuteModal( const Link& rEndDialogHdl ) SAL_OVERRIDE;
      94             : };
      95             : #endif
      96             : 
      97             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10