Update ooo320-m1
[ooovba.git] / offapi / com / sun / star / awt / MessageBoxButtons.idl
blob641e96a91aac7d4eb213f03b25b95f5b2c4ab2ac
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: MessageBoxButtons.idl,v $
10 * $Revision: 1.3 $
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 __com_sun_star_awt_MessageBoxButtons_idl__
31 #define __com_sun_star_awt_MessageBoxButtons_idl__
33 //=============================================================================
35 module com { module sun { module star { module awt {
37 //=============================================================================
39 /** defines constants for the possible message box button
40 combinations.
43 constants MessageBoxButtons
45 //-------------------------------------------------------------------------
47 /** specifies a message with "OK" button.
49 const long BUTTONS_OK = 1;
51 /** specifies a message box with "OK" and "CANCEL" button.
53 const long BUTTONS_OK_CANCEL = 2;
55 /** specifies a message box with "YES" and "NO" button.
57 const long BUTTONS_YES_NO = 3;
59 /** specifies a message box with "YES", "NO" and "CANCEL" button.
61 const long BUTTONS_YES_NO_CANCEL = 4;
63 /** specifies a message box with "RETRY" and "CANCEL" button.
65 const long BUTTONS_RETRY_CANCEL = 5;
67 /** specifies a message box with "ABORT", "IGNORE" and "RETRY" button.
69 const long BUTTONS_ABORT_IGNORE_RETRY = 6;
71 /** specifies that OK is the default button.
73 const long DEFAULT_BUTTON_OK = 0x10000;
75 /** specifies that CANCEL is the default button.
77 const long DEFAULT_BUTTON_CANCEL = 0x20000;
79 /** specifies that RETRY is the default button.
81 const long DEFAULT_BUTTON_RETRY = 0x30000;
83 /** specifies that YES is the default button.
85 const long DEFAULT_BUTTON_YES = 0x40000;
87 /** specifies that NO is the default button.
89 const long DEFAULT_BUTTON_NO = 0x50000;
91 /** specifies that IGNORE is the default button.
93 const long DEFAULT_BUTTON_IGNORE = 0x60000;
94 };
96 //=============================================================================
98 }; }; }; };
100 #endif