2010-10-14 08:27:31 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2004-01-05 10:27:26 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-11 08:04:44 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2004-01-05 10:27:26 +00:00
|
|
|
*
|
2010-02-12 15:01:35 +01:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2004-01-05 10:27:26 +00:00
|
|
|
*
|
2008-04-11 08:04:44 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2004-01-05 10:27:26 +00:00
|
|
|
*
|
2008-04-11 08:04:44 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2004-01-05 10:27:26 +00:00
|
|
|
*
|
2008-04-11 08:04:44 +00:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2004-01-05 10:27:26 +00:00
|
|
|
*
|
2008-04-11 08:04:44 +00:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2004-01-05 10:27:26 +00:00
|
|
|
*
|
2008-04-11 08:04:44 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2004-01-05 10:27:26 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
2006-09-17 11:14:58 +00:00
|
|
|
|
2007-06-27 19:27:32 +00:00
|
|
|
#include <vcl/abstdlg.hxx>
|
2004-01-05 10:27:26 +00:00
|
|
|
|
|
|
|
#include <osl/module.hxx>
|
|
|
|
#include <tools/string.hxx>
|
|
|
|
|
|
|
|
typedef VclAbstractDialogFactory* (__LOADONCALLAPI *FuncPtrCreateDialogFactory)();
|
|
|
|
|
2007-10-15 12:07:27 +00:00
|
|
|
extern "C" { static void SAL_CALL thisModule() {} }
|
|
|
|
|
2004-01-05 10:27:26 +00:00
|
|
|
VclAbstractDialogFactory* VclAbstractDialogFactory::Create()
|
|
|
|
{
|
|
|
|
FuncPtrCreateDialogFactory fp = 0;
|
|
|
|
static ::osl::Module aDialogLibrary;
|
2011-05-31 10:45:54 +02:00
|
|
|
if ( aDialogLibrary.is() || aDialogLibrary.loadRelative( &thisModule, String( RTL_CONSTASCII_USTRINGPARAM( CUI_DLL_NAME ) ),
|
2011-04-29 14:07:22 +02:00
|
|
|
SAL_LOADMODULE_GLOBAL | SAL_LOADMODULE_LAZY ) )
|
2004-01-05 10:27:26 +00:00
|
|
|
fp = ( VclAbstractDialogFactory* (__LOADONCALLAPI*)() )
|
2010-11-22 23:04:19 +01:00
|
|
|
aDialogLibrary.getFunctionSymbol( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CreateDialogFactory")) );
|
2004-01-05 10:27:26 +00:00
|
|
|
if ( fp )
|
|
|
|
return fp();
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
VclAbstractDialog::~VclAbstractDialog()
|
|
|
|
{
|
|
|
|
}
|
2006-11-22 09:39:50 +00:00
|
|
|
|
|
|
|
// virtual
|
|
|
|
VclAbstractDialog2::~VclAbstractDialog2()
|
|
|
|
{
|
|
|
|
}
|
2010-01-19 17:27:28 +01:00
|
|
|
|
|
|
|
VclAbstractDialogFactory::~VclAbstractDialogFactory()
|
|
|
|
{
|
|
|
|
}
|
2010-10-14 08:27:31 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|