Coverage Report

Created: 2026-03-31 11:00

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/include/cppuhelper/weakref.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
/*
21
 * This file is part of LibreOffice published API.
22
 */
23
#ifndef INCLUDED_CPPUHELPER_WEAKREF_HXX
24
#define INCLUDED_CPPUHELPER_WEAKREF_HXX
25
26
#include "sal/config.h"
27
28
#include <cstddef>
29
30
#include "com/sun/star/uno/Reference.hxx"
31
#include "com/sun/star/uno/XInterface.hpp"
32
#include "cppuhelper/cppuhelperdllapi.h"
33
34
35
namespace com
36
{
37
namespace sun
38
{
39
namespace star
40
{
41
namespace uno
42
{
43
44
class OWeakRefListener;
45
class XWeak;
46
47
/** The WeakReferenceHelper holds a weak reference to an object.
48
49
    That object must implement the css::uno::XWeak interface.
50
51
    The WeakReferenceHelper itself is *not* thread safe, just as
52
    Reference itself isn't, but the implementation of the listeners etc.
53
    behind it *is* thread-safe, so multiple threads can have their own
54
    WeakReferences to the same XWeak object.
55
*/
56
class CPPUHELPER_DLLPUBLIC WeakReferenceHelper
57
{
58
public:
59
    /** Default ctor.  Creates an empty weak reference.
60
    */
61
    WeakReferenceHelper()
62
20.8M
        : m_pImpl( NULL )
63
20.8M
        {}
64
65
    /** Copy ctor.  Initialize this reference with the same interface as in rWeakRef.
66
67
        @param rWeakRef another weak ref
68
    */
69
    WeakReferenceHelper( const WeakReferenceHelper & rWeakRef );
70
71
#if defined LIBO_INTERNAL_ONLY
72
410k
    WeakReferenceHelper(WeakReferenceHelper && other) noexcept : m_pImpl(other.m_pImpl)
73
410k
    { other.m_pImpl = nullptr; }
74
#endif
75
76
    /** Initialize this reference with the hard interface reference xInt. If the implementation
77
        behind xInt does not support XWeak or xInt is null then this reference will be null.
78
79
        @param xInt another hard interface reference
80
    */
81
    WeakReferenceHelper( const css::uno::Reference< css::uno::XInterface > & xInt );
82
83
#if defined LIBO_INTERNAL_ONLY
84
    /** Initialize this reference with the hard interface reference xWeak. This
85
         is faster than the XInterface constructor because we can skip doing an
86
         UNO_QUERY.
87
88
        @param xWeak another hard interface reference
89
    */
90
    WeakReferenceHelper( const css::uno::Reference< css::uno::XWeak > & xWeak );
91
#endif
92
93
    /** Releases this reference.
94
    */
95
    ~WeakReferenceHelper();
96
97
    /** Releases this reference and takes over rWeakRef.
98
99
        @param rWeakRef another weak ref
100
    */
101
    WeakReferenceHelper & SAL_CALL operator = ( const WeakReferenceHelper & rWeakRef );
102
103
#if defined LIBO_INTERNAL_ONLY
104
    WeakReferenceHelper & operator =(WeakReferenceHelper && other);
105
#endif
106
107
    /** Releases this reference and takes over hard reference xInt.
108
        If the implementation behind xInt does not support XWeak
109
        or XInt is null, then this reference is null.
110
111
        @param xInt another hard reference
112
    */
113
    WeakReferenceHelper & SAL_CALL operator = (
114
            const css::uno::Reference< css::uno::XInterface > & xInt );
115
116
#if defined LIBO_INTERNAL_ONLY
117
    /** Releases this reference and takes over hard reference xWeak. This
118
         is faster than the XInterface constructor because we can skip doing an
119
         UNO_QUERY.
120
121
        @param xWeak another hard reference
122
    */
123
    WeakReferenceHelper & operator = (
124
            const css::uno::Reference< css::uno::XWeak > & xWeak );
125
#endif
126
127
    /** Returns true if both weak refs reference to the same object.
128
129
        @param rObj another weak ref
130
        @return true, if both weak refs reference to the same object.
131
    */
132
    bool SAL_CALL operator == ( const WeakReferenceHelper & rObj ) const
133
17.7M
        { return (get() == rObj.get()); }
134
135
    /**  Gets a hard reference to the object.
136
137
         @return hard reference or null, if the weakly referenced interface has gone
138
    */
139
    css::uno::Reference< css::uno::XInterface > SAL_CALL get() const;
140
141
    /**  Gets a hard reference to the object.
142
143
         @return hard reference or null, if the weakly referenced interface has gone
144
    */
145
    SAL_CALL operator Reference< XInterface > () const
146
70.3M
        { return get(); }
147
148
    /** Releases this reference.
149
150
        @since UDK 3.2.12
151
    */
152
    void SAL_CALL clear();
153
154
protected:
155
    /// @cond INTERNAL
156
    OWeakRefListener * m_pImpl;
157
    /// @endcond
158
};
159
160
/** The WeakReference<> holds a weak reference to an object.
161
162
    That object must implement the css::uno::XWeak interface.
163
164
    The WeakReference itself is *not* thread safe, just as
165
    Reference itself isn't, but the implementation of the listeners etc.
166
    behind it *is* thread-safe, so multiple threads can have their own
167
    WeakReferences to the same XWeak object.
168
169
    @tparam interface_type type of interface
170
*/
171
template< class interface_type >
172
class SAL_WARN_UNUSED WeakReference : public WeakReferenceHelper
173
{
174
public:
175
    /** Default ctor.  Creates an empty weak reference.
176
    */
177
    WeakReference()
178
7.57M
        : WeakReferenceHelper()
179
7.57M
        {}
com::sun::star::uno::WeakReference<com::sun::star::rendering::XCanvas>::WeakReference()
Line
Count
Source
178
1.67M
        : WeakReferenceHelper()
179
1.67M
        {}
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::container::XNameAccess>::WeakReference()
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::ui::XAcceleratorConfiguration>::WeakReference()
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::ui::XModuleUIConfigurationManagerSupplier>::WeakReference()
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::frame::XModuleManager2>::WeakReference()
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::awt::XControl>::WeakReference()
com::sun::star::uno::WeakReference<com::sun::star::frame::XFrame>::WeakReference()
Line
Count
Source
178
36.7k
        : WeakReferenceHelper()
179
36.7k
        {}
com::sun::star::uno::WeakReference<com::sun::star::uno::XInterface>::WeakReference()
Line
Count
Source
178
2.40M
        : WeakReferenceHelper()
179
2.40M
        {}
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::accessibility::XAccessibleContext>::WeakReference()
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::accessibility::XAccessible>::WeakReference()
com::sun::star::uno::WeakReference<com::sun::star::container::XMap>::WeakReference()
Line
Count
Source
178
737k
        : WeakReferenceHelper()
179
737k
        {}
com::sun::star::uno::WeakReference<com::sun::star::drawing::XShape>::WeakReference()
Line
Count
Source
178
2.23M
        : WeakReferenceHelper()
179
2.23M
        {}
com::sun::star::uno::WeakReference<com::sun::star::container::XIndexContainer>::WeakReference()
Line
Count
Source
178
422k
        : WeakReferenceHelper()
179
422k
        {}
com::sun::star::uno::WeakReference<com::sun::star::sdbc::XResultSet>::WeakReference()
Line
Count
Source
178
10.4k
        : WeakReferenceHelper()
179
10.4k
        {}
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::script::provider::XScriptProvider>::WeakReference()
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::sdbc::XConnection>::WeakReference()
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::ucb::XContent>::WeakReference()
com::sun::star::uno::WeakReference<com::sun::star::sdbc::XDatabaseMetaData>::WeakReference()
Line
Count
Source
178
21.3k
        : WeakReferenceHelper()
179
21.3k
        {}
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::beans::XPropertySet>::WeakReference()
com::sun::star::uno::WeakReference<com::sun::star::awt::XWindow>::WeakReference()
Line
Count
Source
178
8.17k
        : WeakReferenceHelper()
179
8.17k
        {}
com::sun::star::uno::WeakReference<com::sun::star::frame::XTitle>::WeakReference()
Line
Count
Source
178
16.3k
        : WeakReferenceHelper()
179
16.3k
        {}
com::sun::star::uno::WeakReference<com::sun::star::task::XStatusIndicator>::WeakReference()
Line
Count
Source
178
8.17k
        : WeakReferenceHelper()
179
8.17k
        {}
com::sun::star::uno::WeakReference<com::sun::star::frame::XFrame2>::WeakReference()
Line
Count
Source
178
2
        : WeakReferenceHelper()
179
2
        {}
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::frame::XDispatchProvider>::WeakReference()
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::awt::grid::XGridDataModel>::WeakReference()
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::awt::grid::XGridColumnModel>::WeakReference()
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::reflection::XIdlField>::WeakReference()
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::reflection::XIdlMethod>::WeakReference()
com::sun::star::uno::WeakReference<com::sun::star::util::XURLTransformer>::WeakReference()
Line
Count
Source
178
10
        : WeakReferenceHelper()
179
10
        {}
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::frame::XController>::WeakReference()
180
181
    /** Copy ctor.  Initialize this reference with a hard reference.
182
183
        @param rRef another hard ref
184
    */
185
    WeakReference( const Reference< interface_type > & rRef )
186
340k
        : WeakReferenceHelper( rRef )
187
340k
        {}
com::sun::star::uno::WeakReference<com::sun::star::frame::XFrame>::WeakReference(com::sun::star::uno::Reference<com::sun::star::frame::XFrame> const&)
Line
Count
Source
186
65.4k
        : WeakReferenceHelper( rRef )
187
65.4k
        {}
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::frame::XModel>::WeakReference(com::sun::star::uno::Reference<com::sun::star::frame::XModel> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::accessibility::XAccessibleContext>::WeakReference(com::sun::star::uno::Reference<com::sun::star::accessibility::XAccessibleContext> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::accessibility::XAccessible>::WeakReference(com::sun::star::uno::Reference<com::sun::star::accessibility::XAccessible> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::frame::XDispatchProviderInterception>::WeakReference(com::sun::star::uno::Reference<com::sun::star::frame::XDispatchProviderInterception> const&)
com::sun::star::uno::WeakReference<com::sun::star::beans::XPropertySetInfo>::WeakReference(com::sun::star::uno::Reference<com::sun::star::beans::XPropertySetInfo> const&)
Line
Count
Source
186
58
        : WeakReferenceHelper( rRef )
187
58
        {}
com::sun::star::uno::WeakReference<com::sun::star::uno::XInterface>::WeakReference(com::sun::star::uno::Reference<com::sun::star::uno::XInterface> const&)
Line
Count
Source
186
24.5k
        : WeakReferenceHelper( rRef )
187
24.5k
        {}
com::sun::star::uno::WeakReference<com::sun::star::awt::XWindow>::WeakReference(com::sun::star::uno::Reference<com::sun::star::awt::XWindow> const&)
Line
Count
Source
186
8.17k
        : WeakReferenceHelper( rRef )
187
8.17k
        {}
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::lang::XConnectionPointContainer>::WeakReference(com::sun::star::uno::Reference<com::sun::star::lang::XConnectionPointContainer> const&)
com::sun::star::uno::WeakReference<com::sun::star::sdbc::XResultSet>::WeakReference(com::sun::star::uno::Reference<com::sun::star::sdbc::XResultSet> const&)
Line
Count
Source
186
10.4k
        : WeakReferenceHelper( rRef )
187
10.4k
        {}
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::container::XNameAccess>::WeakReference(com::sun::star::uno::Reference<com::sun::star::container::XNameAccess> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::util::XFlushable>::WeakReference(com::sun::star::uno::Reference<com::sun::star::util::XFlushable> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::util::XFlushListener>::WeakReference(com::sun::star::uno::Reference<com::sun::star::util::XFlushListener> const&)
com::sun::star::uno::WeakReference<com::sun::star::sdbc::XConnection>::WeakReference(com::sun::star::uno::Reference<com::sun::star::sdbc::XConnection> const&)
Line
Count
Source
186
10.6k
        : WeakReferenceHelper( rRef )
187
10.6k
        {}
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::ucb::XContent>::WeakReference(com::sun::star::uno::Reference<com::sun::star::ucb::XContent> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::beans::XPropertySet>::WeakReference(com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::util::XChangesListener>::WeakReference(com::sun::star::uno::Reference<com::sun::star::util::XChangesListener> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::document::XDocumentEventListener>::WeakReference(com::sun::star::uno::Reference<com::sun::star::document::XDocumentEventListener> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::util::XUpdatable>::WeakReference(com::sun::star::uno::Reference<com::sun::star::util::XUpdatable> const&)
com::sun::star::uno::WeakReference<com::sun::star::frame::XUntitledNumbers>::WeakReference(com::sun::star::uno::Reference<com::sun::star::frame::XUntitledNumbers> const&)
Line
Count
Source
186
16.3k
        : WeakReferenceHelper( rRef )
187
16.3k
        {}
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::container::XContainerListener>::WeakReference(com::sun::star::uno::Reference<com::sun::star::container::XContainerListener> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::frame::XDispatchProvider>::WeakReference(com::sun::star::uno::Reference<com::sun::star::frame::XDispatchProvider> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::frame::XDesktop>::WeakReference(com::sun::star::uno::Reference<com::sun::star::frame::XDesktop> const&)
com::sun::star::uno::WeakReference<com::sun::star::lang::XComponent>::WeakReference(com::sun::star::uno::Reference<com::sun::star::lang::XComponent> const&)
Line
Count
Source
186
160k
        : WeakReferenceHelper( rRef )
187
160k
        {}
com::sun::star::uno::WeakReference<com::sun::star::embed::XExtendedStorageStream>::WeakReference(com::sun::star::uno::Reference<com::sun::star::embed::XExtendedStorageStream> const&)
Line
Count
Source
186
23.6k
        : WeakReferenceHelper( rRef )
187
23.6k
        {}
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::chart2::data::XDataSequence>::WeakReference(com::sun::star::uno::Reference<com::sun::star::chart2::data::XDataSequence> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::view::XSelectionChangeListener>::WeakReference(com::sun::star::uno::Reference<com::sun::star::view::XSelectionChangeListener> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::container::XSet>::WeakReference(com::sun::star::uno::Reference<com::sun::star::container::XSet> const&)
com::sun::star::uno::WeakReference<com::sun::star::lang::XEventListener>::WeakReference(com::sun::star::uno::Reference<com::sun::star::lang::XEventListener> const&)
Line
Count
Source
186
21.3k
        : WeakReferenceHelper( rRef )
187
21.3k
        {}
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::util::XJobManager>::WeakReference(com::sun::star::uno::Reference<com::sun::star::util::XJobManager> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::util::XModifyListener>::WeakReference(com::sun::star::uno::Reference<com::sun::star::util::XModifyListener> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::frame::XController>::WeakReference(com::sun::star::uno::Reference<com::sun::star::frame::XController> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::deployment::XPackageManager>::WeakReference(com::sun::star::uno::Reference<com::sun::star::deployment::XPackageManager> const&)
188
189
    /** Releases this reference and takes over hard reference xInt.
190
        If the implementation behind xInt does not support XWeak
191
        or XInt is null, then this reference is null.
192
193
        @param xInt another hard reference
194
195
        @since UDK 3.2.12
196
    */
197
    WeakReference & SAL_CALL operator = (
198
            const css::uno::Reference< interface_type > & xInt )
199
677k
        { WeakReferenceHelper::operator=(xInt); return *this; }
com::sun::star::uno::WeakReference<com::sun::star::rendering::XCanvas>::operator=(com::sun::star::uno::Reference<com::sun::star::rendering::XCanvas> const&)
Line
Count
Source
199
12
        { WeakReferenceHelper::operator=(xInt); return *this; }
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::container::XNameAccess>::operator=(com::sun::star::uno::Reference<com::sun::star::container::XNameAccess> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::ui::XAcceleratorConfiguration>::operator=(com::sun::star::uno::Reference<com::sun::star::ui::XAcceleratorConfiguration> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::ui::XModuleUIConfigurationManagerSupplier>::operator=(com::sun::star::uno::Reference<com::sun::star::ui::XModuleUIConfigurationManagerSupplier> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::frame::XModuleManager2>::operator=(com::sun::star::uno::Reference<com::sun::star::frame::XModuleManager2> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::awt::XControl>::operator=(com::sun::star::uno::Reference<com::sun::star::awt::XControl> const&)
com::sun::star::uno::WeakReference<com::sun::star::frame::XFrame>::operator=(com::sun::star::uno::Reference<com::sun::star::frame::XFrame> const&)
Line
Count
Source
199
28.6k
        { WeakReferenceHelper::operator=(xInt); return *this; }
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::container::XMap>::operator=(com::sun::star::uno::Reference<com::sun::star::container::XMap> const&)
com::sun::star::uno::WeakReference<com::sun::star::drawing::XShape>::operator=(com::sun::star::uno::Reference<com::sun::star::drawing::XShape> const&)
Line
Count
Source
199
505k
        { WeakReferenceHelper::operator=(xInt); return *this; }
com::sun::star::uno::WeakReference<com::sun::star::container::XIndexContainer>::operator=(com::sun::star::uno::Reference<com::sun::star::container::XIndexContainer> const&)
Line
Count
Source
199
116
        { WeakReferenceHelper::operator=(xInt); return *this; }
com::sun::star::uno::WeakReference<com::sun::star::uno::XInterface>::operator=(com::sun::star::uno::Reference<com::sun::star::uno::XInterface> const&)
Line
Count
Source
199
113k
        { WeakReferenceHelper::operator=(xInt); return *this; }
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::sdbc::XResultSet>::operator=(com::sun::star::uno::Reference<com::sun::star::sdbc::XResultSet> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::script::provider::XScriptProvider>::operator=(com::sun::star::uno::Reference<com::sun::star::script::provider::XScriptProvider> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::sdbc::XConnection>::operator=(com::sun::star::uno::Reference<com::sun::star::sdbc::XConnection> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::ucb::XContent>::operator=(com::sun::star::uno::Reference<com::sun::star::ucb::XContent> const&)
com::sun::star::uno::WeakReference<com::sun::star::sdbc::XDatabaseMetaData>::operator=(com::sun::star::uno::Reference<com::sun::star::sdbc::XDatabaseMetaData> const&)
Line
Count
Source
199
21.3k
        { WeakReferenceHelper::operator=(xInt); return *this; }
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::beans::XPropertySet>::operator=(com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::awt::XWindow>::operator=(com::sun::star::uno::Reference<com::sun::star::awt::XWindow> const&)
com::sun::star::uno::WeakReference<com::sun::star::frame::XTitle>::operator=(com::sun::star::uno::Reference<com::sun::star::frame::XTitle> const&)
Line
Count
Source
199
8.16k
        { WeakReferenceHelper::operator=(xInt); return *this; }
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::frame::XFrame2>::operator=(com::sun::star::uno::Reference<com::sun::star::frame::XFrame2> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::task::XStatusIndicator>::operator=(com::sun::star::uno::Reference<com::sun::star::task::XStatusIndicator> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::frame::XDispatchProvider>::operator=(com::sun::star::uno::Reference<com::sun::star::frame::XDispatchProvider> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::awt::grid::XGridDataModel>::operator=(com::sun::star::uno::Reference<com::sun::star::awt::grid::XGridDataModel> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::awt::grid::XGridColumnModel>::operator=(com::sun::star::uno::Reference<com::sun::star::awt::grid::XGridColumnModel> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::accessibility::XAccessible>::operator=(com::sun::star::uno::Reference<com::sun::star::accessibility::XAccessible> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::reflection::XIdlField>::operator=(com::sun::star::uno::Reference<com::sun::star::reflection::XIdlField> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::reflection::XIdlMethod>::operator=(com::sun::star::uno::Reference<com::sun::star::reflection::XIdlMethod> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::util::XURLTransformer>::operator=(com::sun::star::uno::Reference<com::sun::star::util::XURLTransformer> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::frame::XController>::operator=(com::sun::star::uno::Reference<com::sun::star::frame::XController> const&)
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::deployment::XPackageManager>::operator=(com::sun::star::uno::Reference<com::sun::star::deployment::XPackageManager> const&)
200
201
#if defined LIBO_INTERNAL_ONLY
202
    /** Releases this reference and takes over hard reference xWeak. This
203
         is faster than the XInterface constructor because we can skip doing an
204
         UNO_QUERY.
205
206
        @param xWeak another hard reference
207
    */
208
    WeakReference & operator = (
209
            const css::uno::Reference< css::uno::XWeak > & xWeak )
210
        { WeakReferenceHelper::operator=(xWeak); return *this; }
211
#endif
212
213
    /**  Gets a hard reference to the object.
214
215
         @return hard reference or null, if the weakly referenced interface has gone
216
    */
217
    SAL_CALL operator Reference< interface_type > () const
218
2.10M
        { return Reference< interface_type >::query( get() ); }
com::sun::star::uno::WeakReference<com::sun::star::rendering::XCanvas>::operator com::sun::star::uno::Reference<com::sun::star::rendering::XCanvas>() const
Line
Count
Source
218
102k
        { return Reference< interface_type >::query( get() ); }
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::container::XNameAccess>::operator com::sun::star::uno::Reference<com::sun::star::container::XNameAccess>() const
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::ui::XAcceleratorConfiguration>::operator com::sun::star::uno::Reference<com::sun::star::ui::XAcceleratorConfiguration>() const
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::ui::XModuleUIConfigurationManagerSupplier>::operator com::sun::star::uno::Reference<com::sun::star::ui::XModuleUIConfigurationManagerSupplier>() const
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::frame::XModuleManager2>::operator com::sun::star::uno::Reference<com::sun::star::frame::XModuleManager2>() const
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::awt::XControl>::operator com::sun::star::uno::Reference<com::sun::star::awt::XControl>() const
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::frame::XModel>::operator com::sun::star::uno::Reference<com::sun::star::frame::XModel>() const
com::sun::star::uno::WeakReference<com::sun::star::uno::XInterface>::operator com::sun::star::uno::Reference<com::sun::star::uno::XInterface>() const
Line
Count
Source
218
272k
        { return Reference< interface_type >::query( get() ); }
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::accessibility::XAccessibleContext>::operator com::sun::star::uno::Reference<com::sun::star::accessibility::XAccessibleContext>() const
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::accessibility::XAccessible>::operator com::sun::star::uno::Reference<com::sun::star::accessibility::XAccessible>() const
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::frame::XDispatchProviderInterception>::operator com::sun::star::uno::Reference<com::sun::star::frame::XDispatchProviderInterception>() const
com::sun::star::uno::WeakReference<com::sun::star::drawing::XShape>::operator com::sun::star::uno::Reference<com::sun::star::drawing::XShape>() const
Line
Count
Source
218
473k
        { return Reference< interface_type >::query( get() ); }
com::sun::star::uno::WeakReference<com::sun::star::container::XIndexContainer>::operator com::sun::star::uno::Reference<com::sun::star::container::XIndexContainer>() const
Line
Count
Source
218
116
        { return Reference< interface_type >::query( get() ); }
com::sun::star::uno::WeakReference<com::sun::star::beans::XPropertySetInfo>::operator com::sun::star::uno::Reference<com::sun::star::beans::XPropertySetInfo>() const
Line
Count
Source
218
58
        { return Reference< interface_type >::query( get() ); }
com::sun::star::uno::WeakReference<com::sun::star::sdbc::XConnection>::operator com::sun::star::uno::Reference<com::sun::star::sdbc::XConnection>() const
Line
Count
Source
218
21.3k
        { return Reference< interface_type >::query( get() ); }
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::script::provider::XScriptProvider>::operator com::sun::star::uno::Reference<com::sun::star::script::provider::XScriptProvider>() const
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::util::XFlushListener>::operator com::sun::star::uno::Reference<com::sun::star::util::XFlushListener>() const
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::util::XFlushable>::operator com::sun::star::uno::Reference<com::sun::star::util::XFlushable>() const
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::ucb::XContent>::operator com::sun::star::uno::Reference<com::sun::star::ucb::XContent>() const
com::sun::star::uno::WeakReference<com::sun::star::sdbc::XDatabaseMetaData>::operator com::sun::star::uno::Reference<com::sun::star::sdbc::XDatabaseMetaData>() const
Line
Count
Source
218
895k
        { return Reference< interface_type >::query( get() ); }
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::beans::XPropertySet>::operator com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet>() const
com::sun::star::uno::WeakReference<com::sun::star::frame::XFrame>::operator com::sun::star::uno::Reference<com::sun::star::frame::XFrame>() const
Line
Count
Source
218
20.4k
        { return Reference< interface_type >::query( get() ); }
com::sun::star::uno::WeakReference<com::sun::star::awt::XWindow>::operator com::sun::star::uno::Reference<com::sun::star::awt::XWindow>() const
Line
Count
Source
218
8.17k
        { return Reference< interface_type >::query( get() ); }
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::util::XUpdatable>::operator com::sun::star::uno::Reference<com::sun::star::util::XUpdatable>() const
com::sun::star::uno::WeakReference<com::sun::star::frame::XTitle>::operator com::sun::star::uno::Reference<com::sun::star::frame::XTitle>() const
Line
Count
Source
218
20.4k
        { return Reference< interface_type >::query( get() ); }
com::sun::star::uno::WeakReference<com::sun::star::frame::XUntitledNumbers>::operator com::sun::star::uno::Reference<com::sun::star::frame::XUntitledNumbers>() const
Line
Count
Source
218
20.4k
        { return Reference< interface_type >::query( get() ); }
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::frame::XDispatchProvider>::operator com::sun::star::uno::Reference<com::sun::star::frame::XDispatchProvider>() const
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::awt::grid::XGridDataModel>::operator com::sun::star::uno::Reference<com::sun::star::awt::grid::XGridDataModel>() const
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::awt::grid::XGridColumnModel>::operator com::sun::star::uno::Reference<com::sun::star::awt::grid::XGridColumnModel>() const
com::sun::star::uno::WeakReference<com::sun::star::lang::XComponent>::operator com::sun::star::uno::Reference<com::sun::star::lang::XComponent>() const
Line
Count
Source
218
251k
        { return Reference< interface_type >::query( get() ); }
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::chart2::data::XDataSequence>::operator com::sun::star::uno::Reference<com::sun::star::chart2::data::XDataSequence>() const
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::view::XSelectionChangeListener>::operator com::sun::star::uno::Reference<com::sun::star::view::XSelectionChangeListener>() const
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::reflection::XIdlField>::operator com::sun::star::uno::Reference<com::sun::star::reflection::XIdlField>() const
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::reflection::XIdlMethod>::operator com::sun::star::uno::Reference<com::sun::star::reflection::XIdlMethod>() const
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::container::XSet>::operator com::sun::star::uno::Reference<com::sun::star::container::XSet>() const
com::sun::star::uno::WeakReference<com::sun::star::lang::XEventListener>::operator com::sun::star::uno::Reference<com::sun::star::lang::XEventListener>() const
Line
Count
Source
218
21.3k
        { return Reference< interface_type >::query( get() ); }
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::util::XJobManager>::operator com::sun::star::uno::Reference<com::sun::star::util::XJobManager>() const
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::util::XURLTransformer>::operator com::sun::star::uno::Reference<com::sun::star::util::XURLTransformer>() const
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::util::XModifyListener>::operator com::sun::star::uno::Reference<com::sun::star::util::XModifyListener>() const
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::frame::XController>::operator com::sun::star::uno::Reference<com::sun::star::frame::XController>() const
Unexecuted instantiation: com::sun::star::uno::WeakReference<com::sun::star::deployment::XPackageManager>::operator com::sun::star::uno::Reference<com::sun::star::deployment::XPackageManager>() const
219
};
220
221
}
222
}
223
}
224
}
225
226
#endif
227
228
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */