1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
11 #ifndef INCLUDED_SFX2_SIDEBAR_SIDEBAR_HXX
12 #define INCLUDED_SFX2_SIDEBAR_SIDEBAR_HXX
14 #include <sfx2/dllapi.h>
15 #include <com/sun/star/frame/XFrame.hpp>
16 #include <com/sun/star/ui/XSidebarProvider.hpp>
17 #include <com/sun/star/ui/XSidebar.hpp>
19 #include <com/sun/star/awt/XWindow2.hpp>
21 #include <cppuhelper/compbase1.hxx>
22 #include <cppuhelper/weakref.hxx>
24 #include <sfx2/sidebar/SidebarController.hxx>
25 #include <sfx2/sidebar/SidebarDockingWindow.hxx>
27 #include <sfx2/sidebar/UnoDecks.hxx>
28 #include <com/sun/star/ui/XDecks.hpp>
30 /** get the sidebar for a given frame
32 class SfxUnoSidebar
: public ::cppu::WeakImplHelper1
< css::ui::XSidebarProvider
>
37 const css::uno::Reference
<css::frame::XFrame
> xFrame
;
38 sfx2::sidebar::SidebarController
* getSidebarController();
42 SfxUnoSidebar(const css::uno::Reference
<css::frame::XFrame
>&);
44 virtual void SAL_CALL
showDecks (const sal_Bool bVisible
)
45 throw(css::uno::RuntimeException
, std::exception
) override
;
48 virtual void SAL_CALL
setVisible (const sal_Bool bVisible
)
49 throw(css::uno::RuntimeException
, std::exception
) override
;
51 virtual sal_Bool SAL_CALL
isVisible()
52 throw(css::uno::RuntimeException
, std::exception
) override
;
54 virtual css::uno::Reference
<css::frame::XFrame
> SAL_CALL
getFrame()
55 throw( css::uno::RuntimeException
, std::exception
) override
;
57 virtual css::uno::Reference
<css::ui::XDecks
> SAL_CALL
getDecks()
58 throw(css::uno::RuntimeException
, std::exception
) override
;
60 virtual css::uno::Reference
<css::ui::XSidebar
> SAL_CALL
getSidebar()
61 throw(css::uno::RuntimeException
, std::exception
) override
;
67 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */