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 .
|
|
|
|
*/
|
2004-09-17 12:04:45 +00:00
|
|
|
|
2006-09-17 00:40:04 +00:00
|
|
|
|
2004-09-17 12:04:45 +00:00
|
|
|
#include <wininetbackend.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 ;
|
2004-09-17 12:04:45 +00:00
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2004-09-17 12:04:45 +00:00
|
|
|
|
|
|
|
static uno::Reference<uno::XInterface> SAL_CALL createWinInetBackend(
|
2009-10-01 10:39:31 +02:00
|
|
|
const uno::Reference<uno::XComponentContext>&){
|
2004-09-17 12:04:45 +00:00
|
|
|
|
2009-10-01 10:39:31 +02:00
|
|
|
return * WinInetBackend::createInstance();
|
2004-09-17 12:04:45 +00:00
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2004-09-17 12:04:45 +00:00
|
|
|
|
|
|
|
static const cppu::ImplementationEntry kImplementations_entries[] =
|
|
|
|
{
|
|
|
|
{
|
|
|
|
createWinInetBackend,
|
|
|
|
WinInetBackend::getBackendName,
|
|
|
|
WinInetBackend::getBackendServiceNames,
|
|
|
|
cppu::createSingleComponentFactory,
|
|
|
|
NULL,
|
|
|
|
0
|
|
|
|
},
|
2012-03-08 14:06:02 +01:00
|
|
|
{ NULL, NULL, NULL, NULL, NULL, 0 }
|
2004-09-17 12:04:45 +00:00
|
|
|
} ;
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2004-09-17 12:04:45 +00:00
|
|
|
|
2012-10-02 12:04:10 +03:00
|
|
|
extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL wininetbe1_component_getFactory( const sal_Char *aImplementationName,
|
2004-09-17 12:04:45 +00:00
|
|
|
void *aServiceManager,
|
|
|
|
void *aRegistryKey) {
|
|
|
|
|
|
|
|
return cppu::component_getFactoryHelper(
|
|
|
|
aImplementationName,
|
|
|
|
aServiceManager,
|
|
|
|
aRegistryKey,
|
|
|
|
kImplementations_entries) ;
|
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2004-09-17 12:04:45 +00:00
|
|
|
|
2010-10-12 15:53:47 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|