Update ooo320-m1
[ooovba.git] / desktop / source / deployment / gui / license_dialog.hxx
blob82e8b00c25f2be9fa406c4470b80a0f52cd03f4b
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: license_dialog.hxx,v $
10 * $Revision: 1.7 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef INCLUDED_DESKTOP_SOURCE_DEPLOYMENT_GUI_LICENSE_DIALOG_HXX
31 #define INCLUDED_DESKTOP_SOURCE_DEPLOYMENT_GUI_LICENSE_DIALOG_HXX
33 #include "dp_gui.h"
34 #include "cppuhelper/implbase1.hxx"
35 #include "com/sun/star/lang/XServiceInfo.hpp"
36 #include "com/sun/star/task/XJobExecutor.hpp"
37 #include "com/sun/star/ui/dialogs/XExecutableDialog.hpp"
39 #include "boost/bind.hpp"
41 using namespace ::dp_misc;
42 using namespace ::com::sun::star;
43 using namespace ::com::sun::star::uno;
44 using ::rtl::OUString;
46 namespace dp_gui {
48 class LicenseDialog
49 : public ::cppu::WeakImplHelper1<ui::dialogs::XExecutableDialog>
50 // task::XJobExecutor>
52 Reference<XComponentContext> const m_xComponentContext;
53 Reference<awt::XWindow> /* const */ m_parent;
54 OUString /* const */ m_sLicenseText;
55 OUString m_initialTitle;
57 sal_Int16 solar_execute();
59 public:
60 LicenseDialog( Sequence<Any> const & args,
61 Reference<XComponentContext> const & xComponentContext );
63 // XExecutableDialog
64 virtual void SAL_CALL setTitle( OUString const & title )
65 throw (RuntimeException);
66 virtual sal_Int16 SAL_CALL execute() throw (RuntimeException);
68 //// XJobExecutor
69 //virtual void SAL_CALL trigger( OUString const & event )
70 // throw (RuntimeException);
73 #endif