LCOV - code coverage report
Current view: top level - dbaccess/source/ext/macromigration - macromigrationpages.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 6 0.0 %
Date: 2014-11-03 Functions: 0 10 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_DBACCESS_SOURCE_EXT_MACROMIGRATION_MACROMIGRATIONPAGES_HXX
      21             : #define INCLUDED_DBACCESS_SOURCE_EXT_MACROMIGRATION_MACROMIGRATIONPAGES_HXX
      22             : 
      23             : #include "migrationprogress.hxx"
      24             : #include "rangeprogressbar.hxx"
      25             : 
      26             : #include <svtools/svmedit.hxx>
      27             : #include <svtools/urlcontrol.hxx>
      28             : #include <svtools/wizardmachine.hxx>
      29             : #include <svx/databaselocationinput.hxx>
      30             : #include <vcl/fixed.hxx>
      31             : #include <vcl/edit.hxx>
      32             : 
      33             : namespace svt
      34             : {
      35             :     class RoadmapWizard;
      36             : }
      37             : 
      38             : namespace dbmm
      39             : {
      40             : 
      41             :     class MacroMigrationDialog;
      42             : 
      43             :     // MacroMigrationPage
      44             :     typedef ::svt::OWizardPage  MacroMigrationPage_Base;
      45           0 :     class MacroMigrationPage : public MacroMigrationPage_Base
      46             :     {
      47             :     public:
      48             :         MacroMigrationPage(vcl::Window *pParent, const OString& rID, const OUString& rUIXMLDescription);
      49             : 
      50             :     protected:
      51             :         const MacroMigrationDialog& getDialog() const;
      52             :               MacroMigrationDialog& getDialog();
      53             :     };
      54             : 
      55             :     // PreparationPage
      56           0 :     class PreparationPage : public MacroMigrationPage
      57             :     {
      58             :     public:
      59             :         PreparationPage(vcl::Window *pParent);
      60             : 
      61             :         static TabPage* Create( ::svt::RoadmapWizard& _rParentDialog );
      62             : 
      63             :     public:
      64             :         void    showCloseDocsError(bool _bShow);
      65             : 
      66             :     protected:
      67             :         FixedText*  m_pCloseDocError;
      68             :     };
      69             : 
      70             :     // SaveDBDocPage
      71             :     class SaveDBDocPage : public MacroMigrationPage
      72             :     {
      73             :     public:
      74             :         SaveDBDocPage(MacroMigrationDialog& _rParentDialog);
      75             :         virtual ~SaveDBDocPage();
      76             :         static TabPage* Create( ::svt::RoadmapWizard& _rParentDialog );
      77             : 
      78             :     public:
      79           0 :         OUString getBackupLocation() const { return m_pLocationController->getURL(); }
      80           0 :         void            grabLocationFocus() { m_pSaveAsLocation->GrabFocus(); }
      81             : 
      82             :     protected:
      83             :         ::svt::OFileURLControl*  m_pSaveAsLocation;
      84             :         PushButton*             m_pBrowseSaveAsLocation;
      85             :         FixedText*              m_pStartMigration;
      86             :         ::svx::DatabaseLocationInputController* m_pLocationController;
      87             : 
      88             :     protected:
      89             :         // IWizardPageController overridables
      90             :         virtual void        initializePage() SAL_OVERRIDE;
      91             :         virtual bool        commitPage( ::svt::WizardTypes::CommitPageReason _eReason ) SAL_OVERRIDE;
      92             :         virtual bool        canAdvance() const SAL_OVERRIDE;
      93             : 
      94             :     private:
      95             :         DECL_LINK( OnLocationModified, Edit* );
      96             :         void impl_updateLocationDependentItems();
      97             :     };
      98             : 
      99             :     // ProgressPage
     100           0 :     class ProgressPage : public MacroMigrationPage, public IMigrationProgress
     101             :     {
     102             :     public:
     103             :         ProgressPage(vcl::Window *pParent);
     104             : 
     105             :         static TabPage* Create( ::svt::RoadmapWizard& _rParentDialog );
     106             : 
     107             :         void    setDocumentCounts( const sal_Int32 _nForms, const sal_Int32 _nReports );
     108             :         void    onFinishedSuccessfully();
     109             : 
     110             :     protected:
     111             :         // IMigrationProgress
     112             :         virtual void    startObject( const OUString& _rObjectName, const OUString& _rCurrentAction, const sal_uInt32 _bRange ) SAL_OVERRIDE;
     113             :         virtual void    setObjectProgressText( const OUString& _rText ) SAL_OVERRIDE;
     114             :         virtual void    setObjectProgressValue( const sal_uInt32 _nValue ) SAL_OVERRIDE;
     115             :         virtual void    endObject() SAL_OVERRIDE;
     116             :         virtual void    start( const sal_uInt32 _nOverallRange ) SAL_OVERRIDE;
     117             :         virtual void    setOverallProgressText( const OUString& _rText ) SAL_OVERRIDE;
     118             :         virtual void    setOverallProgressValue( const sal_uInt32 _nValue ) SAL_OVERRIDE;
     119             : 
     120             :     private:
     121             :         FixedText*          m_pObjectCount;
     122             :         FixedText*          m_pCurrentObject;
     123             :         FixedText*          m_pCurrentAction;
     124             :         RangeProgressBar    m_aCurrentProgress;
     125             :         FixedText*          m_pAllProgressText;
     126             :         RangeProgressBar    m_aAllProgress;
     127             :         FixedText*          m_pMigrationDone;
     128             :     };
     129             : 
     130             :     // ResultPage
     131           0 :     class ResultPage : public MacroMigrationPage
     132             :     {
     133             :     public:
     134             :         ResultPage(vcl::Window *pParent);
     135             : 
     136             :         static TabPage* Create( ::svt::RoadmapWizard& _rParentDialog );
     137             : 
     138             :         void            displayMigrationLog( const bool _bSuccessful, const OUString& _rLog );
     139             : 
     140             :     private:
     141             :         FixedText*        m_pSuccessLabel;
     142             :         FixedText*        m_pFailureLabel;
     143             :         VclMultiLineEdit* m_pChanges;
     144             :     };
     145             : 
     146             : } // namespace dbmm
     147             : 
     148             : #endif // INCLUDED_DBACCESS_SOURCE_EXT_MACROMIGRATION_MACROMIGRATIONPAGES_HXX
     149             : 
     150             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10