LibreOffice Module sfx2 (master) 1
|
Multiple panels form a single deck. More...
#include <Panel.hxx>
Public Member Functions | |
Panel (const PanelDescriptor &rPanelDescriptor, weld::Widget *pParentWindow, const bool bIsInitiallyExpanded, Deck *pDeck, std::function< Context()> aContextAccess, const css::uno::Reference< css::frame::XFrame > &rxFrame) | |
~Panel () | |
PanelTitleBar * | GetTitleBar () const |
weld::Box * | GetContents () const |
void | Show (bool bShow) |
bool | IsTitleBarOptional () const |
void | SetUIElement (const css::uno::Reference< css::ui::XUIElement > &rxElement) |
const css::uno::Reference< css::ui::XSidebarPanel > & | GetPanelComponent () const |
const css::uno::Reference< css::awt::XWindow > & | GetElementParentWindow () |
css::uno::Reference< css::awt::XWindow > | GetElementWindow () |
void | SetExpanded (const bool bIsExpanded) |
bool | IsExpanded () const |
bool | HasIdPredicate (std::u16string_view rsId) const |
const OUString & | GetId () const |
const OUString & | GetTitle () const |
void | TriggerDeckLayouting () |
void | SetHeightPixel (int nHeight) |
bool | get_extents (tools::Rectangle &rExtents) const |
void | SetLurkMode (bool bLurk) |
Set whether a panel should be present but invisible / inactive. More... | |
bool | IsLurking () const |
void | set_margin_top (int nMargin) |
void | set_margin_bottom (int nMargin) |
void | set_vexpand (bool bExpand) |
weld::Window * | GetFrameWeld () |
void | DataChanged () |
Private Member Functions | |
DECL_DLLPRIVATE_LINK (DumpAsPropertyTreeHdl, tools::JsonWriter &, void) | |
Private Attributes | |
std::unique_ptr< weld::Builder > | mxBuilder |
const OUString | msPanelId |
const OUString | msTitle |
const bool | mbIsTitleBarOptional |
const bool | mbWantsAWT |
css::uno::Reference< css::ui::XUIElement > | mxElement |
css::uno::Reference< css::ui::XSidebarPanel > | mxPanelComponent |
bool | mbIsExpanded |
bool | mbLurking |
const std::function< Context()> | maContextAccess |
const css::uno::Reference< css::frame::XFrame > & | mxFrame |
weld::Widget * | mpParentWindow |
VclPtr< Deck > | mxDeck |
std::unique_ptr< weld::Box > | mxContainer |
std::unique_ptr< PanelTitleBar > | mxTitleBar |
std::unique_ptr< weld::Box > | mxContents |
css::uno::Reference< css::awt::XWindow > | mxXWindow |
Multiple panels form a single deck.
E.g. the Properties deck has panels like Styles, Character, paragraph.
sfx2::sidebar::Panel::Panel | ( | const PanelDescriptor & | rPanelDescriptor, |
weld::Widget * | pParentWindow, | ||
const bool | bIsInitiallyExpanded, | ||
Deck * | pDeck, | ||
std::function< Context()> | aContextAccess, | ||
const css::uno::Reference< css::frame::XFrame > & | rxFrame | ||
) |
Definition at line 47 of file Panel.cxx.
References LINK, mbIsExpanded, mxContainer, mxContainer, and mxContents.
sfx2::sidebar::Panel::~Panel | ( | ) |
Definition at line 116 of file Panel.cxx.
References GetElementWindow(), mxContents, mxElement, mxPanelComponent, mxTitleBar, and mxXWindow.
void sfx2::sidebar::Panel::DataChanged | ( | ) |
Definition at line 210 of file Panel.cxx.
References mxTitleBar.
|
private |
bool sfx2::sidebar::Panel::get_extents | ( | tools::Rectangle & | rExtents | ) | const |
Definition at line 72 of file Panel.cxx.
References mpParentWindow, mxContainer, x, and y.
Referenced by sfx2::sidebar::Deck::ShowPanel().
weld::Box * sfx2::sidebar::Panel::GetContents | ( | ) | const |
Definition at line 150 of file Panel.cxx.
References mxContents.
const Reference< awt::XWindow > & sfx2::sidebar::Panel::GetElementParentWindow | ( | ) |
Definition at line 227 of file Panel.cxx.
References mbWantsAWT, mxContents, and mxXWindow.
Reference< awt::XWindow > sfx2::sidebar::Panel::GetElementWindow | ( | ) |
weld::Window * sfx2::sidebar::Panel::GetFrameWeld | ( | ) |
Definition at line 178 of file Panel.cxx.
References mxDeck.
Referenced by PanelLayout::GetFrameWeld().
|
inline |
|
inline |
|
inline |
PanelTitleBar * sfx2::sidebar::Panel::GetTitleBar | ( | ) | const |
Definition at line 145 of file Panel.cxx.
References mxTitleBar.
Referenced by sfx2::sidebar::FocusManager::FocusPanel().
bool sfx2::sidebar::Panel::HasIdPredicate | ( | std::u16string_view | rsId | ) | const |
|
inline |
Definition at line 74 of file Panel.hxx.
Referenced by sfx2::sidebar::PanelTitleBar::UpdateExpandedState().
|
inline |
void sfx2::sidebar::Panel::set_margin_bottom | ( | int | nMargin | ) |
Definition at line 94 of file Panel.cxx.
References mxContainer.
void sfx2::sidebar::Panel::set_margin_top | ( | int | nMargin | ) |
Definition at line 89 of file Panel.cxx.
References mxContainer.
void sfx2::sidebar::Panel::set_vexpand | ( | bool | bExpand | ) |
Definition at line 99 of file Panel.cxx.
References mxContainer.
void sfx2::sidebar::Panel::SetExpanded | ( | const bool | bIsExpanded | ) |
Definition at line 183 of file Panel.cxx.
References sfx2::sidebar::SidebarController::GetResourceManager(), sfx2::sidebar::SidebarController::GetSidebarControllerForFrame(), maContextAccess, mbIsExpanded, msPanelId, mxContents, mxFrame, mxTitleBar, sfx2::sidebar::ResourceManager::StorePanelExpansionState(), and TriggerDeckLayouting().
Referenced by sfx2::sidebar::FocusManager::FocusPanel().
void sfx2::sidebar::Panel::SetHeightPixel | ( | int | nHeight | ) |
Definition at line 84 of file Panel.cxx.
References mxContainer.
void sfx2::sidebar::Panel::SetLurkMode | ( | bool | bLurk | ) |
void sfx2::sidebar::Panel::SetUIElement | ( | const css::uno::Reference< css::ui::XUIElement > & | rxElement | ) |
Definition at line 160 of file Panel.cxx.
References mbWantsAWT, mxElement, mxPanelComponent, and sfx2::sidebar::SidebarPanelBase::SetParentPanel().
void sfx2::sidebar::Panel::Show | ( | bool | bShow | ) |
Definition at line 155 of file Panel.cxx.
References mxContainer.
void sfx2::sidebar::Panel::TriggerDeckLayouting | ( | ) |
|
private |
Definition at line 106 of file Panel.hxx.
Referenced by SetExpanded().
|
private |
Definition at line 104 of file Panel.hxx.
Referenced by Panel(), and SetExpanded().
|
private |
|
private |
Definition at line 105 of file Panel.hxx.
Referenced by SetLurkMode().
|
private |
Definition at line 101 of file Panel.hxx.
Referenced by GetElementParentWindow(), and SetUIElement().
|
private |
Definition at line 108 of file Panel.hxx.
Referenced by get_extents().
|
private |
Definition at line 98 of file Panel.hxx.
Referenced by HasIdPredicate(), and SetExpanded().
|
private |
|
private |
Definition at line 110 of file Panel.hxx.
Referenced by get_extents(), Panel(), set_margin_bottom(), set_margin_top(), set_vexpand(), SetHeightPixel(), and Show().
|
private |
Definition at line 112 of file Panel.hxx.
Referenced by GetContents(), GetElementParentWindow(), Panel(), SetExpanded(), and ~Panel().
Definition at line 109 of file Panel.hxx.
Referenced by GetFrameWeld(), and TriggerDeckLayouting().
|
private |
Definition at line 102 of file Panel.hxx.
Referenced by GetElementWindow(), SetUIElement(), and ~Panel().
|
private |
Definition at line 107 of file Panel.hxx.
Referenced by SetExpanded().
|
private |
Definition at line 103 of file Panel.hxx.
Referenced by SetUIElement(), and ~Panel().
|
private |
Definition at line 111 of file Panel.hxx.
Referenced by DataChanged(), GetTitleBar(), SetExpanded(), and ~Panel().
|
private |
Definition at line 113 of file Panel.hxx.
Referenced by GetElementParentWindow(), and ~Panel().