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 INCLUDED_SC_INC_SERVUNO_HXX
21 #define INCLUDED_SC_INC_SERVUNO_HXX
23 #include <com/sun/star/uno/XInterface.hpp>
24 #include <com/sun/star/uno/Sequence.hxx>
28 //! AutoFormat here or global??????
30 #define SC_SERVICE_SHEET 0
31 #define SC_SERVICE_URLFIELD 1
32 #define SC_SERVICE_PAGEFIELD 2
33 #define SC_SERVICE_PAGESFIELD 3
34 #define SC_SERVICE_DATEFIELD 4
35 #define SC_SERVICE_TIMEFIELD 5
36 #define SC_SERVICE_TITLEFIELD 6
37 #define SC_SERVICE_FILEFIELD 7
38 #define SC_SERVICE_SHEETFIELD 8
39 #define SC_SERVICE_CELLSTYLE 9
40 #define SC_SERVICE_PAGESTYLE 10
41 #define SC_SERVICE_AUTOFORMAT 11
42 #define SC_SERVICE_CELLRANGES 12
44 // drawing layer tables
45 #define SC_SERVICE_GRADTAB 13
46 #define SC_SERVICE_HATCHTAB 14
47 #define SC_SERVICE_BITMAPTAB 15
48 #define SC_SERVICE_TRGRADTAB 16
49 #define SC_SERVICE_MARKERTAB 17
50 #define SC_SERVICE_DASHTAB 18
51 #define SC_SERVICE_NUMRULES 19
53 #define SC_SERVICE_DOCDEFLTS 20
54 #define SC_SERVICE_DRAWDEFLTS 21
56 #define SC_SERVICE_DOCSPRSETT 22
57 #define SC_SERVICE_DOCCONF 23
59 #define SC_SERVICE_IMAP_RECT 24
60 #define SC_SERVICE_IMAP_CIRC 25
61 #define SC_SERVICE_IMAP_POLY 26
63 // Support creation of GraphicObjectResolver and EmbeddedObjectResolver
64 #define SC_SERVICE_EXPORT_GOR 27
65 #define SC_SERVICE_IMPORT_GOR 28
66 #define SC_SERVICE_EXPORT_EOR 29
67 #define SC_SERVICE_IMPORT_EOR 30
69 #define SC_SERVICE_VALBIND 31
70 #define SC_SERVICE_LISTCELLBIND 32
71 #define SC_SERVICE_LISTSOURCE 33
73 #define SC_SERVICE_CELLADDRESS 34
74 #define SC_SERVICE_RANGEADDRESS 35
76 #define SC_SERVICE_SHEETDOCSET 36
79 #define SC_SERVICE_CHDATAPROV 37
82 #define SC_SERVICE_FORMULAPARS 38
83 #define SC_SERVICE_OPCODEMAPPER 39
86 #define SC_SERVICE_VBAOBJECTPROVIDER 40
87 #define SC_SERVICE_VBACODENAMEPROVIDER 41
88 #define SC_SERVICE_VBAGLOBALS 42
90 #define SC_SERVICE_COUNT 44
91 #define SC_SERVICE_INVALID USHRT_MAX
93 #define SC_SERVICE_EXT_TIMEFIELD 43
95 class ScServiceProvider
98 // pDocShell is not needed for all Services
99 static ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XInterface
>
100 MakeInstance( sal_uInt16 nType
, ScDocShell
* pDocShell
);
101 static ::com::sun::star::uno::Sequence
<OUString
> GetAllServiceNames();
102 static sal_uInt16
GetProviderType(const OUString
& rServiceName
);
107 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */