blob: fbd3d1b2f580035b35158be6040779f690c803d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
class ${classname} :
<#if interfaces?size > 0>
<#if supportsXComponent>
private ::cppu::BaseMutex,
public ::cppu::WeakComponentImplHelper${interfaces?size}<
<#else>
public ::cppu::WeakComponentImplHelper${interfaces?size}<
</#if>
<#list interfaces as intf>
<assign propHelperNext = !intf_has_next && propertyHelper?length > 0>
${scopedCppName intf.name true}${intf_has_next?string( ",", ">" )}${propHelperNext?string( ",", "" )}
</#list>
<#/if>
<#if propertyHelper?length > 0>
public ::cppu::PropertySetMixin<${scopedCppName( propertyHelper, true )}>
</#if>
{
public:
explicit ${classname} (css::uno::Reference< css::uno::XComponentContext > const & context);
<#list interfaces as intf>
<@printMethods intf/>
</#list>
private:
${classname}(const ${classname} &); // not defined
${classname}& operator=(const ${classname} &); // not defined
// destructor is private and will be called indirectly by the release call
virtual ~${classname}(){}
<#if componentType == "calc-addin">
// TODO
</#if>
<#if supportsXComponent>
// overload WeakComponentImplHelperBase::disposing()
// This function is called upon disposing the component,
// if your component needs special work when it becomes
// disposed, do it here.
virtual void SAL_CALL disposing();
</#if>
css::uno::Reference< css::uno::XComponentContext > m_xContext;
}
|