2010-10-12 08:59:00 -05:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2004-05-10 09:55:52 -05:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 15:50:18 -05:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2004-05-10 09:55:52 -05:00
|
|
|
*
|
2010-02-12 08:01:35 -06:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2004-05-10 09:55:52 -05:00
|
|
|
*
|
2008-04-10 15:50:18 -05:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2004-05-10 09:55:52 -05:00
|
|
|
*
|
2008-04-10 15:50:18 -05:00
|
|
|
* This file is part of OpenOffice.org.
|
2004-05-10 09:55:52 -05:00
|
|
|
*
|
2008-04-10 15:50:18 -05: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-05-10 09:55:52 -05:00
|
|
|
*
|
2008-04-10 15:50:18 -05: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-05-10 09:55:52 -05:00
|
|
|
*
|
2008-04-10 15:50:18 -05: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-05-10 09:55:52 -05:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
2006-07-21 07:14:23 -05:00
|
|
|
// MARKER(update_precomp.py): autogen include statement, do not remove
|
|
|
|
#include "precompiled_sc.hxx"
|
|
|
|
|
2004-05-10 09:55:52 -05:00
|
|
|
#include "scabstdlg.hxx"
|
|
|
|
|
|
|
|
#include <osl/module.hxx>
|
2006-09-27 03:48:41 -05:00
|
|
|
#include <rtl/ustrbuf.hxx>
|
|
|
|
|
|
|
|
using ::rtl::OUStringBuffer;
|
2004-05-10 09:55:52 -05:00
|
|
|
|
|
|
|
typedef ScAbstractDialogFactory* (__LOADONCALLAPI *ScFuncPtrCreateDialogFactory)();
|
|
|
|
|
2007-10-15 07:13:05 -05:00
|
|
|
extern "C" { static void SAL_CALL thisModule() {} }
|
|
|
|
|
2004-05-10 09:55:52 -05:00
|
|
|
ScAbstractDialogFactory* ScAbstractDialogFactory::Create()
|
|
|
|
{
|
|
|
|
ScFuncPtrCreateDialogFactory fp = 0;
|
|
|
|
static ::osl::Module aDialogLibrary;
|
2006-09-27 03:48:41 -05:00
|
|
|
|
|
|
|
OUStringBuffer aStrBuf;
|
2006-09-28 10:58:14 -05:00
|
|
|
aStrBuf.appendAscii( SVLIBRARY("scui") );
|
2006-09-27 03:48:41 -05:00
|
|
|
|
2007-10-15 07:13:05 -05:00
|
|
|
if ( aDialogLibrary.is() || aDialogLibrary.loadRelative( &thisModule, aStrBuf.makeStringAndClear() ) )
|
2004-05-10 09:55:52 -05:00
|
|
|
fp = ( ScAbstractDialogFactory* (__LOADONCALLAPI*)() )
|
2010-10-31 15:26:00 -05:00
|
|
|
aDialogLibrary.getFunctionSymbol( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CreateDialogFactory")) );
|
2004-05-10 09:55:52 -05:00
|
|
|
if ( fp )
|
|
|
|
return fp();
|
|
|
|
return 0;
|
|
|
|
}
|
2010-10-12 08:59:00 -05:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|