LibreOffice Module sfx2 (master) 1
Classes | Macros | Functions | Variables
dockwin.cxx File Reference
#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>
Include dependency graph for dockwin.cxx:

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 SfxWorkWindowlcl_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
 

Macro Definition Documentation

◆ MAX_TOGGLEAREA_HEIGHT

#define MAX_TOGGLEAREA_HEIGHT   20

Definition at line 54 of file dockwin.cxx.

◆ MAX_TOGGLEAREA_WIDTH

#define MAX_TOGGLEAREA_WIDTH   20

Definition at line 53 of file dockwin.cxx.

Function Documentation

◆ IMPL_LINK_NOARG()

IMPL_LINK_NOARG ( SfxDockingWindow  ,
TimerHdl  ,
Timer ,
void   
)

◆ IsDockingWindowVisible()

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().

◆ lcl_checkDockingWindowID()

static bool lcl_checkDockingWindowID ( sal_uInt16  nID)
static

Definition at line 291 of file dockwin.cxx.

References o3tl::make_unsigned(), and NUM_OF_DOCKINGWINDOWS.

Referenced by IsDockingWindowVisible(), and SfxDockingWindowFactory().

◆ lcl_getWindowState()

static bool lcl_getWindowState ( const uno::Reference< container::XNameAccess > &  xWindowStateMgr,
const OUString &  rResourceURL,
WindowState rWindowState 
)
static

Definition at line 93 of file dockwin.cxx.

References a.

Referenced by SfxDockingWrapper::SfxDockingWrapper().

◆ lcl_getWorkWindowFromXFrame()

static SfxWorkWindow * lcl_getWorkWindowFromXFrame ( const uno::Reference< frame::XFrame > &  rFrame)
static

◆ 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().

Variable Documentation

◆ NUM_OF_DOCKINGWINDOWS

const int NUM_OF_DOCKINGWINDOWS = 10

Definition at line 62 of file dockwin.cxx.

Referenced by lcl_checkDockingWindowID().