2010-10-12 15:59:00 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-11-30 12:23:25 +00:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
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: */
|