Back to index

lightning-sunbird  0.9+nobinonly
nsContentErrors.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
00002 // vim: ft=cpp sw=2 ts=2 tw=78 et
00003 /* ***** BEGIN LICENSE BLOCK *****
00004  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00005  *
00006  * The contents of this file are subject to the Mozilla Public License Version
00007  * 1.1 (the "License"); you may not use this file except in compliance with
00008  * the License. You may obtain a copy of the License at
00009  * http://www.mozilla.org/MPL/
00010  *
00011  * Software distributed under the License is distributed on an "AS IS" basis,
00012  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00013  * for the specific language governing rights and limitations under the
00014  * License.
00015  *
00016  * The Original Code is mozilla.org code.
00017  *
00018  * The Initial Developer of the Original Code is
00019  * Netscape Communications Corporation.
00020  * Portions created by the Initial Developer are Copyright (C) 2002
00021  * the Initial Developer. All Rights Reserved.
00022  *
00023  * Contributor(s):
00024  *   Jonas Sicking <jonas@sicking.cc> (original author)
00025  *
00026  * Alternatively, the contents of this file may be used under the terms of
00027  * either the GNU General Public License Version 2 or later (the "GPL"), or
00028  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00029  * in which case the provisions of the GPL or the LGPL are applicable instead
00030  * of those above. If you wish to allow use of your version of this file only
00031  * under the terms of either the GPL or the LGPL, and not to allow others to
00032  * use your version of this file under the terms of the MPL, indicate your
00033  * decision by deleting the provisions above and replace them with the notice
00034  * and other provisions required by the GPL or the LGPL. If you do not delete
00035  * the provisions above, a recipient may use your version of this file under
00036  * the terms of any one of the MPL, the GPL or the LGPL.
00037  *
00038  * ***** END LICENSE BLOCK ***** */
00039 
00040 #ifndef nsContentErrors_h___
00041 #define nsContentErrors_h___
00042 
00044 // Returned if the attr exists and has a value
00045 #define NS_CONTENT_ATTR_HAS_VALUE NS_OK
00046 
00047 // Returned if the attr exists but has no value
00048 #define NS_CONTENT_ATTR_NO_VALUE \
00049   NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_CONTENT, 0)
00050 
00051 // Returned if the attr does not exist
00052 #define NS_CONTENT_ATTR_NOT_THERE \
00053   NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_CONTENT, 1)
00054 
00055 
00057 // XXX this is not really used
00058 #define NS_HTML_STYLE_PROPERTY_NOT_THERE \
00059   NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_CONTENT, 2)
00060 
00061 
00063 #define NS_XML_AUTOLINK_EMBED \
00064   NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_CONTENT, 3)
00065 #define NS_XML_AUTOLINK_NEW \
00066   NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_CONTENT, 4)
00067 #define NS_XML_AUTOLINK_REPLACE \
00068   NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_CONTENT, 5)
00069 #define NS_XML_AUTOLINK_UNDEFINED \
00070   NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_CONTENT, 6)
00071 
00073 #define NS_CONTENT_SCRIPT_IS_EVENTHANDLER \
00074   NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_CONTENT, 7)
00075 
00077 #define NS_ERROR_IMAGE_SRC_CHANGED \
00078   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_CONTENT, 8)
00079 
00080 #define NS_ERROR_IMAGE_BLOCKED \
00081   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_CONTENT, 9)
00082 
00084 #define NS_ERROR_CONTENT_BLOCKED \
00085   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_CONTENT, 10)
00086 
00087 #define NS_ERROR_CONTENT_BLOCKED_SHOW_ALT \
00088   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_CONTENT, 11)
00089 
00091 #define NS_CONTENT_BLOCKED \
00092   NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_CONTENT, 12)
00093 
00094 #define NS_CONTENT_BLOCKED_SHOW_ALT \
00095   NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_CONTENT, 13)
00096 
00097 #define NS_PROPTABLE_PROP_NOT_THERE \
00098   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_CONTENT, 14)
00099 
00100 #define NS_PROPTABLE_PROP_OVERWRITTEN \
00101   NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_CONTENT, 15)
00102 
00103 /* Error codes for FindBroadcaster in nsXULDocument.cpp */
00104 
00105 #define NS_FINDBROADCASTER_NOT_FOUND \
00106   NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_CONTENT, 16)
00107 
00108 #define NS_FINDBROADCASTER_FOUND \
00109   NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_CONTENT, 17)
00110 
00111 #define NS_FINDBROADCASTER_AWAIT_OVERLAYS \
00112   NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_CONTENT, 18)
00113 
00114 #endif // nsContentErrors_h___