Commits

Anonymous committed 2076f26

vcl122: #i117746# remove unused Get/SetZLevel

  • Participants
  • Parent commits 90f9840

Comments (0)

Files changed (1)

File vcl/source/window/syswin.cxx

 
 // -----------------------------------------------------------------------
 
-void SystemWindow::SetZLevel( sal_uInt8 nLevel )
-{
-    Window* pWindow = this;
-    while ( pWindow->mpWindowImpl->mpBorderWindow )
-        pWindow = pWindow->mpWindowImpl->mpBorderWindow;
-    if ( pWindow->mpWindowImpl->mbOverlapWin && !pWindow->mpWindowImpl->mbFrame )
-    {
-        sal_uInt8 nOldLevel = pWindow->mpWindowImpl->mpOverlapData->mnTopLevel;
-        pWindow->mpWindowImpl->mpOverlapData->mnTopLevel = nLevel;
-        // Wenn der neue Level groesser als der alte ist, schieben
-        // wir das Fenster nach hinten
-        if ( !IsReallyVisible() && (nLevel > nOldLevel) && pWindow->mpWindowImpl->mpNext )
-        {
-            // Fenster aus der Liste entfernen
-            if ( pWindow->mpWindowImpl->mpPrev )
-                pWindow->mpWindowImpl->mpPrev->mpWindowImpl->mpNext = pWindow->mpWindowImpl->mpNext;
-            else
-                pWindow->mpWindowImpl->mpOverlapWindow->mpWindowImpl->mpFirstOverlap = pWindow->mpWindowImpl->mpNext;
-            pWindow->mpWindowImpl->mpNext->mpWindowImpl->mpPrev = pWindow->mpWindowImpl->mpPrev;
-            pWindow->mpWindowImpl->mpNext = NULL;
-            // und Fenster wieder in die Liste am Ende eintragen
-            pWindow->mpWindowImpl->mpPrev = pWindow->mpWindowImpl->mpOverlapWindow->mpWindowImpl->mpLastOverlap;
-            pWindow->mpWindowImpl->mpOverlapWindow->mpWindowImpl->mpLastOverlap = pWindow;
-            pWindow->mpWindowImpl->mpPrev->mpWindowImpl->mpNext = pWindow;
-        }
-    }
-}
-
-// -----------------------------------------------------------------------
-
 void SystemWindow::SetRepresentedURL( const rtl::OUString& i_rURL )
 {
     bool bChanged = (i_rURL != mpImplData->maRepresentedURL);
 
 // -----------------------------------------------------------------------
 
-sal_uInt8 SystemWindow::GetZLevel() const
-{
-    const Window* pWindow = this;
-    while ( pWindow->mpWindowImpl->mpBorderWindow )
-        pWindow = pWindow->mpWindowImpl->mpBorderWindow;
-    if ( pWindow->mpWindowImpl->mpOverlapData )
-        return pWindow->mpWindowImpl->mpOverlapData->mnTopLevel;
-    else
-        return sal_False;
-}
-
-// -----------------------------------------------------------------------
-
 void SystemWindow::EnableSaveBackground( sal_Bool bSave )
 {
     if( ImplGetSVData()->maWinData.mbNoSaveBackground )