summaryrefslogtreecommitdiff
path: root/vcl/source/window/window.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window/window.cxx')
-rw-r--r--vcl/source/window/window.cxx482
1 files changed, 0 insertions, 482 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 5bed7e135b94..787d153ba266 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -138,7 +138,6 @@ ImplAccessibleInfos::~ImplAccessibleInfos()
delete pAccessibleDescription;
}
-
WindowImpl::WindowImpl( WindowType nType )
{
maZoom = Fraction( 1, 1 );
@@ -524,14 +523,11 @@ void Window::ImplInitAppFontData( Window* pWindow )
}
}
-
pSVData->maGDIData.mnRealAppFontX = pSVData->maGDIData.mnAppFontX;
if ( pSVData->maAppData.mnDialogScaleX )
pSVData->maGDIData.mnAppFontX += (pSVData->maGDIData.mnAppFontX*pSVData->maAppData.mnDialogScaleX)/100;
}
-
-
bool Window::ImplCheckUIFont( const Font& rFont )
{
if( ImplGetSVData()->maGDIData.mbNativeFontConfig )
@@ -573,8 +569,6 @@ bool Window::ImplCheckUIFont( const Font& rFont )
return bUIFontOk;
}
-
-
void Window::ImplUpdateGlobalSettings( AllSettings& rSettings, bool bCallHdl )
{
StyleSettings aTmpSt( rSettings.GetStyleSettings() );
@@ -815,8 +809,6 @@ void Window::ImplUpdateGlobalSettings( AllSettings& rSettings, bool bCallHdl )
GetpApp()->OverrideSystemSettings( rSettings );
}
-
-
MouseEvent ImplTranslateMouseEvent( const MouseEvent& rE, Window* pSource, Window* pDest )
{
Point aPos = pSource->OutputToScreenPixel( rE.GetPosPixel() );
@@ -824,8 +816,6 @@ MouseEvent ImplTranslateMouseEvent( const MouseEvent& rE, Window* pSource, Windo
return MouseEvent( aPos, rE.GetClicks(), rE.GetMode(), rE.GetButtons(), rE.GetModifier() );
}
-
-
CommandEvent ImplTranslateCommandEvent( const CommandEvent& rCEvt, Window* pSource, Window* pDest )
{
if ( !rCEvt.IsMouseEvent() )
@@ -836,8 +826,6 @@ CommandEvent ImplTranslateCommandEvent( const CommandEvent& rCEvt, Window* pSour
return CommandEvent( aPos, rCEvt.GetCommand(), rCEvt.IsMouseEvent(), rCEvt.GetData() );
}
-
-
void Window::ImplInitWindowData( WindowType nType )
{
// We will eventually being removing the inheritance of OutputDevice from Window.
@@ -845,17 +833,13 @@ void Window::ImplInitWindowData( WindowType nType )
// it will not *be* an OutputDevice
mpOutputDevice = (OutputDevice*)this;
-
mpWindowImpl = new WindowImpl( nType );
meOutDevType = OUTDEV_WINDOW;
-
mbEnableRTL = Application::GetSettings().GetLayoutRTL(); // true: this outdev will be mirrored if RTL window layout (UI mirroring) is globally active
}
-
-
static bool ImplDoTiledRendering()
{
#if !HAVE_FEATURE_DESKTOP
@@ -1157,8 +1141,6 @@ void Window::ImplInit( Window* pParent, WinBits nStyle, SystemParentData* pSyste
GetAccessibleParentWindow()->ImplCallEventListeners( VCLEVENT_WINDOW_CHILDCREATED, this );
}
-
-
void Window::ImplSetFrameParent( const Window* pParent )
{
Window* pFrameWindow = ImplGetSVData()->maWinData.mpFirstFrame;
@@ -1177,8 +1159,6 @@ void Window::ImplSetFrameParent( const Window* pParent )
}
}
-
-
void Window::ImplInsertWindow( Window* pParent )
{
mpWindowImpl->mpParent = pParent;
@@ -1228,8 +1208,6 @@ void Window::ImplInsertWindow( Window* pParent )
}
}
-
-
void Window::ImplRemoveWindow( bool bRemoveFrameData )
{
// remove window from the lists
@@ -1312,8 +1290,6 @@ void Window::reorderWithinParent(sal_uInt16 nNewPosition)
mpWindowImpl->mpParent->mpWindowImpl->mpFirstChild = this;
}
-
-
void Window::ImplCallResize()
{
mpWindowImpl->mbCallResize = false;
@@ -1328,8 +1304,6 @@ void Window::ImplCallResize()
ImplCallEventListeners( VCLEVENT_WINDOW_RESIZE );
}
-
-
void Window::ImplCallMove()
{
mpWindowImpl->mbCallMove = false;
@@ -1372,8 +1346,6 @@ void Window::ImplCallMove()
ImplCallEventListeners( VCLEVENT_WINDOW_MOVE );
}
-
-
static OString ImplAutoHelpID( ResMgr* pResMgr )
{
OString aRet;
@@ -1384,8 +1356,6 @@ static OString ImplAutoHelpID( ResMgr* pResMgr )
return aRet;
}
-
-
WinBits Window::ImplInitRes( const ResId& rResId )
{
GetRes( rResId );
@@ -1397,8 +1367,6 @@ WinBits Window::ImplInitRes( const ResId& rResId )
return nStyle;
}
-
-
WindowResHeader Window::ImplLoadResHeader( const ResId& rResId )
{
WindowResHeader aHeader;
@@ -1509,8 +1477,6 @@ void Window::ImplLoadRes( const ResId& rResId )
}
}
-
-
ImplWinData* Window::ImplGetWinData() const
{
if ( !mpWindowImpl->mpWinData )
@@ -1535,8 +1501,6 @@ ImplWinData* Window::ImplGetWinData() const
return mpWindowImpl->mpWinData;
}
-
-
SalGraphics* Window::ImplGetFrameGraphics() const
{
if ( mpWindowImpl->mpFrameWindow->mpGraphics )
@@ -1552,8 +1516,6 @@ SalGraphics* Window::ImplGetFrameGraphics() const
return mpWindowImpl->mpFrameWindow->mpGraphics;
}
-
-
Window* Window::ImplFindWindow( const Point& rFramePos )
{
Window* pTempWindow;
@@ -1595,8 +1557,6 @@ Window* Window::ImplFindWindow( const Point& rFramePos )
return NULL;
}
-
-
sal_uInt16 Window::ImplHitTest( const Point& rFramePos )
{
Point aFramePos( rFramePos );
@@ -1624,8 +1584,6 @@ sal_uInt16 Window::ImplHitTest( const Point& rFramePos )
return nHitTest;
}
-
-
bool Window::ImplIsRealParentPath( const Window* pWindow ) const
{
pWindow = pWindow->GetParent();
@@ -1639,8 +1597,6 @@ bool Window::ImplIsRealParentPath( const Window* pWindow ) const
return false;
}
-
-
bool Window::ImplIsChild( const Window* pWindow, bool bSystemWindow ) const
{
do
@@ -1658,8 +1614,6 @@ bool Window::ImplIsChild( const Window* pWindow, bool bSystemWindow ) const
return false;
}
-
-
bool Window::ImplIsWindowOrChild( const Window* pWindow, bool bSystemWindow ) const
{
if ( this == pWindow )
@@ -1667,8 +1621,6 @@ bool Window::ImplIsWindowOrChild( const Window* pWindow, bool bSystemWindow ) co
return ImplIsChild( pWindow, bSystemWindow );
}
-
-
int Window::ImplTestMousePointerSet()
{
// as soon as mouse is captured, switch mouse-pointer
@@ -1683,8 +1635,6 @@ int Window::ImplTestMousePointerSet()
return sal_False;
}
-
-
PointerStyle Window::ImplGetMousePointer() const
{
PointerStyle ePointerStyle;
@@ -1727,8 +1677,6 @@ PointerStyle Window::ImplGetMousePointer() const
return ePointerStyle;
}
-
-
void Window::ImplResetReallyVisible()
{
bool bBecameReallyInvisible = mpWindowImpl->mbReallyVisible;
@@ -1762,8 +1710,6 @@ void Window::ImplResetReallyVisible()
}
}
-
-
void Window::ImplSetReallyVisible()
{
// #i43594# it is possible that INITSHOW was never send, because the visibility state changed between
@@ -1804,8 +1750,6 @@ void Window::ImplSetReallyVisible()
}
}
-
-
void Window::ImplCallInitShow()
{
mpWindowImpl->mbReallyShown = true;
@@ -1830,8 +1774,6 @@ void Window::ImplCallInitShow()
}
}
-
-
void Window::ImplAddDel( ImplDelData* pDel ) // TODO: make "const" when incompatiblity ok
{
DBG_ASSERT( !pDel->mpWindow, "Window::ImplAddDel(): cannot add ImplDelData twice !" );
@@ -1843,8 +1785,6 @@ void Window::ImplAddDel( ImplDelData* pDel ) // TODO: make "const" when incompat
}
}
-
-
void Window::ImplRemoveDel( ImplDelData* pDel ) // TODO: make "const" when incompatiblity ok
{
pDel->mpWindow = NULL; // #112873# pDel is not associated with a Window anymore
@@ -1859,8 +1799,6 @@ void Window::ImplRemoveDel( ImplDelData* pDel ) // TODO: make "const" when incom
}
}
-
-
void Window::ImplInitResolutionSettings()
{
// recalculate AppFont-resolution and DPI-resolution
@@ -1896,8 +1834,6 @@ void Window::ImplInitResolutionSettings()
}
}
-
-
void Window::ImplPointToLogic( Font& rFont ) const
{
Size aSize = rFont.GetSize();
@@ -1923,8 +1859,6 @@ void Window::ImplPointToLogic( Font& rFont ) const
rFont.SetSize( aSize );
}
-
-
void Window::ImplLogicToPoint( Font& rFont ) const
{
Size aSize = rFont.GetSize();
@@ -1950,8 +1884,6 @@ void Window::ImplLogicToPoint( Font& rFont ) const
rFont.SetSize( aSize );
}
-
-
bool Window::ImplSysObjClip( const Region* pOldRegion )
{
bool bUpdate = true;
@@ -2039,8 +1971,6 @@ bool Window::ImplSysObjClip( const Region* pOldRegion )
return bUpdate;
}
-
-
void Window::ImplUpdateSysObjChildrenClip()
{
if ( mpWindowImpl->mpSysObj && mpWindowImpl->mbInitWinClipRegion )
@@ -2054,8 +1984,6 @@ void Window::ImplUpdateSysObjChildrenClip()
}
}
-
-
void Window::ImplUpdateSysObjOverlapsClip()
{
ImplUpdateSysObjChildrenClip();
@@ -2068,8 +1996,6 @@ void Window::ImplUpdateSysObjOverlapsClip()
}
}
-
-
void Window::ImplUpdateSysObjClip()
{
if ( !ImplIsOverlapWindow() )
@@ -2091,8 +2017,6 @@ void Window::ImplUpdateSysObjClip()
mpWindowImpl->mpFrameWindow->ImplUpdateSysObjOverlapsClip();
}
-
-
bool Window::ImplSetClipFlagChildren( bool bSysObjOnlySmaller )
{
bool bUpdate = true;
@@ -2138,8 +2062,6 @@ bool Window::ImplSetClipFlagChildren( bool bSysObjOnlySmaller )
return bUpdate;
}
-
-
bool Window::ImplSetClipFlagOverlapWindows( bool bSysObjOnlySmaller )
{
bool bUpdate = ImplSetClipFlagChildren( bSysObjOnlySmaller );
@@ -2155,8 +2077,6 @@ bool Window::ImplSetClipFlagOverlapWindows( bool bSysObjOnlySmaller )
return bUpdate;
}
-
-
bool Window::ImplSetClipFlag( bool bSysObjOnlySmaller )
{
if ( !ImplIsOverlapWindow() )
@@ -2189,8 +2109,6 @@ bool Window::ImplSetClipFlag( bool bSysObjOnlySmaller )
return mpWindowImpl->mpFrameWindow->ImplSetClipFlagOverlapWindows( bSysObjOnlySmaller );
}
-
-
void Window::ImplIntersectWindowClipRegion( Region& rRegion )
{
if ( mpWindowImpl->mbInitWinClipRegion )
@@ -2199,8 +2117,6 @@ void Window::ImplIntersectWindowClipRegion( Region& rRegion )
rRegion.Intersect( mpWindowImpl->maWinClipRegion );
}
-
-
void Window::ImplIntersectWindowRegion( Region& rRegion )
{
rRegion.Intersect( Rectangle( Point( mnOutOffX, mnOutOffY ),
@@ -2209,8 +2125,6 @@ void Window::ImplIntersectWindowRegion( Region& rRegion )
rRegion.Intersect( ImplPixelToDevicePixel( mpWindowImpl->maWinRegion ) );
}
-
-
void Window::ImplExcludeWindowRegion( Region& rRegion )
{
if ( mpWindowImpl->mbWinRegion )
@@ -2229,8 +2143,6 @@ void Window::ImplExcludeWindowRegion( Region& rRegion )
}
}
-
-
void Window::ImplExcludeOverlapWindows( Region& rRegion )
{
Window* pWindow = mpWindowImpl->mpFirstOverlap;
@@ -2246,8 +2158,6 @@ void Window::ImplExcludeOverlapWindows( Region& rRegion )
}
}
-
-
void Window::ImplExcludeOverlapWindows2( Region& rRegion )
{
if ( mpWindowImpl->mbReallyVisible )
@@ -2256,8 +2166,6 @@ void Window::ImplExcludeOverlapWindows2( Region& rRegion )
ImplExcludeOverlapWindows( rRegion );
}
-
-
void Window::ImplClipBoundaries( Region& rRegion, bool bThis, bool bOverlaps )
{
if ( bThis )
@@ -2291,8 +2199,6 @@ void Window::ImplClipBoundaries( Region& rRegion, bool bThis, bool bOverlaps )
ImplGetParent()->ImplIntersectWindowClipRegion( rRegion );
}
-
-
bool Window::ImplClipChildren( Region& rRegion )
{
bool bOtherClip = false;
@@ -2316,8 +2222,6 @@ bool Window::ImplClipChildren( Region& rRegion )
return bOtherClip;
}
-
-
void Window::ImplClipAllChildren( Region& rRegion )
{
Window* pWindow = mpWindowImpl->mpFirstChild;
@@ -2329,8 +2233,6 @@ void Window::ImplClipAllChildren( Region& rRegion )
}
}
-
-
void Window::ImplClipSiblings( Region& rRegion )
{
Window* pWindow = ImplGetParent()->mpWindowImpl->mpFirstChild;
@@ -2346,8 +2248,6 @@ void Window::ImplClipSiblings( Region& rRegion )
}
}
-
-
void Window::ImplInitWinClipRegion()
{
// Build Window Region
@@ -2370,8 +2270,6 @@ void Window::ImplInitWinClipRegion()
mpWindowImpl->mbInitWinClipRegion = false;
}
-
-
void Window::ImplInitWinChildClipRegion()
{
if ( !mpWindowImpl->mpFirstChild )
@@ -2395,8 +2293,6 @@ void Window::ImplInitWinChildClipRegion()
mpWindowImpl->mbInitChildRegion = false;
}
-
-
Region* Window::ImplGetWinChildClipRegion()
{
if ( mpWindowImpl->mbInitWinClipRegion )
@@ -2409,8 +2305,6 @@ Region* Window::ImplGetWinChildClipRegion()
return &mpWindowImpl->maWinClipRegion;
}
-
-
void Window::ImplIntersectAndUnionOverlapWindows( const Region& rInterRegion, Region& rRegion )
{
Window* pWindow = mpWindowImpl->mpFirstOverlap;
@@ -2428,8 +2322,6 @@ void Window::ImplIntersectAndUnionOverlapWindows( const Region& rInterRegion, Re
}
}
-
-
void Window::ImplIntersectAndUnionOverlapWindows2( const Region& rInterRegion, Region& rRegion )
{
if ( mpWindowImpl->mbReallyVisible )
@@ -2442,8 +2334,6 @@ void Window::ImplIntersectAndUnionOverlapWindows2( const Region& rInterRegion, R
ImplIntersectAndUnionOverlapWindows( rInterRegion, rRegion );
}
-
-
void Window::ImplCalcOverlapRegionOverlaps( const Region& rInterRegion, Region& rRegion )
{
// Clip Overlap Siblings
@@ -2470,8 +2360,6 @@ void Window::ImplCalcOverlapRegionOverlaps( const Region& rInterRegion, Region&
ImplIntersectAndUnionOverlapWindows( rInterRegion, rRegion );
}
-
-
void Window::ImplCalcOverlapRegion( const Rectangle& rSourceRect, Region& rRegion,
bool bChildren, bool bParent, bool bSiblings )
{
@@ -2542,8 +2430,6 @@ void Window::ImplCalcOverlapRegion( const Rectangle& rSourceRect, Region& rRegio
}
}
-
-
void Window::ImplCallPaint( const Region* pRegion, sal_uInt16 nPaintFlags )
{
Exception aException;
@@ -2702,8 +2588,6 @@ void Window::ImplCallPaint( const Region* pRegion, sal_uInt16 nPaintFlags )
}
}
-
-
void Window::ImplCallOverlapPaint()
{
// emit overlapping windows first
@@ -2724,16 +2608,12 @@ void Window::ImplCallOverlapPaint()
}
}
-
-
void Window::ImplPostPaint()
{
if ( !ImplDoTiledRendering() && !mpWindowImpl->mpFrameData->maPaintTimer.IsActive() )
mpWindowImpl->mpFrameData->maPaintTimer.Start();
}
-
-
IMPL_LINK_NOARG(Window, ImplHandlePaintHdl)
{
// save paint events until layout is done
@@ -2752,8 +2632,6 @@ IMPL_LINK_NOARG(Window, ImplHandlePaintHdl)
return 0;
}
-
-
IMPL_LINK_NOARG(Window, ImplHandleResizeTimerHdl)
{
if( mpWindowImpl->mbReallyVisible )
@@ -2773,8 +2651,6 @@ IMPL_LINK_NOARG(Window, ImplHandleResizeTimerHdl)
return 0;
}
-
-
void Window::ImplInvalidateFrameRegion( const Region* pRegion, sal_uInt16 nFlags )
{
// set PAINTCHILDREN for all parent windows till the first OverlapWindow
@@ -2832,8 +2708,6 @@ void Window::ImplInvalidateFrameRegion( const Region* pRegion, sal_uInt16 nFlags
ImplPostPaint();
}
-
-
void Window::ImplInvalidateOverlapFrameRegion( const Region& rRegion )
{
Region aRegion = rRegion;
@@ -2853,8 +2727,6 @@ void Window::ImplInvalidateOverlapFrameRegion( const Region& rRegion )
}
}
-
-
void Window::ImplInvalidateParentFrameRegion( Region& rRegion )
{
if ( mpWindowImpl->mbOverlapWin )
@@ -2866,8 +2738,6 @@ void Window::ImplInvalidateParentFrameRegion( Region& rRegion )
}
}
-
-
void Window::ImplInvalidate( const Region* pRegion, sal_uInt16 nFlags )
{
@@ -2954,8 +2824,6 @@ void Window::ImplInvalidate( const Region* pRegion, sal_uInt16 nFlags )
pOpaqueWindow->Update(); // start painting at the opaque parent
}
-
-
void Window::ImplMoveInvalidateRegion( const Rectangle& rRect,
long nHorzScroll, long nVertScroll,
bool bChildren )
@@ -2979,8 +2847,6 @@ void Window::ImplMoveInvalidateRegion( const Rectangle& rRect,
}
}
-
-
void Window::ImplMoveAllInvalidateRegions( const Rectangle& rRect,
long nHorzScroll, long nVertScroll,
bool bChildren )
@@ -3018,8 +2884,6 @@ void Window::ImplMoveAllInvalidateRegions( const Rectangle& rRect,
}
}
-
-
void Window::ImplValidateFrameRegion( const Region* pRegion, sal_uInt16 nFlags )
{
if ( !pRegion )
@@ -3062,8 +2926,6 @@ void Window::ImplValidateFrameRegion( const Region* pRegion, sal_uInt16 nFlags )
}
}
-
-
void Window::ImplValidate( const Region* pRegion, sal_uInt16 nFlags )
{
// assemble region
@@ -3103,8 +2965,6 @@ void Window::ImplValidate( const Region* pRegion, sal_uInt16 nFlags )
}
}
-
-
void Window::ImplScroll( const Rectangle& rRect,
long nHorzScroll, long nVertScroll, sal_uInt16 nFlags )
{
@@ -3284,8 +3144,6 @@ void Window::ImplScroll( const Rectangle& rRect,
mpWindowImpl->mpCursor->ImplResume();
}
-
-
void Window::ImplUpdateAll( bool bOverlapWindows )
{
if ( !mpWindowImpl->mbReallyVisible )
@@ -3316,8 +3174,6 @@ void Window::ImplUpdateAll( bool bOverlapWindows )
Flush();
}
-
-
void Window::ImplUpdateWindowPtr( Window* pWindow )
{
if ( mpWindowImpl->mpFrameWindow != pWindow->mpWindowImpl->mpFrameWindow )
@@ -3343,8 +3199,6 @@ void Window::ImplUpdateWindowPtr( Window* pWindow )
}
}
-
-
void Window::ImplUpdateWindowPtr()
{
Window* pChild = mpWindowImpl->mpFirstChild;
@@ -3355,8 +3209,6 @@ void Window::ImplUpdateWindowPtr()
}
}
-
-
void Window::ImplUpdateOverlapWindowPtr( bool bNewFrame )
{
bool bVisible = IsVisible();
@@ -3384,8 +3236,6 @@ void Window::ImplUpdateOverlapWindowPtr( bool bNewFrame )
Show( true );
}
-
-
bool Window::ImplUpdatePos()
{
bool bSysChild = false;
@@ -3417,8 +3267,6 @@ bool Window::ImplUpdatePos()
return bSysChild;
}
-
-
void Window::ImplUpdateSysObjPos()
{
if ( mpWindowImpl->mpSysObj )
@@ -3432,7 +3280,6 @@ void Window::ImplUpdateSysObjPos()
}
}
-
void Window::ImplPosSizeWindow( long nX, long nY,
long nWidth, long nHeight, sal_uInt16 nFlags )
{
@@ -3737,8 +3584,6 @@ void Window::ImplPosSizeWindow( long nX, long nY,
delete pOldRegion;
}
-
-
void Window::ImplToBottomChild()
{
if ( !ImplIsOverlapWindow() && !mpWindowImpl->mbReallyVisible && (mpWindowImpl->mpParent->mpWindowImpl->mpLastChild != this) )
@@ -3756,8 +3601,6 @@ void Window::ImplToBottomChild()
}
}
-
-
void Window::ImplCalcToTop( ImplCalcToTopData* pPrevData )
{
DBG_ASSERT( ImplIsOverlapWindow(), "Window::ImplCalcToTop(): Is not a OverlapWindow" );
@@ -3785,8 +3628,6 @@ void Window::ImplCalcToTop( ImplCalcToTopData* pPrevData )
}
}
-
-
void Window::ImplToTop( sal_uInt16 nFlags )
{
DBG_ASSERT( ImplIsOverlapWindow(), "Window::ImplToTop(): Is not a OverlapWindow" );
@@ -3877,8 +3718,6 @@ void Window::ImplToTop( sal_uInt16 nFlags )
}
}
-
-
void Window::ImplStartToTop( sal_uInt16 nFlags )
{
ImplCalcToTopData aStartData;
@@ -3932,8 +3771,6 @@ void Window::ImplStartToTop( sal_uInt16 nFlags )
}
}
-
-
void Window::ImplFocusToTop( sal_uInt16 nFlags, bool bReallyVisible )
{
// do we need to fetch the focus?
@@ -3961,8 +3798,6 @@ void Window::ImplFocusToTop( sal_uInt16 nFlags, bool bReallyVisible )
ImplGenerateMouseMove();
}
-
-
void Window::ImplShowAllOverlaps()
{
Window* pOverlapWindow = mpWindowImpl->mpFirstOverlap;
@@ -3978,8 +3813,6 @@ void Window::ImplShowAllOverlaps()
}
}
-
-
void Window::ImplHideAllOverlaps()
{
Window* pOverlapWindow = mpWindowImpl->mpFirstOverlap;
@@ -3995,8 +3828,6 @@ void Window::ImplHideAllOverlaps()
}
}
-
-
void Window::ImplCallMouseMove( sal_uInt16 nMouseCode, bool bModChanged )
{
if ( mpWindowImpl->mpFrameData->mbMouseIn && mpWindowImpl->mpFrameWindow->mpWindowImpl->mbReallyVisible )
@@ -4022,16 +3853,12 @@ void Window::ImplCallMouseMove( sal_uInt16 nMouseCode, bool bModChanged )
}
}
-
-
void Window::ImplGenerateMouseMove()
{
if ( !mpWindowImpl->mpFrameData->mnMouseMoveId )
Application::PostUserEvent( mpWindowImpl->mpFrameData->mnMouseMoveId, LINK( mpWindowImpl->mpFrameWindow, Window, ImplGenerateMouseMoveHdl ) );
}
-
-
IMPL_LINK_NOARG(Window, ImplGenerateMouseMoveHdl)
{
mpWindowImpl->mpFrameData->mnMouseMoveId = 0;
@@ -4045,15 +3872,11 @@ IMPL_LINK_NOARG(Window, ImplGenerateMouseMoveHdl)
return 0;
}
-
-
void Window::ImplInvertFocus( const Rectangle& rRect )
{
InvertTracking( rRect, SHOWTRACK_SMALL | SHOWTRACK_WINDOW );
}
-
-
void Window::ImplCallFocusChangeActivate( Window* pNewOverlapWindow,
Window* pOldOverlapWindow )
{
@@ -4145,7 +3968,6 @@ static bool IsWindowFocused(const WindowImpl& rWinImpl)
return false;
}
-
void Window::ImplGrabFocus( sal_uInt16 nFlags )
{
// #143570# no focus for destructing windows
@@ -4234,7 +4056,6 @@ void Window::ImplGrabFocus( sal_uInt16 nFlags )
pParent = pParent->mpWindowImpl->mpParent;
}
-
if ( ( pSVData->maWinData.mpFocusWin != this && ! mpWindowImpl->mbInDtor ) || ( bAsyncFocusWaiting && !bHasFocus && !bMustNotGrabFocus ) )
{
// EndExtTextInput if it is not the same window
@@ -4364,8 +4185,6 @@ void Window::ImplGrabFocusToDocument( sal_uInt16 nFlags )
}
}
-
-
void Window::ImplNewInputContext()
{
ImplSVData* pSVData = ImplGetSVData();
@@ -4411,15 +4230,11 @@ void Window::ImplNewInputContext()
pFocusWin->mpFontCache->Release( pFontEntry );
}
-
-
Window::Window( WindowType nType )
{
ImplInitWindowData( nType );
}
-
-
Window::Window( Window* pParent, WinBits nStyle )
{
@@ -4427,8 +4242,6 @@ Window::Window( Window* pParent, WinBits nStyle )
ImplInit( pParent, nStyle, NULL );
}
-
-
Window::Window( Window* pParent, const ResId& rResId )
: mpWindowImpl(NULL)
{
@@ -4442,7 +4255,6 @@ Window::Window( Window* pParent, const ResId& rResId )
Show();
}
-
#if OSL_DEBUG_LEVEL > 0
namespace
{
@@ -4466,14 +4278,12 @@ namespace
}
#endif
-
Window::~Window()
{
vcl::LazyDeletor<Window>::Undelete( this );
DBG_ASSERT( !mpWindowImpl->mbInDtor, "~Window - already in DTOR!" );
-
// remove Key and Mouse events issued by Application::PostKey/MouseEvent
Application::RemoveMouseAndKeyEvents( this );
@@ -4500,7 +4310,6 @@ Window::~Window()
// remove associated data structures from dockingmanager
ImplGetDockingManager()->RemoveWindow( this );
-
// remove ownerdraw decorated windows from list in the top-most frame window
if( (GetStyle() & WB_OWNERDRAWDECORATION) && mpWindowImpl->mbFrame )
{
@@ -4797,7 +4606,6 @@ Window::~Window()
}
}
-
if ( pOverlapWindow != 0 &&
pOverlapWindow->mpWindowImpl->mpLastFocusWindow == this )
pOverlapWindow->mpWindowImpl->mpLastFocusWindow = NULL;
@@ -4907,7 +4715,6 @@ Window::~Window()
delete mpWindowImpl; mpWindowImpl = NULL;
}
-
void Window::doLazyDelete()
{
SystemWindow* pSysWin = dynamic_cast<SystemWindow*>(this);
@@ -4930,8 +4737,6 @@ void Window::SimulateKeyPress( sal_uInt16 nKeyCode ) const
mpWindowImpl->mpFrame->SimulateKeyPress(nKeyCode);
}
-
-
void Window::MouseMove( const MouseEvent& rMEvt )
{
NotifyEvent aNEvt( EVENT_MOUSEMOVE, this, &rMEvt );
@@ -4939,8 +4744,6 @@ void Window::MouseMove( const MouseEvent& rMEvt )
mpWindowImpl->mbMouseMove = true;
}
-
-
void Window::MouseButtonDown( const MouseEvent& rMEvt )
{
NotifyEvent aNEvt( EVENT_MOUSEBUTTONDOWN, this, &rMEvt );
@@ -4948,8 +4751,6 @@ void Window::MouseButtonDown( const MouseEvent& rMEvt )
mpWindowImpl->mbMouseButtonDown = true;
}
-
-
void Window::MouseButtonUp( const MouseEvent& rMEvt )
{
NotifyEvent aNEvt( EVENT_MOUSEBUTTONUP, this, &rMEvt );
@@ -4957,8 +4758,6 @@ void Window::MouseButtonUp( const MouseEvent& rMEvt )
mpWindowImpl->mbMouseButtonUp = true;
}
-
-
void Window::KeyInput( const KeyEvent& rKEvt )
{
NotifyEvent aNEvt( EVENT_KEYINPUT, this, &rKEvt );
@@ -4966,8 +4765,6 @@ void Window::KeyInput( const KeyEvent& rKEvt )
mpWindowImpl->mbKeyInput = true;
}
-
-
void Window::KeyUp( const KeyEvent& rKEvt )
{
NotifyEvent aNEvt( EVENT_KEYUP, this, &rKEvt );
@@ -4975,27 +4772,19 @@ void Window::KeyUp( const KeyEvent& rKEvt )
mpWindowImpl->mbKeyUp = true;
}
-
-
void Window::PrePaint()
{
}
-
-
void Window::Paint( const Rectangle& rRect )
{
ImplCallEventListeners( VCLEVENT_WINDOW_PAINT, (void*)&rRect );
}
-
-
void Window::PostPaint()
{
}
-
-
void Window::Draw( OutputDevice*, const Point&, const Size&, sal_uLong )
{
}
@@ -5022,16 +4811,12 @@ void Window::GetFocus()
Notify( aNEvt );
}
-
-
void Window::LoseFocus()
{
NotifyEvent aNEvt( EVENT_LOSEFOCUS, this );
Notify( aNEvt );
}
-
-
void Window::RequestHelp( const HelpEvent& rHEvt )
{
// if Balloon-Help is requested, show the balloon
@@ -5082,8 +4867,6 @@ void Window::RequestHelp( const HelpEvent& rHEvt )
}
}
-
-
void Window::Command( const CommandEvent& rCEvt )
{
ImplCallEventListeners( VCLEVENT_WINDOW_COMMAND, (void*)&rCEvt );
@@ -5093,8 +4876,6 @@ void Window::Command( const CommandEvent& rCEvt )
mpWindowImpl->mbCommand = true;
}
-
-
void Window::Tracking( const TrackingEvent& rTEvt )
{
@@ -5103,14 +4884,10 @@ void Window::Tracking( const TrackingEvent& rTEvt )
pWrapper->Tracking( rTEvt );
}
-
-
void Window::UserEvent( sal_uLong, void* )
{
}
-
-
void Window::StateChanged( StateChangedType eType )
{
switch (eType)
@@ -5134,14 +4911,10 @@ void Window::StateChanged( StateChangedType eType )
}
}
-
-
void Window::DataChanged( const DataChangedEvent& )
{
}
-
-
void Window::ImplNotifyKeyMouseCommandEventListeners( NotifyEvent& rNEvt )
{
if( rNEvt.GetType() == EVENT_COMMAND )
@@ -5241,8 +5014,6 @@ void Window::ImplNotifyKeyMouseCommandEventListeners( NotifyEvent& rNEvt )
}
}
-
-
bool Window::PreNotify( NotifyEvent& rNEvt )
{
bool bDone = false;
@@ -5284,8 +5055,6 @@ bool Window::PreNotify( NotifyEvent& rNEvt )
return bDone;
}
-
-
bool Window::Notify( NotifyEvent& rNEvt )
{
bool nRet = false;
@@ -5393,8 +5162,6 @@ bool Window::Notify( NotifyEvent& rNEvt )
return nRet;
}
-
-
void Window::ImplCallEventListeners( sal_uLong nEvent, void* pData )
{
// The implementation was moved to CallEventListeners(),
@@ -5406,8 +5173,6 @@ void Window::ImplCallEventListeners( sal_uLong nEvent, void* pData )
CallEventListeners( nEvent, pData );
}
-
-
void Window::CallEventListeners( sal_uLong nEvent, void* pData )
{
VclWindowEvent aEvent( this, nEvent, pData );
@@ -5448,36 +5213,26 @@ void Window::FireVclEvent( VclSimpleEvent* pEvent )
ImplGetSVData()->mpApp->ImplCallEventListeners(pEvent);
}
-
-
void Window::AddEventListener( const Link& rEventListener )
{
mpWindowImpl->maEventListeners.addListener( rEventListener );
}
-
-
void Window::RemoveEventListener( const Link& rEventListener )
{
mpWindowImpl->maEventListeners.removeListener( rEventListener );
}
-
-
void Window::AddChildEventListener( const Link& rEventListener )
{
mpWindowImpl->maChildEventListeners.addListener( rEventListener );
}
-
-
void Window::RemoveChildEventListener( const Link& rEventListener )
{
mpWindowImpl->maChildEventListeners.removeListener( rEventListener );
}
-
-
sal_uLong Window::PostUserEvent( const Link& rLink, void* pCaller )
{
sal_uLong nEventId;
@@ -5485,10 +5240,6 @@ sal_uLong Window::PostUserEvent( const Link& rLink, void* pCaller )
return nEventId;
}
-
-
-
-
bool Window::PostUserEvent( sal_uLong& rEventId, const Link& rLink, void* pCaller )
{
@@ -5511,8 +5262,6 @@ bool Window::PostUserEvent( sal_uLong& rEventId, const Link& rLink, void* pCalle
}
}
-
-
void Window::RemoveUserEvent( sal_uLong nUserEvent )
{
@@ -5532,8 +5281,6 @@ void Window::RemoveUserEvent( sal_uLong nUserEvent )
pSVEvent->mbCall = false;
}
-
-
bool Window::IsLocked( bool bChildren ) const
{
if ( mpWindowImpl->mnLockCount != 0 )
@@ -5553,8 +5300,6 @@ bool Window::IsLocked( bool bChildren ) const
return false;
}
-
-
void Window::SetStyle( WinBits nStyle )
{
@@ -5566,8 +5311,6 @@ void Window::SetStyle( WinBits nStyle )
}
}
-
-
void Window::SetExtendedStyle( WinBits nExtendedStyle )
{
@@ -5592,8 +5335,6 @@ void Window::SetExtendedStyle( WinBits nExtendedStyle )
}
}
-
-
SystemWindow* Window::GetSystemWindow() const
{
@@ -5603,8 +5344,6 @@ SystemWindow* Window::GetSystemWindow() const
return (SystemWindow*)pWin;
}
-
-
void Window::SetBorderStyle( sal_uInt16 nBorderStyle )
{
@@ -5645,8 +5384,6 @@ void Window::SetBorderStyle( sal_uInt16 nBorderStyle )
}
}
-
-
sal_uInt16 Window::GetBorderStyle() const
{
@@ -5661,8 +5398,6 @@ sal_uInt16 Window::GetBorderStyle() const
return 0;
}
-
-
long Window::CalcTitleWidth() const
{
@@ -5691,8 +5426,6 @@ long Window::CalcTitleWidth() const
return 0;
}
-
-
void Window::EnableClipSiblings( bool bClipSiblings )
{
@@ -5702,8 +5435,6 @@ void Window::EnableClipSiblings( bool bClipSiblings )
mpWindowImpl->mbClipSiblings = bClipSiblings;
}
-
-
void Window::SetMouseTransparent( bool bTransparent )
{
@@ -5716,8 +5447,6 @@ void Window::SetMouseTransparent( bool bTransparent )
mpWindowImpl->mbMouseTransparent = bTransparent;
}
-
-
void Window::SetPaintTransparent( bool bTransparent )
{
@@ -5731,8 +5460,6 @@ void Window::SetPaintTransparent( bool bTransparent )
mpWindowImpl->mbPaintTransparent = bTransparent;
}
-
-
void Window::SetInputContext( const InputContext& rInputContext )
{
@@ -5741,8 +5468,6 @@ void Window::SetInputContext( const InputContext& rInputContext )
ImplNewInputContext();
}
-
-
void Window::EndExtTextInput( sal_uInt16 nFlags )
{
@@ -5750,8 +5475,6 @@ void Window::EndExtTextInput( sal_uInt16 nFlags )
ImplGetFrame()->EndExtTextInput( nFlags );
}
-
-
void Window::SetCursorRect( const Rectangle* pRect, long nExtTextInputWidth )
{
@@ -5776,8 +5499,6 @@ void Window::SetCursorRect( const Rectangle* pRect, long nExtTextInputWidth )
}
-
-
const Rectangle* Window::GetCursorRect() const
{
@@ -5785,8 +5506,6 @@ const Rectangle* Window::GetCursorRect() const
return pWinData->mpCursorRect;
}
-
-
long Window::GetCursorExtTextInputWidth() const
{
@@ -5794,8 +5513,6 @@ long Window::GetCursorExtTextInputWidth() const
return pWinData->mnCursorExtWidth;
}
-
-
void Window::SetCompositionCharRect( const Rectangle* pRect, long nCompositionLength, bool bVertical ) {
ImplWinData* pWinData = ImplGetWinData();
@@ -5811,7 +5528,6 @@ void Window::SetCompositionCharRect( const Rectangle* pRect, long nCompositionLe
}
}
-
void Window::SetSettings( const AllSettings& rSettings )
{
SetSettings( rSettings, sal_False );
@@ -5852,8 +5568,6 @@ void Window::SetSettings( const AllSettings& rSettings, sal_Bool bChild )
}
}
-
-
void Window::UpdateSettings( const AllSettings& rSettings, bool bChild )
{
@@ -5922,8 +5636,6 @@ void Window::UpdateSettings( const AllSettings& rSettings, bool bChild )
}
}
-
-
void Window::NotifyAllChildren( DataChangedEvent& rDCEvt )
{
@@ -5937,8 +5649,6 @@ void Window::NotifyAllChildren( DataChangedEvent& rDCEvt )
}
}
-
-
void Window::SetPointFont( const Font& rFont )
{
@@ -5947,8 +5657,6 @@ void Window::SetPointFont( const Font& rFont )
SetFont( aFont );
}
-
-
Font Window::GetPointFont() const
{
@@ -5957,8 +5665,6 @@ Font Window::GetPointFont() const
return aFont;
}
-
-
void Window::SetParentClipMode( sal_uInt16 nMode )
{
@@ -5975,8 +5681,6 @@ void Window::SetParentClipMode( sal_uInt16 nMode )
}
}
-
-
sal_uInt16 Window::GetParentClipMode() const
{
@@ -5986,8 +5690,6 @@ sal_uInt16 Window::GetParentClipMode() const
return mpWindowImpl->mnParentClipMode;
}
-
-
void Window::SetWindowRegionPixel()
{
@@ -6022,8 +5724,6 @@ void Window::SetWindowRegionPixel()
}
}
-
-
void Window::SetWindowRegionPixel( const Region& rRegion )
{
@@ -6110,8 +5810,6 @@ void Window::SetWindowRegionPixel( const Region& rRegion )
}
}
-
-
const Region& Window::GetWindowRegionPixel() const
{
@@ -6121,8 +5819,6 @@ const Region& Window::GetWindowRegionPixel() const
return mpWindowImpl->maWinRegion;
}
-
-
bool Window::IsWindowRegionPixel() const
{
@@ -6132,8 +5828,6 @@ bool Window::IsWindowRegionPixel() const
return mpWindowImpl->mbWinRegion;
}
-
-
Region Window::GetWindowClipRegionPixel( sal_uInt16 nFlags ) const
{
@@ -6171,8 +5865,6 @@ Region Window::GetWindowClipRegionPixel( sal_uInt16 nFlags ) const
return aWinClipRegion;
}
-
-
Region Window::GetPaintRegion() const
{
@@ -6189,8 +5881,6 @@ Region Window::GetPaintRegion() const
}
}
-
-
void Window::ExpandPaintClipRegion( const Region& rRegion )
{
if( mpWindowImpl->mpPaintRegion )
@@ -6215,8 +5905,6 @@ void Window::ExpandPaintClipRegion( const Region& rRegion )
}
}
-
-
static SystemWindow *ImplGetLastSystemWindow( Window *pWin )
{
// get the most top-level system window, the one that contains the taskpanelist
@@ -6399,8 +6087,6 @@ void Window::SetParent( Window* pNewParent )
Show( true, SHOW_NOFOCUSCHANGE | SHOW_NOACTIVATE );
}
-
-
void Window::Show( bool bVisible, sal_uInt16 nFlags )
{
@@ -6651,8 +6337,6 @@ void Window::Show( bool bVisible, sal_uInt16 nFlags )
*/
}
-
-
Size Window::GetSizePixel() const
{
if (!mpWindowImpl)
@@ -6684,9 +6368,6 @@ void Window::GetBorder( sal_Int32& rLeftBorder, sal_Int32& rTopBorder,
rBottomBorder = mpWindowImpl->mnBottomBorder;
}
-
-
-
void Window::Enable( bool bEnable, bool bChild )
{
@@ -6747,8 +6428,6 @@ void Window::Enable( bool bEnable, bool bChild )
ImplGenerateMouseMove();
}
-
-
void Window::SetCallHandlersOnInputDisabled( bool bCall )
{
mpWindowImpl->mbCallHandlersDuringInputDisabled = bCall ? sal_True : sal_False;
@@ -6761,15 +6440,11 @@ void Window::SetCallHandlersOnInputDisabled( bool bCall )
}
}
-
-
bool Window::IsCallHandlersOnInputDisabled() const
{
return mpWindowImpl->mbCallHandlersDuringInputDisabled ? true : false;
}
-
-
void Window::EnableInput( bool bEnable, bool bChild )
{
@@ -6833,8 +6508,6 @@ void Window::EnableInput( bool bEnable, bool bChild )
}
}
-
-
void Window::EnableInput( bool bEnable, bool bChild, bool bSysWin,
const Window* pExcludeWindow )
{
@@ -6899,8 +6572,6 @@ void Window::EnableInput( bool bEnable, bool bChild, bool bSysWin,
}
}
-
-
void Window::AlwaysEnableInput( bool bAlways, bool bChild )
{
@@ -6930,8 +6601,6 @@ void Window::AlwaysEnableInput( bool bAlways, bool bChild )
}
}
-
-
void Window::AlwaysDisableInput( bool bAlways, bool bChild )
{
@@ -6961,8 +6630,6 @@ void Window::AlwaysDisableInput( bool bAlways, bool bChild )
}
}
-
-
void Window::SetActivateMode( sal_uInt16 nMode )
{
@@ -6994,8 +6661,6 @@ void Window::SetActivateMode( sal_uInt16 nMode )
}
}
-
-
void Window::ToTop( sal_uInt16 nFlags )
{
@@ -7003,8 +6668,6 @@ void Window::ToTop( sal_uInt16 nFlags )
ImplFocusToTop( nFlags, IsReallyVisible() );
}
-
-
void Window::SetZOrder( Window* pRefWindow, sal_uInt16 nFlags )
{
@@ -7178,8 +6841,6 @@ void Window::SetZOrder( Window* pRefWindow, sal_uInt16 nFlags )
}
}
-
-
void Window::EnableAlwaysOnTop( bool bEnable )
{
@@ -7194,8 +6855,6 @@ void Window::EnableAlwaysOnTop( bool bEnable )
mpWindowImpl->mpFrame->SetAlwaysOnTop( bEnable );
}
-
-
void Window::setPosSizePixel( long nX, long nY,
long nWidth, long nHeight, sal_uInt16 nFlags )
{
@@ -7224,7 +6883,6 @@ void Window::setPosSizePixel( long nX, long nY,
if ( !(nFlags & WINDOW_POSSIZE_HEIGHT) )
nHeight = pWindow->mnOutHeight;
-
sal_uInt16 nSysFlags=0;
Window *pParent = GetParent();
@@ -7325,15 +6983,11 @@ void Window::setPosSizePixel( long nX, long nY,
}
}
-
-
Point Window::GetPosPixel() const
{
return mpWindowImpl->maPos;
}
-
-
Rectangle Window::GetDesktopRectPixel() const
{
Rectangle rRect;
@@ -7341,24 +6995,18 @@ Rectangle Window::GetDesktopRectPixel() const
return rRect;
}
-
-
Point Window::OutputToScreenPixel( const Point& rPos ) const
{
// relative to top level parent
return Point( rPos.X()+mnOutOffX, rPos.Y()+mnOutOffY );
}
-
-
Point Window::ScreenToOutputPixel( const Point& rPos ) const
{
// relative to top level parent
return Point( rPos.X()-mnOutOffX, rPos.Y()-mnOutOffY );
}
-
-
long Window::ImplGetUnmirroredOutOffX()
{
// revert mnOutOffX changes that were potentially made in ImplPosSizeWindow
@@ -7396,8 +7044,6 @@ Point Window::NormalizedScreenToOutputPixel( const Point& rPos ) const
return Point( rPos.X()-offx, rPos.Y()-mnOutOffY );
}
-
-
Point Window::OutputToAbsoluteScreenPixel( const Point& rPos ) const
{
// relative to the screen
@@ -7408,8 +7054,6 @@ Point Window::OutputToAbsoluteScreenPixel( const Point& rPos ) const
return p;
}
-
-
Point Window::AbsoluteScreenToOutputPixel( const Point& rPos ) const
{
// relative to the screen
@@ -7420,8 +7064,6 @@ Point Window::AbsoluteScreenToOutputPixel( const Point& rPos ) const
return p;
}
-
-
Rectangle Window::ImplOutputToUnmirroredAbsoluteScreenPixel( const Rectangle &rRect ) const
{
// this method creates unmirrored screen coordinates to be compared with the desktop
@@ -7439,9 +7081,6 @@ Rectangle Window::ImplOutputToUnmirroredAbsoluteScreenPixel( const Rectangle &rR
return Rectangle( p1, p2 );
}
-
-
-
Rectangle Window::GetWindowExtentsRelative( Window *pRelativeWindow ) const
{
// with decoration
@@ -7454,8 +7093,6 @@ Rectangle Window::GetClientWindowExtentsRelative( Window *pRelativeWindow ) cons
return ImplGetWindowExtentsRelative( pRelativeWindow, true );
}
-
-
Rectangle Window::ImplGetWindowExtentsRelative( Window *pRelativeWindow, bool bClientOnly ) const
{
SalFrameGeometry g = mpWindowImpl->mpFrame->GetGeometry();
@@ -7484,8 +7121,6 @@ Rectangle Window::ImplGetWindowExtentsRelative( Window *pRelativeWindow, bool bC
return Rectangle( aPos, aSize );
}
-
-
void Window::Scroll( long nHorzScroll, long nVertScroll, sal_uInt16 nFlags )
{
@@ -7494,8 +7129,6 @@ void Window::Scroll( long nHorzScroll, long nVertScroll, sal_uInt16 nFlags )
nHorzScroll, nVertScroll, nFlags & ~SCROLL_CLIP );
}
-
-
void Window::Scroll( long nHorzScroll, long nVertScroll,
const Rectangle& rRect, sal_uInt16 nFlags )
{
@@ -7507,8 +7140,6 @@ void Window::Scroll( long nHorzScroll, long nVertScroll,
ImplScroll( aRect, nHorzScroll, nVertScroll, nFlags );
}
-
-
void Window::Invalidate( sal_uInt16 nFlags )
{
@@ -7518,15 +7149,12 @@ void Window::Invalidate( sal_uInt16 nFlags )
ImplInvalidate( NULL, nFlags );
}
-
-
void Window::Invalidate( const Rectangle& rRect, sal_uInt16 nFlags )
{
if ( !IsDeviceOutputNecessary() || !mnOutWidth || !mnOutHeight )
return;
-
OutputDevice *pOutDev = GetOutDev();
Rectangle aRect = pOutDev->ImplLogicToDevicePixel( rRect );
if ( !aRect.IsEmpty() )
@@ -7536,8 +7164,6 @@ void Window::Invalidate( const Rectangle& rRect, sal_uInt16 nFlags )
}
}
-
-
void Window::Invalidate( const Region& rRegion, sal_uInt16 nFlags )
{
@@ -7554,8 +7180,6 @@ void Window::Invalidate( const Region& rRegion, sal_uInt16 nFlags )
}
}
-
-
void Window::Validate( sal_uInt16 nFlags )
{
@@ -7565,8 +7189,6 @@ void Window::Validate( sal_uInt16 nFlags )
ImplValidate( NULL, nFlags );
}
-
-
bool Window::HasPaintEvent() const
{
@@ -7594,8 +7216,6 @@ bool Window::HasPaintEvent() const
return false;
}
-
-
void Window::Update()
{
@@ -7668,8 +7288,6 @@ void Window::Update()
Flush();
}
-
-
void Window::Flush()
{
@@ -7677,16 +7295,12 @@ void Window::Flush()
mpWindowImpl->mpFrame->Flush( aWinRect );
}
-
-
void Window::Sync()
{
mpWindowImpl->mpFrame->Sync();
}
-
-
void Window::SetUpdateMode( bool bUpdate )
{
@@ -7694,16 +7308,12 @@ void Window::SetUpdateMode( bool bUpdate )
StateChanged( STATE_CHANGE_UPDATEMODE );
}
-
-
void Window::GrabFocus()
{
ImplGrabFocus( 0 );
}
-
-
bool Window::HasFocus() const
{
@@ -7722,8 +7332,6 @@ bool Window::HasFocus() const
return (this == ImplGetSVData()->maWinData.mpFocusWin);
}
-
-
void Window::GrabFocusToDocument()
{
ImplGrabFocusToDocument(0);
@@ -7734,8 +7342,6 @@ void Window::SetFakeFocus( bool bFocus )
ImplGetWindowImpl()->mbFakeFocusSet = bFocus;
}
-
-
bool Window::HasChildPathFocus( bool bSystemWindow ) const
{
@@ -7754,8 +7360,6 @@ bool Window::HasChildPathFocus( bool bSystemWindow ) const
return false;
}
-
-
void Window::CaptureMouse()
{
@@ -7775,8 +7379,6 @@ void Window::CaptureMouse()
}
}
-
-
void Window::ReleaseMouse()
{
@@ -7793,16 +7395,12 @@ void Window::ReleaseMouse()
}
}
-
-
bool Window::IsMouseCaptured() const
{
return (this == ImplGetSVData()->maWinData.mpCaptureWin);
}
-
-
void Window::SetPointer( const Pointer& rPointer )
{
@@ -7816,8 +7414,6 @@ void Window::SetPointer( const Pointer& rPointer )
mpWindowImpl->mpFrame->SetPointer( ImplGetMousePointer() );
}
-
-
void Window::EnableChildPointerOverwrite( bool bOverwrite )
{
@@ -7831,8 +7427,6 @@ void Window::EnableChildPointerOverwrite( bool bOverwrite )
mpWindowImpl->mpFrame->SetPointer( ImplGetMousePointer() );
}
-
-
void Window::SetPointerPosPixel( const Point& rPos )
{
Point aPos = ImplOutputToFrame( rPos );
@@ -7854,8 +7448,6 @@ void Window::SetPointerPosPixel( const Point& rPos )
mpWindowImpl->mpFrame->SetPointerPos( aPos.X(), aPos.Y() );
}
-
-
Point Window::GetPointerPosPixel()
{
@@ -7869,8 +7461,6 @@ Point Window::GetPointerPosPixel()
return ImplFrameToOutput( aPos );
}
-
-
Point Window::GetLastPointerPosPixel()
{
@@ -7884,8 +7474,6 @@ Point Window::GetLastPointerPosPixel()
return ImplFrameToOutput( aPos );
}
-
-
void Window::ShowPointer( bool bVisible )
{
@@ -7899,8 +7487,6 @@ void Window::ShowPointer( bool bVisible )
}
}
-
-
Window::PointerState Window::GetPointerState()
{
PointerState aState;
@@ -7923,15 +7509,11 @@ Window::PointerState Window::GetPointerState()
return aState;
}
-
-
bool Window::IsMouseOver()
{
return ImplGetWinData()->mbMouseOver;
}
-
-
void Window::EnterWait()
{
@@ -7945,8 +7527,6 @@ void Window::EnterWait()
}
}
-
-
void Window::LeaveWait()
{
@@ -7963,8 +7543,6 @@ void Window::LeaveWait()
}
}
-
-
void Window::SetCursor( Cursor* pCursor )
{
@@ -7978,14 +7556,11 @@ void Window::SetCursor( Cursor* pCursor )
}
}
-
-
void Window::SetText( const OUString& rStr )
{
if (rStr == mpWindowImpl->maText)
return;
-
OUString oldTitle( mpWindowImpl->maText );
mpWindowImpl->maText = rStr;
@@ -8010,24 +7585,18 @@ void Window::SetText( const OUString& rStr )
StateChanged( STATE_CHANGE_TEXT );
}
-
-
OUString Window::GetText() const
{
return mpWindowImpl->maText;
}
-
-
OUString Window::GetDisplayText() const
{
return GetText();
}
-
-
const Wallpaper& Window::GetDisplayBackground() const
{
// FIXME: fix issue 52349, need to fix this really in
@@ -8054,8 +7623,6 @@ const Wallpaper& Window::GetDisplayBackground() const
return rBack;
}
-
-
const OUString& Window::GetHelpText() const
{
@@ -8091,8 +7658,6 @@ const OUString& Window::GetHelpText() const
return mpWindowImpl->maHelpText;
}
-
-
Window* Window::FindWindow( const Point& rPos ) const
{
@@ -8100,8 +7665,6 @@ Window* Window::FindWindow( const Point& rPos ) const
return ((Window*)this)->ImplFindWindow( aPos );
}
-
-
sal_uInt16 Window::GetChildCount() const
{
@@ -8116,8 +7679,6 @@ sal_uInt16 Window::GetChildCount() const
return nChildCount;
}
-
-
Window* Window::GetChild( sal_uInt16 nChild ) const
{
@@ -8134,8 +7695,6 @@ Window* Window::GetChild( sal_uInt16 nChild ) const
return NULL;
}
-
-
Window* Window::GetWindow( sal_uInt16 nType ) const
{
@@ -8225,8 +7784,6 @@ Window* Window::GetWindow( sal_uInt16 nType ) const
return NULL;
}
-
-
bool Window::IsChild( const Window* pWindow, bool bSystemWindow ) const
{
@@ -8245,8 +7802,6 @@ bool Window::IsChild( const Window* pWindow, bool bSystemWindow ) const
return false;
}
-
-
bool Window::IsWindowOrChild( const Window* pWindow, bool bSystemWindow ) const
{
@@ -8255,8 +7810,6 @@ bool Window::IsWindowOrChild( const Window* pWindow, bool bSystemWindow ) const
return ImplIsChild( pWindow, bSystemWindow );
}
-
-
const SystemEnvData* Window::GetSystemData() const
{
@@ -8275,8 +7828,6 @@ const SystemEnvData* Window::GetSystemData() const
return aRet;
}
-
-
void Window::SetWindowPeer( ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > xPeer, VCLXWindow* pVCLXWindow )
{
// be safe against re-entrance: first clear the old ref, then assign the new one
@@ -8287,8 +7838,6 @@ void Window::SetWindowPeer( ::com::sun::star::uno::Reference< ::com::sun::star::
mpWindowImpl->mpVCLXWindow = pVCLXWindow;
}
-
-
::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > Window::GetComponentInterface( sal_Bool bCreate )
{
if ( !mpWindowImpl->mxWindowPeer.is() && bCreate )
@@ -8300,8 +7849,6 @@ void Window::SetWindowPeer( ::com::sun::star::uno::Reference< ::com::sun::star::
return mpWindowImpl->mxWindowPeer;
}
-
-
void Window::SetComponentInterface( ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > xIFace )
{
UnoWrapperBase* pWrapper = Application::GetUnoWrapper();
@@ -8310,8 +7857,6 @@ void Window::SetComponentInterface( ::com::sun::star::uno::Reference< ::com::sun
pWrapper->SetWindowInterface( this, xIFace );
}
-
-
void Window::ImplCallDeactivateListeners( Window *pNew )
{
// no deactivation if the newly activated window is my child
@@ -8329,8 +7874,6 @@ void Window::ImplCallDeactivateListeners( Window *pNew )
}
}
-
-
void Window::ImplCallActivateListeners( Window *pOld )
{
// no activation if the old active window is my child
@@ -8361,8 +7904,6 @@ void Window::ImplCallActivateListeners( Window *pOld )
}
}
-
-
bool Window::ImplStopDnd()
{
bool bRet = false;
@@ -8377,15 +7918,11 @@ bool Window::ImplStopDnd()
return bRet;
}
-
-
void Window::ImplStartDnd()
{
GetDropTarget();
}
-
-
uno::Reference< XDropTarget > Window::GetDropTarget()
{
@@ -8444,8 +7981,6 @@ uno::Reference< XDropTarget > Window::GetDropTarget()
return uno::Reference< XDropTarget > ( mpWindowImpl->mxDNDListenerContainer, UNO_QUERY );
}
-
-
uno::Reference< XDragSource > Window::GetDragSource()
{
@@ -8511,15 +8046,11 @@ uno::Reference< XDragSource > Window::GetDragSource()
return uno::Reference< XDragSource > ();
}
-
-
uno::Reference< XDragGestureRecognizer > Window::GetDragGestureRecognizer()
{
return uno::Reference< XDragGestureRecognizer > ( GetDropTarget(), UNO_QUERY );
}
-
-
uno::Reference< XClipboard > Window::GetClipboard()
{
@@ -8547,8 +8078,6 @@ uno::Reference< XClipboard > Window::GetClipboard()
return static_cast < XClipboard * > (0);
}
-
-
uno::Reference< XClipboard > Window::GetPrimarySelection()
{
@@ -8592,10 +8121,8 @@ uno::Reference< XClipboard > Window::GetPrimarySelection()
return static_cast < XClipboard * > (0);
}
-
// Accessibility
-
::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > Window::GetAccessible( bool bCreate )
{
// do not optimize hierarchy for the top level border win (ie, when there is no parent)
@@ -8831,7 +8358,6 @@ Window* Window::GetAccessibleChildWindow( sal_uInt16 n )
return pChild;
}
-
void Window::SetAccessibleRole( sal_uInt16 nRole )
{
if ( !mpWindowImpl->mpAccessibleInfos )
@@ -8943,7 +8469,6 @@ sal_uInt16 Window::getDefaultAccessibleRole() const
case WINDOW_WORKWINDOW: nRole = accessibility::AccessibleRole::ROOT_PANE; break;
-
case WINDOW_SCROLLBARBOX: nRole = accessibility::AccessibleRole::FILLER; break;
case WINDOW_HELPTEXTWINDOW: nRole = accessibility::AccessibleRole::TOOL_TIP; break;
@@ -9213,8 +8738,6 @@ void Window::RecordLayoutData( vcl::ControlLayoutData* pLayout, const Rectangle&
mpOutDevData->mpRecordLayout = NULL;
}
-
-
void Window::DrawSelectionBackground( const Rectangle& rRect, sal_uInt16 highlight, bool bChecked, bool bDrawBorder, bool bDrawExtBorderOnly )
{
DrawSelectionBackground( rRect, highlight, bChecked, bDrawBorder, bDrawExtBorderOnly, 0, NULL, NULL );
@@ -9242,7 +8765,6 @@ void Window::DrawSelectionBackground( const Rectangle& rRect,
const StyleSettings& rStyles = GetSettings().GetStyleSettings();
-
// colors used for item highlighting
Color aSelectionBorderCol( pPaintColor ? *pPaintColor : rStyles.GetHighlightColor() );
Color aSelectionFillCol( aSelectionBorderCol );
@@ -9361,7 +8883,6 @@ void Window::DrawSelectionBackground( const Rectangle& rRect,
}
}
-
if( bDark )
{
DrawRect( aRect );
@@ -9393,7 +8914,6 @@ Window* Window::GetPreferredKeyInputWindow()
return this;
}
-
bool Window::IsScrollable() const
{
// check for scrollbars
@@ -9579,7 +9099,6 @@ uno::Reference< rendering::XCanvas > Window::ImplGetCanvas( const Size& rFullscr
// Feed any with operating system's window handle
-
// common: first any is VCL pointer to window (for VCL canvas)
aArg[ 0 ] = makeAny( reinterpret_cast<sal_Int64>(this) );
@@ -9769,7 +9288,6 @@ void Window::ImplPaintToDevice( OutputDevice* i_pTargetOutDev, const Point& i_rP
// get rid of virtual device now so they don't pile up during recursive calls
delete pMaskedDevice, pMaskedDevice = NULL;
-
for( Window* pChild = mpWindowImpl->mpFirstChild; pChild; pChild = pChild->mpWindowImpl->mpNext )
{
if( pChild->mpWindowImpl->mpFrame == mpWindowImpl->mpFrame && pChild->IsVisible() )