LibreOffice Module ucb (master)  1
cacheserv.cxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
21 #include <com/sun/star/lang/XSingleServiceFactory.hpp>
22 #include <com/sun/star/registry/XRegistryKey.hpp>
27 
28 using namespace com::sun::star::uno;
29 using namespace com::sun::star::lang;
30 using namespace com::sun::star::registry;
31 
32 
33 extern "C" SAL_DLLPUBLIC_EXPORT void * cached1_component_getFactory(
34  const sal_Char * pImplName, void * pServiceManager, void * )
35 {
36  void * pRet = nullptr;
37 
39  static_cast< XMultiServiceFactory * >( pServiceManager ) );
41 
42 
43  // CachedContentResultSetFactory.
44 
45 
47  equalsAscii( pImplName ) )
48  {
50  }
51 
52 
53  // CachedContentResultSetStubFactory.
54 
55 
57  equalsAscii( pImplName ) )
58  {
60  }
61 
62 
63  // CachedDynamicResultSetFactory.
64 
65 
67  equalsAscii( pImplName ) )
68  {
70  }
71 
72 
73  // CachedDynamicResultSetStubFactory.
74 
75 
77  equalsAscii( pImplName ) )
78  {
80  }
81 
82 
83  if ( xFactory.is() )
84  {
85  xFactory->acquire();
86  pRet = xFactory.get();
87  }
88 
89  return pRet;
90 }
91 
92 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
static css::uno::Reference< css::lang::XSingleServiceFactory > createServiceFactory(const css::uno::Reference< css::lang::XMultiServiceFactory > &rxServiceMgr)
static css::uno::Reference< css::lang::XSingleServiceFactory > createServiceFactory(const css::uno::Reference< css::lang::XMultiServiceFactory > &rxServiceMgr)
char sal_Char
static css::uno::Reference< css::lang::XSingleServiceFactory > createServiceFactory(const css::uno::Reference< css::lang::XMultiServiceFactory > &rxServiceMgr)
static OUString getImplementationName_Static()
static css::uno::Reference< css::lang::XSingleServiceFactory > createServiceFactory(const css::uno::Reference< css::lang::XMultiServiceFactory > &rxServiceMgr)
SAL_DLLPUBLIC_EXPORT void * cached1_component_getFactory(const sal_Char *pImplName, void *pServiceManager, void *)
Definition: cacheserv.cxx:33
static OUString getImplementationName_Static()
static OUString getImplementationName_Static()
static OUString getImplementationName_Static()