Lines Matching refs:pChild
128 static sal_Bool ImplHandleMouseFloatMode( Window* pChild, const Point& rMousePos, in ImplHandleMouseFloatMode() argument
135 !pSVData->maWinData.mpFirstFloat->ImplIsFloatPopupModeWindow( pChild ) ) in ImplHandleMouseFloatMode()
142 …FloatingWindow* pFloat = pSVData->maWinData.mpFirstFloat->ImplFloatHitTest( pChild, rMousePos, nHi… in ImplHandleMouseFloatMode()
154 pChild->ImplGetFrame()->SetPointer( POINTER_ARROW ); in ImplHandleMouseFloatMode()
234 static void ImplHandleMouseHelpRequest( Window* pChild, const Point& rMousePos ) in ImplHandleMouseHelpRequest() argument
238 !( pSVData->maHelpData.mpHelpWin->IsWindowOrChild( pChild ) || in ImplHandleMouseHelpRequest()
239 pChild->IsWindowOrChild( pSVData->maHelpData.mpHelpWin ) ) ) in ImplHandleMouseHelpRequest()
248 if ( pChild->IsInputEnabled() && ! pChild->IsInModalMode() ) in ImplHandleMouseHelpRequest()
252 pChild->RequestHelp( aHelpEvent ); in ImplHandleMouseHelpRequest()
266 static void ImplSetMousePointer( Window* pChild ) in ImplSetMousePointer() argument
270 pChild->ImplGetFrame()->SetPointer( POINTER_HELP ); in ImplSetMousePointer()
272 pChild->ImplGetFrame()->SetPointer( pChild->ImplGetMousePointer() ); in ImplSetMousePointer()
277 static sal_Bool ImplCallCommand( Window* pChild, sal_uInt16 nEvt, void* pData = NULL, in ImplCallCommand() argument
286 aPos = pChild->GetPointerPosPixel(); in ImplCallCommand()
290 Size aSize( pChild->GetOutputSizePixel() ); in ImplCallCommand()
296 NotifyEvent aNCmdEvt( EVENT_COMMAND, pChild, &aCEvt ); in ImplCallCommand()
297 ImplDelData aDelData( pChild ); in ImplCallCommand()
303 pChild->ImplGetWindowImpl()->mbCommand = sal_False; in ImplCallCommand()
304 pChild->Command( aCEvt ); in ImplCallCommand()
308 pChild->ImplNotifyKeyMouseCommandEventListeners( aNCmdEvt ); in ImplCallCommand()
311 if ( pChild->ImplGetWindowImpl()->mbCommand ) in ImplCallCommand()
351 Window* pChild; in ImplHandleMouseEvent() local
419 pChild = pSVData->maWinData.mpCaptureWin; in ImplHandleMouseEvent()
421 DBG_ASSERT( pWindow == pChild->ImplGetFrameWindow(), in ImplHandleMouseEvent()
425 if ( pWindow != pChild->ImplGetFrameWindow() ) in ImplHandleMouseEvent()
434 pChild = NULL; in ImplHandleMouseEvent()
436 pChild = pWindow->ImplFindWindow( aMousePos ); in ImplHandleMouseEvent()
441 if ( !pChild && !bMouseLeave ) in ImplHandleMouseEvent()
445 if ( pChild ) in ImplHandleMouseEvent()
447 if( pChild->ImplIsAntiparallel() ) in ImplHandleMouseEvent()
450 pChild->ImplReMirror( aMousePos ); in ImplHandleMouseEvent()
459 …if ( pSVData->maWinData.mpCaptureWin != pChild && (!pChild->IsEnabled() || !pChild->IsInputEnabled… in ImplHandleMouseEvent()
461 ImplHandleMouseFloatMode( pChild, aMousePos, nCode, nSVEvent, bMouseLeave ); in ImplHandleMouseEvent()
464 ImplHandleMouseHelpRequest( pChild, aMousePos ); in ImplHandleMouseEvent()
465 if( pWinFrameData->mpMouseMoveWin != pChild ) in ImplHandleMouseEvent()
470 Point aChildPos = pChild->ImplFrameToOutput( aMousePos ); in ImplHandleMouseEvent()
472 NotifyEvent aNEvt( nSVEvent, pChild, &aMEvt ); in ImplHandleMouseEvent()
475 if( pChild->IsCallHandlersOnInputDisabled() ) in ImplHandleMouseEvent()
477 pWinFrameData->mpMouseMoveWin = pChild; in ImplHandleMouseEvent()
478 pChild->ImplNotifyKeyMouseCommandEventListeners( aNEvt ); in ImplHandleMouseEvent()
483 Sound::Beep( SOUND_DISABLE, pChild ); in ImplHandleMouseEvent()
490 ImplSetMousePointer( pChild ); in ImplHandleMouseEvent()
508 if ( pChild ) in ImplHandleMouseEvent()
510 Point aChildMousePos = pChild->ImplFrameToOutput( aMousePos ); in ImplHandleMouseEvent()
512 (pChild == pWinFrameData->mpMouseMoveWin) && in ImplHandleMouseEvent()
519 ImplSetMousePointer( pChild ); in ImplHandleMouseEvent()
610 if ( pChild != pMouseMoveWin ) in ImplHandleMouseEvent()
624 if ( pChild ) in ImplHandleMouseEvent()
625 pChild->ImplAddDel( &aDelData2 ); in ImplHandleMouseEvent()
637 if ( pChild ) in ImplHandleMouseEvent()
640 pChild = NULL; in ImplHandleMouseEvent()
642 pChild->ImplRemoveDel( &aDelData2 ); in ImplHandleMouseEvent()
651 pWinFrameData->mpMouseMoveWin = pChild; in ImplHandleMouseEvent()
652 if( pChild ) in ImplHandleMouseEvent()
653 pChild->ImplGetWinData()->mbMouseOver = sal_True; in ImplHandleMouseEvent()
656 if ( !pChild ) in ImplHandleMouseEvent()
664 const MouseSettings& rMSettings = pChild->GetSettings().GetMouseSettings(); in ImplHandleMouseEvent()
673 if ( (pChild == pChild->ImplGetFrameData()->mpMouseDownWin) && in ImplHandleMouseEvent()
674 (nCode == pChild->ImplGetFrameData()->mnFirstMouseCode) && in ImplHandleMouseEvent()
675 ((nMsgTime-pChild->ImplGetFrameData()->mnMouseDownTime) < nDblClkTime) && in ImplHandleMouseEvent()
676 ((nMouseX-nDblClkW) <= pChild->ImplGetFrameData()->mnFirstMouseX) && in ImplHandleMouseEvent()
677 ((nMouseX+nDblClkW) >= pChild->ImplGetFrameData()->mnFirstMouseX) && in ImplHandleMouseEvent()
678 ((nMouseY-nDblClkH) <= pChild->ImplGetFrameData()->mnFirstMouseY) && in ImplHandleMouseEvent()
679 ((nMouseY+nDblClkH) >= pChild->ImplGetFrameData()->mnFirstMouseY) ) in ImplHandleMouseEvent()
681 pChild->ImplGetFrameData()->mnClickCount++; in ImplHandleMouseEvent()
682 pChild->ImplGetFrameData()->mbStartDragCalled = sal_True; in ImplHandleMouseEvent()
686 pChild->ImplGetFrameData()->mpMouseDownWin = pChild; in ImplHandleMouseEvent()
687 pChild->ImplGetFrameData()->mnClickCount = 1; in ImplHandleMouseEvent()
688 pChild->ImplGetFrameData()->mnFirstMouseX = nMouseX; in ImplHandleMouseEvent()
689 pChild->ImplGetFrameData()->mnFirstMouseY = nMouseY; in ImplHandleMouseEvent()
690 pChild->ImplGetFrameData()->mnFirstMouseCode = nCode; in ImplHandleMouseEvent()
691 …pChild->ImplGetFrameData()->mbStartDragCalled = !((nCode & (MOUSE_LEFT | MOUSE_RIGHT | MOUSE_MIDD… in ImplHandleMouseEvent()
694 pChild->ImplGetFrameData()->mnMouseDownTime = nMsgTime; in ImplHandleMouseEvent()
696 nClicks = pChild->ImplGetFrameData()->mnClickCount; in ImplHandleMouseEvent()
701 DBG_ASSERT( pChild, "ImplHandleMouseEvent: pChild == NULL" ); in ImplHandleMouseEvent()
704 Point aChildPos = pChild->ImplFrameToOutput( aMousePos ); in ImplHandleMouseEvent()
709 pChild = pSVData->maWinData.mpTrackWin; in ImplHandleMouseEvent()
715 pChild->ImplAddDel( &aDelData ); in ImplHandleMouseEvent()
716 if ( ImplHandleMouseFloatMode( pChild, aMousePos, nCode, nSVEvent, bMouseLeave ) ) in ImplHandleMouseEvent()
720 pChild->ImplRemoveDel( &aDelData ); in ImplHandleMouseEvent()
721 pChild->ImplGetFrameData()->mbStartDragCalled = sal_True; in ImplHandleMouseEvent()
726 pChild->ImplRemoveDel( &aDelData ); in ImplHandleMouseEvent()
732 DBG_ASSERT( pChild, "ImplHandleMouseEvent: pChild is NULL" ); in ImplHandleMouseEvent()
735 NotifyEvent aNEvt( nSVEvent, pChild, &aMEvt ); in ImplHandleMouseEvent()
736 pChild->ImplAddDel( &aDelData ); in ImplHandleMouseEvent()
738 pChild->ImplGetFrameData()->mbInMouseMove = sal_True; in ImplHandleMouseEvent()
744 …!(pChild->ImplGetFrameWindow()->GetStyle() & WB_OWNERDRAWDECORATION) ) // ownerdrawdecorated wi… in ImplHandleMouseEvent()
745 pChild->ToTop(); in ImplHandleMouseEvent()
760 pChild->Tracking( aTEvt ); in ImplHandleMouseEvent()
775 … (pChild->GetSettings().GetMouseSettings().GetOptions() & MOUSE_OPTION_AUTOFOCUS) ) in ImplHandleMouseEvent()
776 pChild->ToTop( TOTOP_NOGRABFOCUS ); in ImplHandleMouseEvent()
785 pChild->ImplGetWindowImpl()->mbMouseMove = sal_False; in ImplHandleMouseEvent()
786 pChild->MouseMove( aMEvt ); in ImplHandleMouseEvent()
799 pChild->ImplGetWindowImpl()->mbMouseButtonDown = sal_False; in ImplHandleMouseEvent()
800 pChild->MouseButtonDown( aMEvt ); in ImplHandleMouseEvent()
807 pChild->EndTracking(); in ImplHandleMouseEvent()
812 pChild->ImplGetWindowImpl()->mbMouseButtonUp = sal_False; in ImplHandleMouseEvent()
813 pChild->MouseButtonUp( aMEvt ); in ImplHandleMouseEvent()
827 pChild->ImplGetWindowImpl()->mpFrameData->mbInMouseMove = sal_False; in ImplHandleMouseEvent()
832 … ImplHandleMouseHelpRequest( pChild, pChild->OutputToScreenPixel( aMEvt.GetPosPixel() ) ); in ImplHandleMouseEvent()
839 if ( !pChild->ImplGetWindowImpl()->mbMouseButtonDown ) in ImplHandleMouseEvent()
844 if ( !pChild->ImplGetWindowImpl()->mbMouseButtonUp ) in ImplHandleMouseEvent()
849 pChild->ImplRemoveDel( &aDelData ); in ImplHandleMouseEvent()
855 ImplSetMousePointer( pChild ); in ImplHandleMouseEvent()
865 … sal_uInt16 nMiddleAction = pChild->GetSettings().GetMouseSettings().GetMiddleButtonAction(); in ImplHandleMouseEvent()
867 … nRet = !ImplCallCommand( pChild, COMMAND_STARTAUTOSCROLL, NULL, sal_True, &aChildPos ); in ImplHandleMouseEvent()
869 … nRet = !ImplCallCommand( pChild, COMMAND_PASTESELECTION, NULL, sal_True, &aChildPos ); in ImplHandleMouseEvent()
874 const MouseSettings& rMSettings = pChild->GetSettings().GetMouseSettings(); in ImplHandleMouseEvent()
896 pEv->pWindow = pChild; in ImplHandleMouseEvent()
898 pChild->ImplAddDel( &pEv->aDelData ); in ImplHandleMouseEvent()
902 … nRet = ! ImplCallCommand( pChild, COMMAND_CONTEXTMENU, NULL, sal_True, &aChildPos ); in ImplHandleMouseEvent()
928 Window* pChild = pSVData->maWinData.mpFirstFloat; in ImplGetKeyInputWindow() local
929 …if( !pChild || ( pChild->ImplGetWindowImpl()->mbFloatWin && !((FloatingWindow *)pChild)->GrabsFocu… in ImplGetKeyInputWindow()
930 pChild = pWindow->ImplGetWindowImpl()->mpFrameData->mpFocusWin; in ImplGetKeyInputWindow()
934 pChild = pChild->GetPreferredKeyInputWindow(); in ImplGetKeyInputWindow()
938 if ( !pChild ) in ImplGetKeyInputWindow()
945 DBG_ASSERTWARNING( pChild == pSVData->maWinData.mpFocusWin, in ImplGetKeyInputWindow()
949 if ( !pChild->IsEnabled() || !pChild->IsInputEnabled() || pChild->IsInModalMode() ) in ImplGetKeyInputWindow()
952 return pChild; in ImplGetKeyInputWindow()
1086 Window* pChild = ImplGetKeyInputWindow( pWindow ); in ImplHandleKey() local
1087 if ( !pChild ) in ImplHandleKey()
1092 pChild->ImplHasMirroredGraphics() && pChild->IsRTLEnabled() ) in ImplHandleKey()
1097 pChild->ImplAddDel( &aDelData ); in ImplHandleKey()
1100 NotifyEvent aNotifyEvt( nSVEvent, pChild, &aKeyEvt ); in ImplHandleKey()
1108 pChild->ImplGetWindowImpl()->mbKeyInput = sal_False; in ImplHandleKey()
1109 pChild->KeyInput( aKeyEvt ); in ImplHandleKey()
1113 pChild->ImplGetWindowImpl()->mbKeyUp = sal_False; in ImplHandleKey()
1114 pChild->KeyUp( aKeyEvt ); in ImplHandleKey()
1124 pChild->ImplRemoveDel( &aDelData ); in ImplHandleKey()
1128 if ( !bKeyPreNotify && pChild->ImplGetWindowImpl()->mbKeyInput ) in ImplHandleKey()
1151 nRet = !ImplCallCommand( pChild, COMMAND_CONTEXTMENU, NULL, sal_False ); in ImplHandleKey()
1159 Size aSize = pChild->GetOutputSize(); in ImplHandleKey()
1161 aPos = pChild->OutputToScreenPixel( aPos ); in ImplHandleKey()
1166 pChild->RequestHelp( aHelpEvent ); in ImplHandleKey()
1175 … Point aMousePos = pChild->OutputToScreenPixel( pChild->GetPointerPosPixel() ); in ImplHandleKey()
1177 pChild->RequestHelp( aHelpEvent ); in ImplHandleKey()
1201 if ( !bKeyPreNotify && pChild->ImplGetWindowImpl()->mbKeyUp ) in ImplHandleKey()
1208 pChild = pWindow->GetParent(); in ImplHandleKey()
1211 ImplDelData aChildDelData( pChild ); in ImplHandleKey()
1213 NotifyEvent aNEvt( nSVEvent, pChild, &aKEvt ); in ImplHandleKey()
1222 pChild->ImplGetWindowImpl()->mbKeyInput = sal_False; in ImplHandleKey()
1223 pChild->KeyInput( aKEvt ); in ImplHandleKey()
1227 pChild->ImplGetWindowImpl()->mbKeyUp = sal_False; in ImplHandleKey()
1228 pChild->KeyUp( aKEvt ); in ImplHandleKey()
1237 if( bPreNotify || !pChild->ImplGetWindowImpl()->mbKeyInput ) in ImplHandleKey()
1252 Window* pChild = NULL; in ImplHandleExtTextInput() local
1257 pChild = pSVData->maWinData.mpExtTextInputWin; in ImplHandleExtTextInput()
1258 if ( !pChild ) in ImplHandleExtTextInput()
1260 pChild = ImplGetKeyInputWindow( pWindow ); in ImplHandleExtTextInput()
1261 if ( !pChild ) in ImplHandleExtTextInput()
1264 if( !pChild->ImplGetWindowImpl()->mpFrameData->mnFocusId ) in ImplHandleExtTextInput()
1271 ImplWinData* pWinData = pChild->ImplGetWinData(); in ImplHandleExtTextInput()
1272 if ( !pChild->ImplGetWindowImpl()->mbExtTextInput ) in ImplHandleExtTextInput()
1274 pChild->ImplGetWindowImpl()->mbExtTextInput = sal_True; in ImplHandleExtTextInput()
1284 pSVData->maWinData.mpExtTextInputWin = pChild; in ImplHandleExtTextInput()
1285 ImplCallCommand( pChild, COMMAND_STARTEXTTEXTINPUT ); in ImplHandleExtTextInput()
1289 if ( !pChild->ImplGetWindowImpl()->mbExtTextInput ) in ImplHandleExtTextInput()
1340 return !ImplCallCommand( pChild, COMMAND_EXTTEXTINPUT, &aData ); in ImplHandleExtTextInput()
1348 Window* pChild = pSVData->maWinData.mpExtTextInputWin; in ImplHandleEndExtTextInput() local
1351 if ( pChild ) in ImplHandleEndExtTextInput()
1353 pChild->ImplGetWindowImpl()->mbExtTextInput = sal_False; in ImplHandleEndExtTextInput()
1355 ImplWinData* pWinData = pChild->ImplGetWinData(); in ImplHandleEndExtTextInput()
1366 nRet = !ImplCallCommand( pChild, COMMAND_ENDEXTTEXTINPUT ); in ImplHandleEndExtTextInput()
1379 Window* pChild = pSVData->maWinData.mpExtTextInputWin; in ImplHandleExtTextInputPos() local
1381 if ( !pChild ) in ImplHandleExtTextInputPos()
1382 pChild = ImplGetKeyInputWindow( pWindow ); in ImplHandleExtTextInputPos()
1386 if ( !pWindow->ImplIsWindowOrChild( pChild ) ) in ImplHandleExtTextInputPos()
1387 pChild = ImplGetKeyInputWindow( pWindow ); in ImplHandleExtTextInputPos()
1390 if ( pChild ) in ImplHandleExtTextInputPos()
1392 ImplCallCommand( pChild, COMMAND_CURSORPOS ); in ImplHandleExtTextInputPos()
1393 const Rectangle* pRect = pChild->GetCursorRect(); in ImplHandleExtTextInputPos()
1395 rRect = pChild->ImplLogicToDevicePixel( *pRect ); in ImplHandleExtTextInputPos()
1398 Cursor* pCursor = pChild->GetCursor(); in ImplHandleExtTextInputPos()
1401 Point aPos = pChild->ImplLogicToDevicePixel( pCursor->GetPos() ); in ImplHandleExtTextInputPos()
1402 Size aSize = pChild->LogicToPixel( pCursor->GetSize() ); in ImplHandleExtTextInputPos()
1404 aSize.Width() = pChild->GetSettings().GetStyleSettings().GetCursorSize(); in ImplHandleExtTextInputPos()
1408 … rRect = Rectangle( Point( pChild->GetOutOffXPixel(), pChild->GetOutOffYPixel() ), Size() ); in ImplHandleExtTextInputPos()
1410 rInputWidth = pChild->ImplLogicWidthToDevicePixel( pChild->GetCursorExtTextInputWidth() ); in ImplHandleExtTextInputPos()
1416 = pChild != 0 && pChild->GetInputContext().GetFont().IsVertical(); in ImplHandleExtTextInputPos()
1423 Window* pChild = ImplGetKeyInputWindow( pWindow ); in ImplHandleInputContextChange() local
1425 return !ImplCallCommand( pChild, COMMAND_INPUTCONTEXTCHANGE, &aData ); in ImplHandleInputContextChange()
1596 Window *pChild = pSVData->maWinData.mpFirstFloat; in KillOwnPopups() local
1597 if ( pChild && pParent->ImplIsWindowOrChild( pChild, sal_True ) ) in KillOwnPopups()
2166 Window* pChild = ImplGetKeyInputWindow( pWindow ); in ImplHandleSalKeyMod() local
2167 if ( !pChild ) in ImplHandleSalKeyMod()
2174 ImplCallCommand( pChild, COMMAND_MODKEYCHANGE, &data ); in ImplHandleSalKeyMod()
2183 Window* pChild = ImplGetKeyInputWindow( pWindow ); in ImplHandleInputLanguageChange() local
2184 if ( !pChild ) in ImplHandleInputLanguageChange()
2187 ImplCallCommand( pChild, COMMAND_INPUTLANGUAGECHANGE ); in ImplHandleInputLanguageChange()
2294 Window* pChild = ImplGetKeyInputWindow( pWindow ); in ImplHandleSurroundingTextRequest() local
2296 if ( !pChild ) in ImplHandleSurroundingTextRequest()
2305 rText = pChild->GetSurroundingText(); in ImplHandleSurroundingTextRequest()
2306 Selection aSel = pChild->GetSurroundingTextSelection(); in ImplHandleSurroundingTextRequest()
2343 Window* pChild = ImplGetKeyInputWindow( pWindow ); in ImplHandleSurroundingTextSelectionChange() local
2344 if( pChild ) in ImplHandleSurroundingTextSelectionChange()
2347 ImplCallCommand( pChild, COMMAND_SELECTIONCHANGE, &data ); in ImplHandleSurroundingTextSelectionChange()
2355 Window* pChild = ImplGetKeyInputWindow( pWindow ); in ImplHandleStartReconversion() local
2356 if( pChild ) in ImplHandleStartReconversion()
2357 ImplCallCommand( pChild, COMMAND_PREPARERECONVERSION ); in ImplHandleStartReconversion()