xref: /AOO41X/main/sd/source/ui/inc/assclass.hxx (revision 67e470dafe1997e73f56ff7ff4878983707e3e07)
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 INC_ASSCLASS
25 #define INC_ASSCLASS
26 
27 #include <tools/solar.h>
28 #include "sddllapi.h"
29 
30 #define MAX_PAGES 10
31 
32 class List;
33 class Control;
34 
35 class SD_DLLPUBLIC Assistent
36 {
37     List* mpPages[MAX_PAGES];
38         //enthaelt fuer jede Seite die Controls die
39         //korrekt geschaltet werden muessen
40 
41     int mnPages;
42         //gibt die Anzahl der Seiten an
43 
44     int mnCurrentPage;
45         //gibt die aktuelle Seite an
46 
47     bool* mpPageStatus;
48 
49 public:
50 
51     Assistent(int nNoOfPage);
52 
53     bool IsEnabled( int nPage );
54     void EnablePage( int nPage );
55     void DisablePage( int nPage );
56 
57     bool InsertControl(int nDestPage,Control* pUsedControl);
58         //fuegt einer spezifizierten Seite ein Control hinzu
59 
60     bool NextPage();
61         //springt zur naechsten Seite
62 
63     bool PreviousPage();
64         //springt zur vorherigen Seite
65 
66     bool GotoPage(const int nPageToGo);
67         //springt zu einer angegebenen Seite
68 
69     bool IsLastPage();
70         //gibt an ob die aktuelle Seite die letzte ist
71 
72     bool IsFirstPage();
73         //gibt an ob die aktuelle Seite die erste ist
74 
75     int  GetCurrentPage();
76         //gibt die aktuelle Seite zurueck
77 
78     ~Assistent();
79 };
80 
81 
82 #endif
83