My Project
UDK 3.2.7 C/C++ API Reference
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
cppuhelper
implementationentry.hxx
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
#ifndef _CPPUHELPER_IMPLEMENTATIONENTRY_HXX_
20
#define _CPPUHELPER_IMPLEMENTATIONENTRY_HXX_
21
22
#include <
cppuhelper/factory.hxx
>
23
#include "
cppuhelperdllapi.h
"
24
25
// MinGW wants it the one way around while MSVC wants it the other (cf.
26
// <sourceforge.net/support/tracker.php?aid=3514133> "Syntactic __cdecl
27
// incompatibility with MSVC"; and everywhere else, SAL_CALL is empty, so
28
// doesn't matter):
29
#if defined __GNUC__
30
#define MY_FN_PTR(name) SAL_CALL (* name)
31
#else
32
#define MY_FN_PTR(name) (SAL_CALL * name)
33
#endif
34
35
namespace
cppu
36
{
40
struct
ImplementationEntry
41
{
44
ComponentFactoryFunc
create
;
45
49
rtl::OUString
MY_FN_PTR
(
getImplementationName
)();
50
54
com::sun::star::uno::Sequence< rtl::OUString >
MY_FN_PTR
(
getSupportedServiceNames
) ();
55
58
::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleComponentFactory >
59
MY_FN_PTR
(
createFactory
)(
60
ComponentFactoryFunc
fptr,
61
::rtl::OUString
const
& rImplementationName,
62
::com::sun::star::uno::Sequence< ::rtl::OUString >
const
& rServiceNames,
63
rtl_ModuleCount
* pModCount );
64
68
rtl_ModuleCount
*
moduleCounter
;
69
73
sal_Int32
nFlags
;
74
};
75
90
CPPUHELPER_DLLPUBLIC
sal_Bool
component_writeInfoHelper
(
91
void
*pServiceManager,
void
*pRegistryKey ,
const
struct
ImplementationEntry
entries[] );
92
109
CPPUHELPER_DLLPUBLIC
void
*
component_getFactoryHelper
(
110
const
sal_Char
* pImplName,
111
void
* pServiceManager,
112
void
* pRegistryKey,
113
const
struct
ImplementationEntry
entries[] );
114
115
}
116
#endif
117
118
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Generated on Sun Sep 29 2013 16:54:52 for My Project by
1.8.3