nss: upgrade to release 3.73
[LibreOffice.git] / include / svx / unoprov.hxx
blob7292bb1d5fddcb2d35ec0e97450b3d198fd75f9a
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_SVX_UNOPROV_HXX
21 #define INCLUDED_SVX_UNOPROV_HXX
23 #include <config_options.h>
24 #include <com/sun/star/uno/Sequence.hxx>
25 #include <svl/itemprop.hxx>
26 #include <svx/svxdllapi.h>
27 #include <editeng/unoipset.hxx>
28 #include <rtl/ref.hxx>
29 #include <memory>
32 class SvxItemPropertySet;
33 class SfxItemPool;
35 /**
36 * class UHashMap
39 #define UHASHMAP_NOTFOUND sal::static_int_cast< sal_uInt32 >(~0)
40 class UHashMap
42 UHashMap() = delete;
43 public:
44 static sal_uInt32 getId( const OUString& rCompareString );
45 static OUString getNameFromId (sal_uInt32 nId);
46 static css::uno::Sequence< OUString > getServiceNames();
49 /**
50 * Sorter
53 #define SVXMAP_SHAPE 0
54 #define SVXMAP_CONNECTOR 1
55 #define SVXMAP_DIMENSIONING 2
56 #define SVXMAP_CIRCLE 3
57 #define SVXMAP_POLYPOLYGON 4
58 #define SVXMAP_GRAPHICOBJECT 5
59 #define SVXMAP_3DSCENEOBJECT 6
60 #define SVXMAP_3DCUBEOBJECT 7
61 #define SVXMAP_3DSPHEREOBJECT 8
62 #define SVXMAP_3DLATHEOBJECT 9
63 #define SVXMAP_3DEXTRUDEOBJECT 10
64 #define SVXMAP_3DPOLYGONOBJECT 11
65 #define SVXMAP_ALL 12
66 #define SVXMAP_GROUP 13
67 #define SVXMAP_CAPTION 14
68 #define SVXMAP_OLE2 15
69 #define SVXMAP_PLUGIN 16
70 #define SVXMAP_FRAME 17
71 #define SVXMAP_APPLET 18
72 #define SVXMAP_CONTROL 19
73 #define SVXMAP_TEXT 20
74 #define SVXMAP_CUSTOMSHAPE 21
75 #define SVXMAP_MEDIA 22
76 #define SVXMAP_TABLE 23
77 #define SVXMAP_PAGE 24
78 #define SVXMAP_END 25 // last+1 !
80 /**
81 * SvxUnoPropertyMapProvider
84 class SVXCORE_DLLPUBLIC SvxUnoPropertyMapProvider
86 SfxItemPropertyMapEntry const * aMapArr[SVXMAP_END];
87 std::unique_ptr<SvxItemPropertySet> aSetArr[SVXMAP_END];
88 public:
89 SvxUnoPropertyMapProvider();
90 ~SvxUnoPropertyMapProvider();
91 const SfxItemPropertyMapEntry* GetMap(sal_uInt16 nPropertyId);
92 const SvxItemPropertySet* GetPropertySet(sal_uInt16 nPropertyId, SfxItemPool& rPool);
95 /**
96 * Globals
99 #define E3D_INVENTOR_FLAG (0x80000000)
102 * class SvxPropertySetInfoPool
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
113 public:
114 UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) static rtl::Reference<comphelper::PropertySetInfo> const & getOrCreate( sal_Int32 nServiceId ) throw();
116 private:
117 static rtl::Reference<comphelper::PropertySetInfo> mxInfos[SVXUNO_SERVICEID_LASTID+1];
120 #endif
122 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */