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: XMessageBoxFactory.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_awt_XMessageBoxFactory_idl__
32 #define __com_sun_star_awt_XMessageBoxFactory_idl__
34 #ifndef __com_sun_star_awt_XWindowPeer_idl__
35 #include
<com
/sun
/star
/awt
/XWindowPeer.idl
>
38 #ifndef __com_sun_star_awt_XMessageBox_idl__
39 #include
<com
/sun
/star
/awt
/XMessageBox.idl
>
42 #ifndef __com_sun_star_awt_MessageBoxButtons_idl__
43 #include
<com
/sun
/star
/awt
/MessageBoxButtons.idl
>
46 #ifndef __com_sun_star_awt_Rectangle_idl__
47 #include
<com
/sun
/star
/awt
/Rectangle.idl
>
51 //=============================================================================
53 module com
{ module sun
{ module star
{ module awt
{
55 //=============================================================================
57 /** specifies a factory interface for creating message boxes.
59 published
interface XMessageBoxFactory
: com
::sun
::star
::uno
::XInterface
61 //-------------------------------------------------------------------------
63 /** creates a message box.
66 the created message box or a null reference if it cannot be
70 a valid XWindowPeer reference which is used as a parent. This parameter
74 a rectangle which defines the position and size of the message
78 a string which determines the message box type.
79 The following strings are defined.
81 <li><b>infobox</b>A message box to inform the user about a certain event.
82 <b>Attention:</b><br/>This type of message box ignores the argument
83 aButton because a info box always shows a OK button.
85 <li><b>warningbox</b>A message to warn the user about a certain problem.</li>
86 <li><b>errorbox</b>A message box to provide an error message to the user.</li>
87 <li><b>querybox</b>A message box to query information from the user.</li>
88 <li><b>messbox</b>A normal message box.</li>
92 specifies which buttons should be available on the
93 message box. A combination of
94 <type scope="com::sun::star::awt">MessageBoxButtons</type>. An <b>infobox</b>
95 ignores this paramter and always use button "OK".
98 specifies the title of the message box.
101 specifies text which will be shown by the message box.
102 Line-breaks must be added using 'CR' or 'CR+LF'.
104 XMessageBox createMessageBox
( [in] com
::sun
::star
::awt
::XWindowPeer aParent
, [in] com
::sun
::star
::awt
::Rectangle aPosSize
, [in] string aType
, [in] long aButtons
, [in] string aTitle
, [in] string aMessage
);
107 //=============================================================================