LibreOffice Module vcl (master) 1
Macros
builderfactory.hxx File Reference
#include <vcl/vclptr.hxx>
#include <vcl/builder.hxx>
Include dependency graph for builderfactory.hxx:

Go to the source code of this file.

Macros

#define VCL_BUILDER_FACTORY(typeName)
 
#define VCL_BUILDER_FACTORY_ARGS(typeName, arg1)
 
#define VCL_BUILDER_FACTORY_CONSTRUCTOR(typeName, arg2)
 
#define VCL_BUILDER_FACTORY_EXTERN(typeName)    extern "C" void make##typeName(VclPtr<vcl::Window> & rRet, const VclPtr<vcl::Window> & pParent, VclBuilder::stringmap & rMap)
 

Macro Definition Documentation

◆ VCL_BUILDER_FACTORY

#define VCL_BUILDER_FACTORY (   typeName)
Value:
extern "C" SAL_DLLPUBLIC_EXPORT void make##typeName(VclPtr<vcl::Window> & rRet, const VclPtr<vcl::Window> & pParent, VclBuilder::stringmap & rMap) \
{ \
static_assert(std::is_same_v<std::remove_pointer_t<VclBuilder::customMakeWidget>, \
decltype(make##typeName)>); \
(void)rMap; \
rRet = VclPtr<typeName>::Create(pParent); \
}
std::map< OUString, OUString > stringmap
Definition: builder.hxx:71
static VclPtr< reference_type > Create(Arg &&... arg)
A construction helper for VclPtr.
Definition: vclptr.hxx:127
OUString typeName

Definition at line 16 of file builderfactory.hxx.

◆ VCL_BUILDER_FACTORY_ARGS

#define VCL_BUILDER_FACTORY_ARGS (   typeName,
  arg1 
)
Value:
extern "C" SAL_DLLPUBLIC_EXPORT void make##typeName(VclPtr<vcl::Window> & rRet, const VclPtr<vcl::Window> & pParent, VclBuilder::stringmap & rMap) \
{ \
static_assert(std::is_same_v<std::remove_pointer_t<VclBuilder::customMakeWidget>, \
decltype(make##typeName)>); \
(void)rMap; \
rRet = VclPtr<typeName>::Create(pParent,arg1); \
}

Definition at line 25 of file builderfactory.hxx.

◆ VCL_BUILDER_FACTORY_CONSTRUCTOR

#define VCL_BUILDER_FACTORY_CONSTRUCTOR (   typeName,
  arg2 
)
Value:
extern "C" SAL_DLLPUBLIC_EXPORT void make##typeName(VclPtr<vcl::Window> & rRet, const VclPtr<vcl::Window> & pParent, VclBuilder::stringmap & rMap) \
{ \
static_assert(std::is_same_v<std::remove_pointer_t<VclBuilder::customMakeWidget>, \
decltype(make##typeName)>); \
WinBits wb = arg2; \
if (!sBorder.isEmpty()) \
wb |= WB_BORDER; \
rRet = VclPtr<typeName>::Create(pParent,wb); \
}
const char sBorder[]
OUString extractCustomProperty(VclBuilder::stringmap &rMap)
Definition: builder.cxx:2267
WinBits const WB_BORDER
Definition: wintypes.hxx:115

Definition at line 34 of file builderfactory.hxx.

◆ VCL_BUILDER_FACTORY_EXTERN

#define VCL_BUILDER_FACTORY_EXTERN (   typeName)     extern "C" void make##typeName(VclPtr<vcl::Window> & rRet, const VclPtr<vcl::Window> & pParent, VclBuilder::stringmap & rMap)

Definition at line 46 of file builderfactory.hxx.