1/************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27#ifndef __com_sun_star_awt_MessageBoxButtons_idl__ 28#define __com_sun_star_awt_MessageBoxButtons_idl__ 29 30//============================================================================= 31 32 module com { module sun { module star { module awt { 33 34//============================================================================= 35 36/** defines constants for the possible message box button 37 combinations. 38 39 */ 40constants MessageBoxButtons 41{ 42 //------------------------------------------------------------------------- 43 44 /** specifies a message with "OK" button. 45 */ 46 const long BUTTONS_OK = 1; 47 48 /** specifies a message box with "OK" and "CANCEL" button. 49 */ 50 const long BUTTONS_OK_CANCEL = 2; 51 52 /** specifies a message box with "YES" and "NO" button. 53 */ 54 const long BUTTONS_YES_NO = 3; 55 56 /** specifies a message box with "YES", "NO" and "CANCEL" button. 57 */ 58 const long BUTTONS_YES_NO_CANCEL = 4; 59 60 /** specifies a message box with "RETRY" and "CANCEL" button. 61 */ 62 const long BUTTONS_RETRY_CANCEL = 5; 63 64 /** specifies a message box with "ABORT", "IGNORE" and "RETRY" button. 65 */ 66 const long BUTTONS_ABORT_IGNORE_RETRY = 6; 67 68 /** specifies that OK is the default button. 69 */ 70 const long DEFAULT_BUTTON_OK = 0x10000; 71 72 /** specifies that CANCEL is the default button. 73 */ 74 const long DEFAULT_BUTTON_CANCEL = 0x20000; 75 76 /** specifies that RETRY is the default button. 77 */ 78 const long DEFAULT_BUTTON_RETRY = 0x30000; 79 80 /** specifies that YES is the default button. 81 */ 82 const long DEFAULT_BUTTON_YES = 0x40000; 83 84 /** specifies that NO is the default button. 85 */ 86 const long DEFAULT_BUTTON_NO = 0x50000; 87 88 /** specifies that IGNORE is the default button. 89 */ 90 const long DEFAULT_BUTTON_IGNORE = 0x60000; 91}; 92 93//============================================================================= 94 95}; }; }; }; 96 97#endif 98