bump product version to 4.1.6.2
[LibreOffice.git] / sw / inc / SwPanelFactory.hxx
blobac2e5c82be006db3050dd13d39f60eac6e2a828a
1 /*
2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 #ifndef SW_SIDEBAR_PANEL_FACTORY_HXX
19 #define SW_SIDEBAR_PANEL_FACTORY_HXX
21 #include <cppuhelper/compbase1.hxx>
22 #include <cppuhelper/basemutex.hxx>
24 #include <com/sun/star/ui/XUIElementFactory.hpp>
26 #include <boost/noncopyable.hpp>
29 namespace css = ::com::sun::star;
30 namespace cssu = ::com::sun::star::uno;
33 namespace sw { namespace sidebar {
35 namespace
37 typedef ::cppu::WeakComponentImplHelper1 <
38 css::ui::XUIElementFactory
39 > PanelFactoryInterfaceBase;
43 class SwPanelFactory
44 : private ::boost::noncopyable,
45 private ::cppu::BaseMutex,
46 public PanelFactoryInterfaceBase
48 public:
49 static ::rtl::OUString SAL_CALL getImplementationName(void);
50 static cssu::Reference<cssu::XInterface> SAL_CALL createInstance(
51 const cssu::Reference<css::lang::XMultiServiceFactory>& rxFactory);
52 static cssu::Sequence<rtl::OUString> SAL_CALL getSupportedServiceNames(void);
54 SwPanelFactory(void);
55 virtual ~SwPanelFactory(void);
57 // XUIElementFactory
58 cssu::Reference<css::ui::XUIElement> SAL_CALL createUIElement(
59 const ::rtl::OUString& rsResourceURL,
60 const ::cssu::Sequence<css::beans::PropertyValue>& rArguments)
61 throw(
62 css::container::NoSuchElementException,
63 css::lang::IllegalArgumentException,
64 cssu::RuntimeException );
68 } } // end of namespace sw::sidebar
70 #endif