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 SVX_UNOPROV_HXX
21 #define SVX_UNOPROV_HXX
23 #include <com/sun/star/lang/XServiceInfo.hpp>
24 #include <com/sun/star/uno/Sequence.hxx>
25 #include <svl/itemprop.hxx>
26 #include "svx/svxdllapi.h"
28 class SvxItemPropertySet
;
31 /***********************************************************************
33 ***********************************************************************/
35 #define UHASHMAP_NOTFOUND sal::static_int_cast< sal_uInt32 >(~0)
40 static sal_uInt32
getId( const OUString
& rCompareString
);
41 static OUString
getNameFromId (sal_uInt32 nId
);
42 static ::com::sun::star::uno::Sequence
< OUString
> getServiceNames();
45 /***********************************************************************
47 ***********************************************************************/
49 #define SVXMAP_SHAPE 0
50 #define SVXMAP_CONNECTOR 1
51 #define SVXMAP_DIMENSIONING 2
52 #define SVXMAP_CIRCLE 3
53 #define SVXMAP_POLYPOLYGON 4
54 #define SVXMAP_POLYPOLYGONBEZIER 5
55 #define SVXMAP_GRAPHICOBJECT 6
56 #define SVXMAP_3DSCENEOBJECT 7
57 #define SVXMAP_3DCUBEOBJEKT 8
58 #define SVXMAP_3DSPHEREOBJECT 9
59 #define SVXMAP_3DLATHEOBJECT 10
60 #define SVXMAP_3DEXTRUDEOBJECT 11
61 #define SVXMAP_3DPOLYGONOBJECT 12
63 #define SVXMAP_GROUP 14
64 #define SVXMAP_CAPTION 15
65 #define SVXMAP_OLE2 16
66 #define SVXMAP_PLUGIN 17
67 #define SVXMAP_FRAME 18
68 #define SVXMAP_APPLET 19
69 #define SVXMAP_CONTROL 20
70 #define SVXMAP_TEXT 21
71 #define SVXMAP_CUSTOMSHAPE 22
72 #define SVXMAP_MEDIA 23
73 #define SVXMAP_TABLE 24
74 #define SVXMAP_PAGE 25
75 #define SVXMAP_END 26 // last+1 !
76 /***********************************************************************
77 * SvxUnoPropertyMapProvider *
78 ***********************************************************************/
79 class SVX_DLLPUBLIC SvxUnoPropertyMapProvider
81 SfxItemPropertyMapEntry
* aMapArr
[SVXMAP_END
];
82 SvxItemPropertySet
* aSetArr
[SVXMAP_END
];
84 SvxUnoPropertyMapProvider();
85 ~SvxUnoPropertyMapProvider();
86 const SfxItemPropertyMapEntry
* GetMap(sal_uInt16 nPropertyId
);
87 const SvxItemPropertySet
* GetPropertySet(sal_uInt16 nPropertyId
, SfxItemPool
& rPool
);
90 /***********************************************************************
92 ***********************************************************************/
94 const sal_Int16 OBJ_OLE2_APPLET
= 100;
95 const sal_Int16 OBJ_OLE2_PLUGIN
= 101;
97 #define E3D_INVENTOR_FLAG (0x80000000)
99 #include <editeng/unoipset.hxx>
101 /***********************************************************************
102 * class SvxPropertySetInfoPool *
103 ***********************************************************************/
105 const sal_Int32 SVXUNO_SERVICEID_COM_SUN_STAR_DRAWING_DEFAULTS
= 0;
106 const sal_Int32 SVXUNO_SERVICEID_COM_SUN_STAR_DRAWING_DEFAULTS_WRITER
= 1;
107 const sal_Int32 SVXUNO_SERVICEID_LASTID
= 1;
109 namespace comphelper
{ class PropertySetInfo
; }
111 class SvxPropertySetInfoPool
114 SVX_DLLPUBLIC
static comphelper::PropertySetInfo
* getOrCreate( sal_Int32 nServiceId
) throw();
117 static comphelper::PropertySetInfo
* mpInfos
[SVXUNO_SERVICEID_LASTID
+1];
122 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */