factory.cxx (9f62ea84) factory.cxx (498ce991)
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

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

66
67extern Sequence< OUString > SAL_CALL DragSource_getSupportedServiceNames();
68extern OUString SAL_CALL DragSource_getImplementationName();
69extern Reference< XInterface > SAL_CALL DragSource_createInstance( const Reference< XMultiServiceFactory > & );
70
71extern Sequence< OUString > SAL_CALL DropTarget_getSupportedServiceNames();
72extern OUString SAL_CALL DropTarget_getImplementationName();
73extern Reference< XInterface > SAL_CALL DropTarget_createInstance( const Reference< XMultiServiceFactory > & );
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

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

66
67extern Sequence< OUString > SAL_CALL DragSource_getSupportedServiceNames();
68extern OUString SAL_CALL DragSource_getImplementationName();
69extern Reference< XInterface > SAL_CALL DragSource_createInstance( const Reference< XMultiServiceFactory > & );
70
71extern Sequence< OUString > SAL_CALL DropTarget_getSupportedServiceNames();
72extern OUString SAL_CALL DropTarget_getImplementationName();
73extern Reference< XInterface > SAL_CALL DropTarget_createInstance( const Reference< XMultiServiceFactory > & );
74
75namespace rsvg
76{
77 extern Sequence< OUString > SAL_CALL Rasterizer_getSupportedServiceNames();
78 extern OUString SAL_CALL Rasterizer_getImplementationName();
79 extern Reference< XInterface > SAL_CALL Rasterizer_createInstance( const Reference< XMultiServiceFactory > & );
80}
74}
81}
82
83extern "C" {
84
85 VCL_DLLPUBLIC void SAL_CALL component_getImplementationEnvironment(
86 const sal_Char** ppEnvTypeName,
87 uno_Environment** /*ppEnv*/ )
88 {
89 *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;

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

138 vcl::DragSource_getSupportedServiceNames() );
139 }
140 else if( vcl::DropTarget_getImplementationName().equalsAscii( pImplementationName ) )
141 {
142 xFactory = ::cppu::createSingleFactory(
143 xMgr, vcl::DropTarget_getImplementationName(), vcl::DropTarget_createInstance,
144 vcl::DropTarget_getSupportedServiceNames() );
145 }
75
76extern "C" {
77
78 VCL_DLLPUBLIC void SAL_CALL component_getImplementationEnvironment(
79 const sal_Char** ppEnvTypeName,
80 uno_Environment** /*ppEnv*/ )
81 {
82 *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;

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

131 vcl::DragSource_getSupportedServiceNames() );
132 }
133 else if( vcl::DropTarget_getImplementationName().equalsAscii( pImplementationName ) )
134 {
135 xFactory = ::cppu::createSingleFactory(
136 xMgr, vcl::DropTarget_getImplementationName(), vcl::DropTarget_createInstance,
137 vcl::DropTarget_getSupportedServiceNames() );
138 }
146 else if( vcl::rsvg::Rasterizer_getImplementationName().equalsAscii( pImplementationName ) )
147 {
148 xFactory = ::cppu::createSingleFactory(
149 xMgr, vcl::rsvg::Rasterizer_getImplementationName(), vcl::rsvg::Rasterizer_createInstance,
150 vcl::rsvg::Rasterizer_getSupportedServiceNames() );
151 }
152 if( xFactory.is() )
153 {
154 xFactory->acquire();
155 pRet = xFactory.get();
156 }
157 }
158 return pRet;
159 }
160
161} /* extern "C" */
139 if( xFactory.is() )
140 {
141 xFactory->acquire();
142 pRet = xFactory.get();
143 }
144 }
145 return pRet;
146 }
147
148} /* extern "C" */