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

#include <DeckTitleBar.hxx>

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

Public Member Functions

 DeckTitleBar (const OUString &rsTitle, weld::Builder &rBuilder, std::function< void()> aCloserAction)
 
virtual ~DeckTitleBar () override
 
virtual void SetTitle (const OUString &rsTitle) override
 
virtual OUString GetTitle () const override
 
void SetCloserVisible (const bool bIsCloserVisible)
 
tools::Rectangle GetDragArea () const
 
virtual void DataChanged () override
 
- 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
 

Private Attributes

std::unique_ptr< GripWidgetmxGripWidget
 
std::unique_ptr< weld::CustomWeldmxGripWeld
 
std::unique_ptr< weld::LabelmxLabel
 
const std::function< void()> maCloserAction
 
bool mbIsCloserVisible
 

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 29 of file DeckTitleBar.hxx.

Constructor & Destructor Documentation

◆ DeckTitleBar()

sfx2::sidebar::DeckTitleBar::DeckTitleBar ( const OUString &  rsTitle,
weld::Builder rBuilder,
std::function< void()>  aCloserAction 
)

Definition at line 62 of file DeckTitleBar.cxx.

References maCloserAction, mxGripWidget, mxLabel, mxLabel, and SetCloserVisible().

◆ ~DeckTitleBar()

sfx2::sidebar::DeckTitleBar::~DeckTitleBar ( )
overridevirtual

Definition at line 79 of file DeckTitleBar.cxx.

Member Function Documentation

◆ DataChanged()

void sfx2::sidebar::DeckTitleBar::DataChanged ( )
overridevirtual

◆ GetDragArea()

tools::Rectangle sfx2::sidebar::DeckTitleBar::GetDragArea ( ) const

Definition at line 83 of file DeckTitleBar.cxx.

References mxGripWidget, sfx2::sidebar::TitleBar::mxTitlebar, x, and y.

◆ GetTitle()

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

Implements sfx2::sidebar::TitleBar.

Definition at line 96 of file DeckTitleBar.cxx.

References mxLabel.

◆ HandleToolBoxItemClick()

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

Implements sfx2::sidebar::TitleBar.

Definition at line 111 of file DeckTitleBar.cxx.

References maCloserAction.

◆ SetCloserVisible()

void sfx2::sidebar::DeckTitleBar::SetCloserVisible ( const bool  bIsCloserVisible)

◆ SetTitle()

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

Implements sfx2::sidebar::TitleBar.

Definition at line 91 of file DeckTitleBar.cxx.

References mxLabel.

Referenced by sfx2::sidebar::SidebarController::SwitchToDeck().

Member Data Documentation

◆ maCloserAction

const std::function<void()> sfx2::sidebar::DeckTitleBar::maCloserAction
private

Definition at line 51 of file DeckTitleBar.hxx.

Referenced by DeckTitleBar(), and HandleToolBoxItemClick().

◆ mbIsCloserVisible

bool sfx2::sidebar::DeckTitleBar::mbIsCloserVisible
private

Definition at line 52 of file DeckTitleBar.hxx.

Referenced by SetCloserVisible().

◆ mxGripWeld

std::unique_ptr<weld::CustomWeld> sfx2::sidebar::DeckTitleBar::mxGripWeld
private

Definition at line 48 of file DeckTitleBar.hxx.

◆ mxGripWidget

std::unique_ptr<GripWidget> sfx2::sidebar::DeckTitleBar::mxGripWidget
private

Definition at line 47 of file DeckTitleBar.hxx.

Referenced by DeckTitleBar(), and GetDragArea().

◆ mxLabel

std::unique_ptr<weld::Label> sfx2::sidebar::DeckTitleBar::mxLabel
private

Definition at line 49 of file DeckTitleBar.hxx.

Referenced by DeckTitleBar(), GetTitle(), and SetTitle().


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