goffice-compat.h

00001 /* 
00002  * Gnome Chemistry Utils
00003  * gcu/goffice-compat.h
00004  * definitions helping with goffice API changes
00005  *
00006  * Copyright (C) 2009 Jean Bréfort <jean.brefort@normalesup.org>
00007  *
00008  * This program is free software; you can redistribute it and/or 
00009  * modify it under the terms of the GNU General Public License as 
00010  * published by the Free Software Foundation; either version 2 of the
00011  * License, or (at your option) any later version.
00012  *
00013  * This program is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with this program; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
00021  * USA
00022  */
00023 
00024 #ifdef HAVE_GO_ERROR_INFO_FREE
00025 #       define IOContext GOIOContext
00026 #       define gnumeric_io_context_new go_io_context_new
00027 #       define ErrorInfo GOErrorInfo
00028 #       define error_info_new_printf go_error_info_new_printf
00029 #       define error_info_peek_message go_error_info_peek_message
00030 #       define error_info_print go_error_info_print
00031 #       define gnm_io_warning go_io_warning
00032 #       define PluginServiceSimple GOPluginServiceSimple
00033 #       define PluginServiceSimpleClass GOPluginServiceSimpleClass
00034 #       define plugin_service_define go_plugin_service_define
00035 #       define plugin_service_load go_plugin_service_load
00036 #endif
00037 
00038 #ifdef GO_RGBA_TO_UINT
00039 #       define RGBA_TO_UINT GO_RGBA_TO_UINT
00040 #       define RGBA_BLACK GO_RGBA_BLACK
00041 #       define RGBA_RED GO_RGBA_RED
00042 #       define UINT_RGBA_R GO_UINT_RGBA_R
00043 #       define UINT_RGBA_G GO_UINT_RGBA_G
00044 #       define UINT_RGBA_B GO_UINT_RGBA_B
00045 #       define UINT_RGBA_A GO_UINT_RGBA_A
00046 #       define DOUBLE_RGBA_R GO_DOUBLE_RGBA_R
00047 #       define DOUBLE_RGBA_G GO_DOUBLE_RGBA_G
00048 #       define DOUBLE_RGBA_B GO_DOUBLE_RGBA_B
00049 #       define DOUBLE_RGBA_A GO_DOUBLE_RGBA_A
00050 #endif
00051 #ifdef GO_COLOR_FROM_RGBA
00052 #       define RGBA_TO_UINT GO_COLOR_FROM_RGBA
00053 #       define RGBA_BLACK GO_COLOR_BLACK
00054 #       define RGBA_RED GO_COLOR_RED
00055 #       define UINT_RGBA_R GO_COLOR_UINT_R
00056 #       define UINT_RGBA_G GO_COLOR_UINT_G
00057 #       define UINT_RGBA_B GO_COLOR_UINT_B
00058 #       define UINT_RGBA_A GO_COLOR_UINT_A
00059 #       define DOUBLE_RGBA_R GO_COLOR_DOUBLE_R
00060 #       define DOUBLE_RGBA_G GO_COLOR_DOUBLE_G
00061 #       define DOUBLE_RGBA_B GO_COLOR_DOUBLE_B
00062 #       define DOUBLE_RGBA_A GO_COLOR_DOUBLE_A
00063 #endif
00064 
00065 #ifdef GO_PLUGIN_SERVICE_CLASS
00066 #       define GPS_CLASS GO_PLUGIN_SERVICE_CLASS
00067 #endif
Generated by  doxygen 1.6.2-20100208