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: ErrorMessageDialog.idl,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 ************************************************************************/
31 #ifndef __com_sun_star_sdb_ErrorMessageDialog_idl__
32 #define __com_sun_star_sdb_ErrorMessageDialog_idl__
34 #ifndef __com_sun_star_ui_dialogs_XExecutableDialog_idl__
35 #include
<com
/sun
/star
/ui
/dialogs
/XExecutableDialog.idl
>
38 #ifndef __com_sun_star_awt_XWindow_idl__
39 #include
<com
/sun
/star
/awt
/XWindow.idl
>
42 #ifndef __com_sun_star_lang_XInitialization_idl__
43 #include
<com
/sun
/star
/lang
/XInitialization.idl
>
46 #ifndef __com_sun_star_beans_XPropertySet_idl__
47 #include
<com
/sun
/star
/beans
/XPropertySet.idl
>
50 //=============================================================================
52 module com
{ module sun
{ module star
{ module sdb
{
55 /** provides a dialog for displaying database related exceptions.
57 If applications use any of the functionality provided in the modules
58 <module scope="com.sun.star">
62 <module scope="com.sun.star">
66 <module scope="com.sun.star">
70 they will - sooner or later - encounter
71 <type scope="com::sun::star::sdbc">SQLException</type>
74 These exceptions can be chained, so the information wrapped in one single
75 <type scope="com::sun::star::sdbc">SQLException</type>
76 can be rather complex (e.g., every instance where such an exception is passing before it is finally caught, could
78 <type scope="com::sun::star::sdb">SQLContext</type>
79 to explain what it was doing), and they should be
80 presented to the user in a consistent way.
82 This can be reached by using this service.
83 @see com.sun.star.sdb.InteractionHandler
86 published service ErrorMessageDialog
88 /** the title of the (dialog) window
90 [property
] string Title
;
92 /** parent window to use for the dialog
94 This property can't be set while the dialog is being displayed.
97 [property
] com
::sun
::star
::awt
::XWindow ParentWindow
;
99 /** is the exception displayed by the dialog
101 This should contain a
102 <type scope="com::sun::star::sdbc">SQLException</type>
103 instance, or an instance
104 of any class derived from this exception.
107 This property can't be set while the dialog is being displayed.
110 [property
] any SQLException
;
112 /** specifies the URL to the help topic to associate with the dialog.
114 <p>If This URL is not empty, then the dialog will get a "Help" button, which
115 directs the user to the given help topic.</p>
117 [optional, property
] string HelpURL
;
119 /** allows access to the properties of the object
121 interface com
::sun
::star
::beans
::XPropertySet
;
123 /** allows starting execution of the dialog
125 interface com
::sun
::star
::ui
::dialogs
::XExecutableDialog
;
127 /** allows initializing the dialog
129 You do not need to call the initialize method directly, instead you may use the createInstanceWithArguments
131 <type scope="com::sun::star::lang">XMultiServiceFactory</type>
135 You specify a parameter by passing one (or more)
136 <type scope="com::sun::star::beans">PropertyValue</type>
137 object(s) to the initialize method, where the <em>Name</em> field contains a string describing which aspect
138 you want to affect, and the <em>Value</em> field containing a value.
140 Imagine the initialization values, as if you use
141 <method scope="com::sun::star::beans">XPropertySet::setPropertyValue()
144 <type scope="com::sun::star::beans">XPropertySet</type>
147 allowed parameters are
149 <li><b>Title</b><br/>
150 String describing the initial title of the dialog. If not specified, a default title is used.
152 <li><b>ParentWindow</b><br/>
153 <type scope="com::sun::star::awt">XWindow</type>
154 describing the parent window to use for the dialog.
156 <li><b>SQLException</b><br/>
157 <type scope="com::sun::star::sdbc">SQLException</type>
158 describing the error which is beeing displayed.<br/>
159 When initializing this value, you may use any derivative of
160 <type scope="com::sun::star::sdbc">SQLException</type>
166 interface com
::sun
::star
::lang
::XInitialization
;
169 //=============================================================================