register.cxx (a3872823) register.cxx (873c956e)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 16 unchanged lines hidden (view full) ---

25#include "precompiled_package.hxx"
26
27
28#include <com/sun/star/registry/XRegistryKey.hpp>
29#include <com/sun/star/registry/InvalidRegistryException.hpp>
30#include <cppuhelper/factory.hxx>
31
32#include "xfactory.hxx"
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 16 unchanged lines hidden (view full) ---

25#include "precompiled_package.hxx"
26
27
28#include <com/sun/star/registry/XRegistryKey.hpp>
29#include <com/sun/star/registry/InvalidRegistryException.hpp>
30#include <cppuhelper/factory.hxx>
31
32#include "xfactory.hxx"
33#include "package/dllapi.h"
33
34using namespace ::com::sun::star;
35
36
37extern "C" {
38
34
35using namespace ::com::sun::star;
36
37
38extern "C" {
39
39void SAL_CALL component_getImplementationEnvironment( const sal_Char ** ppEnvTypeName, uno_Environment ** /*ppEnv*/ )
40PACKAGE_DLLPUBLIC void SAL_CALL component_getImplementationEnvironment( const sal_Char ** ppEnvTypeName, uno_Environment ** /*ppEnv*/ )
40{
41 *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
42}
43
41{
42 *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
43}
44
44void * SAL_CALL component_getFactory( const sal_Char * pImplName, void * pServiceManager, void * /*pRegistryKey*/ )
45PACKAGE_DLLPUBLIC void * SAL_CALL component_getFactory( const sal_Char * pImplName, void * pServiceManager, void * /*pRegistryKey*/ )
45{
46 void * pRet = 0;
47
48 ::rtl::OUString aImplName( ::rtl::OUString::createFromAscii( pImplName ) );
49 uno::Reference< lang::XSingleServiceFactory > xFactory;
50
51 if ( pServiceManager && aImplName.equals( OStorageFactory::impl_staticGetImplementationName() ) )
52 {

--- 17 unchanged lines hidden ---
46{
47 void * pRet = 0;
48
49 ::rtl::OUString aImplName( ::rtl::OUString::createFromAscii( pImplName ) );
50 uno::Reference< lang::XSingleServiceFactory > xFactory;
51
52 if ( pServiceManager && aImplName.equals( OStorageFactory::impl_staticGetImplementationName() ) )
53 {

--- 17 unchanged lines hidden ---