LibreOffice Module vcl (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
VclExpander Class Referencefinal

#include <layout.hxx>

Inheritance diagram for VclExpander:
Collaboration diagram for VclExpander:

Public Member Functions

 VclExpander (vcl::Window *pParent)
virtual ~VclExpander () override
virtual void dispose () override
virtual vcl::Windowget_child () override
virtual const vcl::Windowget_child () const override
virtual bool set_property (const OString &rKey, const OUString &rValue) override
bool get_expanded () const
void set_expanded (bool bExpanded)
void set_label (const OUString &rLabel)
OUString get_label () const
vcl::Windowget_label_widget ()
const vcl::Windowget_label_widget () const
virtual void StateChanged (StateChangedType nType) override
void SetExpandedHdl (const Link< VclExpander &, void > &rLink)
virtual void DumpAsPropertyTree (tools::JsonWriter &rJsonWriter) override

Private Member Functions

virtual Size calculateRequisition () const override
virtual void setAllocation (const Size &rAllocation) override
 DECL_LINK (ClickHdl, CheckBox &, void)

Private Attributes

bool m_bResizeTopLevel
VclPtr< DisclosureButtonm_pDisclosureButton
Link< VclExpander &, voidmaExpandedHdl

Detailed Description

Definition at line 455 of file layout.hxx.

Constructor & Destructor Documentation

VclExpander::VclExpander ( vcl::Window pParent)
VclExpander::~VclExpander ( )

Definition at line 1636 of file layout.cxx.

Member Function Documentation

Size VclExpander::calculateRequisition ( ) const
VclExpander::DECL_LINK ( ClickHdl  ,
CheckBox ,
void VclExpander::dispose ( void  )
void VclExpander::DumpAsPropertyTree ( tools::JsonWriter rJsonWriter)

Definition at line 1794 of file layout.cxx.

References vcl::Window::DumpAsPropertyTree(), and tools::JsonWriter::put().

vcl::Window * VclExpander::get_child ( )

Definition at line 1676 of file layout.cxx.

Referenced by calculateRequisition(), setAllocation(), and StateChanged().

const vcl::Window * VclExpander::get_child ( ) const
bool VclExpander::get_expanded ( ) const

Definition at line 1641 of file layout.cxx.

References CheckBox::IsChecked(), and m_pDisclosureButton.

Referenced by SalInstanceExpander::get_expanded().

OUString VclExpander::get_label ( ) const

Definition at line 1656 of file layout.cxx.

References vcl::Window::GetText(), and m_pDisclosureButton.

Referenced by SalInstanceExpander::get_label().

vcl::Window * VclExpander::get_label_widget ( )

Definition at line 1789 of file layout.cxx.

Referenced by SalInstanceExpander::grab_focus(), and SalInstanceExpander::has_focus().

const vcl::Window * VclExpander::get_label_widget ( ) const

Definition at line 1784 of file layout.cxx.

References m_pDisclosureButton.

void VclExpander::set_expanded ( bool  bExpanded)

Definition at line 1646 of file layout.cxx.

References CheckBox::Check(), and m_pDisclosureButton.

Referenced by SalInstanceExpander::set_expanded(), and set_property().

void VclExpander::set_label ( const OUString &  rLabel)

Definition at line 1651 of file layout.cxx.

References m_pDisclosureButton, and Control::SetText().

Referenced by SalInstanceExpander::set_label().

bool VclExpander::set_property ( const OString &  rKey,
const OUString &  rValue 

Definition at line 1761 of file layout.cxx.

References m_bResizeTopLevel, set_expanded(), and toBool().

void VclExpander::setAllocation ( const Size rAllocation)
void VclExpander::SetExpandedHdl ( const Link< VclExpander &, void > &  rLink)
void VclExpander::StateChanged ( StateChangedType  nType)

Member Data Documentation

bool VclExpander::m_bResizeTopLevel

Definition at line 476 of file layout.hxx.

Referenced by set_property().

VclPtr<DisclosureButton> VclExpander::m_pDisclosureButton
Link<VclExpander&,void> VclExpander::maExpandedHdl

Definition at line 478 of file layout.hxx.

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