if (pInfo && pInfo->aExtraString.isEmpty() && pInfo->aModule != "sdraw"
&& pInfo->aModule != "simpress" && pInfo->aModule != "smath")
{ // When this is the first start (never had the sidebar open yet), // default to non-expanded sidebars in Writer and Calc. // // HACK: unfortunately I haven't found a clean solution to do // this, so do it this way: // if (!comphelper::LibreOfficeKit::isActive())
{
pDockWin->SetSizePixel(
Size(TabBar::GetDefaultWidth(),
pDockWin->GetSizePixel().Height()));
}
}
pDockWin->Initialize(pInfo);
if (comphelper::LibreOfficeKit::isActive())
{ // Undock sidebar in LOK to allow for resizing freely // (i.e. when the client window is resized) and collapse // it so the client can open it on demand.
pDockWin->SetFloatingSize(Size(pDockWin->GetSizePixel().Width(),
pDockWin->GetSizePixel().Height()));
pDockWin->SetFloatingMode(true);
}
SetHideNotDelete(true);
pDockWin->Show();
}
sal_Int32 SidebarChildWindow::GetDefaultWidth(vcl::Window const* pWindow)
{ if (pWindow != nullptr)
{ // Width of the paragraph panel. conststatic sal_Int32 nMaxPropertyPageWidth(146);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.