bump product version to 5.0.4.1
[LibreOffice.git] / sd / source / ui / sidebar / PanelFactory.hxx
blob654fd9d72771b4cf3cd4e9f2c6ede5b8ef950b29
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 .
19 #ifndef INCLUDED_SD_SOURCE_UI_SIDEBAR_PANELFACTORY_HXX
20 #define INCLUDED_SD_SOURCE_UI_SIDEBAR_PANELFACTORY_HXX
22 #include <cppuhelper/compbase1.hxx>
23 #include <cppuhelper/basemutex.hxx>
24 #include <rtl/ref.hxx>
25 #include "framework/Pane.hxx"
27 #include <com/sun/star/ui/XUIElementFactory.hpp>
28 #include <com/sun/star/uno/XComponentContext.hpp>
29 #include <com/sun/star/lang/XInitialization.hpp>
31 #include <map>
32 #include <boost/noncopyable.hpp>
33 #include <boost/shared_ptr.hpp>
36 namespace sd {
37 class ViewShellBase;
40 namespace sd { namespace sidebar {
42 namespace
44 typedef ::cppu::WeakComponentImplHelper1 <
45 css::ui::XUIElementFactory
46 > PanelFactoryInterfaceBase;
49 class PanelFactory
50 : private ::boost::noncopyable,
51 private ::cppu::BaseMutex,
52 public PanelFactoryInterfaceBase
54 public:
55 static ::rtl::OUString SAL_CALL getImplementationName();
56 static css::uno::Reference<css::uno::XInterface> SAL_CALL createInstance (
57 const css::uno::Reference<css::lang::XMultiServiceFactory>& rxFactory);
58 static css::uno::Sequence<rtl::OUString> SAL_CALL getSupportedServiceNames();
60 explicit PanelFactory (const css::uno::Reference<css::uno::XComponentContext>& rxContext);
61 virtual ~PanelFactory();
63 virtual void SAL_CALL disposing() SAL_OVERRIDE;
65 // XUIElementFactory
67 css::uno::Reference<css::ui::XUIElement> SAL_CALL createUIElement (
68 const ::rtl::OUString& rsResourceURL,
69 const css::uno::Sequence<css::beans::PropertyValue>& rArguments)
70 throw(
71 css::container::NoSuchElementException,
72 css::lang::IllegalArgumentException,
73 css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
76 } } // end of namespace sd::sidebar
78 #endif
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */