Bump version to 4.3-4
[LibreOffice.git] / sc / inc / servuno.hxx
blobb88b78316b756307e7cf3c867da3ed6ed4a808f5
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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>
26 class ScDocShell;
29 //! AutoFormat here or global??????
31 #define SC_SERVICE_SHEET 0
32 #define SC_SERVICE_URLFIELD 1
33 #define SC_SERVICE_PAGEFIELD 2
34 #define SC_SERVICE_PAGESFIELD 3
35 #define SC_SERVICE_DATEFIELD 4
36 #define SC_SERVICE_TIMEFIELD 5
37 #define SC_SERVICE_TITLEFIELD 6
38 #define SC_SERVICE_FILEFIELD 7
39 #define SC_SERVICE_SHEETFIELD 8
40 #define SC_SERVICE_CELLSTYLE 9
41 #define SC_SERVICE_PAGESTYLE 10
42 #define SC_SERVICE_AUTOFORMAT 11
43 #define SC_SERVICE_CELLRANGES 12
45 // drawing layer tables
46 #define SC_SERVICE_GRADTAB 13
47 #define SC_SERVICE_HATCHTAB 14
48 #define SC_SERVICE_BITMAPTAB 15
49 #define SC_SERVICE_TRGRADTAB 16
50 #define SC_SERVICE_MARKERTAB 17
51 #define SC_SERVICE_DASHTAB 18
52 #define SC_SERVICE_NUMRULES 19
54 #define SC_SERVICE_DOCDEFLTS 20
55 #define SC_SERVICE_DRAWDEFLTS 21
57 #define SC_SERVICE_DOCSPRSETT 22
58 #define SC_SERVICE_DOCCONF 23
60 #define SC_SERVICE_IMAP_RECT 24
61 #define SC_SERVICE_IMAP_CIRC 25
62 #define SC_SERVICE_IMAP_POLY 26
64 // Support creation of GraphicObjectResolver and EmbeddedObjectResolver
65 #define SC_SERVICE_EXPORT_GOR 27
66 #define SC_SERVICE_IMPORT_GOR 28
67 #define SC_SERVICE_EXPORT_EOR 29
68 #define SC_SERVICE_IMPORT_EOR 30
70 #define SC_SERVICE_VALBIND 31
71 #define SC_SERVICE_LISTCELLBIND 32
72 #define SC_SERVICE_LISTSOURCE 33
74 #define SC_SERVICE_CELLADDRESS 34
75 #define SC_SERVICE_RANGEADDRESS 35
77 #define SC_SERVICE_SHEETDOCSET 36
79 // BM
80 #define SC_SERVICE_CHDATAPROV 37
82 // formula parser
83 #define SC_SERVICE_FORMULAPARS 38
84 #define SC_SERVICE_OPCODEMAPPER 39
86 // VBA specific
87 #define SC_SERVICE_VBAOBJECTPROVIDER 40
88 #define SC_SERVICE_VBACODENAMEPROVIDER 41
89 #define SC_SERVICE_VBAGLOBALS 42
92 #define SC_SERVICE_COUNT 44
93 #define SC_SERVICE_INVALID USHRT_MAX
95 #define SC_SERVICE_EXT_TIMEFIELD 43
97 class ScServiceProvider
99 public:
100 // pDocShell is not needed for all Services
101 static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
102 MakeInstance( sal_uInt16 nType, ScDocShell* pDocShell );
103 static ::com::sun::star::uno::Sequence<OUString> GetAllServiceNames();
104 static sal_uInt16 GetProviderType(const OUString& rServiceName);
107 #endif
109 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */