Coverage Report

Created: 2026-06-30 11:14

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/framework/source/fwe/classes/actiontriggercontainer.cxx
Line
Count
Source
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 <classes/actiontriggercontainer.hxx>
21
#include <classes/actiontriggerpropertyset.hxx>
22
#include <classes/actiontriggerseparatorpropertyset.hxx>
23
#include <cppuhelper/queryinterface.hxx>
24
#include <cppuhelper/supportsservice.hxx>
25
#include <cppuhelper/typeprovider.hxx>
26
27
using namespace cppu;
28
using namespace com::sun::star::uno;
29
using namespace com::sun::star::lang;
30
using namespace com::sun::star::container;
31
32
namespace framework
33
{
34
35
ActionTriggerContainer::ActionTriggerContainer()
36
0
{
37
0
}
Unexecuted instantiation: framework::ActionTriggerContainer::ActionTriggerContainer()
Unexecuted instantiation: framework::ActionTriggerContainer::ActionTriggerContainer()
38
39
ActionTriggerContainer::~ActionTriggerContainer()
40
0
{
41
0
}
42
43
// XMultiServiceFactory
44
Reference< XInterface > SAL_CALL ActionTriggerContainer::createInstance( const OUString& aServiceSpecifier )
45
0
{
46
0
    if ( aServiceSpecifier == SERVICENAME_ACTIONTRIGGER )
47
0
        return static_cast<OWeakObject *>( new ActionTriggerPropertySet());
48
0
    else if ( aServiceSpecifier == SERVICENAME_ACTIONTRIGGERCONTAINER )
49
0
        return static_cast<OWeakObject *>( new ActionTriggerContainer());
50
0
    else if ( aServiceSpecifier == SERVICENAME_ACTIONTRIGGERSEPARATOR )
51
0
        return static_cast<OWeakObject *>( new ActionTriggerSeparatorPropertySet());
52
0
    else
53
0
        throw css::uno::RuntimeException(u"Unknown service specifier!"_ustr, static_cast<OWeakObject *>(this) );
54
0
}
55
56
Reference< XInterface > SAL_CALL ActionTriggerContainer::createInstanceWithArguments( const OUString& ServiceSpecifier, const Sequence< Any >& /*Arguments*/ )
57
0
{
58
0
    return createInstance( ServiceSpecifier );
59
0
}
60
61
Sequence< OUString > SAL_CALL ActionTriggerContainer::getAvailableServiceNames()
62
0
{
63
0
    Sequence< OUString > aSeq{ SERVICENAME_ACTIONTRIGGER,
64
0
                               SERVICENAME_ACTIONTRIGGERCONTAINER,
65
0
                               SERVICENAME_ACTIONTRIGGERSEPARATOR };
66
67
0
    return aSeq;
68
0
}
69
70
// XServiceInfo
71
OUString SAL_CALL ActionTriggerContainer::getImplementationName()
72
0
{
73
0
    return IMPLEMENTATIONNAME_ACTIONTRIGGERCONTAINER;
74
0
}
75
76
sal_Bool SAL_CALL ActionTriggerContainer::supportsService( const OUString& ServiceName )
77
0
{
78
0
    return cppu::supportsService(this, ServiceName);
79
0
}
80
81
Sequence< OUString > SAL_CALL ActionTriggerContainer::getSupportedServiceNames()
82
0
{
83
0
    Sequence< OUString > seqServiceNames { SERVICENAME_ACTIONTRIGGERCONTAINER };
84
0
    return seqServiceNames;
85
0
}
86
87
}
88
89
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */