1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 #ifndef _EMBSERVCONST_H_ 29 #define _EMBSERVCONST_H_ 30 31 #include <initguid.h> 32 33 #ifndef _COMPHELPER_CLASSIDS_HXX 34 #include <comphelper/classids.hxx> 35 #endif 36 37 #ifndef _SAL_TYPES_H_ 38 #include <sal/types.h> 39 #endif 40 41 const sal_Int32 nConstBufferSize = 32000; 42 43 #define SUPPORTED_FACTORIES_NUM 10 44 45 #ifdef __MINGW32__ 46 #define DECLSPEC_SELECTANY 47 #endif 48 #if defined(__MINGW32__) && !defined(INITGUID) 49 EXTERN_C const GUID DECLSPEC_SELECTANY OID_WriterTextServer; 50 EXTERN_C const GUID DECLSPEC_SELECTANY OID_WriterOASISTextServer; 51 52 EXTERN_C const GUID DECLSPEC_SELECTANY OID_CalcServer; 53 EXTERN_C const GUID DECLSPEC_SELECTANY OID_CalcOASISServer; 54 55 EXTERN_C const GUID DECLSPEC_SELECTANY OID_DrawingServer; 56 EXTERN_C const GUID DECLSPEC_SELECTANY OID_DrawingOASISServer; 57 58 EXTERN_C const GUID DECLSPEC_SELECTANY OID_PresentationServer; 59 EXTERN_C const GUID DECLSPEC_SELECTANY OID_PresentationOASISServer; 60 61 EXTERN_C const GUID DECLSPEC_SELECTANY OID_MathServer; 62 EXTERN_C const GUID DECLSPEC_SELECTANY OID_MathOASISServer; 63 #else 64 EXTERN_C const GUID DECLSPEC_SELECTANY OID_WriterTextServer = { SO3_SW_OLE_EMBED_CLASSID_60 }; 65 EXTERN_C const GUID DECLSPEC_SELECTANY OID_WriterOASISTextServer = { SO3_SW_OLE_EMBED_CLASSID_8 }; 66 67 EXTERN_C const GUID DECLSPEC_SELECTANY OID_CalcServer = { SO3_SC_OLE_EMBED_CLASSID_60 }; 68 EXTERN_C const GUID DECLSPEC_SELECTANY OID_CalcOASISServer = { SO3_SC_OLE_EMBED_CLASSID_8 }; 69 70 EXTERN_C const GUID DECLSPEC_SELECTANY OID_DrawingServer = { SO3_SDRAW_OLE_EMBED_CLASSID_60 }; 71 EXTERN_C const GUID DECLSPEC_SELECTANY OID_DrawingOASISServer = { SO3_SDRAW_OLE_EMBED_CLASSID_8 }; 72 73 EXTERN_C const GUID DECLSPEC_SELECTANY OID_PresentationServer = { SO3_SIMPRESS_OLE_EMBED_CLASSID_60 }; 74 EXTERN_C const GUID DECLSPEC_SELECTANY OID_PresentationOASISServer = { SO3_SIMPRESS_OLE_EMBED_CLASSID_8 }; 75 76 EXTERN_C const GUID DECLSPEC_SELECTANY OID_MathServer = { SO3_SM_OLE_EMBED_CLASSID_60 }; 77 EXTERN_C const GUID DECLSPEC_SELECTANY OID_MathOASISServer = { SO3_SM_OLE_EMBED_CLASSID_8 }; 78 #endif 79 80 #endif 81 82