1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 #ifndef _PAGES_HXX_ 29 #define _PAGES_HXX_ 30 31 #include <vcl/tabpage.hxx> 32 #include <vcl/button.hxx> 33 #include <vcl/dialog.hxx> 34 #include <vcl/scrbar.hxx> 35 #include <vcl/throbber.hxx> 36 #include <svtools/wizardmachine.hxx> 37 #include <svtools/svmedit.hxx> 38 #include <svl/lstner.hxx> 39 #include <svtools/xtextedt.hxx> 40 41 namespace desktop 42 { 43 class WelcomePage : public svt::OWizardPage 44 { 45 private: 46 FixedText m_ftHead; 47 FixedText m_ftBody; 48 svt::OWizardMachine *m_pParent; 49 sal_Bool m_bLicenseNeedsAcceptance; 50 enum OEMType 51 { 52 OEM_NONE, OEM_NORMAL, OEM_EXTENDED 53 }; 54 bool bIsEvalVersion; 55 bool bNoEvalText; 56 void checkEval(); 57 58 59 public: 60 WelcomePage( svt::OWizardMachine* parent, const ResId& resid, sal_Bool bLicenseNeedsAcceptance ); 61 protected: 62 virtual void ActivatePage(); 63 }; 64 65 class MigrationPage : public svt::OWizardPage 66 { 67 private: 68 FixedText m_ftHead; 69 FixedText m_ftBody; 70 CheckBox m_cbMigration; 71 Throbber& m_rThrobber; 72 sal_Bool m_bMigrationDone; 73 public: 74 MigrationPage( svt::OWizardMachine* parent, const ResId& resid, Throbber& i_throbber ); 75 virtual sal_Bool commitPage( svt::WizardTypes::CommitPageReason _eReason ); 76 77 protected: 78 virtual void ActivatePage(); 79 }; 80 81 class UserPage : public svt::OWizardPage 82 { 83 private: 84 FixedText m_ftHead; 85 FixedText m_ftBody; 86 FixedText m_ftFirst; 87 Edit m_edFirst; 88 FixedText m_ftLast; 89 Edit m_edLast; 90 FixedText m_ftInitials; 91 Edit m_edInitials; 92 FixedText m_ftFather; 93 Edit m_edFather; 94 LanguageType m_lang; 95 96 public: 97 UserPage( svt::OWizardMachine* parent, const ResId& resid); 98 virtual sal_Bool commitPage( svt::WizardTypes::CommitPageReason _eReason ); 99 protected: 100 virtual void ActivatePage(); 101 }; 102 103 class UpdateCheckPage : public svt::OWizardPage 104 { 105 private: 106 FixedText m_ftHead; 107 FixedText m_ftBody; 108 CheckBox m_cbUpdateCheck; 109 public: 110 UpdateCheckPage( svt::OWizardMachine* parent, const ResId& resid); 111 virtual sal_Bool commitPage( svt::WizardTypes::CommitPageReason _eReason ); 112 113 protected: 114 virtual void ActivatePage(); 115 }; 116 117 } // namespace desktop 118 119 #endif // #ifndef _PAGES_HXX_ 120 121