Kaydet (Commit) 9f0c6194 authored tarafından Jens-Heiner Rechtien's avatar Jens-Heiner Rechtien

INTEGRATION: CWS vcl47 (1.217.30); FILE MERGED

2005/12/19 11:23:41 ssa 1.217.30.5: #i48361# floating windows should never get the role panel but always frame or window
2005/12/05 09:45:59 ssa 1.217.30.4: #i57885# avoid null-ptr access in SetParent
2005/11/28 10:04:57 pl 1.217.30.3: RESYNC: (1.217-1.224); FILE MERGED
2005/11/25 13:58:59 pl 1.217.30.2: #b6276469# do not highlight window items of toolbars in complete black
2005/11/21 16:44:05 ssa 1.217.30.1: #i48361# Set frame role for ownerdecorated toolbars/floaters
üst 530e6a01
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: window.cxx,v $ * $RCSfile: window.cxx,v $
* *
* $Revision: 1.224 $ * $Revision: 1.225 $
* *
* last change: $Author: rt $ $Date: 2005-11-11 11:55:45 $ * last change: $Author: hr $ $Date: 2006-01-26 18:10:53 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -2470,7 +2470,7 @@ void Window::ImplCallPaint( const Region* pRegion, USHORT nPaintFlags ) ...@@ -2470,7 +2470,7 @@ void Window::ImplCallPaint( const Region* pRegion, USHORT nPaintFlags )
// #98943# draw toolbox selection // #98943# draw toolbox selection
if( !aSelectionRect.IsEmpty() ) if( !aSelectionRect.IsEmpty() )
DrawSelectionBackground( aSelectionRect, 2, FALSE, TRUE, FALSE ); DrawSelectionBackground( aSelectionRect, 3, FALSE, TRUE, FALSE );
if ( pChildRegion ) if ( pChildRegion )
delete pChildRegion; delete pChildRegion;
...@@ -6137,7 +6137,7 @@ void Window::SetParent( Window* pNewParent ) ...@@ -6137,7 +6137,7 @@ void Window::SetParent( Window* pNewParent )
SystemWindow *pSysWin = ImplGetLastSystemWindow(this); SystemWindow *pSysWin = ImplGetLastSystemWindow(this);
SystemWindow *pNewSysWin = NULL; SystemWindow *pNewSysWin = NULL;
BOOL bChangeTaskPaneList = FALSE; BOOL bChangeTaskPaneList = FALSE;
if( pSysWin->ImplIsInTaskPaneList( this ) ) if( pSysWin && pSysWin->ImplIsInTaskPaneList( this ) )
{ {
pNewSysWin = ImplGetLastSystemWindow( pNewParent ); pNewSysWin = ImplGetLastSystemWindow( pNewParent );
if( pNewSysWin && pNewSysWin != pSysWin ) if( pNewSysWin && pNewSysWin != pSysWin )
...@@ -8787,9 +8787,13 @@ USHORT Window::GetAccessibleRole() const ...@@ -8787,9 +8787,13 @@ USHORT Window::GetAccessibleRole() const
case WINDOW_TABCONTROL: nRole = accessibility::AccessibleRole::PAGE_TAB_LIST; break; case WINDOW_TABCONTROL: nRole = accessibility::AccessibleRole::PAGE_TAB_LIST; break;
case WINDOW_DOCKINGWINDOW: case WINDOW_DOCKINGWINDOW:
case WINDOW_SYSWINDOW: case WINDOW_SYSWINDOW: nRole = (mpWindowImpl->mbFrame) ? accessibility::AccessibleRole::FRAME :
case WINDOW_FLOATINGWINDOW: nRole = mpWindowImpl->mbFrame ? accessibility::AccessibleRole::FRAME : accessibility::AccessibleRole::PANEL; break;
accessibility::AccessibleRole::PANEL; break;
case WINDOW_FLOATINGWINDOW: nRole = ( mpWindowImpl->mbFrame ||
(mpWindowImpl->mpBorderWindow && mpWindowImpl->mpBorderWindow->mpWindowImpl->mbFrame) ||
(GetStyle() & WB_OWNERDRAWDECORATION) ) ? accessibility::AccessibleRole::FRAME :
accessibility::AccessibleRole::WINDOW; break;
case WINDOW_WORKWINDOW: nRole = accessibility::AccessibleRole::ROOT_PANE; break; case WINDOW_WORKWINDOW: nRole = accessibility::AccessibleRole::ROOT_PANE; break;
...@@ -9062,7 +9066,10 @@ void Window::DrawSelectionBackground( const Rectangle& rRect, USHORT highlight, ...@@ -9062,7 +9066,10 @@ void Window::DrawSelectionBackground( const Rectangle& rRect, USHORT highlight,
{ {
aSelectionFillCol = COL_BLACK; aSelectionFillCol = COL_BLACK;
SetLineColor( COL_BLACK ); SetLineColor( COL_BLACK );
nPercent = 0; if( highlight == 3 )
nPercent = 80;
else
nPercent = 0;
} }
else else
nPercent = 70; // selected ( dark ) nPercent = 70; // selected ( dark )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment