dndentry.cxx (48123e16) | dndentry.cxx (e8183b3f) |
---|---|
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 --- 39 unchanged lines hidden (view full) --- 48{ 49 DropTarget* pTarget= new DropTarget( rServiceManager ); 50 return Reference<XInterface>( static_cast<XInitialization*>(pTarget), UNO_QUERY); 51} 52 53 54extern "C" 55{ | 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 --- 39 unchanged lines hidden (view full) --- 48{ 49 DropTarget* pTarget= new DropTarget( rServiceManager ); 50 return Reference<XInterface>( static_cast<XInitialization*>(pTarget), UNO_QUERY); 51} 52 53 54extern "C" 55{ |
56sal_Bool SAL_CALL component_canUnload( TimeValue *pTime ) | 56SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL component_canUnload( TimeValue *pTime ) |
57{ 58 return g_moduleCount.canUnload( &g_moduleCount , pTime ); 59} 60 61//---------------------------------------------------------------------- 62// component_getImplementationEnvironment 63//---------------------------------------------------------------------- 64 | 57{ 58 return g_moduleCount.canUnload( &g_moduleCount , pTime ); 59} 60 61//---------------------------------------------------------------------- 62// component_getImplementationEnvironment 63//---------------------------------------------------------------------- 64 |
65void SAL_CALL component_getImplementationEnvironment( | 65SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment( |
66 const sal_Char ** ppEnvTypeName, uno_Environment ** /*ppEnv*/ ) 67{ 68 *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME; 69} 70 71//---------------------------------------------------------------------- 72// component_getFactory 73// returns a factory to create XFilePicker-Services 74//---------------------------------------------------------------------- 75 | 66 const sal_Char ** ppEnvTypeName, uno_Environment ** /*ppEnv*/ ) 67{ 68 *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME; 69} 70 71//---------------------------------------------------------------------- 72// component_getFactory 73// returns a factory to create XFilePicker-Services 74//---------------------------------------------------------------------- 75 |
76void* SAL_CALL component_getFactory( const sal_Char* pImplName, uno_Interface* pSrvManager, uno_Interface* /*pRegistryKey*/ ) | 76SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory( const sal_Char* pImplName, uno_Interface* pSrvManager, uno_Interface* /*pRegistryKey*/ ) |
77{ 78 void* pRet = 0; 79 Reference< XSingleServiceFactory > xFactory; 80 81 if ( pSrvManager && ( 0 == rtl_str_compare( pImplName, DNDSOURCE_IMPL_NAME ) ) ) 82 { 83 Sequence< OUString > aSNS( 1 ); 84 aSNS.getArray( )[0] = OUString( RTL_CONSTASCII_USTRINGPARAM( DNDSOURCE_SERVICE_NAME ) ); --- 32 unchanged lines hidden --- | 77{ 78 void* pRet = 0; 79 Reference< XSingleServiceFactory > xFactory; 80 81 if ( pSrvManager && ( 0 == rtl_str_compare( pImplName, DNDSOURCE_IMPL_NAME ) ) ) 82 { 83 Sequence< OUString > aSNS( 1 ); 84 aSNS.getArray( )[0] = OUString( RTL_CONSTASCII_USTRINGPARAM( DNDSOURCE_SERVICE_NAME ) ); --- 32 unchanged lines hidden --- |