1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: ExtensionNotPresent.hxx,v $
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 DBU_EXTENSIONNOTPRESENT_HXX
31 #define DBU_EXTENSIONNOTPRESENT_HXX
33 #ifndef _DIALOG_HXX //autogen
34 #include <vcl/dialog.hxx>
36 #ifndef _FIXED_HXX //autogen
37 #include <vcl/fixed.hxx>
39 #ifndef _SV_LSTBOX_HXX
40 #include <vcl/lstbox.hxx>
43 #include <vcl/field.hxx>
45 #ifndef _SV_BUTTON_HXX
46 #include <vcl/button.hxx>
48 #ifndef _COM_SUN_STAR_REPORT_XREPORTDEFINITION_HPP_
49 #include <com/sun/star/report/XReportDefinition.hpp>
51 #ifndef _COM_SUN_STAR_LANG_LOCALE_HPP_
52 #include <com/sun/star/lang/Locale.hpp>
55 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
56 #include <com/sun/star/system/XSystemShellExecute.hpp>
61 /*************************************************************************
63 |* Groups and Sorting dialog
65 \************************************************************************/
66 class OExtensionNotPresentDialog
: public ModalDialog
68 FixedImage m_aFI_WARNING
;
71 PushButton m_aPB_DOWNLOAD
;
72 CancelButton m_aPB_CANCEL
;
74 ::com::sun::star::lang::Locale m_nLocale
;
75 com::sun::star::uno::Reference
< com::sun::star::lang::XMultiServiceFactory
> m_xMultiServiceFactory
;
77 /** returns the format string.
79 // ::rtl::OUString getFormatString(::sal_Int16 _nNumberFormatIndex);
81 DECL_LINK(Download_Click
,PushButton
*);
83 // not CopyCTOR, no self assignment
84 OExtensionNotPresentDialog(const OExtensionNotPresentDialog
&);
85 void operator =(const OExtensionNotPresentDialog
&);
87 // get some values out of the configuration
88 rtl::OUString
getFromConfigurationExtension(rtl::OUString
const& _sPropertyName
) const;
89 rtl::OUString
getFromConfigurationExtension(rtl::OString
const& _sPropertyName
) const; // syntactic sugar
91 ::com::sun::star::uno::Reference
< ::com::sun::star::system::XSystemShellExecute
> getShellExecuter() const;
94 OExtensionNotPresentDialog( Window
* pParent
, com::sun::star::uno::Reference
< com::sun::star::lang::XMultiServiceFactory
> );
95 virtual ~OExtensionNotPresentDialog();
96 virtual short Execute();
98 inline String
getText() const { return m_aFT_TEXT
.GetText(); }
100 // =============================================================================
102 // =============================================================================
103 #endif // DBU_EXTENSIONNOTPRESENT_HXX