1*5900e8ecSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*5900e8ecSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*5900e8ecSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*5900e8ecSAndrew Rist * distributed with this work for additional information 6*5900e8ecSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*5900e8ecSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*5900e8ecSAndrew Rist * "License"); you may not use this file except in compliance 9*5900e8ecSAndrew Rist * with the License. You may obtain a copy of the License at 10*5900e8ecSAndrew Rist * 11*5900e8ecSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*5900e8ecSAndrew Rist * 13*5900e8ecSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*5900e8ecSAndrew Rist * software distributed under the License is distributed on an 15*5900e8ecSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*5900e8ecSAndrew Rist * KIND, either express or implied. See the License for the 17*5900e8ecSAndrew Rist * specific language governing permissions and limitations 18*5900e8ecSAndrew Rist * under the License. 19*5900e8ecSAndrew Rist * 20*5900e8ecSAndrew Rist *************************************************************/ 21*5900e8ecSAndrew Rist 22*5900e8ecSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #include "udlg_module.hxx" 25cdf0e10cSrcweir #include "udlg_global.hrc" 26cdf0e10cSrcweir #include "roadmapskeleton.hrc" 27cdf0e10cSrcweir #include "roadmapskeleton.hxx" 28cdf0e10cSrcweir #include "roadmapskeletonpages.hxx" 29cdf0e10cSrcweir 30cdf0e10cSrcweir //........................................................................ 31cdf0e10cSrcweir namespace udlg 32cdf0e10cSrcweir { 33cdf0e10cSrcweir //........................................................................ 34cdf0e10cSrcweir 35cdf0e10cSrcweir #define STATE_WELCOME 0 36cdf0e10cSrcweir #define STATE_PREPARE 1 37cdf0e10cSrcweir #define STATE_SETUP 2 38cdf0e10cSrcweir #define STATE_FINISH 3 39cdf0e10cSrcweir 40cdf0e10cSrcweir #define PATH_DEFAULT 1 41cdf0e10cSrcweir 42cdf0e10cSrcweir //==================================================================== 43cdf0e10cSrcweir //= RoadmapSkeletonDialog 44cdf0e10cSrcweir //==================================================================== 45cdf0e10cSrcweir //-------------------------------------------------------------------- RoadmapSkeletonDialog(const::comphelper::ComponentContext & _rContext,Window * _pParent)46cdf0e10cSrcweir RoadmapSkeletonDialog::RoadmapSkeletonDialog( const ::comphelper::ComponentContext& _rContext, Window* _pParent ) 47cdf0e10cSrcweir :RoadmapSkeletonDialog_Base( _pParent, UdlgResId( DLG_ROADMAP_SKELETON ) ) 48cdf0e10cSrcweir ,m_aContext( _rContext ) 49cdf0e10cSrcweir { 50cdf0e10cSrcweir String sTitlePrepare( UdlgResId( STR_STATE_WELCOME ) ); 51cdf0e10cSrcweir String sTitleStoreAs( UdlgResId( STR_STATE_PREPARE ) ); 52cdf0e10cSrcweir String sTitleMigrate( UdlgResId( STR_STATE_SETUP ) ); 53cdf0e10cSrcweir String sTitleSummary( UdlgResId( STR_STATE_FINISH ) ); 54cdf0e10cSrcweir FreeResource(); 55cdf0e10cSrcweir 56cdf0e10cSrcweir describeState( STATE_WELCOME, sTitlePrepare, &WelcomePage::Create ); 57cdf0e10cSrcweir describeState( STATE_PREPARE, sTitleStoreAs, &PreparationPage::Create ); 58cdf0e10cSrcweir describeState( STATE_SETUP, sTitleMigrate, &SetupPage::Create ); 59cdf0e10cSrcweir describeState( STATE_FINISH, sTitleSummary, &FinishPage::Create ); 60cdf0e10cSrcweir 61cdf0e10cSrcweir declarePath( PATH_DEFAULT, STATE_WELCOME, STATE_PREPARE, STATE_SETUP, STATE_FINISH, WZS_INVALID_STATE ); 62cdf0e10cSrcweir 63cdf0e10cSrcweir SetPageSizePixel( LogicToPixel( ::Size( TAB_PAGE_WIDTH, TAB_PAGE_HEIGHT ), MAP_APPFONT ) ); 64cdf0e10cSrcweir ShowButtonFixedLine( true ); 65cdf0e10cSrcweir SetRoadmapInteractive( true ); 66cdf0e10cSrcweir enableAutomaticNextButtonState(); 67cdf0e10cSrcweir defaultButton( WZB_NEXT ); 68cdf0e10cSrcweir enableButtons( WZB_FINISH, true ); 69cdf0e10cSrcweir ActivatePage(); 70cdf0e10cSrcweir } 71cdf0e10cSrcweir 72cdf0e10cSrcweir //-------------------------------------------------------------------- ~RoadmapSkeletonDialog()73cdf0e10cSrcweir RoadmapSkeletonDialog::~RoadmapSkeletonDialog() 74cdf0e10cSrcweir { 75cdf0e10cSrcweir } 76cdf0e10cSrcweir 77cdf0e10cSrcweir //-------------------------------------------------------------------- enterState(WizardState _nState)78cdf0e10cSrcweir void RoadmapSkeletonDialog::enterState( WizardState _nState ) 79cdf0e10cSrcweir { 80cdf0e10cSrcweir RoadmapSkeletonDialog_Base::enterState( _nState ); 81cdf0e10cSrcweir } 82cdf0e10cSrcweir 83cdf0e10cSrcweir //-------------------------------------------------------------------- prepareLeaveCurrentState(CommitPageReason _eReason)84cdf0e10cSrcweir sal_Bool RoadmapSkeletonDialog::prepareLeaveCurrentState( CommitPageReason _eReason ) 85cdf0e10cSrcweir { 86cdf0e10cSrcweir return RoadmapSkeletonDialog_Base::prepareLeaveCurrentState( _eReason ); 87cdf0e10cSrcweir } 88cdf0e10cSrcweir 89cdf0e10cSrcweir //-------------------------------------------------------------------- leaveState(WizardState _nState)90cdf0e10cSrcweir sal_Bool RoadmapSkeletonDialog::leaveState( WizardState _nState ) 91cdf0e10cSrcweir { 92cdf0e10cSrcweir return RoadmapSkeletonDialog_Base::leaveState( _nState ); 93cdf0e10cSrcweir } 94cdf0e10cSrcweir 95cdf0e10cSrcweir //-------------------------------------------------------------------- determineNextState(WizardState _nCurrentState) const96cdf0e10cSrcweir RoadmapSkeletonDialog::WizardState RoadmapSkeletonDialog::determineNextState( WizardState _nCurrentState ) const 97cdf0e10cSrcweir { 98cdf0e10cSrcweir return RoadmapSkeletonDialog_Base::determineNextState( _nCurrentState ); 99cdf0e10cSrcweir } 100cdf0e10cSrcweir 101cdf0e10cSrcweir //-------------------------------------------------------------------- onFinish()102cdf0e10cSrcweir sal_Bool RoadmapSkeletonDialog::onFinish() 103cdf0e10cSrcweir { 104cdf0e10cSrcweir return RoadmapSkeletonDialog_Base::onFinish(); 105cdf0e10cSrcweir } 106cdf0e10cSrcweir 107cdf0e10cSrcweir //........................................................................ 108cdf0e10cSrcweir } // namespace udlg 109cdf0e10cSrcweir //........................................................................ 110