LibreOffice Module vbahelper (master) 1
Classes | Macros
vbahelperinterface.hxx File Reference
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/uno/RuntimeException.hpp>
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/weakref.hxx>
#include <ooo/vba/XHelperInterface.hpp>
#include <rtl/ustring.hxx>
#include <sal/types.h>
#include <utility>
#include <vbahelper/vbahelper.hxx>
Include dependency graph for vbahelperinterface.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  InheritedHelperInterfaceImpl< Ifc >
 
class  InheritedHelperInterfaceWeakImpl< Ifc >
 

Macros

#define VBAHELPER_DECL_XHELPERINTERFACE
 Helper macro to declare the methods 'getServiceImplName()' and 'getServiceNames()' of the 'ooo.vba.XHelperInterface' interface in a class declaration. More...
 
#define VBAHELPER_IMPL_XHELPERINTERFACE(classname, servicename)
 Helper macro to implement the methods 'getServiceImplName()' and 'getServiceNames()' of the 'ooo.vba.XHelperInterface' interface. More...
 

Macro Definition Documentation

◆ VBAHELPER_DECL_XHELPERINTERFACE

#define VBAHELPER_DECL_XHELPERINTERFACE
Value:
virtual OUString getServiceImplName() override; \
virtual css::uno::Sequence< OUString > getServiceNames() override;

Helper macro to declare the methods 'getServiceImplName()' and 'getServiceNames()' of the 'ooo.vba.XHelperInterface' interface in a class declaration.

Definition at line 120 of file vbahelperinterface.hxx.

◆ VBAHELPER_IMPL_XHELPERINTERFACE

#define VBAHELPER_IMPL_XHELPERINTERFACE (   classname,
  servicename 
)
Value:
OUString classname::getServiceImplName() \
{ \
return #classname; \
} \
css::uno::Sequence< OUString > classname::getServiceNames() \
{ \
static const css::uno::Sequence< OUString > saServiceNames { servicename }; \
return saServiceNames; \
}

Helper macro to implement the methods 'getServiceImplName()' and 'getServiceNames()' of the 'ooo.vba.XHelperInterface' interface.

Will return the class name as service implementation name.

Definition at line 129 of file vbahelperinterface.hxx.