21 : m_xBuilder(
Application::CreateBuilder(pParent, rUIXMLDescription, false, reinterpret_cast<sal_uInt64>(
SfxViewShell::Current())))
25 m_xContainer->set_background(Theme::GetColor(Theme::Color_PanelBackground));
32 DumpAsPropertyTree(rJsonWriter);
41 if (rEvent.GetId() != VclEventId::ApplicationDataChanged)
50 if (rEvent.
GetType() != DataChangedEventType::SETTINGS)
52 if (rEvent.
GetFlags() & AllSettingsFlags::STYLE)
53 m_xContainer->set_background(Theme::GetColor(Theme::Color_PanelBackground));
65 SAL_WARN(
"sfx.sidebar",
"Expected a toplevel Panel to exist");
IMPL_LINK(PanelLayout, DumpAsPropertyTreeHdl, tools::JsonWriter &, rJsonWriter, void)
static void AddEventListener(const Link< VclSimpleEvent &, void > &rEventListener)
static void RemoveEventListener(const Link< VclSimpleEvent &, void > &rEventListener)
DataChangedEventType GetType() const
AllSettingsFlags GetFlags() const
This class is the base for the Widget Layout-based sidebar panels.
sfx2::sidebar::Panel * m_pPanel
void SetPanel(sfx2::sidebar::Panel *pPanel)
virtual weld::Window * GetFrameWeld() const
std::unique_ptr< weld::Builder > m_xBuilder
virtual void DumpAsPropertyTree(tools::JsonWriter &)
PanelLayout(weld::Widget *pParent, const OUString &rID, const OUString &rUIXMLDescription)
std::unique_ptr< weld::Container > m_xContainer
virtual void DataChanged(const DataChangedEvent &rEvent)
One SfxViewShell more or less represents one edit window for a document, there can be multiple ones f...
#define LINK(Instance, Class, Member)
#define SAL_WARN(area, stream)
std::unique_ptr< sal_Int32[]> pData
Reference< XNameAccess > m_xContainer