LibreOffice Module svx (master)  1
PanelLayout.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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  */
9 
10 #ifndef INCLUDED_SVX_SIDEBAR_PANELLAYOUT_HXX
11 #define INCLUDED_SVX_SIDEBAR_PANELLAYOUT_HXX
12 
13 #include <svx/svxdllapi.h>
14 
15 #include <vcl/builder.hxx>
16 #include <vcl/ctrl.hxx>
17 #include <vcl/layout.hxx>
18 #include <vcl/timer.hxx>
19 #include <vcl/idle.hxx>
20 #include <vcl/weld.hxx>
21 
22 #include <com/sun/star/frame/XFrame.hpp>
23 
26 {
27 protected:
28  std::unique_ptr<weld::Builder> m_xBuilder;
30  std::unique_ptr<weld::Container> m_xContainer;
31 
32 private:
34  bool m_bInClose;
35  css::uno::Reference<css::frame::XFrame> mxFrame;
36 
37  DECL_DLLPRIVATE_LINK(ImplHandlePanelLayoutTimerHdl, Timer*, void);
38 
39 public:
40  PanelLayout(vcl::Window* pParent, const OString& rID, const OUString& rUIXMLDescription,
41  const css::uno::Reference<css::frame::XFrame> &rFrame, bool bInterimBuilder = false);
42  virtual ~PanelLayout() override;
43  virtual void dispose() override;
44 
45  virtual Size GetOptimalSize() const override;
46  virtual void setPosSizePixel(long nX, long nY, long nWidth, long nHeight, PosSizeFlags nFlags = PosSizeFlags::All) override;
47  virtual void queue_resize(StateChangedType eReason = StateChangedType::Layout) override;
48  virtual bool EventNotify(NotifyEvent& rNEvt) override;
49 };
50 
51 #endif
52 
53 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This class is the base for the Widget Layout-based sidebar panels.
Definition: PanelLayout.hxx:25
DECL_DLLPRIVATE_LINK(ImplHandlePaintHdl, Timer *, void)
VclPtr< VclVBox > m_xVclContentArea
Definition: PanelLayout.hxx:29
PosSizeFlags
#define SVX_DLLPUBLIC
Definition: svxdllapi.h:28
StateChangedType
std::unique_ptr< weld::Builder > m_xBuilder
Definition: PanelLayout.hxx:28
virtual void setPosSizePixel(long nX, long nY, long nWidth, long nHeight, PosSizeFlags nFlags=PosSizeFlags::All)
virtual void queue_resize(StateChangedType eReason=StateChangedType::Layout)
css::uno::Reference< css::frame::XFrame > mxFrame
Definition: PanelLayout.hxx:35
virtual void dispose() override
virtual Size GetOptimalSize() const override
Idle m_aPanelLayoutIdle
Definition: PanelLayout.hxx:33
std::unique_ptr< weld::Container > m_xContainer
Definition: PanelLayout.hxx:30
virtual bool EventNotify(NotifyEvent &rNEvt) override