2010-10-12 15:59:00 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2007-04-25 15:00:29 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 23:47:42 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2007-04-25 15:00:29 +00:00
|
|
|
*
|
2010-02-12 15:01:35 +01:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2007-04-25 15:00:29 +00:00
|
|
|
*
|
2008-04-10 23:47:42 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2007-04-25 15:00:29 +00:00
|
|
|
*
|
2008-04-10 23:47:42 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2007-04-25 15:00:29 +00:00
|
|
|
*
|
2008-04-10 23:47:42 +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.
|
2007-04-25 15:00:29 +00:00
|
|
|
*
|
2008-04-10 23:47:42 +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).
|
2007-04-25 15:00:29 +00:00
|
|
|
*
|
2008-04-10 23:47:42 +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.
|
2007-04-25 15:00:29 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
#include "cppuhelper/implementationentry.hxx"
|
|
|
|
#include "com/sun/star/lang/XMultiServiceFactory.hpp"
|
|
|
|
#include "com/sun/star/registry/XRegistryKey.hpp"
|
2007-12-07 09:42:52 +00:00
|
|
|
#include "comphelper/servicedecl.hxx"
|
2007-04-25 15:00:29 +00:00
|
|
|
|
|
|
|
// =============================================================================
|
|
|
|
// component exports
|
|
|
|
// =============================================================================
|
|
|
|
using namespace ::com::sun::star;
|
|
|
|
using namespace ::com::sun::star::uno;
|
|
|
|
|
2007-12-07 09:42:52 +00:00
|
|
|
namespace sdecl = comphelper::service_decl;
|
2007-04-25 15:00:29 +00:00
|
|
|
|
2007-12-07 09:42:52 +00:00
|
|
|
// reference service helper(s)
|
|
|
|
namespace range
|
|
|
|
{
|
|
|
|
extern sdecl::ServiceDecl const serviceDecl;
|
|
|
|
}
|
|
|
|
namespace workbook
|
|
|
|
{
|
|
|
|
extern sdecl::ServiceDecl const serviceDecl;
|
|
|
|
}
|
|
|
|
namespace worksheet
|
|
|
|
{
|
|
|
|
extern sdecl::ServiceDecl const serviceDecl;
|
|
|
|
}
|
2009-02-13 13:03:24 +00:00
|
|
|
namespace window
|
|
|
|
{
|
|
|
|
extern sdecl::ServiceDecl const serviceDecl;
|
|
|
|
}
|
2007-12-07 09:42:52 +00:00
|
|
|
namespace globals
|
|
|
|
{
|
|
|
|
extern sdecl::ServiceDecl const serviceDecl;
|
|
|
|
}
|
2009-09-18 15:24:22 +00:00
|
|
|
namespace hyperlink
|
2009-02-13 13:03:24 +00:00
|
|
|
{
|
|
|
|
extern sdecl::ServiceDecl const serviceDecl;
|
|
|
|
}
|
2009-09-18 15:24:22 +00:00
|
|
|
namespace application
|
|
|
|
{
|
|
|
|
extern sdecl::ServiceDecl const serviceDecl;
|
|
|
|
}
|
2010-07-06 19:34:53 +02:00
|
|
|
namespace vbaeventshelper
|
|
|
|
{
|
|
|
|
extern sdecl::ServiceDecl const serviceDecl;
|
|
|
|
}
|
2009-09-18 15:24:22 +00:00
|
|
|
namespace textframe
|
2009-02-13 13:03:24 +00:00
|
|
|
{
|
|
|
|
extern sdecl::ServiceDecl const serviceDecl;
|
|
|
|
}
|
2007-04-25 15:00:29 +00:00
|
|
|
|
|
|
|
extern "C"
|
|
|
|
{
|
2011-07-28 14:35:37 +02:00
|
|
|
SAL_DLLPUBLIC_EXPORT void * SAL_CALL vbaobj_component_getFactory(
|
2007-04-25 15:00:29 +00:00
|
|
|
const sal_Char * pImplName, lang::XMultiServiceFactory * pServiceManager,
|
|
|
|
registry::XRegistryKey * pRegistryKey )
|
|
|
|
{
|
2011-07-28 14:35:37 +02:00
|
|
|
OSL_TRACE("In vbaobj_component_getFactory for %s", pImplName );
|
2007-12-07 09:42:52 +00:00
|
|
|
void* pRet = component_getFactoryHelper(
|
2009-09-18 15:24:22 +00:00
|
|
|
pImplName, pServiceManager, pRegistryKey, range::serviceDecl, workbook::serviceDecl, worksheet::serviceDecl, globals::serviceDecl, window::serviceDecl, hyperlink::serviceDecl, application::serviceDecl );
|
2010-07-06 19:34:53 +02:00
|
|
|
if( !pRet )
|
|
|
|
pRet = component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey, vbaeventshelper::serviceDecl, textframe::serviceDecl );
|
2007-12-07 09:42:52 +00:00
|
|
|
OSL_TRACE("Ret is 0x%x", pRet);
|
|
|
|
return pRet;
|
2007-04-25 15:00:29 +00:00
|
|
|
}
|
|
|
|
}
|
2010-10-12 15:59:00 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|