1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: servuno.hxx,v $
10 * $Revision: 1.14.32.2 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef SC_SERVUNO_HXX
32 #define SC_SERVUNO_HXX
34 #include <com/sun/star/uno/XInterface.hpp>
35 #include <com/sun/star/uno/Sequence.hxx>
41 //! AutoFormat wirklich hier oder besser global??????
43 #define SC_SERVICE_SHEET 0
44 #define SC_SERVICE_URLFIELD 1
45 #define SC_SERVICE_PAGEFIELD 2
46 #define SC_SERVICE_PAGESFIELD 3
47 #define SC_SERVICE_DATEFIELD 4
48 #define SC_SERVICE_TIMEFIELD 5
49 #define SC_SERVICE_TITLEFIELD 6
50 #define SC_SERVICE_FILEFIELD 7
51 #define SC_SERVICE_SHEETFIELD 8
52 #define SC_SERVICE_CELLSTYLE 9
53 #define SC_SERVICE_PAGESTYLE 10
54 #define SC_SERVICE_AUTOFORMAT 11
55 #define SC_SERVICE_CELLRANGES 12
57 // drawing layer tables
58 #define SC_SERVICE_GRADTAB 13
59 #define SC_SERVICE_HATCHTAB 14
60 #define SC_SERVICE_BITMAPTAB 15
61 #define SC_SERVICE_TRGRADTAB 16
62 #define SC_SERVICE_MARKERTAB 17
63 #define SC_SERVICE_DASHTAB 18
64 #define SC_SERVICE_NUMRULES 19
66 #define SC_SERVICE_DOCDEFLTS 20
67 #define SC_SERVICE_DRAWDEFLTS 21
69 #define SC_SERVICE_DOCSPRSETT 22
70 #define SC_SERVICE_DOCCONF 23
72 #define SC_SERVICE_IMAP_RECT 24
73 #define SC_SERVICE_IMAP_CIRC 25
74 #define SC_SERVICE_IMAP_POLY 26
76 // #100263# Support creation of GraphicObjectResolver and EmbeddedObjectResolver
77 #define SC_SERVICE_EXPORT_GOR 27
78 #define SC_SERVICE_IMPORT_GOR 28
79 #define SC_SERVICE_EXPORT_EOR 29
80 #define SC_SERVICE_IMPORT_EOR 30
82 #define SC_SERVICE_VALBIND 31
83 #define SC_SERVICE_LISTCELLBIND 32
84 #define SC_SERVICE_LISTSOURCE 33
86 #define SC_SERVICE_CELLADDRESS 34
87 #define SC_SERVICE_RANGEADDRESS 35
89 #define SC_SERVICE_SHEETDOCSET 36
92 #define SC_SERVICE_CHDATAPROV 37
94 #define SC_SERVICE_FORMULAPARS 38
95 #define SC_SERVICE_OPCODEMAPPER 39
96 #define SC_SERVICE_VBAOBJECTPROVIDER 40
97 #define SC_SERVICE_VBACODENAMEPROVIDER 41
98 #define SC_SERVICE_COUNT 42
99 #define SC_SERVICE_INVALID USHRT_MAX
102 class ScServiceProvider
105 // pDocShell wird nicht fuer alle Services benoetigt
106 static ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XInterface
>
107 MakeInstance( sal_uInt16 nType
, ScDocShell
* pDocShell
);
108 static ::com::sun::star::uno::Sequence
<rtl::OUString
> GetAllServiceNames();
109 //UNUSED2008-05 static String GetProviderName(sal_uInt16 nObjectType);
110 static sal_uInt16
GetProviderType(const String
& rServiceName
);