KDE4FPEntry.cxx (b557fc96) | KDE4FPEntry.cxx (8d854f23) |
---|---|
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 --- 32 unchanged lines hidden (view full) --- 41static Reference< XInterface > SAL_CALL createInstance( const Reference< XMultiServiceFactory >& serviceManager ) 42{ 43 return Reference< XInterface >(static_cast< XFilePicker* >( new KDE4FilePicker( serviceManager ) ) ); 44} 45 46// the three uno functions that will be exported 47extern "C" 48{ | 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 --- 32 unchanged lines hidden (view full) --- 41static Reference< XInterface > SAL_CALL createInstance( const Reference< XMultiServiceFactory >& serviceManager ) 42{ 43 return Reference< XInterface >(static_cast< XFilePicker* >( new KDE4FilePicker( serviceManager ) ) ); 44} 45 46// the three uno functions that will be exported 47extern "C" 48{ |
49 void SAL_CALL component_getImplementationEnvironment( const sal_Char ** ppEnvTypeName, uno_Environment ** ) | 49 SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment( const sal_Char ** ppEnvTypeName, uno_Environment ** ) |
50 { 51 *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME; 52 } 53 | 50 { 51 *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME; 52 } 53 |
54 void* SAL_CALL component_getFactory( const sal_Char* pImplName, uno_Interface* pSrvManager, uno_Interface* ) | 54 SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory( const sal_Char* pImplName, uno_Interface* pSrvManager, uno_Interface* ) |
55 { 56 void* pRet = 0; 57 58 if ( pSrvManager && ( 0 == rtl_str_compare( pImplName, FILE_PICKER_IMPL_NAME ) ) ) 59 { 60 Sequence< OUString > aSNS( 1 ); 61 aSNS.getArray( )[0] = OUString::createFromAscii( FILE_PICKER_SERVICE_NAME ); 62 --- 15 unchanged lines hidden --- | 55 { 56 void* pRet = 0; 57 58 if ( pSrvManager && ( 0 == rtl_str_compare( pImplName, FILE_PICKER_IMPL_NAME ) ) ) 59 { 60 Sequence< OUString > aSNS( 1 ); 61 aSNS.getArray( )[0] = OUString::createFromAscii( FILE_PICKER_SERVICE_NAME ); 62 --- 15 unchanged lines hidden --- |