/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: errcode.hxx,v $ * $Revision: 1.3 $ * * This file is part of OpenOffice.org. * * OpenOffice.org is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 3 * only, as published by the Free Software Foundation. * * OpenOffice.org is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License version 3 for more details * (a copy is included in the LICENSE file that accompanied this code). * * You should have received a copy of the GNU Lesser General Public License * version 3 along with OpenOffice.org. If not, see * * for a copy of the LGPLv3 License. * ************************************************************************/ #ifndef _ERRCODE_HXX #define _ERRCODE_HXX #ifndef __RSC #ifndef _SOLAR_H #include #endif #endif /* 01234567012345670123456701234567 || || ||| || | Warning || || | | || || || | Dynamic || || | | || || | Subsystembereiche | | | || | | || | | || | Class | | | | | | | Code */ #define ERRCODE_BUTTON_OK 0x01 #define ERRCODE_BUTTON_CANCEL 0x02 #define ERRCODE_BUTTON_RETRY 0x04 #define ERRCODE_BUTTON_OK_CANCEL 0x03 #define ERRCODE_BUTTON_OK_RETRY_CANCEL 0x07 #define ERRCODE_BUTTON_NO 0x08 #define ERRCODE_BUTTON_YES 0x10 #define ERRCODE_BUTTON_YES_NO 0x18 #define ERRCODE_BUTTON_YES_NO_CANCEL 0x1a #define ERRCODE_BUTTON_DEF_OK 0x100 #define ERRCODE_BUTTON_DEF_CANCEL 0x200 #define ERRCODE_BUTTON_DEF_YES 0x300 #define ERRCODE_BUTTON_DEF_NO 0x400 #define ERRCODE_MSG_ERROR 0x1000 #define ERRCODE_MSG_WARNING 0x2000 #define ERRCODE_MSG_INFO 0x3000 #define ERRCODE_MSG_QUERY 0x4000 #define ERRCODE_ERROR_MASK 0x3fffffffUL #define ERRCODE_WARNING_MASK 0x80000000UL #define ERRCODE_RES_MASK 0x7fff #define ERRCODE_CLASS_SHIFT 8 #define ERRCODE_AREA_SHIFT 13 #define ERRCODE_DYNAMIC_SHIFT 26 #define ERRCODE_CLASS_MASK (31UL <