bump product version to 4.1.6.2
[LibreOffice.git] / sfx2 / source / sidebar / SidebarPanel.hxx
blob99a8e8020394aa6dc9180a73a46e3272401bccf1
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 SFX_SIDEBAR_SIDEBAR_PANEL_HXX
19 #define SFX_SIDEBAR_SIDEBAR_PANEL_HXX
21 #include <tools/link.hxx>
22 #include <com/sun/star/ui/XSidebarPanel.hpp>
24 #include <boost/noncopyable.hpp>
25 #include <cppuhelper/compbase1.hxx>
26 #include <cppuhelper/basemutex.hxx>
28 namespace css = ::com::sun::star;
29 namespace cssu = ::com::sun::star::uno;
31 namespace
33 typedef ::cppu::WeakComponentImplHelper1 <
34 css::ui::XSidebarPanel
35 > SidebarPanelInterfaceBase;
39 class DockingWindow;
40 class VclWindowEvent;
42 namespace sfx2 { namespace sidebar {
44 class Panel;
46 class SidebarPanel
47 : private ::boost::noncopyable,
48 private ::cppu::BaseMutex,
49 public SidebarPanelInterfaceBase
51 public:
52 static cssu::Reference<css::ui::XSidebarPanel> Create (Panel* pPanel);
54 protected:
55 SidebarPanel(
56 Panel* pPanel);
57 virtual ~SidebarPanel (void);
59 virtual void SAL_CALL disposing (const css::lang::EventObject& rEventObject)
60 throw(cssu::RuntimeException);
62 virtual void SAL_CALL disposing (void);
64 private:
65 Panel* mpPanel;
66 cssu::Reference<css::rendering::XCanvas> mxCanvas;
68 DECL_LINK(HandleWindowEvent, VclWindowEvent*);
72 } } // end of namespace sfx2::sidebar
74 #endif