update dev300-m58
[ooovba.git] / dbaccess / source / ui / inc / unosqlmessage.hxx
blob138d167969ff23d243c28977e428a9dde31f786c
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: unosqlmessage.hxx,v $
10 * $Revision: 1.8 $
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 ************************************************************************/
31 #ifndef _DBAUI_UNOSQLMESSAGE_HXX_
32 #define _DBAUI_UNOSQLMESSAGE_HXX_
34 #ifndef _SVT_GENERICUNODIALOG_HXX_
35 #include <svtools/genericunodialog.hxx>
36 #endif
37 #ifndef _DBAUI_MODULE_DBU_HXX_
38 #include "moduledbu.hxx"
39 #endif
40 //.........................................................................
41 namespace dbaui
43 //.........................................................................
45 typedef ::svt::OGenericUnoDialog OSQLMessageDialogBase;
46 class OSQLMessageDialog
47 :public OSQLMessageDialogBase
48 ,public ::comphelper::OPropertyArrayUsageHelper< OSQLMessageDialog >
50 OModuleClient m_aModuleClient;
51 protected:
52 // <properties>
53 ::com::sun::star::uno::Any m_aException;
54 ::rtl::OUString m_sHelpURL;
55 // </properties>
57 protected:
58 OSQLMessageDialog(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB);
60 public:
61 // XTypeProvider
62 virtual com::sun::star::uno::Sequence<sal_Int8> SAL_CALL getImplementationId( ) throw(com::sun::star::uno::RuntimeException);
64 // XServiceInfo
65 virtual ::rtl::OUString SAL_CALL getImplementationName() throw(com::sun::star::uno::RuntimeException);
66 virtual ::comphelper::StringSequence SAL_CALL getSupportedServiceNames() throw(com::sun::star::uno::RuntimeException);
68 // XServiceInfo - static methods
69 static com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_Static(void) throw( com::sun::star::uno::RuntimeException );
70 static ::rtl::OUString getImplementationName_Static(void) throw( com::sun::star::uno::RuntimeException );
71 static com::sun::star::uno::Reference< com::sun::star::uno::XInterface >
72 SAL_CALL Create(const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >&);
74 // XPropertySet
75 virtual com::sun::star::uno::Reference<com::sun::star::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() throw(com::sun::star::uno::RuntimeException);
76 virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
78 // OPropertyArrayUsageHelper
79 virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const;
81 protected:
82 // OPropertySetHelper overridables
83 // (overwrittin these three, because we have some special handling for our property)
84 virtual sal_Bool SAL_CALL convertFastPropertyValue( com::sun::star::uno::Any& _rConvertedValue, com::sun::star::uno::Any& _rOldValue, sal_Int32 _nHandle, const com::sun::star::uno::Any& _rValue) throw(com::sun::star::lang::IllegalArgumentException);
86 // OGenericUnoDialog overridables
87 virtual Dialog* createDialog(Window* _pParent);
90 //.........................................................................
91 } // namespace dbaui
92 //.........................................................................
94 #endif // _DBAUI_UNOSQLMESSAGE_HXX_