LibreOffice Module sfx2 (master) 1
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
PanelLayout Class Reference

This class is the base for the Widget Layout-based sidebar panels. More...

#include <PanelLayout.hxx>

Collaboration diagram for PanelLayout:
[legend]

Public Member Functions

 PanelLayout (weld::Widget *pParent, const OUString &rID, const OUString &rUIXMLDescription)
 
void SetPanel (sfx2::sidebar::Panel *pPanel)
 
virtual ~PanelLayout ()
 
Size get_preferred_size () const
 
void queue_resize ()
 

Protected Member Functions

virtual void DataChanged (const DataChangedEvent &rEvent)
 
virtual void DumpAsPropertyTree (tools::JsonWriter &)
 
virtual weld::WindowGetFrameWeld () const
 

Protected Attributes

std::unique_ptr< weld::Builderm_xBuilder
 
std::unique_ptr< weld::Containerm_xContainer
 
sfx2::sidebar::Panelm_pPanel
 

Private Member Functions

 DECL_DLLPRIVATE_LINK (DataChangedEventListener, VclSimpleEvent &, void)
 
 DECL_DLLPRIVATE_LINK (DumpAsPropertyTreeHdl, tools::JsonWriter &, void)
 

Detailed Description

This class is the base for the Widget Layout-based sidebar panels.

Definition at line 21 of file PanelLayout.hxx.

Constructor & Destructor Documentation

◆ PanelLayout()

PanelLayout::PanelLayout ( weld::Widget pParent,
const OUString &  rID,
const OUString &  rUIXMLDescription 
)

Definition at line 20 of file PanelLayout.cxx.

References Application::AddEventListener(), LINK, m_xContainer, and m_xContainer.

◆ ~PanelLayout()

PanelLayout::~PanelLayout ( )
virtual

Definition at line 71 of file PanelLayout.cxx.

References LINK, m_xBuilder, m_xContainer, and Application::RemoveEventListener().

Member Function Documentation

◆ DataChanged()

void PanelLayout::DataChanged ( const DataChangedEvent rEvent)
protectedvirtual

◆ DECL_DLLPRIVATE_LINK() [1/2]

PanelLayout::DECL_DLLPRIVATE_LINK ( DataChangedEventListener  ,
VclSimpleEvent ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [2/2]

PanelLayout::DECL_DLLPRIVATE_LINK ( DumpAsPropertyTreeHdl  ,
tools::JsonWriter ,
void   
)
private

◆ DumpAsPropertyTree()

void PanelLayout::DumpAsPropertyTree ( tools::JsonWriter )
protectedvirtual

Definition at line 35 of file PanelLayout.cxx.

◆ get_preferred_size()

Size PanelLayout::get_preferred_size ( ) const
inline

Definition at line 44 of file PanelLayout.hxx.

References m_xContainer.

◆ GetFrameWeld()

weld::Window * PanelLayout::GetFrameWeld ( ) const
protectedvirtual

Definition at line 61 of file PanelLayout.cxx.

References sfx2::sidebar::Panel::GetFrameWeld(), m_pPanel, and SAL_WARN.

◆ queue_resize()

void PanelLayout::queue_resize ( )

Definition at line 79 of file PanelLayout.cxx.

References m_xContainer.

◆ SetPanel()

void PanelLayout::SetPanel ( sfx2::sidebar::Panel pPanel)

Definition at line 56 of file PanelLayout.cxx.

References m_pPanel.

Member Data Documentation

◆ m_pPanel

sfx2::sidebar::Panel* PanelLayout::m_pPanel
protected

Definition at line 26 of file PanelLayout.hxx.

Referenced by GetFrameWeld(), and SetPanel().

◆ m_xBuilder

std::unique_ptr<weld::Builder> PanelLayout::m_xBuilder
protected

Definition at line 24 of file PanelLayout.hxx.

Referenced by ~PanelLayout().

◆ m_xContainer

std::unique_ptr<weld::Container> PanelLayout::m_xContainer
protected

Definition at line 25 of file PanelLayout.hxx.

Referenced by DataChanged(), PanelLayout(), queue_resize(), and ~PanelLayout().


The documentation for this class was generated from the following files: