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_SVX_UNOPROV_HXX
21 #define INCLUDED_SVX_UNOPROV_HXX
23 #include <com/sun/star/uno/Sequence.hxx>
24 #include <svl/itemprop.hxx>
25 #include <svx/svxdllapi.h>
26 #include <editeng/unoipset.hxx>
27 #include <rtl/ref.hxx>
31 class SvxItemPropertySet
;
33 enum class SdrObjKind
: sal_uInt16
;
42 static std::optional
<SdrObjKind
> getId( const OUString
& rCompareString
);
43 static OUString
getNameFromId (SdrObjKind nId
);
44 static css::uno::Sequence
< OUString
> getServiceNames();
51 #define SVXMAP_SHAPE 0
52 #define SVXMAP_CONNECTOR 1
53 #define SVXMAP_DIMENSIONING 2
54 #define SVXMAP_CIRCLE 3
55 #define SVXMAP_POLYPOLYGON 4
56 #define SVXMAP_GRAPHICOBJECT 5
57 #define SVXMAP_3DSCENEOBJECT 6
58 #define SVXMAP_3DCUBEOBJECT 7
59 #define SVXMAP_3DSPHEREOBJECT 8
60 #define SVXMAP_3DLATHEOBJECT 9
61 #define SVXMAP_3DEXTRUDEOBJECT 10
62 #define SVXMAP_3DPOLYGONOBJECT 11
64 #define SVXMAP_GROUP 13
65 #define SVXMAP_CAPTION 14
66 #define SVXMAP_OLE2 15
67 #define SVXMAP_PLUGIN 16
68 #define SVXMAP_FRAME 17
69 #define SVXMAP_APPLET 18
70 #define SVXMAP_CONTROL 19
71 #define SVXMAP_TEXT 20
72 #define SVXMAP_CUSTOMSHAPE 21
73 #define SVXMAP_MEDIA 22
74 #define SVXMAP_TABLE 23
75 #define SVXMAP_PAGE 24
76 #define SVXMAP_END 25 // last+1 !
79 * SvxUnoPropertyMapProvider
82 class UNLESS_MERGELIBS_MORE(SVXCORE_DLLPUBLIC
) SvxUnoPropertyMapProvider
84 std::span
<SfxItemPropertyMapEntry
const> aMapArr
[SVXMAP_END
];
85 std::unique_ptr
<SvxItemPropertySet
> aSetArr
[SVXMAP_END
];
87 SvxUnoPropertyMapProvider();
88 ~SvxUnoPropertyMapProvider();
89 std::span
<const SfxItemPropertyMapEntry
> GetMap(sal_uInt16 nPropertyId
);
90 const SvxItemPropertySet
* GetPropertySet(sal_uInt16 nPropertyId
, SfxItemPool
& rPool
);
94 * class SvxPropertySetInfoPool
97 namespace comphelper
{ class PropertySetInfo
; }
99 namespace SvxPropertySetInfoPool
101 SVXCORE_DLLPUBLIC
rtl::Reference
<comphelper::PropertySetInfo
> const & getDrawingDefaults() noexcept
;
102 SVXCORE_DLLPUBLIC
rtl::Reference
<comphelper::PropertySetInfo
> const & getWriterDrawingDefaults() noexcept
;
107 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */