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/.
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
28 Idle m_aPanelLayoutIdle
;
31 DECL_DLLPRIVATE_LINK(ImplHandlePanelLayoutTimerHdl
, Timer
*, void);
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
;
47 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */