LibreOffice Module vcl (master)  1
Macros
builderfactory.hxx File Reference
#include <vcl/vclptr.hxx>
#include <vcl/builder.hxx>
Include dependency graph for builderfactory.hxx:
This graph shows which files directly or indirectly include this file:

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

#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); \
}
OUString typeName
std::map< OString, OUString > stringmap
Definition: builder.hxx:66
static VclPtr< reference_type > Create(Arg &&...arg)
A construction helper for VclPtr.
Definition: vclptr.hxx:127
typedef void(CALLTYPE *GetFuncDataPtr)(sal_uInt16 &nNo

Definition at line 16 of file builderfactory.hxx.

#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); \
}
OUString typeName
std::map< OString, OUString > stringmap
Definition: builder.hxx:66
static VclPtr< reference_type > Create(Arg &&...arg)
A construction helper for VclPtr.
Definition: vclptr.hxx:127
typedef void(CALLTYPE *GetFuncDataPtr)(sal_uInt16 &nNo

Definition at line 25 of file builderfactory.hxx.

#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)>); \
OUString sBorder = BuilderUtils::extractCustomProperty(rMap); \
WinBits wb = arg2; \
if (!sBorder.isEmpty()) \
wb |= WB_BORDER; \
rRet = VclPtr<typeName>::Create(pParent,wb); \
}
OUString typeName
OUString extractCustomProperty(VclBuilder::stringmap &rMap)
Definition: builder.cxx:2446
std::map< OString, OUString > stringmap
Definition: builder.hxx:66
static VclPtr< reference_type > Create(Arg &&...arg)
A construction helper for VclPtr.
Definition: vclptr.hxx:127

Definition at line 34 of file builderfactory.hxx.

#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.