LibreOffice Module vcl (master) 1
|
ImplDockingWindowWrapper. More...
#include <impldockingwrapper.hxx>
Private Member Functions | |
DECL_LINK (PopupModeEnd, FloatingWindow *, void) | |
void | ImplEnableStartDocking () |
bool | ImplStartDockingEnabled () const |
void | ImplPreparePopupMode () |
Private Attributes | |
VclPtr< vcl::Window > | mpDockingWindow |
VclPtr< FloatingWindow > | mpFloatWin |
VclPtr< vcl::Window > | mpOldBorderWin |
VclPtr< vcl::Window > | mpParent |
Link< FloatingWindow *, void > | maPopupModeEndHdl |
Point | maFloatPos |
Point | maDockPos |
Point | maMouseOff |
Size | maMinOutSize |
Size | maMaxOutSize |
tools::Rectangle | maDragArea |
tools::Long | mnTrackX |
tools::Long | mnTrackY |
tools::Long | mnTrackWidth |
tools::Long | mnTrackHeight |
sal_Int32 | mnDockLeft |
sal_Int32 | mnDockTop |
sal_Int32 | mnDockRight |
sal_Int32 | mnDockBottom |
WinBits | mnFloatBits |
bool | mbDockCanceled:1 |
bool | mbDocking:1 |
bool | mbLastFloatMode:1 |
bool | mbDockBtn:1 |
bool | mbHideBtn:1 |
bool | mbStartDockingEnabled:1 |
bool | mbLocked:1 |
Friends | |
class | ::vcl::Window |
class | DockingManager |
class | DockingWindow |
ImplDockingWindowWrapper obsoletes the DockingWindow class. It is better because it can make a "normal window" dockable. All DockingWindows should be converted the new class.
Definition at line 33 of file impldockingwrapper.hxx.
ImplDockingWindowWrapper::ImplDockingWindowWrapper | ( | const vcl::Window * | pWindow | ) |
Definition at line 472 of file dockmgr.cxx.
References VclPtr< reference_type >::get(), DockingWindow::GetFloatStyle(), mnFloatBits, mpDockingWindow, mpParent, and Window.
ImplDockingWindowWrapper::~ImplDockingWindowWrapper | ( | ) |
Definition at line 502 of file dockmgr.cxx.
References GetWindow(), IsFloatingMode(), NoFocusChange, SetFloatingMode(), and vcl::Window::Show().
|
private |
bool ImplDockingWindowWrapper::Docking | ( | const Point & | rPos, |
tools::Rectangle & | rRect | ||
) |
Definition at line 657 of file dockmgr.cxx.
References vcl::Window::CallEventListeners(), GetWindow(), IsFloatingMode(), DockingData::maTrackRect, DockingData::mbFloating, and WindowDocking.
Referenced by Tracking().
void ImplDockingWindowWrapper::EndDocking | ( | const tools::Rectangle & | rRect, |
bool | bFloatMode | ||
) |
Definition at line 666 of file dockmgr.cxx.
References vcl::Window::CallEventListeners(), StyleSettings::GetDockingFloatsSupported(), vcl::Window::GetParent(), tools::Rectangle::GetSize(), GetWindow(), IsDockingCanceled(), IsFloatingMode(), mbDockCanceled, mbDocking, mbStartDockingEnabled, mpFloatWin, NoActivate, NoFocusChange, vcl::Window::ScreenToOutputPixel(), SetFloatingMode(), vcl::Window::SetOutputSizePixel(), vcl::Window::SetPosPixel(), vcl::Window::SetPosSizePixel(), vcl::Window::Show(), tools::Rectangle::TopLeft(), and WindowEndDocking.
Referenced by Tracking().
|
inline |
Definition at line 92 of file impldockingwrapper.hxx.
References maDragArea.
Referenced by vcl::Window::EventNotify(), ToolBox::ImplDrawGrip(), ToolBox::ImplFormat(), and ToolBox::MouseMove().
SystemWindow * ImplDockingWindowWrapper::GetFloatingWindow | ( | ) | const |
Definition at line 1068 of file dockmgr.cxx.
References mpFloatWin.
Referenced by DockingManager::EndPopupMode(), DockingManager::GetFloatingWindow(), ToolBox::ImplIsInPopupMode(), IsInPopupMode(), and ToolBox::Select().
|
inline |
Definition at line 122 of file impldockingwrapper.hxx.
References mnFloatBits.
Referenced by DockingWindow::GetFloatStyle().
Point ImplDockingWindowWrapper::GetPosPixel | ( | ) | const |
Definition at line 1007 of file dockmgr.cxx.
References vcl::Window::GetPosPixel(), mpDockingWindow, and mpFloatWin.
Referenced by DockingManager::GetPosSizePixel(), and ImplStartDocking().
Size ImplDockingWindowWrapper::GetSizePixel | ( | ) | const |
Definition at line 1015 of file dockmgr.cxx.
References vcl::Window::GetSizePixel(), mpDockingWindow, and mpFloatWin.
Referenced by DockingManager::GetPosSizePixel(), ImplStartDocking(), and SetFloatingMode().
|
inline |
Definition at line 81 of file impldockingwrapper.hxx.
References mpDockingWindow.
Referenced by Docking(), EndDocking(), ImplPreparePopupMode(), ImplStartDocking(), Lock(), PrepareToggleFloatingMode(), Resizing(), SetFloatingMode(), setPosSizePixel(), StartDocking(), StartPopupMode(), TitleButtonClick(), ToggleFloatingMode(), Tracking(), Unlock(), and ~ImplDockingWindowWrapper().
|
inlineprivate |
Definition at line 73 of file impldockingwrapper.hxx.
References mbStartDockingEnabled.
Referenced by vcl::Window::EventNotify().
|
private |
Definition at line 763 of file dockmgr.cxx.
References Border, VclPtr< reference_type >::get(), vcl::Window::GetSizePixel(), vcl::Window::GetText(), vcl::Window::GetType(), GetWindow(), vcl::Window::GetWindow(), LINK, mpFloatWin, mpOldBorderWin, mpParent, vcl::Window::mpWindowImpl, NoFocusChange, Parent, vcl::Window::SetParent(), vcl::Window::Show(), and TOOLBOX.
Referenced by StartPopupMode().
void ImplDockingWindowWrapper::ImplStartDocking | ( | const Point & | rPos | ) |
Definition at line 511 of file dockmgr.cxx.
References vcl::Window::AbsoluteScreenToOutputPixel(), Point::AdjustX(), Point::AdjustY(), VclPtr< reference_type >::Create(), VclPtr< reference_type >::disposeAndClear(), vcl::Window::GetBorder(), vcl::Window::GetOutputSizePixel(), vcl::Window::GetParent(), vcl::Window::GetPointerState(), GetPosPixel(), GetSizePixel(), GetWindow(), Size::Height(), vcl::Window::ImplGetFrameWindow(), vcl::Window::ImplUpdateAll(), IsFloatingMode(), KeyMod, maMouseOff, vcl::Window::PointerState::maPos, mbDocking, mbLastFloatMode, mbStartDockingEnabled, mnDockBottom, mnDockLeft, mnDockRight, mnDockTop, mnFloatBits, mnTrackHeight, mnTrackWidth, mnTrackX, mnTrackY, mpFloatWin, mpParent, vcl::Window::OutputToScreenPixel(), StartDocking(), vcl::Window::StartTracking(), Size::Width(), Point::X(), and Point::Y().
Referenced by vcl::Window::EventNotify().
|
inlineprivate |
Definition at line 74 of file impldockingwrapper.hxx.
References mbStartDockingEnabled.
Referenced by vcl::Window::EventNotify().
|
inline |
Definition at line 114 of file impldockingwrapper.hxx.
References mbDocking.
Referenced by vcl::Window::EventNotify().
|
inline |
Definition at line 115 of file impldockingwrapper.hxx.
References mbDockCanceled.
Referenced by EndDocking().
bool ImplDockingWindowWrapper::IsFloatingMode | ( | ) | const |
Definition at line 1039 of file dockmgr.cxx.
References mpFloatWin.
Referenced by Docking(), EndDocking(), vcl::Window::EventNotify(), ImplStartDocking(), DockingManager::IsFloating(), DockingWindow::IsFloatingMode(), SetFloatingMode(), StartDocking(), StartPopupMode(), TitleButtonClick(), and ~ImplDockingWindowWrapper().
bool ImplDockingWindowWrapper::IsInPopupMode | ( | ) | const |
Definition at line 876 of file dockmgr.cxx.
References GetFloatingWindow(), and IsInPopupMode().
Referenced by IsInPopupMode(), and DockingManager::IsInPopupMode().
|
inline |
Definition at line 96 of file impldockingwrapper.hxx.
References mbLocked.
Referenced by vcl::Window::EventNotify(), ToolBox::ImplCalcBorder(), ToolBox::ImplUpdateDragArea(), DockingManager::IsLocked(), and SetFloatingMode().
void ImplDockingWindowWrapper::Lock | ( | ) |
Definition at line 1050 of file dockmgr.cxx.
References GetWindow(), ToolBox::Lock(), and mbLocked.
Referenced by DockingManager::Lock().
bool ImplDockingWindowWrapper::PrepareToggleFloatingMode | ( | ) |
Definition at line 711 of file dockmgr.cxx.
References vcl::Window::CallEventListeners(), GetWindow(), and WindowPrepareToggleFloating.
Referenced by SetFloatingMode().
void ImplDockingWindowWrapper::Resizing | ( | Size & | rSize | ) |
Definition at line 749 of file dockmgr.cxx.
References GetWindow(), and DockingWindow::Resizing().
void ImplDockingWindowWrapper::SetDragArea | ( | const tools::Rectangle & | rRect | ) |
Definition at line 1044 of file dockmgr.cxx.
References maDragArea.
Referenced by ToolBox::ImplUpdateDragArea().
void ImplDockingWindowWrapper::SetFloatingMode | ( | bool | bFloatMode | ) |
Definition at line 884 of file dockmgr.cxx.
References Border, bVisible, VclPtr< reference_type >::disposeAndClear(), Docking, VclPtr< reference_type >::get(), SystemWindow::GetMaxOutputSizePixel(), SystemWindow::GetMinOutputSizePixel(), vcl::Window::GetPosPixel(), GetSizePixel(), GetWindow(), vcl::Window::GetWindow(), Hide, IsFloatingMode(), IsLocked(), SystemWindow::IsTitleButtonVisible(), vcl::Window::IsVisible(), maDockPos, maFloatPos, maMaxOutSize, maMinOutSize, mbDockBtn, mbHideBtn, mnFloatBits, mpDockingWindow, mpFloatWin, mpOldBorderWin, mpParent, vcl::Window::mpWindowImpl, NoActivate, NoFocusChange, Parent, PrepareToggleFloatingMode(), vcl::Window::Resize(), vcl::Window::SetParent(), vcl::Window::SetPosPixel(), vcl::Window::Show(), ToggleFloatingMode(), WB_CLOSEABLE, WB_MOVEABLE, WB_OWNERDRAWDECORATION, WB_SIZEABLE, and WB_SYSTEMWINDOW.
Referenced by EndDocking(), vcl::Window::EventNotify(), DockingWindow::SetFloatingMode(), DockingManager::SetFloatingMode(), TitleButtonClick(), and ~ImplDockingWindowWrapper().
void ImplDockingWindowWrapper::SetFloatStyle | ( | WinBits | nWinStyle | ) |
Definition at line 991 of file dockmgr.cxx.
References mnFloatBits.
Referenced by DockingWindow::SetFloatStyle().
void ImplDockingWindowWrapper::SetMaxOutputSizePixel | ( | const Size & | rSize | ) |
Definition at line 1032 of file dockmgr.cxx.
References maMaxOutSize, mpFloatWin, and SystemWindow::SetMaxOutputSizePixel().
Referenced by ToolBox::ImplSetMinMaxFloatSize().
void ImplDockingWindowWrapper::SetMinOutputSizePixel | ( | const Size & | rSize | ) |
Definition at line 1025 of file dockmgr.cxx.
References maMinOutSize, mpFloatWin, and SystemWindow::SetMinOutputSizePixel().
Referenced by ToolBox::ImplSetMinMaxFloatSize().
|
inline |
Definition at line 102 of file impldockingwrapper.hxx.
References maPopupModeEndHdl.
Referenced by DockingManager::SetPopupModeEndHdl().
void ImplDockingWindowWrapper::setPosSizePixel | ( | tools::Long | nX, |
tools::Long | nY, | ||
tools::Long | nWidth, | ||
tools::Long | nHeight, | ||
PosSizeFlags | nFlags | ||
) |
Definition at line 997 of file dockmgr.cxx.
References GetWindow(), mpFloatWin, and vcl::Window::setPosSizePixel().
Referenced by DockingManager::SetPosSizePixel().
void ImplDockingWindowWrapper::ShowMenuTitleButton | ( | bool | bVisible | ) |
Definition at line 757 of file dockmgr.cxx.
References bVisible, Menu, mpFloatWin, and SystemWindow::ShowTitleButton().
Referenced by ToolBox::ImplSetMinMaxFloatSize(), and ToolBox::SetMenuType().
void ImplDockingWindowWrapper::StartDocking | ( | const Point & | rPos, |
tools::Rectangle const & | rRect | ||
) |
Definition at line 649 of file dockmgr.cxx.
References vcl::Window::CallEventListeners(), GetWindow(), IsFloatingMode(), mbDocking, and WindowStartDocking.
Referenced by ImplStartDocking().
void ImplDockingWindowWrapper::StartPopupMode | ( | const tools::Rectangle & | rRect, |
FloatWinPopupFlags | nPopupModeFlags | ||
) |
Definition at line 834 of file dockmgr.cxx.
References ImplPreparePopupMode(), IsFloatingMode(), MakeClientWindowVisibleBeforePopup, mpFloatWin, and FloatingWindow::StartPopupMode().
Referenced by DockingManager::StartPopupMode().
void ImplDockingWindowWrapper::StartPopupMode | ( | ToolBox * | pParentToolBox, |
FloatWinPopupFlags | nPopupModeFlags | ||
) |
Definition at line 807 of file dockmgr.cxx.
References aEvent, AllowTearOff, StyleSettings::GetDockingFloatsSupported(), GetWindow(), GrabFocus, ImplPreparePopupMode(), IsFloatingMode(), ToolBox::IsKeyEvent(), KEY_HOME, vcl::Window::KeyInput(), MakeClientWindowVisibleBeforePopup, mpFloatWin, and FloatingWindow::StartPopupMode().
void ImplDockingWindowWrapper::TitleButtonClick | ( | TitleButton | nButton | ) |
Definition at line 733 of file dockmgr.cxx.
References Docking, ToolBox::ExecuteCustomMenu(), GetWindow(), IsFloatingMode(), Menu, nType, and SetFloatingMode().
void ImplDockingWindowWrapper::ToggleFloatingMode | ( | ) |
Definition at line 718 of file dockmgr.cxx.
References vcl::Window::CallEventListeners(), GetWindow(), mbStartDockingEnabled, ToggleFloatingMode(), and WindowToggleFloating.
Referenced by SetFloatingMode(), and ToggleFloatingMode().
void ImplDockingWindowWrapper::Tracking | ( | const TrackingEvent & | rTEvt | ) |
Definition at line 562 of file dockmgr.cxx.
References tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustLeft(), tools::Rectangle::AdjustRight(), tools::Rectangle::AdjustTop(), Point::AdjustX(), Point::AdjustY(), Big, Docking(), EndDocking(), tools::Rectangle::GetHeight(), TrackingEvent::GetMouseEvent(), vcl::Window::GetOutputSizePixel(), MouseEvent::GetPosPixel(), tools::Rectangle::GetWidth(), GetWindow(), Size::Height(), vcl::Window::HideTracking(), vcl::Window::ImplGetFrameWindow(), MouseEvent::IsModifierChanged(), MouseEvent::IsSynthetic(), TrackingEvent::IsTrackingCanceled(), TrackingEvent::IsTrackingEnded(), tools::Rectangle::Left(), maMouseOff, mbDockCanceled, mbDocking, mbLastFloatMode, mnDockBottom, mnDockLeft, mnDockRight, mnDockTop, mnTrackHeight, mnTrackWidth, mnTrackX, mnTrackY, Object, vcl::Window::OutputToScreenPixel(), vcl::Window::ScreenToOutputPixel(), tools::Rectangle::SetPos(), Point::setX(), Point::setY(), vcl::Window::ShowTracking(), tools::Rectangle::Top(), tools::Rectangle::TopLeft(), Size::Width(), Point::X(), and Point::Y().
Referenced by vcl::Window::Tracking().
void ImplDockingWindowWrapper::Unlock | ( | ) |
Definition at line 1059 of file dockmgr.cxx.
References GetWindow(), ToolBox::Lock(), and mbLocked.
Referenced by DockingManager::Unlock().
|
friend |
Definition at line 35 of file impldockingwrapper.hxx.
|
friend |
Definition at line 36 of file impldockingwrapper.hxx.
|
friend |
Definition at line 37 of file impldockingwrapper.hxx.
|
private |
Definition at line 50 of file impldockingwrapper.hxx.
Referenced by SetFloatingMode().
|
private |
Definition at line 54 of file impldockingwrapper.hxx.
Referenced by GetDragArea(), and SetDragArea().
|
private |
Definition at line 49 of file impldockingwrapper.hxx.
Referenced by SetFloatingMode().
|
private |
Definition at line 53 of file impldockingwrapper.hxx.
Referenced by SetFloatingMode(), and SetMaxOutputSizePixel().
|
private |
Definition at line 52 of file impldockingwrapper.hxx.
Referenced by SetFloatingMode(), and SetMinOutputSizePixel().
|
private |
Definition at line 51 of file impldockingwrapper.hxx.
Referenced by ImplStartDocking(), and Tracking().
|
private |
Definition at line 48 of file impldockingwrapper.hxx.
Referenced by SetPopupModeEndHdl().
|
private |
Definition at line 67 of file impldockingwrapper.hxx.
Referenced by SetFloatingMode().
|
private |
Definition at line 64 of file impldockingwrapper.hxx.
Referenced by EndDocking(), IsDockingCanceled(), and Tracking().
|
private |
Definition at line 65 of file impldockingwrapper.hxx.
Referenced by EndDocking(), ImplStartDocking(), IsDocking(), StartDocking(), and Tracking().
|
private |
Definition at line 68 of file impldockingwrapper.hxx.
Referenced by SetFloatingMode().
|
private |
Definition at line 66 of file impldockingwrapper.hxx.
Referenced by ImplStartDocking(), and Tracking().
|
private |
Definition at line 70 of file impldockingwrapper.hxx.
Referenced by IsLocked(), Lock(), and Unlock().
|
private |
Definition at line 69 of file impldockingwrapper.hxx.
Referenced by EndDocking(), ImplEnableStartDocking(), ImplStartDocking(), ImplStartDockingEnabled(), and ToggleFloatingMode().
|
private |
Definition at line 62 of file impldockingwrapper.hxx.
Referenced by ImplStartDocking(), and Tracking().
|
private |
Definition at line 59 of file impldockingwrapper.hxx.
Referenced by ImplStartDocking(), and Tracking().
|
private |
Definition at line 61 of file impldockingwrapper.hxx.
Referenced by ImplStartDocking(), and Tracking().
|
private |
Definition at line 60 of file impldockingwrapper.hxx.
Referenced by ImplStartDocking(), and Tracking().
|
private |
Definition at line 63 of file impldockingwrapper.hxx.
Referenced by GetFloatStyle(), ImplDockingWindowWrapper(), ImplStartDocking(), SetFloatingMode(), and SetFloatStyle().
|
private |
Definition at line 58 of file impldockingwrapper.hxx.
Referenced by ImplStartDocking(), and Tracking().
|
private |
Definition at line 57 of file impldockingwrapper.hxx.
Referenced by ImplStartDocking(), and Tracking().
|
private |
Definition at line 55 of file impldockingwrapper.hxx.
Referenced by ImplStartDocking(), and Tracking().
|
private |
Definition at line 56 of file impldockingwrapper.hxx.
Referenced by ImplStartDocking(), and Tracking().
|
private |
Definition at line 42 of file impldockingwrapper.hxx.
Referenced by GetPosPixel(), GetSizePixel(), GetWindow(), ImplDockingWindowWrapper(), and SetFloatingMode().
|
private |
Definition at line 45 of file impldockingwrapper.hxx.
Referenced by EndDocking(), DockingWindow::GetFloatingPos(), GetFloatingWindow(), DockingWindow::GetOutputSizePixel(), GetPosPixel(), DockingWindow::GetPosPixel(), GetSizePixel(), DockingWindow::GetSizePixel(), ImplPreparePopupMode(), ImplStartDocking(), IsFloatingMode(), SetFloatingMode(), SetMaxOutputSizePixel(), SetMinOutputSizePixel(), DockingWindow::SetOutputSizePixel(), setPosSizePixel(), DockingWindow::setPosSizePixel(), ShowMenuTitleButton(), and StartPopupMode().
|
private |
Definition at line 46 of file impldockingwrapper.hxx.
Referenced by ImplPreparePopupMode(), and SetFloatingMode().
|
private |
Definition at line 47 of file impldockingwrapper.hxx.
Referenced by ImplPreparePopupMode(), ImplStartDocking(), and SetFloatingMode().