LibreOffice Module framework (master) 1
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
21
22#include <services.h>
23
24#include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
26
27// Defines
28
29using namespace com::sun::star::uno;
30using namespace com::sun::star::lang;
31using namespace com::sun::star::beans;
32using namespace com::sun::star::util;
33using namespace com::sun::star::style;
34using namespace com::sun::star::container;
35
36namespace framework
37{
38
39// XInterface, XTypeProvider, XServiceInfo
40
42{
43 return "com.sun.star.comp.framework.FooterMenuController";
44}
45
46sal_Bool SAL_CALL FooterMenuController::supportsService( const OUString& sServiceName )
47{
49}
50
51css::uno::Sequence< OUString > SAL_CALL FooterMenuController::getSupportedServiceNames()
52{
54}
55
56FooterMenuController::FooterMenuController( const css::uno::Reference< css::uno::XComponentContext >& xContext ) :
57 HeaderMenuController( xContext,true )
58{
59}
60
62{
63}
64}
65
66extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
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: */
constexpr OUStringLiteral sServiceName
virtual sal_Bool SAL_CALL supportsService(const OUString &sServiceName) override
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
FooterMenuController(const css::uno::Reference< css::uno::XComponentContext > &xContext)
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * framework_FooterMenuController_get_implementation(css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
constexpr OUStringLiteral SERVICENAME_POPUPMENUCONTROLLER
Definition: services.h:33
unsigned char sal_Bool