LibreOffice Module framework (master)
1
framework
source
uielement
footermenucontroller.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 <
uielement/footermenucontroller.hxx
>
21
22
#include <
services.h
>
23
24
#include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
25
#include <
cppuhelper/supportsservice.hxx
>
26
27
// Defines
28
29
using namespace
com::sun::star::uno
;
30
using namespace
com::sun::star::lang
;
31
using namespace
com::sun::star::beans
;
32
using namespace
com::sun::star::util
;
33
using namespace
com::sun::star::style
;
34
using namespace
com::sun::star::container
;
35
36
namespace
framework
37
{
38
39
// XInterface, XTypeProvider, XServiceInfo
40
41
OUString SAL_CALL
FooterMenuController::getImplementationName
()
42
{
43
return
"com.sun.star.comp.framework.FooterMenuController"
;
44
}
45
46
sal_Bool
SAL_CALL
FooterMenuController::supportsService
(
const
OUString& sServiceName )
47
{
48
return
cppu::supportsService
(
this
,
sServiceName
);
49
}
50
51
css::uno::Sequence< OUString > SAL_CALL
FooterMenuController::getSupportedServiceNames
()
52
{
53
return
{
SERVICENAME_POPUPMENUCONTROLLER
};
54
}
55
56
FooterMenuController::FooterMenuController
(
const
css::uno::Reference< css::uno::XComponentContext >& xContext ) :
57
HeaderMenuController
( xContext,true )
58
{
59
}
60
61
FooterMenuController::~FooterMenuController
()
62
{
63
}
64
}
65
66
extern
"C"
SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
67
framework_FooterMenuController_get_implementation
(
68
css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any>
const
& )
69
{
70
return
cppu::acquire(
new
framework::FooterMenuController
(context));
71
}
72
73
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sServiceName
constexpr OUStringLiteral sServiceName
framework::FooterMenuController
Definition:
footermenucontroller.hxx:27
framework::FooterMenuController::supportsService
virtual sal_Bool SAL_CALL supportsService(const OUString &sServiceName) override
Definition:
footermenucontroller.cxx:46
framework::FooterMenuController::getImplementationName
virtual OUString SAL_CALL getImplementationName() override
Definition:
footermenucontroller.cxx:41
framework::FooterMenuController::getSupportedServiceNames
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition:
footermenucontroller.cxx:51
framework::FooterMenuController::FooterMenuController
FooterMenuController(const css::uno::Reference< css::uno::XComponentContext > &xContext)
Definition:
footermenucontroller.cxx:56
framework::FooterMenuController::~FooterMenuController
virtual ~FooterMenuController() override
Definition:
footermenucontroller.cxx:61
framework::HeaderMenuController
Definition:
headermenucontroller.hxx:29
framework_FooterMenuController_get_implementation
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * framework_FooterMenuController_get_implementation(css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
Definition:
footermenucontroller.cxx:67
footermenucontroller.hxx
com::sun::star::beans
com::sun::star::container
com::sun::star::lang
com::sun::star::style
com::sun::star::uno
com::sun::star::util
cppu::supportsService
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
framework
Definition:
acceleratorcache.cxx:27
framework::SERVICENAME_POPUPMENUCONTROLLER
constexpr OUStringLiteral SERVICENAME_POPUPMENUCONTROLLER
Definition:
services.h:33
services.h
supportsservice.hxx
sal_Bool
unsigned char sal_Bool
Generated on Sun Jul 30 2023 04:33:32 for LibreOffice Module framework (master) by
1.9.3