Bump version to 6.4.7.2.M8
[LibreOffice.git] / linguistic / source / lngreg.cxx
blob37cbea265d6a0380bf1bf9ff94b99fa6fa6b6f85
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #include <cppuhelper/factory.hxx>
22 #include "lngreg.hxx"
24 using namespace com::sun::star::lang;
26 using namespace com::sun::star::registry;
28 extern "C"
31 SAL_DLLPUBLIC_EXPORT void * lng_component_getFactory(
32 const sal_Char * pImplName, void * pServiceManager, void * /*pRegistryKey*/ )
34 void * pRet =
35 LngSvcMgr_getFactory(
36 pImplName,
37 static_cast< XMultiServiceFactory * >( pServiceManager ) );
39 if(!pRet)
40 pRet = LinguProps_getFactory(
41 pImplName,
42 static_cast< XMultiServiceFactory * >( pServiceManager ) );
44 if(!pRet)
45 pRet = DicList_getFactory(
46 pImplName,
47 static_cast< XMultiServiceFactory * >( pServiceManager ) );
49 if(!pRet)
50 pRet = ConvDicList_getFactory(
51 pImplName,
52 static_cast< XMultiServiceFactory * >( pServiceManager ) );
54 if(!pRet)
55 pRet = GrammarCheckingIterator_getFactory(
56 pImplName,
57 static_cast< XMultiServiceFactory * >( pServiceManager ) );
58 return pRet;
63 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */