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>
26 
27 using namespace com::sun::star::uno;
28 using namespace com::sun::star::lang;
29 
30 
31 extern "C" SAL_DLLPUBLIC_EXPORT void * cached1_component_getFactory(
32  const sal_Char * pImplName, void * pServiceManager, void * )
33 {
34  void * pRet = nullptr;
35 
37  static_cast< XMultiServiceFactory * >( pServiceManager ) );
39 
40 
41  // CachedContentResultSetFactory.
42 
43 
45  equalsAscii( pImplName ) )
46  {
48  }
49 
50 
51  // CachedContentResultSetStubFactory.
52 
53 
55  equalsAscii( pImplName ) )
56  {
58  }
59 
60 
61  // CachedDynamicResultSetFactory.
62 
63 
65  equalsAscii( pImplName ) )
66  {
68  }
69 
70 
71  // CachedDynamicResultSetStubFactory.
72 
73 
75  equalsAscii( pImplName ) )
76  {
78  }
79 
80 
81  if ( xFactory.is() )
82  {
83  xFactory->acquire();
84  pRet = xFactory.get();
85  }
86 
87  return pRet;
88 }
89 
90 /* 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:31
static OUString getImplementationName_Static()
static OUString getImplementationName_Static()
static OUString getImplementationName_Static()