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 $
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 #ifndef _COM_SUN_STAR_UNO_SEQUENCE_HXX_
35 #include <com/sun/star/uno/Sequence.hxx>
45 //! AutoFormat wirklich hier oder besser global??????
47 #define SC_SERVICE_SHEET 0
48 #define SC_SERVICE_URLFIELD 1
49 #define SC_SERVICE_PAGEFIELD 2
50 #define SC_SERVICE_PAGESFIELD 3
51 #define SC_SERVICE_DATEFIELD 4
52 #define SC_SERVICE_TIMEFIELD 5
53 #define SC_SERVICE_TITLEFIELD 6
54 #define SC_SERVICE_FILEFIELD 7
55 #define SC_SERVICE_SHEETFIELD 8
56 #define SC_SERVICE_CELLSTYLE 9
57 #define SC_SERVICE_PAGESTYLE 10
58 #define SC_SERVICE_AUTOFORMAT 11
59 #define SC_SERVICE_CELLRANGES 12
61 // drawing layer tables
62 #define SC_SERVICE_GRADTAB 13
63 #define SC_SERVICE_HATCHTAB 14
64 #define SC_SERVICE_BITMAPTAB 15
65 #define SC_SERVICE_TRGRADTAB 16
66 #define SC_SERVICE_MARKERTAB 17
67 #define SC_SERVICE_DASHTAB 18
68 #define SC_SERVICE_NUMRULES 19
70 #define SC_SERVICE_DOCDEFLTS 20
71 #define SC_SERVICE_DRAWDEFLTS 21
73 #define SC_SERVICE_DOCSPRSETT 22
74 #define SC_SERVICE_DOCCONF 23
76 #define SC_SERVICE_IMAP_RECT 24
77 #define SC_SERVICE_IMAP_CIRC 25
78 #define SC_SERVICE_IMAP_POLY 26
80 // #100263# Support creation of GraphicObjectResolver and EmbeddedObjectResolver
81 #define SC_SERVICE_EXPORT_GOR 27
82 #define SC_SERVICE_IMPORT_GOR 28
83 #define SC_SERVICE_EXPORT_EOR 29
84 #define SC_SERVICE_IMPORT_EOR 30
86 #define SC_SERVICE_COUNT 31
87 #define SC_SERVICE_INVALID USHRT_MAX
90 class ScServiceProvider
93 // pDocShell wird nicht fuer alle Services benoetigt
94 static ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XInterface
>
95 MakeInstance( sal_uInt16 nType
, ScDocShell
* pDocShell
);
96 static ::com::sun::star::uno::Sequence
<rtl::OUString
> GetAllServiceNames();
97 static sal_uInt16
GetProviderType(const String
& rServiceName
);
102 } //namespace binfilter