lib

koffice_export.h

00001 /*
00002     This file is part of kofficecore
00003     Copyright (c) 2005 KOffice Team
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License as published by the Free Software Foundation; either
00008     version 2 of the License, or (at your option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Library General Public License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public License
00016     along with this library; see the file COPYING.LIB.  If not, write to
00017     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  * Boston, MA 02110-1301, USA.
00019 */
00020 
00021 
00022 
00023 #ifndef _KOFFICE_EXPORT_H
00024 #define _KOFFICE_EXPORT_H
00025 
00026 #include <kdeversion.h>
00027 
00028 #ifdef Q_WS_WIN
00029 
00030 /* workaround for KDElibs < 3.2 on !win32 */
00031 #ifndef KDE_EXPORT
00032 # define KDE_EXPORT
00033 #endif
00034 
00035 #ifndef KOFFICECORE_EXPORT
00036 # ifdef MAKE_KOFFICECORE_LIB
00037 #  define KOFFICECORE_EXPORT KDE_EXPORT
00038 # elif KDE_MAKE_LIB
00039 #  define KOFFICECORE_EXPORT KDE_IMPORT
00040 # else
00041 #  define KOFFICECORE_EXPORT
00042 # endif
00043 #endif
00044 
00045 #ifndef KOFFICEUI_EXPORT
00046 # ifdef MAKE_KOFFICEUI_LIB
00047 #  define KOFFICEUI_EXPORT KDE_EXPORT
00048 # elif KDE_MAKE_LIB
00049 #  define KOFFICEUI_EXPORT KDE_IMPORT
00050 # else
00051 #  define KOFFICEUI_EXPORT
00052 # endif
00053 #endif
00054 
00055 #ifdef MAKE_KOSTORE_LIB
00056 # define KOSTORE_EXPORT KDE_EXPORT
00057 #elif KDE_MAKE_LIB
00058 # define KOSTORE_EXPORT KDE_IMPORT
00059 #else
00060 # define KOSTORE_EXPORT
00061 #endif
00062 
00063 #ifdef MAKE_KOPALETTE_LIB
00064 # define KOPALETTE_EXPORT KDE_EXPORT
00065 #elif KDE_MAKE_LIB
00066 # define KOPALETTE_EXPORT KDE_IMPORT
00067 #else
00068 # define KOPALETTE_EXPORT
00069 #endif
00070 
00071 #ifdef MAKE_KOWMF_LIB
00072 # define KOWMF_EXPORT KDE_EXPORT
00073 #elif KDE_MAKE_LIB
00074 # define KOWMF_EXPORT KDE_IMPORT
00075 #else
00076 # define KOWMF_EXPORT
00077 #endif
00078 
00079 #ifdef MAKE_KWMF_LIB
00080 # define KWMF_EXPORT KDE_EXPORT
00081 #elif KDE_MAKE_LIB
00082 # define KWMF_EXPORT KDE_IMPORT
00083 #else
00084 # define KWMF_EXPORT
00085 #endif
00086 
00087 #ifdef MAKE_KOTEXT_LIB
00088 # define KOTEXT_EXPORT KDE_EXPORT
00089 #elif KDE_MAKE_LIB
00090 # define KOTEXT_EXPORT KDE_IMPORT
00091 #else
00092 # define KOTEXT_EXPORT
00093 #endif
00094 
00095 #ifdef MAKE_KOFORMULA_LIB
00096 # define KOFORMULA_EXPORT KDE_EXPORT
00097 #elif KDE_MAKE_LIB
00098 # define KOFORMULA_EXPORT KDE_IMPORT
00099 #else
00100 # define KOFORMULA_EXPORT
00101 #endif
00102 
00103 #ifdef MAKE_KOPAINTER_LIB
00104 # define KOPAINTER_EXPORT KDE_EXPORT
00105 #elif KDE_MAKE_LIB
00106 # define KOPAINTER_EXPORT KDE_IMPORT
00107 #else
00108 # define KOPAINTER_EXPORT
00109 #endif
00110 
00111 #ifdef MAKE_KWORD_LIB
00112 # define KWORD_EXPORT KDE_EXPORT
00113 #elif KDE_MAKE_LIB
00114 # define KWORD_EXPORT KDE_IMPORT
00115 #else
00116 # define KWORD_EXPORT
00117 #endif
00118 
00119 #ifdef MAKE_KWMAILMERGE_LIB
00120 # define KWMAILMERGE_EXPORT KDE_EXPORT
00121 #elif KDE_MAKE_LIB
00122 # define KWMAILMERGE_EXPORT KDE_IMPORT
00123 #else
00124 # define KWMAILMERGE_EXPORT
00125 #endif
00126 
00127 #ifndef KOPROPERTY_EXPORT
00128 # ifdef MAKE_KOPROPERTY_LIB
00129 #  define KOPROPERTY_EXPORT KDE_EXPORT
00130 # elif KDE_MAKE_LIB
00131 #  define KOPROPERTY_EXPORT KDE_IMPORT
00132 # else
00133 #  define KOPROPERTY_EXPORT
00134 # endif
00135 #endif
00136 
00137 #define KPRESENTER_EXPORT KDE_EXPORT
00138 #define KCHART_EXPORT KDE_EXPORT
00139 #define KDCHART_EXPORT KDE_EXPORT
00140 #define KARBONCOMMON_EXPORT KDE_EXPORT
00141 #define KARBONBASE_EXPORT KDE_EXPORT
00142 #define KARBONCOMMAND_EXPORT KDE_EXPORT
00143 #define KSPREAD_EXPORT KDE_EXPORT
00144 #define KOSHELL_EXPORT KDE_EXPORT
00145 #define KPLATO_EXPORT KDE_EXPORT
00146 #define KPLATOCHART_EXPORT KDE_EXPORT
00147 #define KUGAR_EXPORT KDE_EXPORT
00148 #define KUGARDESIGNER_EXPORT KDE_EXPORT
00149 #define KOFFICETOOLS_EXPORT KDE_EXPORT
00150 #define KOFFICEFILTER_EXPORT KDE_EXPORT
00151 #define KOCHARTINTERFACE_EXPORT KDE_EXPORT
00152 #define KIVIOPLUGINS_EXPORT KDE_EXPORT
00153 #define KIVIO_EXPORT KDE_EXPORT
00154 #define KRITA_EXPORT KDE_EXPORT
00155 #define KRITAUI_EXPORT KDE_EXPORT
00156 #define KRITACORE_EXPORT KDE_EXPORT
00157 #define KRITATOOL_EXPORT KDE_EXPORT
00158 #define KRITAPAINT_EXPORT KDE_EXPORT
00159 #define EXAMPLE_EXPORT KDE_EXPORT
00160 #else // not windows
00161 
00162 #if KDE_VERSION >= KDE_MAKE_VERSION(3,3,90)
00163 #define KOFFICE_EXPORT KDE_EXPORT
00164 #else
00165 #define KOFFICE_EXPORT
00166 #endif
00167 
00168 /* kdemacros is OK, we can use gcc visibility macros */
00169 #define KOFFICECORE_EXPORT KOFFICE_EXPORT
00170 #define KOFFICEUI_EXPORT KOFFICE_EXPORT
00171 #define KOPALETTE_EXPORT KOFFICE_EXPORT
00172 #define KOTEXT_EXPORT KOFFICE_EXPORT
00173 #define KOFORMULA_EXPORT KOFFICE_EXPORT
00174 #define KOSTORE_EXPORT KOFFICE_EXPORT
00175 #define KOWMF_EXPORT KOFFICE_EXPORT
00176 #define KOSCRIPT_EXPORT KOFFICE_EXPORT
00177 #define KOPAINTER_EXPORT KOFFICE_EXPORT
00178 #define KSPREAD_EXPORT KOFFICE_EXPORT
00179 #define KFORMULA_EXPORT KOFFICE_EXPORT
00180 #define KWORD_EXPORT KOFFICE_EXPORT
00181 #define KWORD_MAILMERGE_EXPORT KOFFICE_EXPORT
00182 #define KPRESENTER_EXPORT KOFFICE_EXPORT
00183 #define KCHART_EXPORT KOFFICE_EXPORT
00184 #define KDCHART_EXPORT KOFFICE_EXPORT
00185 #define KARBONCOMMON_EXPORT KOFFICE_EXPORT
00186 #define KARBONBASE_EXPORT KOFFICE_EXPORT
00187 #define KARBONCOMMAND_EXPORT KOFFICE_EXPORT
00188 #define KOSHELL_EXPORT KOFFICE_EXPORT
00189 #define KPLATO_EXPORT KOFFICE_EXPORT
00190 #define KPLATOCHART_EXPORT KOFFICE_EXPORT
00191 #define KUGAR_EXPORT KOFFICE_EXPORT
00192 #define KUGARDESIGNER_EXPORT KOFFICE_EXPORT
00193 #define KOFFICETOOLS_EXPORT KOFFICE_EXPORT
00194 #define KOFFICEFILTER_EXPORT KOFFICE_EXPORT
00195 #define KOCHARTINTERFACE_EXPORT KOFFICE_EXPORT
00196 #define KIVIOPLUGINS_EXPORT KOFFICE_EXPORT
00197 #define KIVIO_EXPORT KOFFICE_EXPORT
00198 #define KRITA_EXPORT KOFFICE_EXPORT
00199 #define KRITAUI_EXPORT KOFFICE_EXPORT
00200 #define KRITACORE_EXPORT KOFFICE_EXPORT
00201 #define KRITATOOL_EXPORT KOFFICE_EXPORT
00202 #define KRITAPAINT_EXPORT KOFFICE_EXPORT
00203 #ifndef KOPROPERTY_EXPORT
00204 # define KOPROPERTY_EXPORT KOFFICE_EXPORT
00205 #endif
00206 #define EXAMPLE_EXPORT KOFFICE_EXPORT
00207 
00208 #endif /* not windows */
00209 
00210 #endif /* _KOFFICE_EXPORT_H */
KDE Home | KDE Accessibility Home | Description of Access Keys