Coverage Report

Created: 2025-12-31 10:39

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
31.5k
    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
564k
                                { set( rxPropSet ); }
66
67
    /** Constructs a property set wrapper after querying the XPropertySet interface. */
68
    template< typename Type >
69
373k
    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
37.7k
    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
22
    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
192
    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
16.6k
    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&)
oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::sheet::XSpreadsheet> >(com::sun::star::uno::Reference<com::sun::star::sheet::XSpreadsheet> const&)
Line
Count
Source
69
8.90k
    explicit     PropertySet( const Type& rObject ) { set( rObject ); }
oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::table::XCellRange> >(com::sun::star::uno::Reference<com::sun::star::table::XCellRange> const&)
Line
Count
Source
69
95
    explicit     PropertySet( const Type& rObject ) { set( rObject ); }
oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::sheet::XSheetFilterDescriptor3> >(com::sun::star::uno::Reference<com::sun::star::sheet::XSheetFilterDescriptor3> const&)
Line
Count
Source
69
484
    explicit     PropertySet( const Type& rObject ) { set( rObject ); }
Unexecuted instantiation: oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::sheet::XSheetFilterDescriptor> >(com::sun::star::uno::Reference<com::sun::star::sheet::XSheetFilterDescriptor> const&)
oox::PropertySet::PropertySet<com::sun::star::uno::Reference<com::sun::star::sheet::XDatabaseRange> >(com::sun::star::uno::Reference<com::sun::star::sheet::XDatabaseRange> const&)
Line
Count
Source
69
484
    explicit     PropertySet( const Type& rObject ) { set( rObject ); }
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
147k
    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.81k
    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
112k
    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
202
    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
2.14k
    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
44.7k
    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
385k
                            { 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
12.0k
                            { 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
37.7k
                            { 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
22
                            { 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
192
                            { 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
16.6k
                            { 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&)
void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::sheet::XSpreadsheet> >(com::sun::star::uno::Reference<com::sun::star::sheet::XSpreadsheet> const&)
Line
Count
Source
77
8.90k
                            { set( css::uno::Reference< css::beans::XPropertySet >( rObject, css::uno::UNO_QUERY ) ); }
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&)
Line
Count
Source
77
95
                            { 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::XSheetFilterDescriptor3> >(com::sun::star::uno::Reference<com::sun::star::sheet::XSheetFilterDescriptor3> const&)
Line
Count
Source
77
484
                            { 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::sheet::XSheetFilterDescriptor> >(com::sun::star::uno::Reference<com::sun::star::sheet::XSheetFilterDescriptor> const&)
void oox::PropertySet::set<com::sun::star::uno::Reference<com::sun::star::sheet::XDatabaseRange> >(com::sun::star::uno::Reference<com::sun::star::sheet::XDatabaseRange> const&)
Line
Count
Source
77
484
                            { 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::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
147k
                            { 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.81k
                            { 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
112k
                            { 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
202
                            { 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
2.14k
                            { 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
44.7k
                            { 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
110k
                            { 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
12
                            { return getAnyProperty( nPropId ) >>= orValue; }
bool oox::PropertySet::getProperty<com::sun::star::sheet::DataPilotFieldGroupInfo>(com::sun::star::sheet::DataPilotFieldGroupInfo&, int) const
Line
Count
Source
95
21
                            { return getAnyProperty( nPropId ) >>= orValue; }
Unexecuted instantiation: bool oox::PropertySet::getProperty<com::sun::star::awt::Point>(com::sun::star::awt::Point&, int) const
bool oox::PropertySet::getProperty<com::sun::star::awt::Size>(com::sun::star::awt::Size&, int) const
Line
Count
Source
95
4.20k
                            { return getAnyProperty( nPropId ) >>= orValue; }
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
425
                            { 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
105k
                            { 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.11M
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
bool oox::PropertySet::setProperty<bool>(int, bool const&)
Line
Count
Source
109
63.1k
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
bool oox::PropertySet::setProperty<short>(int, short const&)
Line
Count
Source
109
115k
                            { 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
12.0k
                            { 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
21.4k
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
bool oox::PropertySet::setProperty<int>(int, int const&)
Line
Count
Source
109
497k
                            { 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.67k
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
bool oox::PropertySet::setProperty<double>(int, double const&)
Line
Count
Source
109
4.33k
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
bool oox::PropertySet::setProperty<rtl::OUString>(int, rtl::OUString const&)
Line
Count
Source
109
17.4k
                            { 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
394
                            { 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
3.42k
                            { 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.93k
                            { 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
21
                            { 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
660
                            { 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
186
                            { 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
8
                            { 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
931
                            { 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
931
                            { 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
931
                            { 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
888
                            { 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
888
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
bool oox::PropertySet::setProperty<com::sun::star::table::TableOrientation>(int, com::sun::star::table::TableOrientation const&)
Line
Count
Source
109
484
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
Unexecuted instantiation: bool oox::PropertySet::setProperty<com::sun::star::table::CellAddress>(int, com::sun::star::table::CellAddress const&)
Unexecuted instantiation: bool oox::PropertySet::setProperty<com::sun::star::table::CellRangeAddress>(int, com::sun::star::table::CellRangeAddress const&)
bool oox::PropertySet::setProperty<com::sun::star::uno::Any>(int, com::sun::star::uno::Any const&)
Line
Count
Source
109
1.88k
                            { 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
102k
                            { 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
8.01k
                            { 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
105k
                            { 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
105k
                            { 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
6.56k
                            { 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
3.47k
                            { 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
226
                            { 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
48
                            { 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
729
                            { 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&)
bool oox::PropertySet::setProperty<com::sun::star::table::BorderLine2>(int, com::sun::star::table::BorderLine2 const&)
Line
Count
Source
109
28.1k
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
110
    bool         setProperty( sal_Int32 nPropId, ::Color rValue )
111
6.26k
                            { return setAnyProperty( nPropId, css::uno::Any( rValue ) ); }
112
113
    /** Puts the passed properties into the property set. Tries to use the XMultiPropertySet interface.
114
        @param rPropNames  The property names. MUST be ordered alphabetically.
115
        @param rValues  The related property values. */
116
    void                setProperties(
117
                            const css::uno::Sequence< OUString >& rPropNames,
118
                            const css::uno::Sequence< css::uno::Any >& rValues );
119
120
    /** Puts the passed property map into the property set. Tries to use the XMultiPropertySet interface.
121
        @param rPropertyMap  The property map. */
122
    void                setProperties( const PropertyMap& rPropertyMap );
123
124
#ifdef DBG_UTIL
125
    void dump();
126
#endif
127
128
129
private:
130
    /** Gets the specified property from the property set.
131
        @return  true, if the any could be filled with the property value. */
132
    bool                implGetPropertyValue( css::uno::Any& orValue, const OUString& rPropName ) const;
133
134
    /** Puts the passed any into the property set. */
135
    bool                implSetPropertyValue( const OUString& rPropName, const css::uno::Any& rValue );
136
137
private:
138
    css::uno::Reference< css::beans::XPropertySet >
139
                        mxPropSet;          ///< The mandatory property set interface.
140
    css::uno::Reference< css::beans::XMultiPropertySet >
141
                        mxMultiPropSet;     ///< The optional multi property set interface.
142
    css::uno::Reference< css::beans::XPropertySetInfo >
143
                        mxPropSetInfo;      ///< Property information.
144
};
145
146
147
} // namespace oox
148
149
#endif
150
151
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */