Lines Matching refs:pWin
130 #define IS_WINP_CLOSING(pWin) (pWin->GetHelpId().equals( "TT_Win_is_closing_HID" ) && pWin->GetUniq… argument
389 sal_Bool SearchUID::IsWinOK( Window *pWin ) in IsWinOK() argument
391 if ( aUId.equals( pWin->GetUniqueOrHelpId() ) ) in IsWinOK()
393 if ( ( pWin->IsEnabled() || HasSearchFlag( SEARCH_FIND_DISABLED ) ) && pWin->IsVisible() ) in IsWinOK()
398 pMaybeResult = pWin; in IsWinOK()
402 else if ( pWin->GetType() == WINDOW_TOOLBOX ) // Buttons and Controls on ToolBox. in IsWinOK()
404 ToolBox *pTB = ((ToolBox*)pWin); in IsWinOK()
470 sal_Bool SearchWinPtr::IsWinOK( Window *pWin ) in IsWinOK() argument
472 return pWin == pTest; in IsWinOK()
482 sal_Bool SearchRT::IsWinOK( Window *pWin ) in IsWinOK() argument
484 if ( pWin->IsVisible() && pWin->GetType() == mnRT ) in IsWinOK()
517 sal_Bool SearchScroll::IsWinOK( Window *pWin ) in IsWinOK() argument
519 if ( SearchRT::IsWinOK( pWin ) ) in IsWinOK()
521 …DBG_ASSERT( pWin->GetStyle() & ( WB_HORZ | WB_VERT ), "Nither WB_HORZ nor WB_VERT set on ScrollBar… in IsWinOK()
522 return (( pWin->GetStyle() & WB_HORZ ) && ( nDirection == CONST_ALIGN_BOTTOM )) in IsWinOK()
523 || (( pWin->GetStyle() & WB_VERT ) && ( nDirection == CONST_ALIGN_RIGHT )); in IsWinOK()
536 sal_Bool SearchPopupFloatingWin::IsWinOK( Window *pWin ) in IsWinOK() argument
538 …return pWin->IsVisible() && pWin->GetType() == WINDOW_FLOATINGWINDOW && ((FloatingWindow*)pWin)->I… in IsWinOK()
549 Menu* StatementList::GetMatchingMenu( Window* pWin, Menu* pBaseMenu ) in GetMatchingMenu() argument
553 if ( pBaseMenu->GetWindow() == pWin ) in GetMatchingMenu()
565 if ( pPopup->GetWindow() == pWin ) in GetMatchingMenu()
582 Menu* pMenu = GetMatchingMenu( pWin, PopupMenu::GetActivePopupMenu() ); in GetMatchingMenu()
605 if ( pMenuBarWin == pWin ) in GetMatchingMenu()
609 pMenu = GetMatchingMenu( pWin, pMenu ); in GetMatchingMenu()
620 sal_Bool SearchActive::IsWinOK( Window *pWin ) in IsWinOK() argument
624 …return pWin->IsVisible() && ( (nRT == WINDOW_ANYTYPE && IsDialog(pWin) ) || pWin->GetType() == nRT… in IsWinOK()
634 sal_Bool SearchFadeSplitWin::IsWinOK( Window *pWin ) in IsWinOK() argument
637 if ( pWin->GetType() == WINDOW_SPLITWINDOW ) in IsWinOK()
641 bResult = pWin->IsVisible(); in IsWinOK()
642 bResult = ((SplitWindow*)pWin)->IsFadeInButtonVisible(); in IsWinOK()
643 bResult = ((SplitWindow*)pWin)->IsFadeOutButtonVisible(); in IsWinOK()
644 bResult = ((SplitWindow*)pWin)->IsAutoHideButtonVisible(); in IsWinOK()
645 aAlign = ((SplitWindow*)pWin)->GetAlign(); in IsWinOK()
648 return pWin->IsVisible() && ( pWin->GetType() == WINDOW_SPLITWINDOW ) in IsWinOK()
649 …&& (((SplitWindow*)pWin)->IsFadeInButtonVisible() || ((SplitWindow*)pWin)->IsFadeOutButtonVisible(… in IsWinOK()
650 …/*&& ((SplitWindow*)pWin)->IsAutoHideButtonVisible()*/ && ((SplitWindow*)pWin)->GetAlign() == nAli… in IsWinOK()
748 void StatementList::SetFirstDocFrame( Window* pWin ) in SetFirstDocFrame() argument
750 DBG_ASSERT( IsDocFrame( pWin ), "Non Document Frame set as first Document Frame" ); in SetFirstDocFrame()
751 pFirstDocFrame = pWin; in SetFirstDocFrame()
784 sal_Bool StatementList::IsFirstDocFrame( Window* pWin ) in IsFirstDocFrame() argument
786 …return pWin && ( pWin == GetFirstDocFrame() || ( GetFirstDocFrame() && pWin == GetFirstDocFrame()-… in IsFirstDocFrame()
789 MenuBar* StatementList::GetDocFrameMenuBar( Window* pWin ) in GetDocFrameMenuBar() argument
791 if ( pWin && pWin->IsVisible() && pWin->GetType() == WINDOW_BORDERWINDOW ) in GetDocFrameMenuBar()
794 for ( nCount = 0 ; nCount < pWin->GetChildCount() ; nCount++ ) in GetDocFrameMenuBar()
796 if ( pWin->GetChild( nCount )->GetType() == WINDOW_WORKWINDOW ) in GetDocFrameMenuBar()
797 return ((WorkWindow*)(pWin->GetChild( nCount )))->GetMenuBar(); in GetDocFrameMenuBar()
804 sal_Bool StatementList::IsDocFrame( Window* pWin ) in IsDocFrame() argument
806 if ( pWin && pWin->IsVisible() && pWin->GetType() == WINDOW_BORDERWINDOW ) in IsDocFrame()
814 for ( nCount = 0 ; nCount < pWin->GetChildCount() ; nCount++ ) in IsDocFrame()
816 if ( pWin->GetChild( nCount )->GetType() == WINDOW_WORKWINDOW ) in IsDocFrame()
818 if ( pWin->GetChild( nCount )->GetType() == WINDOW_MENUBARWINDOW ) in IsDocFrame()
827 sal_Bool StatementList::IsDocWin( Window* pWin ) in IsDocWin() argument
829 if ( pWin && IsDocFrame( pWin ) ) in IsDocWin()
836 if ( GetDocFrameMenuBar( pWin ) ) in IsDocWin()
837 return GetDocFrameMenuBar( pWin )->HasCloser(); in IsDocWin()
843 sal_Bool StatementList::IsIMEWin( Window* pWin ) // Input Window for CJK under Solaris in IsIMEWin() argument
845 if ( pWin && pWin->IsVisible() && pWin->GetType() == WINDOW_BORDERWINDOW ) in IsIMEWin()
853 for ( nCount = 0 ; nCount < pWin->GetChildCount() ; nCount++ ) in IsIMEWin()
854 if ( pWin->GetChild( nCount )->GetType() == WINDOW_WORKWINDOW ) in IsIMEWin()
856 for ( nCount = 0 ; nCount < pWin->GetChildCount() ; nCount++ ) in IsIMEWin()
857 if ( pWin->GetChild( nCount )->GetType() == WINDOW_WINDOW ) in IsIMEWin()
1096 void ImplKeyInput( Window* pWin, KeyEvent &aKEvnt, sal_Bool bForceDirect ) in ImplKeyInput() argument
1101 if ( StatementList::WinPtrValid( pWin ) ) in ImplKeyInput()
1105 nID1 = Application::PostKeyEvent( VCLEVENT_WINDOW_KEYINPUT, pWin, &aKEvnt ); in ImplKeyInput()
1106 nID2 = Application::PostKeyEvent( VCLEVENT_WINDOW_KEYUP, pWin, &aKEvnt ); in ImplKeyInput()
1116 CALL_EVENT_WITH_NOTIFY( EVENT_KEYINPUT, aKEvnt, pWin, KeyInput ) in ImplKeyInput()
1121 if ( StatementList::WinPtrValid( pWin ) ) in ImplKeyInput()
1125 Size aSize = pWin->GetOutputSize(); in ImplKeyInput()
1129 ImplCommand( pWin, aEvent ); in ImplKeyInput()
1134 CALL_EVENT_WITH_NOTIFY( EVENT_KEYUP, aKEvnt, pWin, KeyUp ) in ImplKeyInput()
1138 void ImplMouseMove( Window* pWin, MouseEvent &aMEvnt, sal_Bool bForceDirect ) in ImplMouseMove() argument
1142 if ( StatementList::WinPtrValid( pWin ) ) in ImplMouseMove()
1145 nID = Application::PostMouseEvent( VCLEVENT_WINDOW_MOUSEMOVE, pWin, &aMEvnt ); in ImplMouseMove()
1155 if ( pWin->IsTracking() ) in ImplMouseMove()
1158 pWin->Tracking( aTEvt ); in ImplMouseMove()
1161 CALL_EVENT_WITH_NOTIFY( EVENT_MOUSEMOVE, aMEvnt, pWin, MouseMove ) in ImplMouseMove()
1165 void ImplMouseButtonDown( Window* pWin, MouseEvent &aMEvnt, sal_Bool bForceDirect ) in ImplMouseButtonDown() argument
1169 if ( StatementList::WinPtrValid( pWin ) ) in ImplMouseButtonDown()
1172 nID = Application::PostMouseEvent( VCLEVENT_WINDOW_MOUSEBUTTONDOWN, pWin, &aMEvnt ); in ImplMouseButtonDown()
1178 CALL_EVENT_WITH_NOTIFY( EVENT_MOUSEBUTTONDOWN, aMEvnt, pWin, MouseButtonDown ) in ImplMouseButtonDown()
1182 void ImplMouseButtonUp( Window* pWin, MouseEvent &aMEvnt, sal_Bool bForceDirect ) in ImplMouseButtonUp() argument
1186 if ( StatementList::WinPtrValid( pWin ) ) in ImplMouseButtonUp()
1189 nID = Application::PostMouseEvent( VCLEVENT_WINDOW_MOUSEBUTTONUP, pWin, &aMEvnt ); in ImplMouseButtonUp()
1199 if ( pWin->IsTracking() ) in ImplMouseButtonUp()
1204 pWin->EndTracking( ENDTRACK_DONTCALLHDL ); in ImplMouseButtonUp()
1207 pWin->Tracking( aTEvt ); in ImplMouseButtonUp()
1210 CALL_EVENT_WITH_NOTIFY( EVENT_MOUSEBUTTONUP, aMEvnt, pWin, MouseButtonUp ) in ImplMouseButtonUp()
1220 void ImplCommand( Window* pWin, CommandEvent &aCmdEvnt ) in ImplCommand() argument
1222 CALL_EVENT_WITH_NOTIFY( EVENT_COMMAND, aCmdEvnt, pWin, Command ) in ImplCommand()