xref: /trunk/main/desktop/source/migration/pages.hxx (revision 0a1e2f0e)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _PAGES_HXX_
25 #define _PAGES_HXX_
26 
27 #include <vcl/tabpage.hxx>
28 #include <vcl/button.hxx>
29 #include <vcl/dialog.hxx>
30 #include <vcl/scrbar.hxx>
31 #include <vcl/throbber.hxx>
32 #include <svtools/wizardmachine.hxx>
33 #include <svtools/svmedit.hxx>
34 #include <svl/lstner.hxx>
35 #include <svtools/xtextedt.hxx>
36 
37 namespace desktop
38 {
39 class WelcomePage : public svt::OWizardPage
40 {
41 private:
42     FixedText m_ftHead;
43     FixedText m_ftBody;
44     svt::OWizardMachine *m_pParent;
45     sal_Bool m_bLicenseNeedsAcceptance;
46     enum OEMType
47     {
48         OEM_NONE, OEM_NORMAL, OEM_EXTENDED
49     };
50     bool bIsEvalVersion;
51     bool bNoEvalText;
52     void checkEval();
53 
54 
55 public:
56     WelcomePage( svt::OWizardMachine* parent, const ResId& resid, sal_Bool bLicenseNeedsAcceptance );
57 protected:
58     virtual void ActivatePage();
59 };
60 
61 class MigrationPage : public svt::OWizardPage
62 {
63 private:
64     FixedText m_ftHead;
65     FixedText m_ftBody;
66     CheckBox  m_cbMigration;
67     Throbber& m_rThrobber;
68     sal_Bool m_bMigrationDone;
69 public:
70     MigrationPage( svt::OWizardMachine* parent, const ResId& resid, Throbber& i_throbber );
71     virtual sal_Bool commitPage( svt::WizardTypes::CommitPageReason _eReason );
72 
73 protected:
74     virtual void ActivatePage();
75 };
76 
77 class UserPage : public svt::OWizardPage
78 {
79 private:
80     FixedText m_ftHead;
81     FixedText m_ftBody;
82     FixedText m_ftFirst;
83     Edit m_edFirst;
84 	FixedText m_ftLast;
85 	Edit m_edLast;
86 	FixedText m_ftInitials;
87 	Edit m_edInitials;
88 	FixedText m_ftFather;
89 	Edit m_edFather;
90     LanguageType m_lang;
91 
92 public:
93     UserPage( svt::OWizardMachine* parent, const ResId& resid);
94     virtual sal_Bool commitPage( svt::WizardTypes::CommitPageReason _eReason );
95 protected:
96     virtual void ActivatePage();
97 };
98 
99 class UpdateCheckPage : public svt::OWizardPage
100 {
101 private:
102     FixedText m_ftHead;
103     FixedText m_ftBody;
104     CheckBox m_cbUpdateCheck;
105 public:
106     UpdateCheckPage( svt::OWizardMachine* parent, const ResId& resid);
107     virtual sal_Bool commitPage( svt::WizardTypes::CommitPageReason _eReason );
108 
109 protected:
110     virtual void ActivatePage();
111 };
112 
113 } // namespace desktop
114 
115 #endif // #ifndef _PAGES_HXX_
116 
117