1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef SC_SERVUNO_HXX
21 #define SC_SERVUNO_HXX
23 #include <com/sun/star/uno/XInterface.hpp>
24 #include <com/sun/star/uno/Sequence.hxx>
30 //! AutoFormat here or global??????
32 #define SC_SERVICE_SHEET 0
33 #define SC_SERVICE_URLFIELD 1
34 #define SC_SERVICE_PAGEFIELD 2
35 #define SC_SERVICE_PAGESFIELD 3
36 #define SC_SERVICE_DATEFIELD 4
37 #define SC_SERVICE_TIMEFIELD 5
38 #define SC_SERVICE_TITLEFIELD 6
39 #define SC_SERVICE_FILEFIELD 7
40 #define SC_SERVICE_SHEETFIELD 8
41 #define SC_SERVICE_CELLSTYLE 9
42 #define SC_SERVICE_PAGESTYLE 10
43 #define SC_SERVICE_AUTOFORMAT 11
44 #define SC_SERVICE_CELLRANGES 12
46 // drawing layer tables
47 #define SC_SERVICE_GRADTAB 13
48 #define SC_SERVICE_HATCHTAB 14
49 #define SC_SERVICE_BITMAPTAB 15
50 #define SC_SERVICE_TRGRADTAB 16
51 #define SC_SERVICE_MARKERTAB 17
52 #define SC_SERVICE_DASHTAB 18
53 #define SC_SERVICE_NUMRULES 19
55 #define SC_SERVICE_DOCDEFLTS 20
56 #define SC_SERVICE_DRAWDEFLTS 21
58 #define SC_SERVICE_DOCSPRSETT 22
59 #define SC_SERVICE_DOCCONF 23
61 #define SC_SERVICE_IMAP_RECT 24
62 #define SC_SERVICE_IMAP_CIRC 25
63 #define SC_SERVICE_IMAP_POLY 26
65 // Support creation of GraphicObjectResolver and EmbeddedObjectResolver
66 #define SC_SERVICE_EXPORT_GOR 27
67 #define SC_SERVICE_IMPORT_GOR 28
68 #define SC_SERVICE_EXPORT_EOR 29
69 #define SC_SERVICE_IMPORT_EOR 30
71 #define SC_SERVICE_VALBIND 31
72 #define SC_SERVICE_LISTCELLBIND 32
73 #define SC_SERVICE_LISTSOURCE 33
75 #define SC_SERVICE_CELLADDRESS 34
76 #define SC_SERVICE_RANGEADDRESS 35
78 #define SC_SERVICE_SHEETDOCSET 36
81 #define SC_SERVICE_CHDATAPROV 37
84 #define SC_SERVICE_FORMULAPARS 38
85 #define SC_SERVICE_OPCODEMAPPER 39
88 #define SC_SERVICE_VBAOBJECTPROVIDER 40
89 #define SC_SERVICE_VBACODENAMEPROVIDER 41
90 #define SC_SERVICE_VBAGLOBALS 42
93 #define SC_SERVICE_COUNT 44
94 #define SC_SERVICE_INVALID USHRT_MAX
96 #define SC_SERVICE_EXT_TIMEFIELD 43
98 class ScServiceProvider
101 // pDocShell is not needed for all Services
102 static ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XInterface
>
103 MakeInstance( sal_uInt16 nType
, ScDocShell
* pDocShell
);
104 static ::com::sun::star::uno::Sequence
<OUString
> GetAllServiceNames();
105 static sal_uInt16
GetProviderType(const String
& rServiceName
);
112 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */