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>
19 #include <com/sun/star/frame/XFrame.hpp>
21 /// This class is the base for the Widget Layout-based sidebar panels.
22 class SVX_DLLPUBLIC PanelLayout
: public Control
, public VclBuilderContainer
25 Timer m_aPanelLayoutTimer
;
27 bool hasPanelPendingLayout() const;
29 DECL_DLLPRIVATE_LINK( ImplHandlePanelLayoutTimerHdl
, void* );
32 PanelLayout(Window
* pParent
, const OString
& rID
, const OUString
& rUIXMLDescription
,
33 const com::sun::star::uno::Reference
<com::sun::star::frame::XFrame
> &rFrame
);
34 virtual ~PanelLayout();
36 virtual Size
GetOptimalSize() const;
37 virtual void setPosSizePixel(long nX
, long nY
, long nWidth
, long nHeight
, sal_uInt16 nFlags
= WINDOW_POSSIZE_ALL
);
38 virtual void queue_resize();
43 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */