tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / sc / source / ui / attrdlg / scuiexp.cxx
blob3da9d2ed7b4287ba81f62b0e2904e4c922a334b5
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #undef SC_DLLIMPLEMENTATION
22 #include "scdlgfact.hxx"
23 #include <sal/types.h>
24 #include <cppuhelper/supportsservice.hxx>
26 /// anonymous implementation namespace
27 namespace
29 class CreateDialogFactoryService
30 : public ::cppu::WeakImplHelper<css::lang::XServiceInfo, css::lang::XUnoTunnel>
32 public:
33 // css::lang::XServiceInfo:
34 virtual OUString SAL_CALL getImplementationName() override
36 return u"com.sun.star.sheet.comp.CreateDialogFactoryService"_ustr;
38 virtual sal_Bool SAL_CALL supportsService(const OUString& serviceName) override
40 return cppu::supportsService(this, serviceName);
42 virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override
44 return { u"com.sun.star.sheet.CreateDialogFactoryService"_ustr };
47 // XUnoTunnel
48 virtual sal_Int64 SAL_CALL
49 getSomething(const ::css::uno::Sequence<::sal_Int8>& /*aIdentifier*/) override
51 static ScAbstractDialogFactory_Impl aFactory;
52 return reinterpret_cast<sal_Int64>(static_cast<ScAbstractDialogFactory*>(&aFactory));
56 } // closing anonymous implementation namespace
58 extern "C" {
59 SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
60 com_sun_star_sheet_CreateDialogFactoryService_get_implementation(
61 css::uno::XComponentContext*, css::uno::Sequence<css::uno::Any> const&)
63 return cppu::acquire(new CreateDialogFactoryService);
66 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */