Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / include / svx / sidebar / PanelLayout.hxx
blob856785eb8cdf70a11606b9d882200f75e0e43990
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/.
8 */
10 #ifndef INCLUDED_SVX_SIDEBAR_PANELLAYOUT_HXX
11 #define INCLUDED_SVX_SIDEBAR_PANELLAYOUT_HXX
13 #include <svx/svxdllapi.h>
15 #include <vcl/builder.hxx>
16 #include <vcl/ctrl.hxx>
17 #include <vcl/timer.hxx>
18 #include <vcl/idle.hxx>
19 #include <vcl/vclptr.hxx>
21 #include <com/sun/star/beans/PropertyValue.hpp>
22 #include <com/sun/star/frame/XFrame.hpp>
24 /// This class is the base for the Widget Layout-based sidebar panels.
25 class SVX_DLLPUBLIC PanelLayout : public Control, public VclBuilderContainer
27 private:
28 Idle m_aPanelLayoutIdle;
29 bool m_bInClose;
31 DECL_DLLPRIVATE_LINK(ImplHandlePanelLayoutTimerHdl, Timer*, void);
33 public:
34 PanelLayout(vcl::Window* pParent, const OString& rID, const OUString& rUIXMLDescription,
35 const css::uno::Reference<css::frame::XFrame> &rFrame);
36 virtual ~PanelLayout() override;
37 virtual void dispose() override;
39 virtual Size GetOptimalSize() const override;
40 virtual void setPosSizePixel(long nX, long nY, long nWidth, long nHeight, PosSizeFlags nFlags = PosSizeFlags::All) override;
41 virtual void queue_resize(StateChangedType eReason = StateChangedType::Layout) override;
42 virtual bool EventNotify(NotifyEvent& rNEvt) override;
45 #endif
47 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */