2004-01-24 09:08:16 -08:00
|
|
|
/*
|
|
|
|
* Copyright 2003 James Bursa <bursa@users.sourceforge.net>
|
2007-08-08 09:16:03 -07:00
|
|
|
*
|
|
|
|
* This file is part of NetSurf, http://www.netsurf-browser.org/
|
|
|
|
*
|
|
|
|
* NetSurf is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; version 2 of the License.
|
|
|
|
*
|
|
|
|
* NetSurf 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 General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2004-01-24 09:08:16 -08:00
|
|
|
*/
|
|
|
|
|
|
|
|
/** \file
|
|
|
|
* Declaration of content_type enum.
|
|
|
|
*
|
|
|
|
* The content_type enum is defined here to prevent cyclic dependencies.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _NETSURF_DESKTOP_CONTENT_TYPE_H_
|
|
|
|
#define _NETSURF_DESKTOP_CONTENT_TYPE_H_
|
|
|
|
|
2007-05-30 15:39:54 -07:00
|
|
|
#include "utils/config.h"
|
2004-01-24 09:08:16 -08:00
|
|
|
|
|
|
|
|
|
|
|
/** The type of a content. */
|
|
|
|
typedef enum {
|
|
|
|
CONTENT_HTML,
|
|
|
|
CONTENT_TEXTPLAIN,
|
|
|
|
CONTENT_CSS,
|
|
|
|
#ifdef WITH_JPEG
|
|
|
|
CONTENT_JPEG,
|
|
|
|
#endif
|
2004-04-24 16:42:32 -07:00
|
|
|
#ifdef WITH_GIF
|
|
|
|
CONTENT_GIF,
|
|
|
|
#endif
|
2006-02-25 10:51:51 -08:00
|
|
|
#ifdef WITH_BMP
|
|
|
|
CONTENT_BMP,
|
2006-02-25 18:25:19 -08:00
|
|
|
CONTENT_ICO,
|
2006-02-25 10:51:51 -08:00
|
|
|
#endif
|
2008-09-15 13:54:03 -07:00
|
|
|
#if defined(WITH_MNG) || defined(WITH_PNG)
|
2004-09-03 15:44:48 -07:00
|
|
|
CONTENT_PNG,
|
2008-09-15 13:54:03 -07:00
|
|
|
#endif
|
|
|
|
#ifdef WITH_MNG
|
2004-07-16 12:47:03 -07:00
|
|
|
CONTENT_JNG,
|
|
|
|
CONTENT_MNG,
|
|
|
|
#endif
|
2008-03-29 06:30:04 -07:00
|
|
|
#if defined(WITH_SPRITE) || defined(WITH_NSSPRITE)
|
2004-01-24 09:08:16 -08:00
|
|
|
CONTENT_SPRITE,
|
|
|
|
#endif
|
|
|
|
#ifdef WITH_DRAW
|
|
|
|
CONTENT_DRAW,
|
|
|
|
#endif
|
|
|
|
#ifdef WITH_PLUGIN
|
|
|
|
CONTENT_PLUGIN,
|
2005-01-13 14:42:39 -08:00
|
|
|
#endif
|
|
|
|
#ifdef WITH_THEME_INSTALL
|
|
|
|
CONTENT_THEME,
|
2005-12-10 06:31:33 -08:00
|
|
|
#endif
|
|
|
|
#ifdef WITH_ARTWORKS
|
|
|
|
CONTENT_ARTWORKS,
|
2004-01-24 09:08:16 -08:00
|
|
|
#endif
|
2007-07-18 10:58:35 -07:00
|
|
|
#if defined(WITH_NS_SVG) || defined(WITH_RSVG)
|
2007-07-12 20:54:47 -07:00
|
|
|
CONTENT_SVG,
|
2010-10-03 13:41:31 -07:00
|
|
|
#endif
|
|
|
|
#ifdef WITH_WEBP
|
|
|
|
CONTENT_WEBP,
|
2010-10-30 07:23:38 -07:00
|
|
|
#endif
|
|
|
|
#ifdef WITH_AMIGA_ICON
|
|
|
|
CONTENT_AMIGA_ICON,
|
2011-03-05 01:49:15 -08:00
|
|
|
#endif
|
|
|
|
#ifdef WITH_APPLE_IMAGE
|
|
|
|
CONTENT_APPLE_IMAGE,
|
2007-07-18 07:49:26 -07:00
|
|
|
#endif
|
2004-01-24 09:08:16 -08:00
|
|
|
/* these must be the last two */
|
|
|
|
CONTENT_OTHER,
|
|
|
|
CONTENT_UNKNOWN /**< content-type not received yet */
|
|
|
|
} content_type;
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|