LibreOffice Module sfx2 (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
sfx2::sidebar::PanelTitleBar Class Referencefinal

#include <PanelTitleBar.hxx>

Inheritance diagram for sfx2::sidebar::PanelTitleBar:
[legend]
Collaboration diagram for sfx2::sidebar::PanelTitleBar:
[legend]

Public Member Functions

 PanelTitleBar (const OUString &rsTitle, weld::Builder &rBuilder, Panel *pPanel)
 
virtual ~PanelTitleBar () override
 
virtual void SetTitle (const OUString &rsTitle) override
 
virtual OUString GetTitle () const override
 
void SetMoreOptionsCommand (const OUString &rsCommandName, const css::uno::Reference< css::frame::XFrame > &rxFrame, const css::uno::Reference< css::frame::XController > &rxController)
 
void UpdateExpandedState ()
 
weld::ExpanderGetExpander ()
 
const OUString & GetMoreOptionsCommand () const
 
- Public Member Functions inherited from sfx2::sidebar::TitleBar
 TitleBar (weld::Builder &rBuilder, Theme::ThemeItem eThemeItem)
 
virtual ~TitleBar ()
 
virtual void SetTitle (const OUString &rsTitle)=0
 
virtual OUString GetTitle () const =0
 
virtual void DataChanged ()
 
void Show (bool bShow)
 
bool GetVisible () const
 
Size get_preferred_size () const
 
void SetIcon (const css::uno::Reference< css::graphic::XGraphic > &rIcon)
 
weld::ToolbarGetToolBox ()
 
const weld::ToolbarGetToolBox () const
 

Private Member Functions

virtual void HandleToolBoxItemClick () override
 
 DECL_LINK (ExpandHdl, weld::Expander &, void)
 

Private Attributes

std::unique_ptr< weld::ExpandermxExpander
 
css::uno::Reference< css::frame::XToolbarController > mxController
 
PanelmpPanel
 
OUString msIdent
 
OUString msMoreOptionsCommand
 

Additional Inherited Members

- Protected Member Functions inherited from sfx2::sidebar::TitleBar
virtual void HandleToolBoxItemClick ()=0
 
 DECL_LINK (SelectionHandler, const OUString &, void)
 
- Protected Attributes inherited from sfx2::sidebar::TitleBar
weld::BuildermrBuilder
 
std::unique_ptr< weld::BoxmxTitlebar
 
std::unique_ptr< weld::ImagemxAddonImage
 
std::unique_ptr< weld::ToolbarmxToolBox
 
Theme::ThemeItem meThemeItem
 

Detailed Description

Definition at line 31 of file PanelTitleBar.hxx.

Constructor & Destructor Documentation

◆ PanelTitleBar()

sfx2::sidebar::PanelTitleBar::PanelTitleBar ( const OUString &  rsTitle,
weld::Builder rBuilder,
Panel pPanel 
)

◆ ~PanelTitleBar()

sfx2::sidebar::PanelTitleBar::~PanelTitleBar ( )
overridevirtual

Definition at line 68 of file PanelTitleBar.cxx.

References mpPanel, mxController, and mxExpander.

Member Function Documentation

◆ DECL_LINK()

sfx2::sidebar::PanelTitleBar::DECL_LINK ( ExpandHdl  ,
weld::Expander ,
void   
)
private

◆ GetExpander()

weld::Expander & sfx2::sidebar::PanelTitleBar::GetExpander ( )
inline

◆ GetMoreOptionsCommand()

const OUString & sfx2::sidebar::PanelTitleBar::GetMoreOptionsCommand ( ) const
inline

Definition at line 51 of file PanelTitleBar.hxx.

References msMoreOptionsCommand.

◆ GetTitle()

OUString sfx2::sidebar::PanelTitleBar::GetTitle ( ) const
overridevirtual

Implements sfx2::sidebar::TitleBar.

Definition at line 58 of file PanelTitleBar.cxx.

References mxExpander.

◆ HandleToolBoxItemClick()

void sfx2::sidebar::PanelTitleBar::HandleToolBoxItemClick ( )
overrideprivatevirtual

Implements sfx2::sidebar::TitleBar.

Definition at line 106 of file PanelTitleBar.cxx.

References mxController.

◆ SetMoreOptionsCommand()

void sfx2::sidebar::PanelTitleBar::SetMoreOptionsCommand ( const OUString &  rsCommandName,
const css::uno::Reference< css::frame::XFrame > &  rxFrame,
const css::uno::Reference< css::frame::XController > &  rxController 
)

◆ SetTitle()

void sfx2::sidebar::PanelTitleBar::SetTitle ( const OUString &  rsTitle)
overridevirtual

Implements sfx2::sidebar::TitleBar.

Definition at line 53 of file PanelTitleBar.cxx.

References mxExpander.

◆ UpdateExpandedState()

void sfx2::sidebar::PanelTitleBar::UpdateExpandedState ( )

Definition at line 63 of file PanelTitleBar.cxx.

References sfx2::sidebar::Panel::IsExpanded(), mpPanel, and mxExpander.

Referenced by PanelTitleBar().

Member Data Documentation

◆ mpPanel

Panel* sfx2::sidebar::PanelTitleBar::mpPanel
private

Definition at line 62 of file PanelTitleBar.hxx.

Referenced by PanelTitleBar(), UpdateExpandedState(), and ~PanelTitleBar().

◆ msIdent

OUString sfx2::sidebar::PanelTitleBar::msIdent
private

Definition at line 63 of file PanelTitleBar.hxx.

Referenced by SetMoreOptionsCommand().

◆ msMoreOptionsCommand

OUString sfx2::sidebar::PanelTitleBar::msMoreOptionsCommand
private

Definition at line 64 of file PanelTitleBar.hxx.

Referenced by GetMoreOptionsCommand(), and SetMoreOptionsCommand().

◆ mxController

css::uno::Reference<css::frame::XToolbarController> sfx2::sidebar::PanelTitleBar::mxController
private

Definition at line 60 of file PanelTitleBar.hxx.

Referenced by HandleToolBoxItemClick(), SetMoreOptionsCommand(), and ~PanelTitleBar().

◆ mxExpander

std::unique_ptr<weld::Expander> sfx2::sidebar::PanelTitleBar::mxExpander
private

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