1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_SVTOOLS_SOURCE_UNO_UNOWIZARD_HXX
21 #define INCLUDED_SVTOOLS_SOURCE_UNO_UNOWIZARD_HXX
23 #include "svtools/genericunodialog.hxx"
25 #include <com/sun/star/ui/dialogs/XWizard.hpp>
26 #include <com/sun/star/uno/XComponentContext.hpp>
27 #include <com/sun/star/ui/dialogs/XWizardController.hpp>
29 #include <cppuhelper/implbase1.hxx>
31 //......................................................................................................................
32 namespace svt
{ namespace uno
34 //......................................................................................................................
36 //==================================================================================================================
37 //= Wizard - declaration
38 //==================================================================================================================
39 typedef ::cppu::ImplInheritanceHelper1
< ::svt::OGenericUnoDialog
40 , ::com::sun::star::ui::dialogs::XWizard
43 typedef ::comphelper::OPropertyArrayUsageHelper
< Wizard
> Wizard_PBase
;
44 class Wizard
: public Wizard_Base
48 Wizard( const ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XComponentContext
>& i_rContext
);
50 // ::com::sun::star::lang::XServiceInfo - static version
51 static OUString SAL_CALL
getImplementationName_static() throw(::com::sun::star::uno::RuntimeException
);
52 static ::com::sun::star::uno::Sequence
< OUString
> SAL_CALL
getSupportedServiceNames_static() throw(::com::sun::star::uno::RuntimeException
);
53 static ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XInterface
> SAL_CALL
Create( const ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XComponentContext
>& i_rContext
);
56 // ::com::sun::star::lang::XServiceInfo
57 virtual OUString SAL_CALL
getImplementationName() throw(::com::sun::star::uno::RuntimeException
);
58 virtual ::com::sun::star::uno::Sequence
< OUString
> SAL_CALL
getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException
);
60 // ::com::sun::star::beans::XPropertySet
61 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySetInfo
> SAL_CALL
getPropertySetInfo() throw(::com::sun::star::uno::RuntimeException
);
62 virtual ::cppu::IPropertyArrayHelper
& SAL_CALL
getInfoHelper();
64 // OPropertyArrayUsageHelper
65 virtual ::cppu::IPropertyArrayHelper
* createArrayHelper( ) const;
67 // ::com::sun::star::ui::dialogs::XWizard
68 virtual OUString SAL_CALL
getHelpURL() throw (::com::sun::star::uno::RuntimeException
);
69 virtual void SAL_CALL
setHelpURL( const OUString
& _helpurl
) throw (::com::sun::star::uno::RuntimeException
);
70 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XWindow
> SAL_CALL
getDialogWindow() throw (::com::sun::star::uno::RuntimeException
);
71 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::ui::dialogs::XWizardPage
> SAL_CALL
getCurrentPage( ) throw (::com::sun::star::uno::RuntimeException
);
72 virtual void SAL_CALL
enableButton( ::sal_Int16 WizardButton
, ::sal_Bool Enable
) throw (::com::sun::star::uno::RuntimeException
);
73 virtual void SAL_CALL
setDefaultButton( ::sal_Int16 WizardButton
) throw (::com::sun::star::uno::RuntimeException
);
74 virtual ::sal_Bool SAL_CALL
travelNext( ) throw (::com::sun::star::uno::RuntimeException
);
75 virtual ::sal_Bool SAL_CALL
travelPrevious( ) throw (::com::sun::star::uno::RuntimeException
);
76 virtual void SAL_CALL
enablePage( ::sal_Int16 PageID
, ::sal_Bool Enable
) throw (::com::sun::star::container::NoSuchElementException
, ::com::sun::star::util::InvalidStateException
, ::com::sun::star::uno::RuntimeException
);
77 virtual void SAL_CALL
updateTravelUI( ) throw (::com::sun::star::uno::RuntimeException
);
78 virtual ::sal_Bool SAL_CALL
advanceTo( ::sal_Int16 PageId
) throw (::com::sun::star::uno::RuntimeException
);
79 virtual ::sal_Bool SAL_CALL
goBackTo( ::sal_Int16 PageId
) throw (::com::sun::star::uno::RuntimeException
);
80 virtual void SAL_CALL
activatePath( ::sal_Int16 PathIndex
, ::sal_Bool Final
) throw (::com::sun::star::container::NoSuchElementException
, ::com::sun::star::util::InvalidStateException
, ::com::sun::star::uno::RuntimeException
);
82 // ::com::sun::star::ui::dialogs::XExecutableDialog
83 virtual void SAL_CALL
setTitle( const OUString
& aTitle
) throw (::com::sun::star::uno::RuntimeException
);
84 virtual ::sal_Int16 SAL_CALL
execute( ) throw (::com::sun::star::uno::RuntimeException
);
86 // ::com::sun::star::lang::XInitialization
87 virtual void SAL_CALL
initialize( const ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Any
>& aArguments
) throw (::com::sun::star::uno::Exception
, ::com::sun::star::uno::RuntimeException
);
93 virtual Dialog
* createDialog( Window
* _pParent
);
94 virtual void destroyDialog();
97 ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Sequence
< sal_Int16
> > m_aWizardSteps
;
98 ::com::sun::star::uno::Reference
< ::com::sun::star::ui::dialogs::XWizardController
> m_xController
;
102 //......................................................................................................................
103 } } // namespace svt::uno
104 //......................................................................................................................
106 #endif // INCLUDED_SVTOOLS_SOURCE_UNO_UNOWIZARD_HXX
108 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */