1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _EMBSERVCONST_H_
25 #define _EMBSERVCONST_H_
26 
27 #include <initguid.h>
28 
29 #ifndef _COMPHELPER_CLASSIDS_HXX
30 #include <comphelper/classids.hxx>
31 #endif
32 
33 #ifndef _SAL_TYPES_H_
34 #include <sal/types.h>
35 #endif
36 
37 const sal_Int32 nConstBufferSize = 32000;
38 
39 #define SUPPORTED_FACTORIES_NUM 10
40 
41 #ifdef __MINGW32__
42 #define DECLSPEC_SELECTANY
43 #endif
44 #if defined(__MINGW32__) && !defined(INITGUID)
45 EXTERN_C const GUID DECLSPEC_SELECTANY OID_WriterTextServer;
46 EXTERN_C const GUID DECLSPEC_SELECTANY OID_WriterOASISTextServer;
47 
48 EXTERN_C const GUID DECLSPEC_SELECTANY OID_CalcServer;
49 EXTERN_C const GUID DECLSPEC_SELECTANY OID_CalcOASISServer;
50 
51 EXTERN_C const GUID DECLSPEC_SELECTANY OID_DrawingServer;
52 EXTERN_C const GUID DECLSPEC_SELECTANY OID_DrawingOASISServer;
53 
54 EXTERN_C const GUID DECLSPEC_SELECTANY OID_PresentationServer;
55 EXTERN_C const GUID DECLSPEC_SELECTANY OID_PresentationOASISServer;
56 
57 EXTERN_C const GUID DECLSPEC_SELECTANY OID_MathServer;
58 EXTERN_C const GUID DECLSPEC_SELECTANY OID_MathOASISServer;
59 #else
60 EXTERN_C const GUID DECLSPEC_SELECTANY OID_WriterTextServer = { SO3_SW_OLE_EMBED_CLASSID_60 };
61 EXTERN_C const GUID DECLSPEC_SELECTANY OID_WriterOASISTextServer = { SO3_SW_OLE_EMBED_CLASSID_8 };
62 
63 EXTERN_C const GUID DECLSPEC_SELECTANY OID_CalcServer = { SO3_SC_OLE_EMBED_CLASSID_60 };
64 EXTERN_C const GUID DECLSPEC_SELECTANY OID_CalcOASISServer = { SO3_SC_OLE_EMBED_CLASSID_8 };
65 
66 EXTERN_C const GUID DECLSPEC_SELECTANY OID_DrawingServer = { SO3_SDRAW_OLE_EMBED_CLASSID_60 };
67 EXTERN_C const GUID DECLSPEC_SELECTANY OID_DrawingOASISServer = { SO3_SDRAW_OLE_EMBED_CLASSID_8 };
68 
69 EXTERN_C const GUID DECLSPEC_SELECTANY OID_PresentationServer = { SO3_SIMPRESS_OLE_EMBED_CLASSID_60 };
70 EXTERN_C const GUID DECLSPEC_SELECTANY OID_PresentationOASISServer = { SO3_SIMPRESS_OLE_EMBED_CLASSID_8 };
71 
72 EXTERN_C const GUID DECLSPEC_SELECTANY OID_MathServer = { SO3_SM_OLE_EMBED_CLASSID_60 };
73 EXTERN_C const GUID DECLSPEC_SELECTANY OID_MathOASISServer = { SO3_SM_OLE_EMBED_CLASSID_8 };
74 #endif
75 
76 #endif
77 
78