LibreOffice Module sfx2 (master) 1
|
#include <svl/eitem.hxx>
#include <svl/solar.hrc>
#include <vcl/event.hxx>
#include <vcl/settings.hxx>
#include <vcl/svapp.hxx>
#include <vcl/timer.hxx>
#include <vcl/idle.hxx>
#include <o3tl/safeint.hxx>
#include <o3tl/string_view.hxx>
#include <osl/diagnose.h>
#include <toolkit/helper/vclunohelper.hxx>
#include <tools/debug.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/propertysequence.hxx>
#include <sfx2/dockwin.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/dispatch.hxx>
#include <workwin.hxx>
#include <splitwin.hxx>
#include <sfx2/viewsh.hxx>
#include <com/sun/star/beans/UnknownPropertyException.hpp>
#include <com/sun/star/lang/XSingleComponentFactory.hpp>
#include <com/sun/star/awt/XWindow.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/frame/ModuleManager.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/ui/theWindowStateConfiguration.hpp>
#include <com/sun/star/ui/theWindowContentFactoryManager.hpp>
Go to the source code of this file.
Classes | |
class | SfxDockingWindow_Impl |
Macros | |
#define | MAX_TOGGLEAREA_WIDTH 20 |
#define | MAX_TOGGLEAREA_HEIGHT 20 |
Functions | |
static bool | lcl_getWindowState (const uno::Reference< container::XNameAccess > &xWindowStateMgr, const OUString &rResourceURL, WindowState &rWindowState) |
static bool | lcl_checkDockingWindowID (sal_uInt16 nID) |
static SfxWorkWindow * | lcl_getWorkWindowFromXFrame (const uno::Reference< frame::XFrame > &rFrame) |
void | SfxDockingWindowFactory (const uno::Reference< frame::XFrame > &rFrame, std::u16string_view rDockingWindowName) |
Factory function used by the framework layout manager to "create" a docking window with a special name. More... | |
bool | IsDockingWindowVisible (const uno::Reference< frame::XFrame > &rFrame, std::u16string_view rDockingWindowName) |
Function used by the framework layout manager to determine the visibility state of a docking window with a special name. More... | |
IMPL_LINK_NOARG (SfxDockingWindow, TimerHdl, Timer *, void) | |
Variables | |
const int | NUM_OF_DOCKINGWINDOWS = 10 |
#define MAX_TOGGLEAREA_HEIGHT 20 |
Definition at line 54 of file dockwin.cxx.
#define MAX_TOGGLEAREA_WIDTH 20 |
Definition at line 53 of file dockwin.cxx.
IMPL_LINK_NOARG | ( | SfxDockingWindow | , |
TimerHdl | , | ||
Timer * | , | ||
void | |||
) |
Definition at line 1534 of file dockwin.cxx.
References ALIGNDOCKINGWINDOW, SfxWorkWindow::ConfigChild_Impl(), DockingWindow::GetFloatingWindow(), DockingWindow::GetOutputSizePixel(), SfxChildWindow::GetType(), SystemWindow::GetWindowState(), SfxBindings::GetWorkWindow_Impl(), DockingWindow::IsFloatingMode(), vcl::Window::IsReallyVisible(), SfxDockingWindow::pBindings, SfxDockingWindow::pImpl, SfxDockingWindow::pMgr, SfxDockingWindow::SetFloatingSize(), and SPLITWINDOW.
bool IsDockingWindowVisible | ( | const uno::Reference< frame::XFrame > & | rFrame, |
std::u16string_view | rDockingWindowName | ||
) |
Function used by the framework layout manager to determine the visibility state of a docking window with a special name.
The string rDockingWindowName MUST BE a valid ID! The ID is pre-defined by a certain slot range located in sfxsids.hrc (currently SID_DOCKWIN_START = 9800).
Definition at line 349 of file dockwin.cxx.
References SfxWorkWindow::GetChildWindow_Impl(), lcl_checkDockingWindowID(), lcl_getWorkWindowFromXFrame(), and o3tl::toInt32().
Referenced by SfxApplication::GetOrCreate().
|
static |
Definition at line 291 of file dockwin.cxx.
References o3tl::make_unsigned(), and NUM_OF_DOCKINGWINDOWS.
Referenced by IsDockingWindowVisible(), and SfxDockingWindowFactory().
|
static |
Definition at line 93 of file dockwin.cxx.
References a.
Referenced by SfxDockingWrapper::SfxDockingWrapper().
|
static |
Definition at line 296 of file dockwin.cxx.
References SfxFrame::GetFirst(), SfxFrame::GetFrameInterface(), SfxFrame::GetNext(), and SfxFrame::GetWorkWindow_Impl().
Referenced by IsDockingWindowVisible(), and SfxDockingWindowFactory().
void SfxDockingWindowFactory | ( | const uno::Reference< frame::XFrame > & | rFrame, |
std::u16string_view | rDockingWindowName | ||
) |
Factory function used by the framework layout manager to "create" a docking window with a special name.
The string rDockingWindowName MUST BE a valid ID! The ID is pre-defined by a certain slot range located in sfxsids.hrc (currently SID_DOCKWIN_START = 9800).
Definition at line 324 of file dockwin.cxx.
References SfxWorkWindow::GetChildWindow_Impl(), lcl_checkDockingWindowID(), lcl_getWorkWindowFromXFrame(), SfxWorkWindow::SetChildWindow_Impl(), and o3tl::toInt32().
Referenced by SfxApplication::GetOrCreate().
const int NUM_OF_DOCKINGWINDOWS = 10 |
Definition at line 62 of file dockwin.cxx.
Referenced by lcl_checkDockingWindowID().