1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #ifndef INCLUDED_VCL_BUILDER_FACTORY_HXX
11 #define INCLUDED_VCL_BUILDER_FACTORY_HXX
13 #include <vcl/vclptr.hxx>
14 #include <vcl/builder.hxx>
16 #define VCL_BUILDER_DECL_FACTORY(typeName) \
17 extern "C" SAL_DLLPUBLIC_EXPORT void SAL_CALL \
18 make##typeName(VclPtr<vcl::Window> &rRet, VclPtr<vcl::Window> &pParent, VclBuilder::stringmap &rMap)
20 #define VCL_BUILDER_FACTORY(typeName) \
21 VCL_BUILDER_DECL_FACTORY(typeName) \
24 rRet = VclPtr<typeName>::Create(pParent); \
27 #define VCL_BUILDER_FACTORY_ARGS(typeName,arg1) \
28 VCL_BUILDER_DECL_FACTORY(typeName) \
31 rRet = VclPtr<typeName>::Create(pParent,arg1); \
34 #define VCL_BUILDER_FACTORY_CONSTRUCTOR(typeName,arg2) \
35 VCL_BUILDER_DECL_FACTORY(typeName) \
37 OUString sBorder = VclBuilder::extractCustomProperty(rMap); \
39 if (!sBorder.isEmpty()) \
41 rRet = VclPtr<typeName>::Create(pParent,wb); \
46 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */