Coverage Report

Created: 2026-11-06 11:29

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/include/oox/helper/propertyset.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_PROPERTYSET_HXX
21
#define INCLUDED_OOX_HELPER_PROPERTYSET_HXX
22
23
#include <com/sun/star/uno/Any.hxx>
24
#include <com/sun/star/uno/Reference.hxx>
25
#include <com/sun/star/uno/Sequence.hxx>
26
#include <oox/dllapi.h>
27
#include <rtl/ustring.hxx>
28
#include <sal/types.h>
29
#include <tools/color.hxx>
30
31
namespace com::sun::star {
32
    namespace beans { class XMultiPropertySet; }
33
    namespace beans { class XPropertySet; }
34
    namespace beans { class XPropertySetInfo; }
35
}
36
37
namespace oox {
38
39
class PropertyMap;
40
41
42
/** A wrapper for a UNO property set.
43
44
    This class provides functions to silently get and set properties (without
45
    exceptions, without the need to check validity of the UNO property set).
46
47
    An instance is constructed with the reference to a UNO property set or any
48
    other interface (the constructor will query for the
49
    com.sun.star.beans.XPropertySet interface then). The reference to the
50
    property set will be kept as long as the instance of this class is alive.
51
52
    The functions setProperties() tries to handle all passed values at once,
53
    using the com.sun.star.beans.XMultiPropertySet interface.  If the
54
    implementation does not support the XMultiPropertySet interface, all
55
    properties are handled separately in a loop.
56
 */
57
class OOX_DLLPUBLIC PropertySet
58
{
59
public:
60
30.7k
    PropertySet() {}
61
62
    /** Constructs a property set wrapper with the passed UNO property set. */
63
    explicit     PropertySet(
64
                            const css::uno::Reference< css::beans::XPropertySet >& rxPropSet )
65
518k
                                { set( rxPropSet ); }
66
67
    /** Constructs a property set wrapper after querying the XPropertySet interface. */
68
    template< typename Type >
69
354k
    explicit     PropertySet( const Type& rObject ) { set( rObject ); }
oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::style::XStyle> >(com::sun::star::uno::Reference<com::sun::star::style::XStyle> const&)
Line
Count
Source
69
87.5k
    explicit     PropertySet( const Type& rObject ) { set( rObject ); }
oox::PropertySet::PropertySet<com::sun::star::uno::Any>(com::sun::star::uno::Any const&)
Line
Count
Source
69
59
    explicit     PropertySet( const Type& rObject ) { set( rObject ); }
oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::text::XTextContent> >(com::sun::star::uno::Reference<com::sun::star::text::XTextContent> const&)
Line
Count
Source
69
183
    explicit     PropertySet( const Type& rObject ) { set( rObject ); }
oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::text::XTextCursor> >(com::sun::star::uno::Reference<com::sun::star::text::XTextCursor> const&)
Line
Count
Source
69
14.2k
    explicit     PropertySet( const Type& rObject ) { set( rObject ); }
Unexecuted instantiation: oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::table::XCell> >(com::sun::star::uno::Reference<com::sun::star::table::XCell> const&)
Unexecuted instantiation: oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::table::XCellRange> >(com::sun::star::uno::Reference<com::sun::star::table::XCellRange> const&)
Unexecuted instantiation: oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::awt::XControlModel> >(com::sun::star::uno::Reference<com::sun::star::awt::XControlModel> const&)
Unexecuted instantiation: oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::sheet::XAreaLink> >(com::sun::star::uno::Reference<com::sun::star::sheet::XAreaLink> const&)
oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::text::XTextRange> >(com::sun::star::uno::Reference<com::sun::star::text::XTextRange> const&)
Line
Count
Source
69
122k
    explicit     PropertySet( const Type& rObject ) { set( rObject ); }
oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::text::XText> >(com::sun::star::uno::Reference<com::sun::star::text::XText> const&)
Line
Count
Source
69
1.56k
    explicit     PropertySet( const Type& rObject ) { set( rObject ); }
Unexecuted instantiation: oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::chart2::XCoordinateSystem> >(com::sun::star::uno::Reference<com::sun::star::chart2::XCoordinateSystem> const&)
Unexecuted instantiation: oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::chart2::XChartType> >(com::sun::star::uno::Reference<com::sun::star::chart2::XChartType> const&)
Unexecuted instantiation: oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::chart2::XDataSeries> >(com::sun::star::uno::Reference<com::sun::star::chart2::XDataSeries> const&)
Unexecuted instantiation: oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::chart2::XDiagram> >(com::sun::star::uno::Reference<com::sun::star::chart2::XDiagram> const&)
Unexecuted instantiation: oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::chart::XDiagram> >(com::sun::star::uno::Reference<com::sun::star::chart::XDiagram> const&)
Unexecuted instantiation: oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::chart2::XChartDocument> >(com::sun::star::uno::Reference<com::sun::star::chart2::XChartDocument> const&)
Unexecuted instantiation: oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::chart::XChartDocument> >(com::sun::star::uno::Reference<com::sun::star::chart::XChartDocument> const&)
Unexecuted instantiation: oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::chart::XAxisXSupplier> >(com::sun::star::uno::Reference<com::sun::star::chart::XAxisXSupplier> const&)
Unexecuted instantiation: oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::chart::XAxisYSupplier> >(com::sun::star::uno::Reference<com::sun::star::chart::XAxisYSupplier> const&)
Unexecuted instantiation: oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::chart::XAxisZSupplier> >(com::sun::star::uno::Reference<com::sun::star::chart::XAxisZSupplier> const&)
Unexecuted instantiation: oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::chart::XSecondAxisTitleSupplier> >(com::sun::star::uno::Reference<com::sun::star::chart::XSecondAxisTitleSupplier> const&)
Unexecuted instantiation: oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::chart2::XTitle> >(com::sun::star::uno::Reference<com::sun::star::chart2::XTitle> const&)
oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::drawing::XShape> >(com::sun::star::uno::Reference<com::sun::star::drawing::XShape> const&)
Line
Count
Source
69
91.0k
    explicit     PropertySet( const Type& rObject ) { set( rObject ); }
Unexecuted instantiation: oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::chart2::XFormattedString> >(com::sun::star::uno::Reference<com::sun::star::chart2::XFormattedString> const&)
Unexecuted instantiation: oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::chart2::XLegend> >(com::sun::star::uno::Reference<com::sun::star::chart2::XLegend> const&)
Unexecuted instantiation: oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::io::XOutputStream> >(com::sun::star::uno::Reference<com::sun::star::io::XOutputStream> const&)
oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::text::XTextField> >(com::sun::star::uno::Reference<com::sun::star::text::XTextField> const&)
Line
Count
Source
69
163
    explicit     PropertySet( const Type& rObject ) { set( rObject ); }
oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::graphic::XGraphic> >(com::sun::star::uno::Reference<com::sun::star::graphic::XGraphic> const&)
Line
Count
Source
69
1.57k
    explicit     PropertySet( const Type& rObject ) { set( rObject ); }
oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::frame::XModel> >(com::sun::star::uno::Reference<com::sun::star::frame::XModel> const&)
Line
Count
Source
69
8
    explicit     PropertySet( const Type& rObject ) { set( rObject ); }
oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::drawing::XDrawPage> >(com::sun::star::uno::Reference<com::sun::star::drawing::XDrawPage> const&)
Line
Count
Source
69
35.4k
    explicit     PropertySet( const Type& rObject ) { set( rObject ); }
Unexecuted instantiation: oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::chart2::XAxis> >(com::sun::star::uno::Reference<com::sun::star::chart2::XAxis> const&)
Unexecuted instantiation: oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::chart2::data::XDataSequence> >(com::sun::star::uno::Reference<com::sun::star::chart2::data::XDataSequence> const&)
Unexecuted instantiation: oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::chart2::XDataTable> >(com::sun::star::uno::Reference<com::sun::star::chart2::XDataTable> const&)
Unexecuted instantiation: oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::chart2::XDataPointCustomLabelField> >(com::sun::star::uno::Reference<com::sun::star::chart2::XDataPointCustomLabelField> const&)
Unexecuted instantiation: oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::chart2::XRegressionCurve> >(com::sun::star::uno::Reference<com::sun::star::chart2::XRegressionCurve> const&)
70
71
    /** Sets the passed UNO property set and releases the old UNO property set. */
72
    void                set( const css::uno::Reference< css::beans::XPropertySet >& rxPropSet );
73
74
    /** Queries the passed object (interface or any) for an XPropertySet and releases the old UNO property set. */
75
    template< typename Type >
76
    void         set( const Type& rObject )
77
365k
                            { set( css::uno::Reference< css::beans::XPropertySet >( rObject, css::uno::UNO_QUERY ) ); }
void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::sheet::XFormulaParser> >(com::sun::star::uno::Reference<com::sun::star::sheet::XFormulaParser> const&)
Line
Count
Source
77
11.7k
                            { set( css::uno::Reference< css::beans::XPropertySet >( rObject, css::uno::UNO_QUERY ) ); }
void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::style::XStyle> >(com::sun::star::uno::Reference<com::sun::star::style::XStyle> const&)
Line
Count
Source
77
87.5k
                            { set( css::uno::Reference< css::beans::XPropertySet >( rObject, css::uno::UNO_QUERY ) ); }
void oox::PropertySet::set<com::sun::star::uno::Any>(com::sun::star::uno::Any const&)
Line
Count
Source
77
59
                            { set( css::uno::Reference< css::beans::XPropertySet >( rObject, css::uno::UNO_QUERY ) ); }
void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::text::XTextContent> >(com::sun::star::uno::Reference<com::sun::star::text::XTextContent> const&)
Line
Count
Source
77
183
                            { set( css::uno::Reference< css::beans::XPropertySet >( rObject, css::uno::UNO_QUERY ) ); }
void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::text::XTextCursor> >(com::sun::star::uno::Reference<com::sun::star::text::XTextCursor> const&)
Line
Count
Source
77
14.2k
                            { set( css::uno::Reference< css::beans::XPropertySet >( rObject, css::uno::UNO_QUERY ) ); }
Unexecuted instantiation: void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::table::XCell> >(com::sun::star::uno::Reference<com::sun::star::table::XCell> const&)
Unexecuted instantiation: void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::table::XCellRange> >(com::sun::star::uno::Reference<com::sun::star::table::XCellRange> const&)
Unexecuted instantiation: void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::awt::XControlModel> >(com::sun::star::uno::Reference<com::sun::star::awt::XControlModel> const&)
Unexecuted instantiation: void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::sheet::XAreaLink> >(com::sun::star::uno::Reference<com::sun::star::sheet::XAreaLink> const&)
void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::text::XTextRange> >(com::sun::star::uno::Reference<com::sun::star::text::XTextRange> const&)
Line
Count
Source
77
122k
                            { set( css::uno::Reference< css::beans::XPropertySet >( rObject, css::uno::UNO_QUERY ) ); }
void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::text::XText> >(com::sun::star::uno::Reference<com::sun::star::text::XText> const&)
Line
Count
Source
77
1.56k
                            { set( css::uno::Reference< css::beans::XPropertySet >( rObject, css::uno::UNO_QUERY ) ); }
Unexecuted instantiation: void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::chart2::XCoordinateSystem> >(com::sun::star::uno::Reference<com::sun::star::chart2::XCoordinateSystem> const&)
Unexecuted instantiation: void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::chart2::XChartType> >(com::sun::star::uno::Reference<com::sun::star::chart2::XChartType> const&)
Unexecuted instantiation: void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::chart2::XDataSeries> >(com::sun::star::uno::Reference<com::sun::star::chart2::XDataSeries> const&)
Unexecuted instantiation: void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::chart2::XDiagram> >(com::sun::star::uno::Reference<com::sun::star::chart2::XDiagram> const&)
Unexecuted instantiation: void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::chart::XDiagram> >(com::sun::star::uno::Reference<com::sun::star::chart::XDiagram> const&)
Unexecuted instantiation: void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::chart2::XChartDocument> >(com::sun::star::uno::Reference<com::sun::star::chart2::XChartDocument> const&)
Unexecuted instantiation: void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::chart::XChartDocument> >(com::sun::star::uno::Reference<com::sun::star::chart::XChartDocument> const&)
Unexecuted instantiation: void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::chart::XAxisXSupplier> >(com::sun::star::uno::Reference<com::sun::star::chart::XAxisXSupplier> const&)
Unexecuted instantiation: void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::chart::XAxisYSupplier> >(com::sun::star::uno::Reference<com::sun::star::chart::XAxisYSupplier> const&)
Unexecuted instantiation: void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::chart::XAxisZSupplier> >(com::sun::star::uno::Reference<com::sun::star::chart::XAxisZSupplier> const&)
Unexecuted instantiation: void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::chart::XSecondAxisTitleSupplier> >(com::sun::star::uno::Reference<com::sun::star::chart::XSecondAxisTitleSupplier> const&)
Unexecuted instantiation: void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::chart2::XTitle> >(com::sun::star::uno::Reference<com::sun::star::chart2::XTitle> const&)
void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::drawing::XShape> >(com::sun::star::uno::Reference<com::sun::star::drawing::XShape> const&)
Line
Count
Source
77
91.0k
                            { set( css::uno::Reference< css::beans::XPropertySet >( rObject, css::uno::UNO_QUERY ) ); }
Unexecuted instantiation: void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::chart2::XFormattedString> >(com::sun::star::uno::Reference<com::sun::star::chart2::XFormattedString> const&)
Unexecuted instantiation: void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::chart2::XLegend> >(com::sun::star::uno::Reference<com::sun::star::chart2::XLegend> const&)
Unexecuted instantiation: void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::io::XOutputStream> >(com::sun::star::uno::Reference<com::sun::star::io::XOutputStream> const&)
void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::text::XTextField> >(com::sun::star::uno::Reference<com::sun::star::text::XTextField> const&)
Line
Count
Source
77
163
                            { set( css::uno::Reference< css::beans::XPropertySet >( rObject, css::uno::UNO_QUERY ) ); }
void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::graphic::XGraphic> >(com::sun::star::uno::Reference<com::sun::star::graphic::XGraphic> const&)
Line
Count
Source
77
1.57k
                            { set( css::uno::Reference< css::beans::XPropertySet >( rObject, css::uno::UNO_QUERY ) ); }
Unexecuted instantiation: void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::uno::XInterface> >(com::sun::star::uno::Reference<com::sun::star::uno::XInterface> const&)
void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::frame::XModel> >(com::sun::star::uno::Reference<com::sun::star::frame::XModel> const&)
Line
Count
Source
77
8
                            { set( css::uno::Reference< css::beans::XPropertySet >( rObject, css::uno::UNO_QUERY ) ); }
void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::drawing::XDrawPage> >(com::sun::star::uno::Reference<com::sun::star::drawing::XDrawPage> const&)
Line
Count
Source
77
35.4k
                            { set( css::uno::Reference< css::beans::XPropertySet >( rObject, css::uno::UNO_QUERY ) ); }
Unexecuted instantiation: void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::chart2::XAxis> >(com::sun::star::uno::Reference<com::sun::star::chart2::XAxis> const&)
Unexecuted instantiation: void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::chart2::data::XDataSequence> >(com::sun::star::uno::Reference<com::sun::star::chart2::data::XDataSequence> const&)
Unexecuted instantiation: void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::chart2::XDataTable> >(com::sun::star::uno::Reference<com::sun::star::chart2::XDataTable> const&)
Unexecuted instantiation: void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::chart2::XDataPointCustomLabelField> >(com::sun::star::uno::Reference<com::sun::star::chart2::XDataPointCustomLabelField> const&)
Unexecuted instantiation: void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::chart2::XRegressionCurve> >(com::sun::star::uno::Reference<com::sun::star::chart2::XRegressionCurve> const&)
78
79
    /** Returns true, if the contained XPropertySet interface is valid. */
80
0
    bool         is() const { return mxPropSet.is(); }
81
82
    /** Returns true, if the specified property is supported by the property set. */
83
    bool                hasProperty( sal_Int32 nPropId ) const;
84
85
    // Get properties ---------------------------------------------------------
86
87
    /** Gets the specified property from the property set.
88
        @return  the property value, or an empty Any, if the property is missing. */
89
    css::uno::Any getAnyProperty( sal_Int32 nPropId ) const;
90
91
    /** Gets the specified property from the property set.
92
        @return  true, if the passed variable could be filled with the property value. */
93
    template< typename Type >
94
    bool         getProperty( Type& orValue, sal_Int32 nPropId ) const
95
144k
                            { return getAnyProperty( nPropId ) >>= orValue; }
Unexecuted instantiation: bool oox::PropertySet::getProperty<bool>(bool&, int) const
bool oox::PropertySet::getProperty<rtl::OUString>(rtl::OUString&, int) const
Line
Count
Source
95
39
                            { return getAnyProperty( nPropId ) >>= orValue; }
bool oox::PropertySet::getProperty<com::sun::star::awt::Size>(com::sun::star::awt::Size&, int) const
Line
Count
Source
95
3.18k
                            { return getAnyProperty( nPropId ) >>= orValue; }
bool oox::PropertySet::getProperty<com::sun::star::sheet::DataPilotFieldGroupInfo>(com::sun::star::sheet::DataPilotFieldGroupInfo&, int) const
Line
Count
Source
95
17
                            { return getAnyProperty( nPropId ) >>= orValue; }
Unexecuted instantiation: bool oox::PropertySet::getProperty<com::sun::star::awt::Point>(com::sun::star::awt::Point&, int) const
Unexecuted instantiation: bool oox::PropertySet::getProperty<com::sun::star::uno::Sequence<int> >(com::sun::star::uno::Sequence<int>&, int) const
Unexecuted instantiation: bool oox::PropertySet::getProperty<com::sun::star::chart2::PieChartSubType>(com::sun::star::chart2::PieChartSubType&, int) const
Unexecuted instantiation: bool oox::PropertySet::getProperty<double>(double&, int) const
Unexecuted instantiation: bool oox::PropertySet::getProperty<com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet> >(com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet>&, int) const
Unexecuted instantiation: bool oox::PropertySet::getProperty<int>(int&, int) const
bool oox::PropertySet::getProperty<com::sun::star::uno::Reference<com::sun::star::frame::XModel> >(com::sun::star::uno::Reference<com::sun::star::frame::XModel>&, int) const
Line
Count
Source
95
402
                            { return getAnyProperty( nPropId ) >>= orValue; }
bool oox::PropertySet::getProperty<com::sun::star::uno::Reference<com::sun::star::container::XIndexReplace> >(com::sun::star::uno::Reference<com::sun::star::container::XIndexReplace>&, int) const
Line
Count
Source
95
140k
                            { return getAnyProperty( nPropId ) >>= orValue; }
Unexecuted instantiation: bool oox::PropertySet::getProperty<unsigned int>(unsigned int&, int) const
Unexecuted instantiation: bool oox::PropertySet::getProperty<com::sun::star::table::CellAddress>(com::sun::star::table::CellAddress&, int) const
Unexecuted instantiation: bool oox::PropertySet::getProperty<com::sun::star::table::CellRangeAddress>(com::sun::star::table::CellRangeAddress&, int) const
Unexecuted instantiation: bool oox::PropertySet::getProperty<short>(short&, int) const
Unexecuted instantiation: bool oox::PropertySet::getProperty<float>(float&, int) const
Unexecuted instantiation: bool oox::PropertySet::getProperty<com::sun::star::awt::FontSlant>(com::sun::star::awt::FontSlant&, int) const
96
97
    /** Gets the specified boolean property from the property set.
98
        @return  true = property contains true; false = property contains false or error occurred. */
99
    bool         getBoolProperty( sal_Int32 nPropId ) const
100
0
                            { bool bValue = false; return getProperty( bValue, nPropId ) && bValue; }
101
    // Set properties ---------------------------------------------------------
102
103
    /** Puts the passed any into the property set. */
104
    bool                setAnyProperty( sal_Int32 nPropId, const css::uno::Any& rValue );
105
106
    /** Puts the passed value into the property set. */
107
    template< typename Type >
108
    bool         setProperty( sal_Int32 nPropId, const Type& rValue )
109
1.35M
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
bool oox::PropertySet::setProperty<bool>(int, bool const&)
Line
Count
Source
109
55.1k
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
bool oox::PropertySet::setProperty<short>(int, short const&)
Line
Count
Source
109
97.7k
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
bool oox::PropertySet::setProperty<com::sun::star::uno::Sequence<com::sun::star::sheet::FormulaOpCodeMapEntry> >(int, com::sun::star::uno::Sequence<com::sun::star::sheet::FormulaOpCodeMapEntry> const&)
Line
Count
Source
109
11.7k
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
bool oox::PropertySet::setProperty<com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> >(int, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&)
Line
Count
Source
109
18.2k
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
bool oox::PropertySet::setProperty<int>(int, int const&)
Line
Count
Source
109
682k
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
bool oox::PropertySet::setProperty<com::sun::star::util::Date>(int, com::sun::star::util::Date const&)
Line
Count
Source
109
8.42k
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
bool oox::PropertySet::setProperty<double>(int, double const&)
Line
Count
Source
109
4.21k
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
bool oox::PropertySet::setProperty<rtl::OUString>(int, rtl::OUString const&)
Line
Count
Source
109
10.0k
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
bool oox::PropertySet::setProperty<com::sun::star::uno::Sequence<com::sun::star::sheet::ExternalLinkInfo> >(int, com::sun::star::uno::Sequence<com::sun::star::sheet::ExternalLinkInfo> const&)
Line
Count
Source
109
361
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
bool oox::PropertySet::setProperty<com::sun::star::awt::Size>(int, com::sun::star::awt::Size const&)
Line
Count
Source
109
6.03k
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
bool oox::PropertySet::setProperty<com::sun::star::uno::Reference<com::sun::star::sheet::XHeaderFooterContent> >(int, com::sun::star::uno::Reference<com::sun::star::sheet::XHeaderFooterContent> const&)
Line
Count
Source
109
1.94k
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
bool oox::PropertySet::setProperty<com::sun::star::sheet::DataPilotFieldGroupInfo>(int, com::sun::star::sheet::DataPilotFieldGroupInfo const&)
Line
Count
Source
109
17
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
bool oox::PropertySet::setProperty<com::sun::star::sheet::DataPilotFieldOrientation>(int, com::sun::star::sheet::DataPilotFieldOrientation const&)
Line
Count
Source
109
597
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
bool oox::PropertySet::setProperty<com::sun::star::sheet::GeneralFunction>(int, com::sun::star::sheet::GeneralFunction const&)
Line
Count
Source
109
165
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
bool oox::PropertySet::setProperty<com::sun::star::sheet::DataPilotFieldReference>(int, com::sun::star::sheet::DataPilotFieldReference const&)
Line
Count
Source
109
6
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
bool oox::PropertySet::setProperty<com::sun::star::uno::Sequence<com::sun::star::sheet::GeneralFunction> >(int, com::sun::star::uno::Sequence<com::sun::star::sheet::GeneralFunction> const&)
Line
Count
Source
109
862
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
bool oox::PropertySet::setProperty<com::sun::star::sheet::DataPilotFieldLayoutInfo>(int, com::sun::star::sheet::DataPilotFieldLayoutInfo const&)
Line
Count
Source
109
862
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
Unexecuted instantiation: bool oox::PropertySet::setProperty<com::sun::star::sheet::DataPilotFieldAutoShowInfo>(int, com::sun::star::sheet::DataPilotFieldAutoShowInfo const&)
bool oox::PropertySet::setProperty<com::sun::star::sheet::DataPilotFieldSortInfo>(int, com::sun::star::sheet::DataPilotFieldSortInfo const&)
Line
Count
Source
109
862
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
bool oox::PropertySet::setProperty<com::sun::star::sheet::ValidationType>(int, com::sun::star::sheet::ValidationType const&)
Line
Count
Source
109
786
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
bool oox::PropertySet::setProperty<com::sun::star::sheet::ValidationAlertStyle>(int, com::sun::star::sheet::ValidationAlertStyle const&)
Line
Count
Source
109
786
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
bool oox::PropertySet::setProperty<com::sun::star::uno::Any>(int, com::sun::star::uno::Any const&)
Line
Count
Source
109
1.55k
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
Unexecuted instantiation: bool oox::PropertySet::setProperty<com::sun::star::chart2::RelativePosition>(int, com::sun::star::chart2::RelativePosition const&)
Unexecuted instantiation: bool oox::PropertySet::setProperty<com::sun::star::chart2::RelativeSize>(int, com::sun::star::chart2::RelativeSize const&)
Unexecuted instantiation: bool oox::PropertySet::setProperty<com::sun::star::drawing::ProjectionMode>(int, com::sun::star::drawing::ProjectionMode const&)
Unexecuted instantiation: bool oox::PropertySet::setProperty<com::sun::star::drawing::ShadeMode>(int, com::sun::star::drawing::ShadeMode const&)
Unexecuted instantiation: bool oox::PropertySet::setProperty<com::sun::star::drawing::Direction3D>(int, com::sun::star::drawing::Direction3D const&)
Unexecuted instantiation: bool oox::PropertySet::setProperty<com::sun::star::chart2::LegendPosition>(int, com::sun::star::chart2::LegendPosition const&)
Unexecuted instantiation: bool oox::PropertySet::setProperty<com::sun::star::chart::ChartLegendExpansion>(int, com::sun::star::chart::ChartLegendExpansion const&)
Unexecuted instantiation: bool oox::PropertySet::setProperty<com::sun::star::uno::Sequence<int> >(int, com::sun::star::uno::Sequence<int> const&)
Unexecuted instantiation: bool oox::PropertySet::setProperty<com::sun::star::chart2::PieChartSubType>(int, com::sun::star::chart2::PieChartSubType const&)
Unexecuted instantiation: bool oox::PropertySet::setProperty<com::sun::star::drawing::LineStyle>(int, com::sun::star::drawing::LineStyle const&)
Unexecuted instantiation: bool oox::PropertySet::setProperty<com::sun::star::chart2::Symbol>(int, com::sun::star::chart2::Symbol const&)
Unexecuted instantiation: bool oox::PropertySet::setProperty<com::sun::star::chart2::CurveStyle>(int, com::sun::star::chart2::CurveStyle const&)
Unexecuted instantiation: bool oox::PropertySet::setProperty<com::sun::star::chart2::StackingDirection>(int, com::sun::star::chart2::StackingDirection const&)
bool oox::PropertySet::setProperty<com::sun::star::uno::Reference<com::sun::star::container::XIndexReplace> >(int, com::sun::star::uno::Reference<com::sun::star::container::XIndexReplace> const&)
Line
Count
Source
109
136k
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
bool oox::PropertySet::setProperty<com::sun::star::uno::Sequence<com::sun::star::style::TabStop> >(int, com::sun::star::uno::Sequence<com::sun::star::style::TabStop> const&)
Line
Count
Source
109
9.92k
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
bool oox::PropertySet::setProperty<com::sun::star::style::ParagraphAdjust>(int, com::sun::star::style::ParagraphAdjust const&)
Line
Count
Source
109
140k
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
bool oox::PropertySet::setProperty<com::sun::star::style::LineSpacing>(int, com::sun::star::style::LineSpacing const&)
Line
Count
Source
109
140k
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
bool oox::PropertySet::setProperty<com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet> >(int, com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet> const&)
Line
Count
Source
109
5.18k
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
bool oox::PropertySet::setProperty<com::sun::star::text::TextContentAnchorType>(int, com::sun::star::text::TextContentAnchorType const&)
Line
Count
Source
109
2.72k
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
Unexecuted instantiation: bool oox::PropertySet::setProperty<com::sun::star::uno::Reference<com::sun::star::io::XInputStream> >(int, com::sun::star::uno::Reference<com::sun::star::io::XInputStream> const&)
bool oox::PropertySet::setProperty<com::sun::star::uno::Reference<com::sun::star::graphic::XGraphic> >(int, com::sun::star::uno::Reference<com::sun::star::graphic::XGraphic> const&)
Line
Count
Source
109
175
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
bool oox::PropertySet::setProperty<com::sun::star::text::GraphicCrop>(int, com::sun::star::text::GraphicCrop const&)
Line
Count
Source
109
35
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
Unexecuted instantiation: bool oox::PropertySet::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> > const&)
bool oox::PropertySet::setProperty<com::sun::star::drawing::PolyPolygonBezierCoords>(int, com::sun::star::drawing::PolyPolygonBezierCoords const&)
Line
Count
Source
109
545
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
Unexecuted instantiation: bool oox::PropertySet::setProperty<com::sun::star::chart::ChartAxisLabelPosition>(int, com::sun::star::chart::ChartAxisLabelPosition const&)
Unexecuted instantiation: bool oox::PropertySet::setProperty<com::sun::star::chart::ChartAxisMarkPosition>(int, com::sun::star::chart::ChartAxisMarkPosition const&)
Unexecuted instantiation: bool oox::PropertySet::setProperty<com::sun::star::chart::ChartAxisArrangeOrderType>(int, com::sun::star::chart::ChartAxisArrangeOrderType const&)
Unexecuted instantiation: bool oox::PropertySet::setProperty<com::sun::star::chart::ChartAxisPosition>(int, com::sun::star::chart::ChartAxisPosition const&)
Unexecuted instantiation: bool oox::PropertySet::setProperty<com::sun::star::chart2::DataPointLabel>(int, com::sun::star::chart2::DataPointLabel const&)
Unexecuted instantiation: bool oox::PropertySet::setProperty<com::sun::star::drawing::FillStyle>(int, com::sun::star::drawing::FillStyle const&)
Unexecuted instantiation: bool oox::PropertySet::setProperty<unsigned int>(int, unsigned int const&)
bool oox::PropertySet::setProperty<com::sun::star::table::BorderLine2>(int, com::sun::star::table::BorderLine2 const&)
Line
Count
Source
109
19.2k
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
110
111
    /** Puts the passed properties into the property set. Tries to use the XMultiPropertySet interface.
112
        @param rPropNames  The property names. MUST be ordered alphabetically.
113
        @param rValues  The related property values. */
114
    void                setProperties(
115
                            const css::uno::Sequence< OUString >& rPropNames,
116
                            const css::uno::Sequence< css::uno::Any >& rValues );
117
118
    /** Puts the passed property map into the property set. Tries to use the XMultiPropertySet interface.
119
        @param rPropertyMap  The property map. */
120
    void                setProperties( const PropertyMap& rPropertyMap );
121
122
#ifdef DBG_UTIL
123
    void dump();
124
#endif
125
126
127
private:
128
    /** Gets the specified property from the property set.
129
        @return  true, if the any could be filled with the property value. */
130
    bool                implGetPropertyValue( css::uno::Any& orValue, const OUString& rPropName ) const;
131
132
    /** Puts the passed any into the property set. */
133
    bool                implSetPropertyValue( const OUString& rPropName, const css::uno::Any& rValue );
134
135
private:
136
    css::uno::Reference< css::beans::XPropertySet >
137
                        mxPropSet;          ///< The mandatory property set interface.
138
    css::uno::Reference< css::beans::XMultiPropertySet >
139
                        mxMultiPropSet;     ///< The optional multi property set interface.
140
    css::uno::Reference< css::beans::XPropertySetInfo >
141
                        mxPropSetInfo;      ///< Property information.
142
};
143
144
145
} // namespace oox
146
147
#endif
148
149
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */