LibreOffice Module svx (master) 1
unoprov.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#ifndef INCLUDED_SVX_UNOPROV_HXX
21#define INCLUDED_SVX_UNOPROV_HXX
22
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>
30#include <optional>
31
33class SfxItemPool;
34enum class SdrObjKind : sal_uInt16;
35
40{
41 UHashMap() = delete;
42public:
43 static std::optional<SdrObjKind> getId( const OUString& rCompareString );
44 static OUString getNameFromId (SdrObjKind nId);
45 static css::uno::Sequence< OUString > getServiceNames();
46};
47
52#define SVXMAP_SHAPE 0
53#define SVXMAP_CONNECTOR 1
54#define SVXMAP_DIMENSIONING 2
55#define SVXMAP_CIRCLE 3
56#define SVXMAP_POLYPOLYGON 4
57#define SVXMAP_GRAPHICOBJECT 5
58#define SVXMAP_3DSCENEOBJECT 6
59#define SVXMAP_3DCUBEOBJECT 7
60#define SVXMAP_3DSPHEREOBJECT 8
61#define SVXMAP_3DLATHEOBJECT 9
62#define SVXMAP_3DEXTRUDEOBJECT 10
63#define SVXMAP_3DPOLYGONOBJECT 11
64#define SVXMAP_ALL 12
65#define SVXMAP_GROUP 13
66#define SVXMAP_CAPTION 14
67#define SVXMAP_OLE2 15
68#define SVXMAP_PLUGIN 16
69#define SVXMAP_FRAME 17
70#define SVXMAP_APPLET 18
71#define SVXMAP_CONTROL 19
72#define SVXMAP_TEXT 20
73#define SVXMAP_CUSTOMSHAPE 21
74#define SVXMAP_MEDIA 22
75#define SVXMAP_TABLE 23
76#define SVXMAP_PAGE 24
77#define SVXMAP_END 25 // last+1 !
78
84{
86 std::unique_ptr<SvxItemPropertySet> aSetArr[SVXMAP_END];
87public:
90 const SfxItemPropertyMapEntry* GetMap(sal_uInt16 nPropertyId);
91 const SvxItemPropertySet* GetPropertySet(sal_uInt16 nPropertyId, SfxItemPool& rPool);
92};
93
100const sal_Int32 SVXUNO_SERVICEID_LASTID = 1;
101
102namespace comphelper { class PropertySetInfo; }
103
105{
106public:
107 UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) static rtl::Reference<comphelper::PropertySetInfo> const & getOrCreate( sal_Int32 nServiceId ) noexcept;
108
109private:
111};
112
113#endif
114
115/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
static rtl::Reference< comphelper::PropertySetInfo > mxInfos[SVXUNO_SERVICEID_LASTID+1]
Definition: unoprov.hxx:107
SvxUnoPropertyMapProvider.
Definition: unoprov.hxx:84
class UHashMap
Definition: unoprov.hxx:40
static css::uno::Sequence< OUString > getServiceNames()
Definition: unoprov.cxx:869
static std::optional< SdrObjKind > getId(const OUString &rCompareString)
Definition: unoprov.cxx:874
static OUString getNameFromId(SdrObjKind nId)
Definition: unoprov.cxx:857
UHashMap()=delete
class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) OLocalExchange class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) OLocalExchangeHelper
a helper for navigator windows (SvTreeListBox'es) which allow DnD within themself
Definition: fmexch.hxx:86
SdrObjKind
Definition: svdobjkind.hxx:25
#define SVXCORE_DLLPUBLIC
Definition: svxdllapi.h:35
const sal_Int32 SVXUNO_SERVICEID_COM_SUN_STAR_DRAWING_DEFAULTS_WRITER
Definition: unoprov.hxx:99
const sal_Int32 SVXUNO_SERVICEID_LASTID
Definition: unoprov.hxx:100
const sal_Int32 SVXUNO_SERVICEID_COM_SUN_STAR_DRAWING_DEFAULTS
class SvxPropertySetInfoPool
Definition: unoprov.hxx:98
#define SVXMAP_END
Definition: unoprov.hxx:77