AlterOffice
AlterOffice 2026.2 SDK C/C++ API Reference
weakagg.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 
3 #ifndef INCLUDED_CPPUHELPER_WEAKAGG_HXX
4 #define INCLUDED_CPPUHELPER_WEAKAGG_HXX
5 
6 #include "cppuhelper/weak.hxx"
7 #include "cppuhelper/weakref.hxx"
8 #include "com/sun/star/uno/XAggregation.hpp"
10 
11 
12 namespace cppu
13 {
14 
26  : public ::cppu::OWeakObject
27  , public css::uno::XAggregation
28 {
29 public:
33  {}
34 
38  virtual void SAL_CALL acquire() SAL_NOEXCEPT SAL_OVERRIDE;
42  virtual void SAL_CALL release() SAL_NOEXCEPT SAL_OVERRIDE;
51  virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) SAL_OVERRIDE;
52 
57  virtual void SAL_CALL setDelegator( const css::uno::Reference< css::uno::XInterface > & Delegator ) SAL_OVERRIDE;
63  virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type & rType ) SAL_OVERRIDE;
64 
65 protected:
73 
76  css::uno::WeakReferenceHelper xDelegator;
77 private:
79  OWeakAggObject & operator = ( const OWeakAggObject & rObj )
81 };
82 
83 }
84 
85 #endif
86 
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define SAL_NOEXCEPT
Macro for C++11 "noexcept" vs.
Definition: types.h:396
#define SAL_DELETED_FUNCTION
short-circuit extra-verbose API namespaces
Definition: types.h:358
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:371
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:12
Definition: types.h:339
Definition: Enterable.hxx:11
css::uno::Any queryInterface(const css::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Definition: queryinterface.hxx:23
Base class to implement a UNO object supporting weak references, i.e.
Definition: weak.hxx:28
Base class to implement a UNO object supporting weak references, i.e.
Definition: weakagg.hxx:28
virtual void acquire() SAL_NOEXCEPT SAL_OVERRIDE
If a delegator is set, then the delegators gets acquired.
OWeakAggObject()
Constructor.
Definition: weakagg.hxx:32