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

#include <TitleBar.hxx>

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

Public Member Functions

 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
 

Protected Member Functions

virtual void HandleToolBoxItemClick ()=0
 
 DECL_LINK (SelectionHandler, const OUString &, void)
 

Protected Attributes

weld::BuildermrBuilder
 
std::unique_ptr< weld::BoxmxTitlebar
 
std::unique_ptr< weld::ImagemxAddonImage
 
std::unique_ptr< weld::ToolbarmxToolBox
 
Theme::ThemeItem meThemeItem
 

Private Member Functions

void SetBackground ()
 

Detailed Description

Definition at line 26 of file TitleBar.hxx.

Constructor & Destructor Documentation

◆ TitleBar()

sfx2::sidebar::TitleBar::TitleBar ( weld::Builder rBuilder,
Theme::ThemeItem  eThemeItem 
)

Definition at line 24 of file TitleBar.cxx.

References LINK, mxToolBox, and SetBackground().

◆ ~TitleBar()

sfx2::sidebar::TitleBar::~TitleBar ( )
virtual

Definition at line 48 of file TitleBar.cxx.

Member Function Documentation

◆ DataChanged()

void sfx2::sidebar::TitleBar::DataChanged ( )
virtual

Reimplemented in sfx2::sidebar::DeckTitleBar.

Definition at line 43 of file TitleBar.cxx.

References SetBackground().

Referenced by sfx2::sidebar::DeckTitleBar::DataChanged().

◆ DECL_LINK()

sfx2::sidebar::TitleBar::DECL_LINK ( SelectionHandler  ,
const OUString &  ,
void   
)
protected

◆ get_preferred_size()

Size sfx2::sidebar::TitleBar::get_preferred_size ( ) const

Definition at line 52 of file TitleBar.cxx.

References mxTitlebar.

◆ GetTitle()

virtual OUString sfx2::sidebar::TitleBar::GetTitle ( ) const
pure virtual

◆ GetToolBox() [1/2]

weld::Toolbar & sfx2::sidebar::TitleBar::GetToolBox ( )
inline

◆ GetToolBox() [2/2]

const weld::Toolbar & sfx2::sidebar::TitleBar::GetToolBox ( ) const
inline

Definition at line 48 of file TitleBar.hxx.

References mxToolBox.

◆ GetVisible()

bool sfx2::sidebar::TitleBar::GetVisible ( ) const

◆ HandleToolBoxItemClick()

virtual void sfx2::sidebar::TitleBar::HandleToolBoxItemClick ( )
protectedpure virtual

◆ SetBackground()

void sfx2::sidebar::TitleBar::SetBackground ( )
private

Definition at line 36 of file TitleBar.cxx.

References sfx2::sidebar::Theme::GetColor(), meThemeItem, mxTitlebar, and mxToolBox.

Referenced by DataChanged(), and TitleBar().

◆ SetIcon()

void sfx2::sidebar::TitleBar::SetIcon ( const css::uno::Reference< css::graphic::XGraphic > &  rIcon)

Definition at line 67 of file TitleBar.cxx.

References mxAddonImage.

◆ SetTitle()

virtual void sfx2::sidebar::TitleBar::SetTitle ( const OUString &  rsTitle)
pure virtual

◆ Show()

void sfx2::sidebar::TitleBar::Show ( bool  bShow)

Definition at line 57 of file TitleBar.cxx.

References mxTitlebar.

Member Data Documentation

◆ meThemeItem

Theme::ThemeItem sfx2::sidebar::TitleBar::meThemeItem
protected

Definition at line 58 of file TitleBar.hxx.

Referenced by SetBackground().

◆ mrBuilder

weld::Builder& sfx2::sidebar::TitleBar::mrBuilder
protected

Definition at line 54 of file TitleBar.hxx.

Referenced by sfx2::sidebar::PanelTitleBar::SetMoreOptionsCommand().

◆ mxAddonImage

std::unique_ptr<weld::Image> sfx2::sidebar::TitleBar::mxAddonImage
protected

Definition at line 56 of file TitleBar.hxx.

Referenced by SetIcon().

◆ mxTitlebar

std::unique_ptr<weld::Box> sfx2::sidebar::TitleBar::mxTitlebar
protected

◆ mxToolBox

std::unique_ptr<weld::Toolbar> sfx2::sidebar::TitleBar::mxToolBox
protected

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