LCOV - code coverage report
Current view: top level - dbaccess/source/ext/macromigration - macromigrationpages.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 6 0.0 %
Date: 2014-04-14 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             :     class MacroMigrationPage : public MacroMigrationPage_Base
      46             :     {
      47             :     public:
      48             :         MacroMigrationPage( MacroMigrationDialog& _rParentDialog, const ResId& _rRes );
      49             :         virtual ~MacroMigrationPage();
      50             : 
      51             :     protected:
      52             :         const MacroMigrationDialog& getDialog() const;
      53             :               MacroMigrationDialog& getDialog()      ;
      54             : 
      55             :     protected:
      56             :         FixedText   m_aHeader;
      57             :     };
      58             : 
      59             :     // PreparationPage
      60           0 :     class PreparationPage : public MacroMigrationPage
      61             :     {
      62             :     public:
      63             :         PreparationPage( MacroMigrationDialog& _rParentDialog );
      64             : 
      65             :         static TabPage* Create( ::svt::RoadmapWizard& _rParentDialog );
      66             : 
      67             :     public:
      68             :         void    showCloseDocsError( bool _bShow );
      69             : 
      70             :     protected:
      71             :         FixedText   m_aIntroduction;
      72             :         FixedText   m_aCloseDocError;
      73             :     };
      74             : 
      75             :     // SaveDBDocPage
      76           0 :     class SaveDBDocPage : public MacroMigrationPage
      77             :     {
      78             :     public:
      79             :         SaveDBDocPage( MacroMigrationDialog& _rParentDialog );
      80             :         static TabPage* Create( ::svt::RoadmapWizard& _rParentDialog );
      81             : 
      82             :     public:
      83           0 :         OUString getBackupLocation() const { return m_aLocationController.getURL(); }
      84           0 :         void            grabLocationFocus() { m_aSaveAsLocation.GrabFocus(); }
      85             : 
      86             :     protected:
      87             :         FixedText               m_aExplanation;
      88             :         FixedText               m_aSaveAsLabel;
      89             :         ::svt::OFileURLControl  m_aSaveAsLocation;
      90             :         PushButton              m_aBrowseSaveAsLocation;
      91             :         FixedText               m_aStartMigration;
      92             :         ::svx::DatabaseLocationInputController
      93             :                                 m_aLocationController;
      94             : 
      95             :     protected:
      96             :         // IWizardPageController overridables
      97             :         virtual void        initializePage() SAL_OVERRIDE;
      98             :         virtual bool        commitPage( ::svt::WizardTypes::CommitPageReason _eReason ) SAL_OVERRIDE;
      99             :         virtual bool        canAdvance() const SAL_OVERRIDE;
     100             : 
     101             :     private:
     102             :         DECL_LINK( OnLocationModified, Edit* );
     103             :         void impl_updateLocationDependentItems();
     104             :     };
     105             : 
     106             :     // ProgressPage
     107           0 :     class ProgressPage : public MacroMigrationPage, public IMigrationProgress
     108             :     {
     109             :     public:
     110             :         ProgressPage( MacroMigrationDialog& _rParentDialog );
     111             : 
     112             :         static TabPage* Create( ::svt::RoadmapWizard& _rParentDialog );
     113             : 
     114             :         void    setDocumentCounts( const sal_Int32 _nForms, const sal_Int32 _nReports );
     115             :         void    onFinishedSuccessfully();
     116             : 
     117             :     protected:
     118             :         // IMigrationProgress
     119             :         virtual void    startObject( const OUString& _rObjectName, const OUString& _rCurrentAction, const sal_uInt32 _bRange ) SAL_OVERRIDE;
     120             :         virtual void    setObjectProgressText( const OUString& _rText ) SAL_OVERRIDE;
     121             :         virtual void    setObjectProgressValue( const sal_uInt32 _nValue ) SAL_OVERRIDE;
     122             :         virtual void    endObject() SAL_OVERRIDE;
     123             :         virtual void    start( const sal_uInt32 _nOverallRange ) SAL_OVERRIDE;
     124             :         virtual void    setOverallProgressText( const OUString& _rText ) SAL_OVERRIDE;
     125             :         virtual void    setOverallProgressValue( const sal_uInt32 _nValue ) SAL_OVERRIDE;
     126             : 
     127             :     private:
     128             :         FixedText           m_aObjectCount;
     129             :         FixedText           m_aCurrentObjectLabel;
     130             :         FixedText           m_aCurrentObject;
     131             :         FixedText           m_aCurrentActionLabel;
     132             :         FixedText           m_aCurrentAction;
     133             :         RangeProgressBar    m_aCurrentProgress;
     134             :         FixedText           m_aAllProgressLabel;
     135             :         FixedText           m_aAllProgressText;
     136             :         RangeProgressBar    m_aAllProgress;
     137             :         FixedText           m_aMigrationDone;
     138             :     };
     139             : 
     140             :     // ResultPage
     141           0 :     class ResultPage : public MacroMigrationPage
     142             :     {
     143             :     public:
     144             :         ResultPage( MacroMigrationDialog& _rParentDialog );
     145             : 
     146             :         static TabPage* Create( ::svt::RoadmapWizard& _rParentDialog );
     147             : 
     148             :         void            displayMigrationLog( const bool _bSuccessful, const OUString& _rLog );
     149             : 
     150             :     private:
     151             :         FixedText       m_aChangesLabel;
     152             :         MultiLineEdit   m_aChanges;
     153             :         OUString          m_aSuccessful;
     154             :         OUString          m_aUnsuccessful;
     155             :     };
     156             : 
     157             : } // namespace dbmm
     158             : 
     159             : #endif // INCLUDED_DBACCESS_SOURCE_EXT_MACROMIGRATION_MACROMIGRATIONPAGES_HXX
     160             : 
     161             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10