2010-10-12 15:53:47 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-10-02 14:13:40 +01: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-16 10:53:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
#include "macbackend.hxx"
|
|
|
|
#include <com/sun/star/registry/XRegistryKey.hpp>
|
|
|
|
|
|
|
|
#include <cppuhelper/implementationentry.hxx>
|
|
|
|
#include <com/sun/star/uno/XComponentContext.hpp>
|
|
|
|
|
2012-06-01 01:04:20 +09:00
|
|
|
namespace uno = com::sun::star::uno;
|
2007-04-16 10:53:18 +00:00
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2017-12-14 09:07:33 +01:00
|
|
|
static uno::Reference<uno::XInterface> createMacOSXBackend(
|
2009-10-01 10:39:31 +02:00
|
|
|
const uno::Reference<uno::XComponentContext>&)
|
2007-04-16 10:53:18 +00:00
|
|
|
{
|
2009-10-01 10:39:31 +02:00
|
|
|
return * MacOSXBackend::createInstance();
|
2007-04-16 10:53:18 +00:00
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2007-04-16 10:53:18 +00:00
|
|
|
static const cppu::ImplementationEntry kImplementations_entries[] =
|
|
|
|
{
|
|
|
|
{
|
|
|
|
createMacOSXBackend,
|
|
|
|
MacOSXBackend::getBackendName,
|
|
|
|
MacOSXBackend::getBackendServiceNames,
|
|
|
|
cppu::createSingleComponentFactory,
|
2015-11-10 16:19:53 +01:00
|
|
|
nullptr,
|
2007-04-16 10:53:18 +00:00
|
|
|
0
|
|
|
|
},
|
2015-11-10 16:19:53 +01:00
|
|
|
{ nullptr, nullptr, nullptr, nullptr, nullptr, 0 }
|
2007-04-16 10:53:18 +00:00
|
|
|
};
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2017-12-14 09:07:33 +01:00
|
|
|
extern "C" SAL_DLLPUBLIC_EXPORT void * macbe1_component_getFactory( const sal_Char *aImplementationName, void *aServiceManager, void *aRegistryKey)
|
2007-04-16 10:53:18 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
return cppu::component_getFactoryHelper(
|
|
|
|
aImplementationName,
|
|
|
|
aServiceManager,
|
|
|
|
aRegistryKey,
|
|
|
|
kImplementations_entries);
|
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2010-10-12 15:53:47 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|