Os2Service.cxx (e18b2daf) Os2Service.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

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

43 return Reference< XInterface >( static_cast< XClipboard* >( new Os2Clipboard() ) );
44}
45
46} // namespace os2
47
48extern "C"
49{
50
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

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

43 return Reference< XInterface >( static_cast< XClipboard* >( new Os2Clipboard() ) );
44}
45
46} // namespace os2
47
48extern "C"
49{
50
51void SAL_CALL component_getImplementationEnvironment(
51SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment(
52 const sal_Char ** ppEnvTypeName, uno_Environment ** ppEnv )
53{
54 *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
55}
56
52 const sal_Char ** ppEnvTypeName, uno_Environment ** ppEnv )
53{
54 *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
55}
56
57void* SAL_CALL component_getFactory( const sal_Char* pImplName, uno_Interface* pSrvManager, uno_Interface* pRegistryKey )
57SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory( const sal_Char* pImplName, uno_Interface* pSrvManager, uno_Interface* pRegistryKey )
58{
59 void* pRet = 0;
60
61 if ( pSrvManager && ( 0 == rtl_str_compare( pImplName, OS2_CLIPBOARD_IMPL_NAME ) ) )
62 {
63 Sequence< OUString > aSNS( 1 );
64 aSNS.getArray()[0] = OUString( RTL_CONSTASCII_USTRINGPARAM( OS2_CLIPBOARD_SERVICE_NAME ) );
65

--- 17 unchanged lines hidden ---
58{
59 void* pRet = 0;
60
61 if ( pSrvManager && ( 0 == rtl_str_compare( pImplName, OS2_CLIPBOARD_IMPL_NAME ) ) )
62 {
63 Sequence< OUString > aSNS( 1 );
64 aSNS.getArray()[0] = OUString( RTL_CONSTASCII_USTRINGPARAM( OS2_CLIPBOARD_SERVICE_NAME ) );
65

--- 17 unchanged lines hidden ---