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#ifndef __com_sun_star_ui_dialogs_XWizardController_idl__
23#define __com_sun_star_ui_dialogs_XWizardController_idl__
24
25#include <com/sun/star/ui/dialogs/XWizardPage.idl>
26
27module com { module sun { module star { module ui { module dialogs {
28
29/** is the interface of a client-provided controller of a custom <type>Wizard</type>.
30
31    @since OpenOffice 3.3
32 */
33interface XWizardController
34{
35    /** creates a page
36
37        <p>Wizard pages are created on demand, when the respective page is reached during traveling through the
38        wizard. Effectively, this means the method is called at most once for each possible page ID.</p>
39
40        @param ParentWindow
41            the parent window to use for the page window
42        @param PageId
43            the ID of the page.
44        @return
45            the requested page.
46    */
47    XWizardPage createPage( [in] ::com::sun::star::awt::XWindow ParentWindow, [in] short PageId );
48
49    /** provides the title of a page given by ID
50
51        <p>The page titles are displayed in the wizard's roadmap.</p>
52    */
53    string  getPageTitle( [in] short PageId );
54
55    boolean canAdvance();
56
57    /** called when a new page in the wizard is being activated
58    */
59    void    onActivatePage( [in] short PageId );
60
61    /** called when a page in the wizard is being deactivated
62    */
63    void    onDeactivatePage( [in] short PageId );
64
65    /** called when the wizard is about to be finished.
66
67        <p>This method allows the controller to do any final checks, and ultimatively veto finishing the wizard.</p>
68    */
69    boolean confirmFinish();
70};
71
72}; }; }; }; };
73
74#endif
75