Coverage Report

Created: 2026-09-28 10:59

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/include/oox/helper/propertymap.hxx
Line
Count
Source
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_OOX_HELPER_PROPERTYMAP_HXX
21
#define INCLUDED_OOX_HELPER_PROPERTYMAP_HXX
22
23
#include <map>
24
#include <utility>
25
#include <vector>
26
27
#include <com/sun/star/uno/Any.hxx>
28
#include <com/sun/star/uno/Reference.hxx>
29
#include <com/sun/star/uno/Sequence.hxx>
30
#include <oox/dllapi.h>
31
#include <rtl/ustring.hxx>
32
#include <sal/types.h>
33
34
namespace com::sun::star::beans {
35
    struct PropertyValue;
36
    class XPropertySet;
37
}
38
39
namespace oox {
40
41
42
typedef ::std::map< OUString, css::uno::Any > PropertyNameMap;
43
44
/** A helper that maps property identifiers to property values.
45
46
    The property identifiers are generated on compile time and refer to the
47
    property name strings that are held by a static vector. The identifier to
48
    name mapping is done internally while the properties are written to
49
    property sets.
50
 */
51
class OOX_DLLPUBLIC PropertyMap
52
{
53
public:
54
    PropertyMap();
55
56
    /** Returns the name of the passed property identifier. */
57
    static const OUString& getPropertyName( sal_Int32 nPropId );
58
59
    /** Returns true, if the map contains a property with the passed identifier. */
60
    bool                hasProperty( sal_Int32 nPropId ) const;
61
62
    /** Sets the specified property to the passed value. Does nothing, if the
63
        identifier is invalid. */
64
    bool                setAnyProperty( sal_Int32 nPropId, const css::uno::Any& rValue );
65
66
    /** Sets the specified property to the passed value. Does nothing, if the
67
        identifier is invalid. */
68
    template< typename Type >
69
    bool                setProperty( sal_Int32 nPropId, Type&& rValue )
70
13.9M
    {
71
13.9M
        if( nPropId < 0 )
72
0
            return false;
73
74
13.9M
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
13.9M
        return true;
76
13.9M
    }
bool oox::PropertyMap::setProperty<bool&>(int, bool&)
Line
Count
Source
70
613k
    {
71
613k
        if( nPropId < 0 )
72
0
            return false;
73
74
613k
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
613k
        return true;
76
613k
    }
bool oox::PropertyMap::setProperty<short>(int, short&&)
Line
Count
Source
70
2.49M
    {
71
2.49M
        if( nPropId < 0 )
72
0
            return false;
73
74
2.49M
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
2.49M
        return true;
76
2.49M
    }
bool oox::PropertyMap::setProperty<bool>(int, bool&&)
Line
Count
Source
70
1.52M
    {
71
1.52M
        if( nPropId < 0 )
72
0
            return false;
73
74
1.52M
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
1.52M
        return true;
76
1.52M
    }
bool oox::PropertyMap::setProperty<bool const&>(int, bool const&)
Line
Count
Source
70
76.1k
    {
71
76.1k
        if( nPropId < 0 )
72
0
            return false;
73
74
76.1k
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
76.1k
        return true;
76
76.1k
    }
bool oox::PropertyMap::setProperty<int>(int, int&&)
Line
Count
Source
70
1.74M
    {
71
1.74M
        if( nPropId < 0 )
72
0
            return false;
73
74
1.74M
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
1.74M
        return true;
76
1.74M
    }
bool oox::PropertyMap::setProperty<int&>(int, int&)
Line
Count
Source
70
243k
    {
71
243k
        if( nPropId < 0 )
72
0
            return false;
73
74
243k
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
243k
        return true;
76
243k
    }
Unexecuted instantiation: bool oox::PropertyMap::setProperty<com::sun::star::uno::Reference<com::sun::star::graphic::XGraphic> const&>(int, com::sun::star::uno::Reference<com::sun::star::graphic::XGraphic> const&)
Unexecuted instantiation: bool oox::PropertyMap::setProperty<com::sun::star::style::GraphicLocation const&>(int, com::sun::star::style::GraphicLocation const&)
bool oox::PropertyMap::setProperty<rtl::OUString const&>(int, rtl::OUString const&)
Line
Count
Source
70
54.0k
    {
71
54.0k
        if( nPropId < 0 )
72
0
            return false;
73
74
54.0k
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
54.0k
        return true;
76
54.0k
    }
bool oox::PropertyMap::setProperty<short const&>(int, short const&)
Line
Count
Source
70
467k
    {
71
467k
        if( nPropId < 0 )
72
0
            return false;
73
74
467k
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
467k
        return true;
76
467k
    }
bool oox::PropertyMap::setProperty<float&>(int, float&)
Line
Count
Source
70
2.03M
    {
71
2.03M
        if( nPropId < 0 )
72
0
            return false;
73
74
2.03M
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
2.03M
        return true;
76
2.03M
    }
bool oox::PropertyMap::setProperty<com::sun::star::awt::FontSlant const&>(int, com::sun::star::awt::FontSlant const&)
Line
Count
Source
70
81.1k
    {
71
81.1k
        if( nPropId < 0 )
72
0
            return false;
73
74
81.1k
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
81.1k
        return true;
76
81.1k
    }
bool oox::PropertyMap::setProperty<Color const&>(int, Color const&)
Line
Count
Source
70
27.0k
    {
71
27.0k
        if( nPropId < 0 )
72
0
            return false;
73
74
27.0k
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
27.0k
        return true;
76
27.0k
    }
bool oox::PropertyMap::setProperty<signed char const&>(int, signed char const&)
Line
Count
Source
70
27.0k
    {
71
27.0k
        if( nPropId < 0 )
72
0
            return false;
73
74
27.0k
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
27.0k
        return true;
76
27.0k
    }
bool oox::PropertyMap::setProperty<short&>(int, short&)
Line
Count
Source
70
689k
    {
71
689k
        if( nPropId < 0 )
72
0
            return false;
73
74
689k
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
689k
        return true;
76
689k
    }
bool oox::PropertyMap::setProperty<Color>(int, Color&&)
Line
Count
Source
70
269k
    {
71
269k
        if( nPropId < 0 )
72
0
            return false;
73
74
269k
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
269k
        return true;
76
269k
    }
bool oox::PropertyMap::setProperty<com::sun::star::uno::Reference<com::sun::star::container::XNameContainer>&>(int, com::sun::star::uno::Reference<com::sun::star::container::XNameContainer>&)
Line
Count
Source
70
3.74k
    {
71
3.74k
        if( nPropId < 0 )
72
0
            return false;
73
74
3.74k
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
3.74k
        return true;
76
3.74k
    }
bool oox::PropertyMap::setProperty<rtl::OUString>(int, rtl::OUString&&)
Line
Count
Source
70
4.05k
    {
71
4.05k
        if( nPropId < 0 )
72
0
            return false;
73
74
4.05k
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
4.05k
        return true;
76
4.05k
    }
bool oox::PropertyMap::setProperty<double>(int, double&&)
Line
Count
Source
70
22.8k
    {
71
22.8k
        if( nPropId < 0 )
72
0
            return false;
73
74
22.8k
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
22.8k
        return true;
76
22.8k
    }
bool oox::PropertyMap::setProperty<com::sun::star::uno::Reference<com::sun::star::util::XComplexColor> >(int, com::sun::star::uno::Reference<com::sun::star::util::XComplexColor>&&)
Line
Count
Source
70
225k
    {
71
225k
        if( nPropId < 0 )
72
0
            return false;
73
74
225k
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
225k
        return true;
76
225k
    }
bool oox::PropertyMap::setProperty<com::sun::star::text::GraphicCrop&>(int, com::sun::star::text::GraphicCrop&)
Line
Count
Source
70
810
    {
71
810
        if( nPropId < 0 )
72
0
            return false;
73
74
810
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
810
        return true;
76
810
    }
Unexecuted instantiation: bool oox::PropertyMap::setProperty<com::sun::star::drawing::FillStyle const&>(int, com::sun::star::drawing::FillStyle const&)
Unexecuted instantiation: bool oox::PropertyMap::setProperty<com::sun::star::drawing::BitmapMode const&>(int, com::sun::star::drawing::BitmapMode const&)
bool oox::PropertyMap::setProperty<com::sun::star::uno::Reference<com::sun::star::graphic::XGraphic>&>(int, com::sun::star::uno::Reference<com::sun::star::graphic::XGraphic>&)
Line
Count
Source
70
2.27k
    {
71
2.27k
        if( nPropId < 0 )
72
0
            return false;
73
74
2.27k
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
2.27k
        return true;
76
2.27k
    }
bool oox::PropertyMap::setProperty<com::sun::star::drawing::ColorMode&>(int, com::sun::star::drawing::ColorMode&)
Line
Count
Source
70
22.4k
    {
71
22.4k
        if( nPropId < 0 )
72
0
            return false;
73
74
22.4k
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
22.4k
        return true;
76
22.4k
    }
Unexecuted instantiation: bool oox::PropertyMap::setProperty<com::sun::star::uno::Reference<com::sun::star::io::XInputStream> const&>(int, com::sun::star::uno::Reference<com::sun::star::io::XInputStream> const&)
bool oox::PropertyMap::setProperty<float>(int, float&&)
Line
Count
Source
70
193k
    {
71
193k
        if( nPropId < 0 )
72
0
            return false;
73
74
193k
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
193k
        return true;
76
193k
    }
bool oox::PropertyMap::setProperty<com::sun::star::drawing::TextVerticalAdjust const&>(int, com::sun::star::drawing::TextVerticalAdjust const&)
Line
Count
Source
70
173k
    {
71
173k
        if( nPropId < 0 )
72
0
            return false;
73
74
173k
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
173k
        return true;
76
173k
    }
bool oox::PropertyMap::setProperty<Color&>(int, Color&)
Line
Count
Source
70
3
    {
71
3
        if( nPropId < 0 )
72
0
            return false;
73
74
3
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
3
        return true;
76
3
    }
bool oox::PropertyMap::setProperty<com::sun::star::uno::Sequence<com::sun::star::uno::Sequence<com::sun::star::awt::Point> >&>(int, com::sun::star::uno::Sequence<com::sun::star::uno::Sequence<com::sun::star::awt::Point> >&)
Line
Count
Source
70
167
    {
71
167
        if( nPropId < 0 )
72
0
            return false;
73
74
167
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
167
        return true;
76
167
    }
bool oox::PropertyMap::setProperty<com::sun::star::awt::Point&>(int, com::sun::star::awt::Point&)
Line
Count
Source
70
3.09k
    {
71
3.09k
        if( nPropId < 0 )
72
0
            return false;
73
74
3.09k
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
3.09k
        return true;
76
3.09k
    }
bool oox::PropertyMap::setProperty<com::sun::star::drawing::HomogenMatrix3&>(int, com::sun::star::drawing::HomogenMatrix3&)
Line
Count
Source
70
61.7k
    {
71
61.7k
        if( nPropId < 0 )
72
0
            return false;
73
74
61.7k
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
61.7k
        return true;
76
61.7k
    }
bool oox::PropertyMap::setProperty<com::sun::star::drawing::TextVerticalAdjust&>(int, com::sun::star::drawing::TextVerticalAdjust&)
Line
Count
Source
70
88.7k
    {
71
88.7k
        if( nPropId < 0 )
72
0
            return false;
73
74
88.7k
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
88.7k
        return true;
76
88.7k
    }
bool oox::PropertyMap::setProperty<com::sun::star::drawing::TextHorizontalAdjust>(int, com::sun::star::drawing::TextHorizontalAdjust&&)
Line
Count
Source
70
294
    {
71
294
        if( nPropId < 0 )
72
0
            return false;
73
74
294
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
294
        return true;
76
294
    }
bool oox::PropertyMap::setProperty<com::sun::star::table::BorderLine2&>(int, com::sun::star::table::BorderLine2&)
Line
Count
Source
70
564
    {
71
564
        if( nPropId < 0 )
72
0
            return false;
73
74
564
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
564
        return true;
76
564
    }
Unexecuted instantiation: bool oox::PropertyMap::setProperty<com::sun::star::table::ShadowFormat&>(int, com::sun::star::table::ShadowFormat&)
bool oox::PropertyMap::setProperty<rtl::OUString&>(int, rtl::OUString&)
Line
Count
Source
70
292k
    {
71
292k
        if( nPropId < 0 )
72
0
            return false;
73
74
292k
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
292k
        return true;
76
292k
    }
bool oox::PropertyMap::setProperty<com::sun::star::text::WritingMode const&>(int, com::sun::star::text::WritingMode const&)
Line
Count
Source
70
22.5k
    {
71
22.5k
        if( nPropId < 0 )
72
0
            return false;
73
74
22.5k
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
22.5k
        return true;
76
22.5k
    }
bool oox::PropertyMap::setProperty<com::sun::star::drawing::TextHorizontalAdjust const&>(int, com::sun::star::drawing::TextHorizontalAdjust const&)
Line
Count
Source
70
91.0k
    {
71
91.0k
        if( nPropId < 0 )
72
0
            return false;
73
74
91.0k
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
91.0k
        return true;
76
91.0k
    }
bool oox::PropertyMap::setProperty<com::sun::star::drawing::TextFitToSizeType const&>(int, com::sun::star::drawing::TextFitToSizeType const&)
Line
Count
Source
70
99.5k
    {
71
99.5k
        if( nPropId < 0 )
72
0
            return false;
73
74
99.5k
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
99.5k
        return true;
76
99.5k
    }
bool oox::PropertyMap::setProperty<com::sun::star::lang::Locale&>(int, com::sun::star::lang::Locale&)
Line
Count
Source
70
103k
    {
71
103k
        if( nPropId < 0 )
72
0
            return false;
73
74
103k
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
103k
        return true;
76
103k
    }
bool oox::PropertyMap::setProperty<signed char>(int, signed char&&)
Line
Count
Source
70
428k
    {
71
428k
        if( nPropId < 0 )
72
0
            return false;
73
74
428k
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
428k
        return true;
76
428k
    }
bool oox::PropertyMap::setProperty<com::sun::star::awt::FontSlant&>(int, com::sun::star::awt::FontSlant&)
Line
Count
Source
70
1.28M
    {
71
1.28M
        if( nPropId < 0 )
72
0
            return false;
73
74
1.28M
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
1.28M
        return true;
76
1.28M
    }
Unexecuted instantiation: bool oox::PropertyMap::setProperty<com::sun::star::awt::Size&>(int, com::sun::star::awt::Size&)
bool oox::PropertyMap::setProperty<com::sun::star::style::LineSpacing>(int, com::sun::star::style::LineSpacing&&)
Line
Count
Source
70
253k
    {
71
253k
        if( nPropId < 0 )
72
0
            return false;
73
74
253k
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
253k
        return true;
76
253k
    }
bool oox::PropertyMap::setProperty<com::sun::star::uno::Sequence<com::sun::star::style::TabStop>&>(int, com::sun::star::uno::Sequence<com::sun::star::style::TabStop>&)
Line
Count
Source
70
288
    {
71
288
        if( nPropId < 0 )
72
0
            return false;
73
74
288
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
288
        return true;
76
288
    }
bool oox::PropertyMap::setProperty<com::sun::star::style::ParagraphAdjust&>(int, com::sun::star::style::ParagraphAdjust&)
Line
Count
Source
70
135k
    {
71
135k
        if( nPropId < 0 )
72
0
            return false;
73
74
135k
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
135k
        return true;
76
135k
    }
bool oox::PropertyMap::setProperty<com::sun::star::awt::FontDescriptor&>(int, com::sun::star::awt::FontDescriptor&)
Line
Count
Source
70
43.5k
    {
71
43.5k
        if( nPropId < 0 )
72
0
            return false;
73
74
43.5k
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
43.5k
        return true;
76
43.5k
    }
Unexecuted instantiation: bool oox::PropertyMap::setProperty<com::sun::star::uno::Reference<com::sun::star::awt::XBitmap>&>(int, com::sun::star::uno::Reference<com::sun::star::awt::XBitmap>&)
Unexecuted instantiation: bool oox::PropertyMap::setProperty<com::sun::star::style::VerticalAlignment&>(int, com::sun::star::style::VerticalAlignment&)
Unexecuted instantiation: bool oox::PropertyMap::setProperty<int const&>(int, int const&)
Unexecuted instantiation: bool oox::PropertyMap::setProperty<unsigned short&>(int, unsigned short&)
Unexecuted instantiation: bool oox::PropertyMap::setProperty<float const&>(int, float const&)
Unexecuted instantiation: bool oox::PropertyMap::setProperty<unsigned int>(int, unsigned int&&)
Unexecuted instantiation: bool oox::PropertyMap::setProperty<com::sun::star::uno::Sequence<rtl::OUString> const&>(int, com::sun::star::uno::Sequence<rtl::OUString> const&)
Unexecuted instantiation: bool oox::PropertyMap::setProperty<com::sun::star::uno::Sequence<short> const&>(int, com::sun::star::uno::Sequence<short> const&)
bool oox::PropertyMap::setProperty<long const&>(int, long const&)
Line
Count
Source
70
14
    {
71
14
        if( nPropId < 0 )
72
0
            return false;
73
74
14
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
14
        return true;
76
14
    }
bool oox::PropertyMap::setProperty<com::sun::star::awt::Rectangle>(int, com::sun::star::awt::Rectangle&&)
Line
Count
Source
70
14
    {
71
14
        if( nPropId < 0 )
72
0
            return false;
73
74
14
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
14
        return true;
76
14
    }
bool oox::PropertyMap::setProperty<com::sun::star::presentation::AnimationSpeed&>(int, com::sun::star::presentation::AnimationSpeed&)
Line
Count
Source
70
768
    {
71
768
        if( nPropId < 0 )
72
0
            return false;
73
74
768
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
768
        return true;
76
768
    }
bool oox::PropertyMap::setProperty<double&>(int, double&)
Line
Count
Source
70
771
    {
71
771
        if( nPropId < 0 )
72
0
            return false;
73
74
771
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
771
        return true;
76
771
    }
bool oox::PropertyMap::setProperty<com::sun::star::awt::Rectangle&>(int, com::sun::star::awt::Rectangle&)
Line
Count
Source
70
312
    {
71
312
        if( nPropId < 0 )
72
0
            return false;
73
74
312
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
312
        return true;
76
312
    }
bool oox::PropertyMap::setProperty<com::sun::star::uno::Sequence<com::sun::star::drawing::EnhancedCustomShapeAdjustmentValue>&>(int, com::sun::star::uno::Sequence<com::sun::star::drawing::EnhancedCustomShapeAdjustmentValue>&)
Line
Count
Source
70
312
    {
71
312
        if( nPropId < 0 )
72
0
            return false;
73
74
312
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
312
        return true;
76
312
    }
bool oox::PropertyMap::setProperty<com::sun::star::uno::Sequence<com::sun::star::drawing::EnhancedCustomShapeSegment> >(int, com::sun::star::uno::Sequence<com::sun::star::drawing::EnhancedCustomShapeSegment>&&)
Line
Count
Source
70
312
    {
71
312
        if( nPropId < 0 )
72
0
            return false;
73
74
312
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
312
        return true;
76
312
    }
bool oox::PropertyMap::setProperty<com::sun::star::uno::Sequence<com::sun::star::drawing::EnhancedCustomShapeTextFrame>&>(int, com::sun::star::uno::Sequence<com::sun::star::drawing::EnhancedCustomShapeTextFrame>&)
Line
Count
Source
70
296
    {
71
296
        if( nPropId < 0 )
72
0
            return false;
73
74
296
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
296
        return true;
76
296
    }
bool oox::PropertyMap::setProperty<com::sun::star::uno::Sequence<com::sun::star::drawing::EnhancedCustomShapeParameterPair>&>(int, com::sun::star::uno::Sequence<com::sun::star::drawing::EnhancedCustomShapeParameterPair>&)
Line
Count
Source
70
484
    {
71
484
        if( nPropId < 0 )
72
0
            return false;
73
74
484
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
484
        return true;
76
484
    }
bool oox::PropertyMap::setProperty<com::sun::star::uno::Sequence<com::sun::star::awt::Size>&>(int, com::sun::star::uno::Sequence<com::sun::star::awt::Size>&)
Line
Count
Source
70
237
    {
71
237
        if( nPropId < 0 )
72
0
            return false;
73
74
237
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
237
        return true;
76
237
    }
bool oox::PropertyMap::setProperty<com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>&>(int, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>&)
Line
Count
Source
70
312
    {
71
312
        if( nPropId < 0 )
72
0
            return false;
73
74
312
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
312
        return true;
76
312
    }
bool oox::PropertyMap::setProperty<com::sun::star::uno::Sequence<rtl::OUString>&>(int, com::sun::star::uno::Sequence<rtl::OUString>&)
Line
Count
Source
70
312
    {
71
312
        if( nPropId < 0 )
72
0
            return false;
73
74
312
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
312
        return true;
76
312
    }
bool oox::PropertyMap::setProperty<com::sun::star::drawing::EnhancedCustomShapeParameterPair&>(int, com::sun::star::drawing::EnhancedCustomShapeParameterPair&)
Line
Count
Source
70
9
    {
71
9
        if( nPropId < 0 )
72
0
            return false;
73
74
9
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
9
        return true;
76
9
    }
Unexecuted instantiation: bool oox::PropertyMap::setProperty<com::sun::star::drawing::EnhancedCustomShapeParameter&>(int, com::sun::star::drawing::EnhancedCustomShapeParameter&)
bool oox::PropertyMap::setProperty<com::sun::star::uno::Sequence<com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> >&>(int, com::sun::star::uno::Sequence<com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> >&)
Line
Count
Source
70
312
    {
71
312
        if( nPropId < 0 )
72
0
            return false;
73
74
312
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
312
        return true;
76
312
    }
Unexecuted instantiation: bool oox::PropertyMap::setProperty<com::sun::star::drawing::Position3D&>(int, com::sun::star::drawing::Position3D&)
bool oox::PropertyMap::setProperty<com::sun::star::drawing::ProjectionMode&>(int, com::sun::star::drawing::ProjectionMode&)
Line
Count
Source
70
3
    {
71
3
        if( nPropId < 0 )
72
0
            return false;
73
74
3
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
3
        return true;
76
3
    }
bool oox::PropertyMap::setProperty<com::sun::star::drawing::ShadeMode const&>(int, com::sun::star::drawing::ShadeMode const&)
Line
Count
Source
70
3
    {
71
3
        if( nPropId < 0 )
72
0
            return false;
73
74
3
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
3
        return true;
76
3
    }
bool oox::PropertyMap::setProperty<com::sun::star::drawing::Direction3D&>(int, com::sun::star::drawing::Direction3D&)
Line
Count
Source
70
6
    {
71
6
        if( nPropId < 0 )
72
0
            return false;
73
74
6
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
6
        return true;
76
6
    }
bool oox::PropertyMap::setProperty<double const&>(int, double const&)
Line
Count
Source
70
6
    {
71
6
        if( nPropId < 0 )
72
0
            return false;
73
74
6
        maProperties[ nPropId ] <<= std::forward<Type>(rValue);
75
6
        return true;
76
6
    }
Unexecuted instantiation: bool oox::PropertyMap::setProperty<com::sun::star::uno::Sequence<com::sun::star::drawing::EnhancedCustomShapeAdjustmentValue> >(int, com::sun::star::uno::Sequence<com::sun::star::drawing::EnhancedCustomShapeAdjustmentValue>&&)
Unexecuted instantiation: bool oox::PropertyMap::setProperty<com::sun::star::uno::Sequence<rtl::OUString> >(int, com::sun::star::uno::Sequence<rtl::OUString>&&)
Unexecuted instantiation: bool oox::PropertyMap::setProperty<com::sun::star::uno::Sequence<com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> > >(int, com::sun::star::uno::Sequence<com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> >&&)
Unexecuted instantiation: bool oox::PropertyMap::setProperty<com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> >(int, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>&&)
Unexecuted instantiation: bool oox::PropertyMap::setProperty<rtl::StringConcat<char16_t, char const [7], rtl::OUString, 0> >(int, rtl::StringConcat<char16_t, char const [7], rtl::OUString, 0>&&)
77
78
    /** setAnyProperty should be used */
79
    bool                setProperty( sal_Int32, const css::uno::Any& ) = delete;
80
81
    css::uno::Any       getProperty( sal_Int32 nPropId ) const;
82
83
    void                erase( sal_Int32 nPropId );
84
85
    bool                empty() const;
86
87
    /** Inserts all properties contained in the passed property map. */
88
    void                assignUsed( const PropertyMap& rPropMap );
89
90
    /** Inserts all properties contained in the passed property map */
91
    void                assignAll( const PropertyMap& rPropMap );
92
93
    /** Returns a sequence of property values, filled with all contained properties. */
94
    css::uno::Sequence< css::beans::PropertyValue >
95
                        makePropertyValueSequence() const;
96
97
    /** Fills the passed sequences of names and anys with all contained properties. */
98
    void                fillSequences(
99
                            css::uno::Sequence< OUString >& rNames,
100
                            css::uno::Sequence< css::uno::Any >& rValues ) const;
101
102
    void                fillPropertyNameMap(PropertyNameMap& rMap) const;
103
104
    /** Creates a property set supporting the XPropertySet interface and inserts all properties. */
105
    css::uno::Reference< css::beans::XPropertySet >
106
                        makePropertySet() const;
107
108
#if OSL_DEBUG_LEVEL > 0
109
#ifdef DBG_UTIL
110
  static void dump( const css::uno::Reference< css::beans::XPropertySet >& rXPropSet);
111
#endif
112
  static void dumpCode( const css::uno::Reference< css::beans::XPropertySet >& rXPropSet);
113
  static void dumpData( const css::uno::Reference<css::beans::XPropertySet>& rXPropSet);
114
#endif
115
private:
116
    const std::vector<OUString>* mpPropNames;
117
    std::map< sal_Int32, css::uno::Any > maProperties;
118
};
119
120
121
} // namespace oox
122
123
#endif
124
125
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */