19 #ifndef INCLUDED_SW_INC_UNOBASECLASS_HXX
20 #define INCLUDED_SW_INC_UNOBASECLASS_HXX
23 #include <com/sun/star/lang/XUnoTunnel.hpp>
24 #include <com/sun/star/lang/XServiceInfo.hpp>
25 #include <com/sun/star/container/XEnumeration.hpp>
35 typedef ::cppu::WeakImplHelper
36 < css::lang::XServiceInfo
37 , css::container::XEnumeration
81 UnoActionRemoveContext(
SwDoc *
const pDoc);
83 ~UnoActionRemoveContext() COVERITY_NOEXCEPT_FALSE;
98 using UnoImplPtr = std::unique_ptr<T, UnoImplPtrDeleter<T> >;
100 template<
class C >
C *
103 if (!xUnoTunnel.is()) {
return 0; }
104 C *
const pC( reinterpret_cast< C* >(
105 ::sal::static_int_cast< sal_IntPtr >(
106 xUnoTunnel->getSomething(C::getUnoTunnelId()))));
110 template<
class C > sal_Int64
114 if (isUnoTunnelId<C>(rId))
116 return ::sal::static_int_cast< sal_Int64 >(
117 reinterpret_cast< sal_IntPtr
>(pThis) );
124 #endif // INCLUDED_SW_INC_UNOBASECLASS_HXX
C * UnoTunnelGetImplementation(css::uno::Reference< css::lang::XUnoTunnel > const &xUnoTunnel)
~UnoActionContext() COVERITY_NOEXCEPT_FALSE
UnoActionContext(SwDoc *const pDoc)
sal_Int64 UnoTunnelImpl(const css::uno::Sequence< sal_Int8 > &rId, C *const pThis)
Dialog to specify the properties of date form field.
void operator()(T *pUnoImpl)
std::unique_ptr< T, UnoImplPtrDeleter< T > > UnoImplPtr
Smart pointer class ensuring that the pointed object is deleted with a locked SolarMutex.
::cppu::WeakImplHelper< css::lang::XServiceInfo, css::container::XEnumeration > SwSimpleEnumeration_Base