|
LibreOffice Module sfx2 (master) 1
|
#include <TitleBar.hxx>
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::Toolbar & | GetToolBox () |
| const weld::Toolbar & | GetToolBox () const |
Protected Member Functions | |
| virtual void | HandleToolBoxItemClick ()=0 |
| DECL_LINK (SelectionHandler, const OUString &, void) | |
Protected Attributes | |
| weld::Builder & | mrBuilder |
| std::unique_ptr< weld::Box > | mxTitlebar |
| std::unique_ptr< weld::Image > | mxAddonImage |
| std::unique_ptr< weld::Toolbar > | mxToolBox |
| Theme::ThemeItem | meThemeItem |
Private Member Functions | |
| void | SetBackground () |
Definition at line 26 of file TitleBar.hxx.
| sfx2::sidebar::TitleBar::TitleBar | ( | weld::Builder & | rBuilder, |
| Theme::ThemeItem | eThemeItem | ||
| ) |
Definition at line 24 of file TitleBar.cxx.
References LINK, mxToolBox, and SetBackground().
|
virtual |
Definition at line 48 of file TitleBar.cxx.
|
virtual |
Reimplemented in sfx2::sidebar::DeckTitleBar.
Definition at line 43 of file TitleBar.cxx.
References SetBackground().
Referenced by sfx2::sidebar::DeckTitleBar::DataChanged().
|
protected |
| Size sfx2::sidebar::TitleBar::get_preferred_size | ( | ) | const |
Definition at line 52 of file TitleBar.cxx.
References mxTitlebar.
|
pure virtual |
Implemented in sfx2::sidebar::DeckTitleBar, and sfx2::sidebar::PanelTitleBar.
|
inline |
Definition at line 44 of file TitleBar.hxx.
References mxToolBox.
Referenced by sfx2::sidebar::FocusManager::FocusDeckTitle(), sfx2::sidebar::FocusManager::GetFocusLocation(), and sfx2::sidebar::FocusManager::SetDeck().
|
inline |
Definition at line 48 of file TitleBar.hxx.
References mxToolBox.
| bool sfx2::sidebar::TitleBar::GetVisible | ( | ) | const |
Definition at line 62 of file TitleBar.cxx.
References mxTitlebar.
Referenced by sfx2::sidebar::FocusManager::FocusPanel(), sfx2::sidebar::FocusManager::IsDeckTitleVisible(), sfx2::sidebar::FocusManager::IsPanelTitleVisible(), and sfx2::sidebar::SidebarController::NotifyResize().
|
protectedpure virtual |
Implemented in sfx2::sidebar::DeckTitleBar, and sfx2::sidebar::PanelTitleBar.
|
private |
Definition at line 36 of file TitleBar.cxx.
References sfx2::sidebar::Theme::GetColor(), meThemeItem, mxTitlebar, and mxToolBox.
Referenced by DataChanged(), and TitleBar().
| void sfx2::sidebar::TitleBar::SetIcon | ( | const css::uno::Reference< css::graphic::XGraphic > & | rIcon | ) |
Definition at line 67 of file TitleBar.cxx.
References mxAddonImage.
|
pure virtual |
Implemented in sfx2::sidebar::DeckTitleBar, and sfx2::sidebar::PanelTitleBar.
| void sfx2::sidebar::TitleBar::Show | ( | bool | bShow | ) |
Definition at line 57 of file TitleBar.cxx.
References mxTitlebar.
|
protected |
Definition at line 58 of file TitleBar.hxx.
Referenced by SetBackground().
|
protected |
Definition at line 54 of file TitleBar.hxx.
Referenced by sfx2::sidebar::PanelTitleBar::SetMoreOptionsCommand().
|
protected |
Definition at line 56 of file TitleBar.hxx.
Referenced by SetIcon().
|
protected |
Definition at line 55 of file TitleBar.hxx.
Referenced by get_preferred_size(), sfx2::sidebar::DeckTitleBar::GetDragArea(), GetVisible(), sfx2::sidebar::PanelTitleBar::PanelTitleBar(), SetBackground(), and Show().
|
protected |
Definition at line 57 of file TitleBar.hxx.
Referenced by sfx2::sidebar::DeckTitleBar::DataChanged(), GetToolBox(), sfx2::sidebar::PanelTitleBar::PanelTitleBar(), SetBackground(), sfx2::sidebar::DeckTitleBar::SetCloserVisible(), sfx2::sidebar::PanelTitleBar::SetMoreOptionsCommand(), and TitleBar().