mpWorkWindow.reset(VclPtr<WorkWindow>::Create(
pParent,
nStyle)); // For debugging (non-fullscreen) use WB_BORDER | WB_MOVEABLE | WB_SIZEABLE));
if ( ! rxPaneId.is()) throw lang::IllegalArgumentException();
// Create a new top-level window that is displayed full screen. if (bFullScreen)
mpWorkWindow->ShowFullScreenMode(bFullScreen, nScreenNumber);
// For debugging (non-fullscreen) use mpWorkWindow->SetScreenNumber(nScreenNumber);
mpWorkWindow->SetMenuBarMode(MenuBarMode::Hide);
mpWorkWindow->SetBorderStyle(WindowBorderStyle::REMOVEBORDER);
mpWorkWindow->SetBackground(Wallpaper()); // Don't show the window right now in order to allow the setting of an // accessibility object: accessibility objects are typically // requested by AT-tools when the window is shown. Chaining it // afterwards may or may not work.
// Add resize listener at the work window.
Link<VclWindowEvent&,void> aWindowEventHandler (LINK(this, FullScreenPane, WindowEventHandler));
mpWorkWindow->AddEventListener(aWindowEventHandler);
// Set title and icon of the new window to those of the current window // of the view shell. if (pViewShellWindow != nullptr && pDrawDocShell != nullptr)
{
SystemWindow* pSystemWindow = pViewShellWindow->GetSystemWindow();
OUString Title(SdResId(STR_FULLSCREEN_CONSOLE));
Title = Title.replaceFirst("%s", pDrawDocShell->GetTitle(SFX_TITLE_DETECT));
mpWorkWindow->SetText(Title);
mpWorkWindow->SetIcon(pSystemWindow->GetIcon());
}
// For some reason the VCL canvas can not paint into a WorkWindow. // Therefore a child window is created that covers the WorkWindow // completely.
mpWindow = VclPtr<vcl::Window>::Create(mpWorkWindow.get());
mpWindow->SetPosSizePixel(Point(0,0), mpWorkWindow->GetSizePixel());
mpWindow->SetBackground(Wallpaper());
mxWindow = VCLUnoHelper::GetInterface(mpWindow);
Sequence<Any> aArg{ // common: first any is VCL pointer to window (for VCL canvas)
Any(reinterpret_cast<sal_Int64>(pWindow.get())),
Any(css::awt::Rectangle()),
Any(false),
Any(mxWindow)
};
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.