Lines Matching refs:pFrame
168 static void UpdateFrameGeometry( HWND hWnd, WinSalFrame* pFrame );
169 static void SetMaximizedFrameGeometry( HWND hWnd, WinSalFrame* pFrame, RECT* pParentRect = NULL );
171 static void ImplSaveFrameState( WinSalFrame* pFrame ) in ImplSaveFrameState() argument
174 if ( !pFrame->mbFullScreen ) in ImplSaveFrameState()
176 sal_Bool bVisible = (GetWindowStyle( pFrame->mhWnd ) & WS_VISIBLE) != 0; in ImplSaveFrameState()
177 if ( IsIconic( pFrame->mhWnd ) ) in ImplSaveFrameState()
179 pFrame->maState.mnState |= SAL_FRAMESTATE_MINIMIZED; in ImplSaveFrameState()
181 pFrame->mnShowState = SW_SHOWMAXIMIZED; in ImplSaveFrameState()
183 else if ( IsZoomed( pFrame->mhWnd ) ) in ImplSaveFrameState()
185 pFrame->maState.mnState &= ~SAL_FRAMESTATE_MINIMIZED; in ImplSaveFrameState()
186 pFrame->maState.mnState |= SAL_FRAMESTATE_MAXIMIZED; in ImplSaveFrameState()
188 pFrame->mnShowState = SW_SHOWMAXIMIZED; in ImplSaveFrameState()
189 pFrame->mbRestoreMaximize = TRUE; in ImplSaveFrameState()
193 if( GetWindowPlacement( pFrame->mhWnd, &aPlacement ) ) in ImplSaveFrameState()
197 AdjustWindowRectEx( &aRect2, GetWindowStyle( pFrame->mhWnd ), in ImplSaveFrameState()
198 FALSE, GetWindowExStyle( pFrame->mhWnd ) ); in ImplSaveFrameState()
204 pFrame->maState.mnX = aRect.left + nLeftDeco; in ImplSaveFrameState()
205 pFrame->maState.mnY = aRect.top + nTopDeco; in ImplSaveFrameState()
206 pFrame->maState.mnWidth = aRect.right - aRect.left - nLeftDeco - nRightDeco; in ImplSaveFrameState()
207 pFrame->maState.mnHeight = aRect.bottom - aRect.top - nTopDeco - nBottomDeco; in ImplSaveFrameState()
213 GetWindowRect( pFrame->mhWnd, &aRect ); in ImplSaveFrameState()
217 AdjustWindowRectEx( &aRect2, GetWindowStyle( pFrame->mhWnd ), in ImplSaveFrameState()
218 FALSE, GetWindowExStyle( pFrame->mhWnd ) ); in ImplSaveFrameState()
224 pFrame->maState.mnState &= ~(SAL_FRAMESTATE_MINIMIZED | SAL_FRAMESTATE_MAXIMIZED); in ImplSaveFrameState()
226 pFrame->maState.mnX = aRect.left+nLeftDeco; in ImplSaveFrameState()
227 pFrame->maState.mnY = aRect.top+nTopDeco; in ImplSaveFrameState()
228 pFrame->maState.mnWidth = aRect.right-aRect.left-nLeftDeco-nRightDeco; in ImplSaveFrameState()
229 pFrame->maState.mnHeight = aRect.bottom-aRect.top-nTopDeco-nBottomDeco; in ImplSaveFrameState()
231 pFrame->mnShowState = SW_SHOWNORMAL; in ImplSaveFrameState()
232 pFrame->mbRestoreMaximize = FALSE; in ImplSaveFrameState()
247 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplSalGetWorkArea() local
248 if( pFrame ) in ImplSalGetWorkArea()
250 Window *pWin = pFrame->GetWindow(); in ImplSalGetWorkArea()
362 WinSalFrame* pFrame = new WinSalFrame; in ImplSalCreateFrame() local
409 pFrame->mbNoIcon = TRUE; in ImplSalCreateFrame()
427 pFrame->mbCaption = TRUE; in ImplSalCreateFrame()
436 pFrame->mbSizeBorder = TRUE; in ImplSalCreateFrame()
442 pFrame->mbFixBorder = TRUE; in ImplSalCreateFrame()
456 pFrame->mbNoIcon = TRUE; in ImplSalCreateFrame()
465 pFrame->mbFloatWin = TRUE; in ImplSalCreateFrame()
475 pFrame->mnStyle = nSalFrameStyle; in ImplSalCreateFrame()
478 pFrame->mnShowState = SW_SHOWNORMAL; in ImplSalCreateFrame()
482 pFrame->mnShowState = SW_SHOWMAXIMIZED; in ImplSalCreateFrame()
488 pFrame->mnShowState = pSalData->mnCmdShow; in ImplSalCreateFrame()
489 if ( (pFrame->mnShowState != SW_SHOWMINIMIZED) && in ImplSalCreateFrame()
490 (pFrame->mnShowState != SW_MINIMIZE) && in ImplSalCreateFrame()
491 (pFrame->mnShowState != SW_SHOWMINNOACTIVE) ) in ImplSalCreateFrame()
493 if ( (pFrame->mnShowState == SW_SHOWMAXIMIZED) || in ImplSalCreateFrame()
494 (pFrame->mnShowState == SW_MAXIMIZE) ) in ImplSalCreateFrame()
495 pFrame->mbOverwriteState = FALSE; in ImplSalCreateFrame()
496 pFrame->mnShowState = SW_SHOWMAXIMIZED; in ImplSalCreateFrame()
499 pFrame->mbOverwriteState = FALSE; in ImplSalCreateFrame()
509 pFrame->mnShowState = SW_SHOWMAXIMIZED; in ImplSalCreateFrame()
534 hWndParent, 0, pInst->mhInst, (void*)pFrame ); in ImplSalCreateFrame()
545 delete pFrame; in ImplSalCreateFrame()
576 pFrame->mhDefIMEContext = ImmAssociateContext( hWnd, 0 ); in ImplSalCreateFrame()
581 pFrame->mnWidth = aRect.right; in ImplSalCreateFrame()
582 pFrame->mnHeight = aRect.bottom; in ImplSalCreateFrame()
583 ImplSaveFrameState( pFrame ); in ImplSalCreateFrame()
584 pFrame->mbDefPos = TRUE; in ImplSalCreateFrame()
586 UpdateFrameGeometry( hWnd, pFrame ); in ImplSalCreateFrame()
588 if( pFrame->mnShowState == SW_SHOWMAXIMIZED ) in ImplSalCreateFrame()
593 SetMaximizedFrameGeometry( hWnd, pFrame ); in ImplSalCreateFrame()
596 return pFrame; in ImplSalCreateFrame()
827 static void ImplSalAddBorder( const WinSalFrame* pFrame, int& width, int& height ) in ImplSalAddBorder() argument
835 AdjustWindowRectEx( &aWinRect, GetWindowStyle( pFrame->mhWnd ), in ImplSalAddBorder()
836 FALSE, GetWindowExStyle( pFrame->mhWnd ) ); in ImplSalAddBorder()
843 static void ImplSalCalcFullScreenSize( const WinSalFrame* pFrame, in ImplSalCalcFullScreenSize() argument
855 if ( pFrame->mbSizeBorder ) in ImplSalCalcFullScreenSize()
860 else if ( pFrame->mbFixBorder ) in ImplSalCalcFullScreenSize()
865 else if ( pFrame->mbBorder ) in ImplSalCalcFullScreenSize()
875 if ( pFrame->mbCaption ) in ImplSalCalcFullScreenSize()
885 if( (pFrame->mnDisplay >= 0) && (pFrame->mnDisplay < nMonitors) ) in ImplSalCalcFullScreenSize()
887 …uno::Reference< XPropertySet > xMonitor( xMultiMon->getByIndex( pFrame->mnDisplay ), UNO_QUERY_THR… in ImplSalCalcFullScreenSize()
941 static void ImplSalFrameFullScreenPos( WinSalFrame* pFrame, sal_Bool bAlways = FALSE ) in ImplSalFrameFullScreenPos() argument
943 if ( bAlways || !IsIconic( pFrame->mhWnd ) ) in ImplSalFrameFullScreenPos()
950 ImplSalCalcFullScreenSize( pFrame, nX, nY, nWidth, nHeight ); in ImplSalFrameFullScreenPos()
951 SetWindowPos( pFrame->mhWnd, 0, in ImplSalFrameFullScreenPos()
1264 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplGetParentHwnd() local
1265 if( !pFrame || !pFrame->GetWindow()) in ImplGetParentHwnd()
1267 Window *pRealParent = pFrame->GetWindow()->ImplGetWindowImpl()->mpRealParent; in ImplGetParentHwnd()
1286 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplSalShow() local
1287 if ( !pFrame ) in ImplSalShow()
1292 pFrame->mbDefPos = FALSE; in ImplSalShow()
1293 pFrame->mbOverwriteState = TRUE; in ImplSalShow()
1294 pFrame->mbInShow = TRUE; in ImplSalShow()
1300 vcl::DeletionListener aDogTag( pFrame ); in ImplSalShow()
1304 ShowWindow( hWnd, pFrame->mnShowState ); in ImplSalShow()
1308 … if ( aSalShlData.mbWXP && pFrame->mbFloatWin && !(pFrame->mnStyle & SAL_FRAME_STYLE_NOSHADOW)) in ImplSalShow()
1324 !pFrame->mbCaption && in ImplSalShow()
1330 Window *pClientWin = pFrame->GetWindow()->ImplGetClientWindow(); in ImplSalShow()
1331 if ( pFrame->mbFloatWin || ( pClientWin && (pClientWin->GetStyle() & WB_SYSTEMFLOATWIN) ) ) in ImplSalShow()
1332 pFrame->mnShowState = SW_SHOWNOACTIVATE; in ImplSalShow()
1334 pFrame->mnShowState = SW_SHOW; in ImplSalShow()
1336 if ( pFrame->mbPresentation ) in ImplSalShow()
1344 pFrame->mbInShow = FALSE; in ImplSalShow()
1345 pFrame->updateScreenNumber(); in ImplSalShow()
1357 if ( pFrame->mbFullScreen && in ImplSalShow()
1358 pFrame->mbPresentation && in ImplSalShow()
1377 ShowWindow( pFrame->mhWnd, SW_SHOWMINNOACTIVE ); in ImplSalShow()
1660 WinSalFrame *pFrame = pSalData->mpFirstFrame; in ImplSetParentFrame() local
1661 while( pFrame ) in ImplSetParentFrame()
1663 HWND hWndParent = ::GetParent( pFrame->mhWnd ); in ImplSetParentFrame()
1665 children.push_back( pFrame ); in ImplSetParentFrame()
1666 pFrame = pFrame->mpNextFrame; in ImplSetParentFrame()
2209 WinSalFrame* pFrame = GetWindowPtr( hIconicWnd ); in ImplSalToTop() local
2210 if ( pFrame ) in ImplSalToTop()
2431 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplSalFrameSetInputContext() local
2435 if ( !pFrame->mbIME ) in ImplSalFrameSetInputContext()
2437 pFrame->mbIME = TRUE; in ImplSalFrameSetInputContext()
2439 if ( pFrame->mhDefIMEContext ) in ImplSalFrameSetInputContext()
2441 ImmAssociateContext( pFrame->mhWnd, pFrame->mhDefIMEContext ); in ImplSalFrameSetInputContext()
2443 pFrame->mbSpezIME = (nImeProps & IME_PROP_SPECIAL_UI) != 0; in ImplSalFrameSetInputContext()
2444 pFrame->mbAtCursorIME = (nImeProps & IME_PROP_AT_CARET) != 0; in ImplSalFrameSetInputContext()
2445 pFrame->mbHandleIME = !pFrame->mbSpezIME; in ImplSalFrameSetInputContext()
2452 pFrame->mbHandleIME = FALSE; in ImplSalFrameSetInputContext()
2457 HIMC hIMC = ImmGetContext( pFrame->mhWnd ); in ImplSalFrameSetInputContext()
2461 HDC hDC = GetDC( pFrame->mhWnd ); in ImplSalFrameSetInputContext()
2472 ReleaseDC( pFrame->mhWnd, hDC ); in ImplSalFrameSetInputContext()
2474 ImmReleaseContext( pFrame->mhWnd, hIMC ); in ImplSalFrameSetInputContext()
2480 if ( pFrame->mbIME ) in ImplSalFrameSetInputContext()
2482 pFrame->mbIME = FALSE; in ImplSalFrameSetInputContext()
2483 pFrame->mbHandleIME = FALSE; in ImplSalFrameSetInputContext()
2484 ImmAssociateContext( pFrame->mhWnd, 0 ); in ImplSalFrameSetInputContext()
3336 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleMouseMsg() local
3337 if ( !pFrame ) in ImplHandleMouseMsg()
3345 Window *pWin = pFrame->GetWindow(); in ImplHandleMouseMsg()
3487 aMouseEvt.mnX = pFrame->maGeometry.nWidth-1-aMouseEvt.mnX; in ImplHandleMouseMsg()
3489 nRet = pFrame->CallCallback( nEvent, &aMouseEvt ); in ImplHandleMouseMsg()
3491 SetCursor( pFrame->mhCursor ); in ImplHandleMouseMsg()
3503 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleMouseActivateMsg() local
3504 if ( !pFrame ) in ImplHandleMouseActivateMsg()
3507 if ( pFrame->mbFloatWin ) in ImplHandleMouseActivateMsg()
3516 return pFrame->CallCallback( SALEVENT_MOUSEACTIVATE, &aMouseActivateEvt ); in ImplHandleMouseActivateMsg()
3530 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleWheelMsg() local
3531 if ( pFrame ) in ImplHandleWheelMsg()
3577 aWheelEvt.mnX = pFrame->maGeometry.nWidth-1-aWheelEvt.mnX; in ImplHandleWheelMsg()
3579 nRet = pFrame->CallCallback( SALEVENT_WHEELMOUSE, &aWheelEvt ); in ImplHandleWheelMsg()
3628 static void ImplUpdateInputLang( WinSalFrame* pFrame ) in ImplUpdateInputLang() argument
3632 if ( nLang && nLang != pFrame->mnInputLang ) in ImplUpdateInputLang()
3635 pFrame->mnInputLang = nLang; in ImplUpdateInputLang()
3646 static sal_Unicode ImplGetCharCode( WinSalFrame* pFrame, WPARAM nCharCode ) in ImplGetCharCode() argument
3648 ImplUpdateInputLang( pFrame ); in ImplGetCharCode()
3731 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleKeyMsg() local
3732 if ( !pFrame ) in ImplHandleKeyMsg()
3737 if ( pFrame->mpGraphics && in ImplHandleKeyMsg()
3738 pFrame->mpGraphics->getHDC() ) in ImplHandleKeyMsg()
3739 SetBkMode( pFrame->mpGraphics->getHDC(), TRANSPARENT ); in ImplHandleKeyMsg()
3797 aKeyEvt.mnCharCode = ImplGetCharCode( pFrame, wParam ); in ImplHandleKeyMsg()
3801 long nRet = pFrame->CallCallback( SALEVENT_KEYINPUT, &aKeyEvt ); in ImplHandleKeyMsg()
3802 pFrame->CallCallback( SALEVENT_KEYUP, &aKeyEvt ); in ImplHandleKeyMsg()
3826 pFrame->CallCallback( SALEVENT_KEYINPUT, &aKeyEvt ); in ImplHandleKeyMsg()
3827 pFrame->CallCallback( SALEVENT_KEYUP, &aKeyEvt ); in ImplHandleKeyMsg()
3835 long nRet = pFrame->CallCallback( SALEVENT_KEYINPUT, &aKeyEvt ); in ImplHandleKeyMsg()
3836 pFrame->CallCallback( SALEVENT_KEYUP, &aKeyEvt ); in ImplHandleKeyMsg()
3880 return pFrame->CallCallback( SALEVENT_KEYMODCHANGE, &aModEvt ); in ImplHandleKeyMsg()
3928 aKeyEvt.mnCharCode = ImplGetCharCode( pFrame, aCharMsg.wParam ); in ImplHandleKeyMsg()
3964 long nRet = pFrame->CallCallback( nEvent, &aKeyEvt ); in ImplHandleKeyMsg()
3968 nRet = pFrame->CallCallback( SALEVENT_KEYUP, &aKeyEvt ); in ImplHandleKeyMsg()
4000 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleSalObjKeyMsg() local
4001 if ( !pFrame ) in ImplHandleSalObjKeyMsg()
4035 long nRet = pFrame->CallCallback( nEvent, &aKeyEvt ); in ImplHandleSalObjKeyMsg()
4050 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleSalObjSysCharMsg() local
4051 if ( !pFrame ) in ImplHandleSalObjSysCharMsg()
4077 aKeyEvt.mnCharCode = ImplGetCharCode( pFrame, cKeyCode ); in ImplHandleSalObjSysCharMsg()
4079 long nRet = pFrame->CallCallback( SALEVENT_KEYINPUT, &aKeyEvt ); in ImplHandleSalObjSysCharMsg()
4080 pFrame->CallCallback( SALEVENT_KEYUP, &aKeyEvt ); in ImplHandleSalObjSysCharMsg()
4096 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandlePaintMsg() local
4097 if ( pFrame ) in ImplHandlePaintMsg()
4101 if ( pFrame->mpGraphics && pFrame->mpGraphics->mhRegion ) in ImplHandlePaintMsg()
4102 SelectClipRgn( pFrame->mpGraphics->getHDC(), 0 ); in ImplHandlePaintMsg()
4117 if ( pFrame->mpGraphics && pFrame->mpGraphics->mhRegion ) in ImplHandlePaintMsg()
4119 SelectClipRgn( pFrame->mpGraphics->getHDC(), in ImplHandlePaintMsg()
4120 pFrame->mpGraphics->mhRegion ); in ImplHandlePaintMsg()
4125 …, aUpdateRect.right-aUpdateRect.left, aUpdateRect.bottom-aUpdateRect.top, pFrame->mbPresentation ); in ImplHandlePaintMsg()
4126 pFrame->CallCallback( SALEVENT_PAINT, &aPEvt ); in ImplHandlePaintMsg()
4139 if ( pFrame->mpGraphics && pFrame->mpGraphics->mhRegion ) in ImplHandlePaintMsg()
4141 SelectClipRgn( pFrame->mpGraphics->getHDC(), in ImplHandlePaintMsg()
4142 pFrame->mpGraphics->mhRegion ); in ImplHandlePaintMsg()
4160 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandlePaintMsg2() local
4161 if ( pFrame ) in ImplHandlePaintMsg2()
4164 pFrame->CallCallback( SALEVENT_PAINT, &aPEvt ); in ImplHandlePaintMsg2()
4175 static void SetMaximizedFrameGeometry( HWND hWnd, WinSalFrame* pFrame, RECT* pParentRect ) in SetMaximizedFrameGeometry() argument
4198 …pFrame->maGeometry.nLeftDecoration = pFrame->maGeometry.nRightDecoration = pFrame->maGeometry.nBot… in SetMaximizedFrameGeometry()
4199 pFrame->maGeometry.nTopDecoration = pFrame->mbCaption ? GetSystemMetrics( SM_CYCAPTION ) : 0; in SetMaximizedFrameGeometry()
4201 aRect.top += pFrame->maGeometry.nTopDecoration; in SetMaximizedFrameGeometry()
4202 pFrame->maGeometry.nX = aRect.left; in SetMaximizedFrameGeometry()
4203 pFrame->maGeometry.nY = aRect.top; in SetMaximizedFrameGeometry()
4204 pFrame->maGeometry.nWidth = aRect.right - aRect.left; in SetMaximizedFrameGeometry()
4205 pFrame->maGeometry.nHeight = aRect.bottom - aRect.top; in SetMaximizedFrameGeometry()
4208 static void UpdateFrameGeometry( HWND hWnd, WinSalFrame* pFrame ) in UpdateFrameGeometry() argument
4210 if( !pFrame ) in UpdateFrameGeometry()
4215 memset(&pFrame->maGeometry, 0, sizeof(SalFrameGeometry) ); in UpdateFrameGeometry()
4225 pFrame->maGeometry.nTopDecoration = aPt.y - aRect.top; in UpdateFrameGeometry()
4227 pFrame->maGeometry.nLeftDecoration = cx; in UpdateFrameGeometry()
4228 pFrame->maGeometry.nRightDecoration = cx; in UpdateFrameGeometry()
4230 pFrame->maGeometry.nX = aPt.x; in UpdateFrameGeometry()
4231 pFrame->maGeometry.nY = aPt.y; in UpdateFrameGeometry()
4241 pFrame->maGeometry.nRightDecoration = aRect.right - aPt.x; in UpdateFrameGeometry()
4244 pFrame->maGeometry.nBottomDecoration += aRect.bottom - aPt.y - aInnerRect.bottom; in UpdateFrameGeometry()
4247 pFrame->maGeometry.nBottomDecoration = pFrame->maGeometry.nLeftDecoration; in UpdateFrameGeometry()
4250 - pFrame->maGeometry.nRightDecoration - pFrame->maGeometry.nLeftDecoration; in UpdateFrameGeometry()
4252 - pFrame->maGeometry.nBottomDecoration - pFrame->maGeometry.nTopDecoration; in UpdateFrameGeometry()
4254 pFrame->maGeometry.nHeight = nHeight < 0 ? 0 : nHeight; in UpdateFrameGeometry()
4255 pFrame->maGeometry.nWidth = nWidth < 0 ? 0 : nWidth; in UpdateFrameGeometry()
4256 pFrame->updateScreenNumber(); in UpdateFrameGeometry()
4263 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplCallMoveHdl() local
4264 if ( pFrame ) in ImplCallMoveHdl()
4266 pFrame->CallCallback( SALEVENT_MOVE, 0 ); in ImplCallMoveHdl()
4277 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplCallClosePopupsHdl() local
4278 if ( pFrame ) in ImplCallClosePopupsHdl()
4280 pFrame->CallCallback( SALEVENT_CLOSEPOPUPS, 0 ); in ImplCallClosePopupsHdl()
4290 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleMoveMsg() local
4291 if ( pFrame ) in ImplHandleMoveMsg()
4293 UpdateFrameGeometry( hWnd, pFrame ); in ImplHandleMoveMsg()
4296 pFrame->mbDefPos = FALSE; in ImplHandleMoveMsg()
4299 if ( !pFrame->mbInMoveMsg ) in ImplHandleMoveMsg()
4302 pFrame->mbInMoveMsg = TRUE; in ImplHandleMoveMsg()
4303 if ( pFrame->mbFullScreen ) in ImplHandleMoveMsg()
4304 ImplSalFrameFullScreenPos( pFrame ); in ImplHandleMoveMsg()
4305 pFrame->mbInMoveMsg = FALSE; in ImplHandleMoveMsg()
4309 ImplSaveFrameState( pFrame ); in ImplHandleMoveMsg()
4331 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplCallSizeHdl() local
4332 if ( pFrame ) in ImplCallSizeHdl()
4334 pFrame->CallCallback( SALEVENT_RESIZE, 0 ); in ImplCallSizeHdl()
4336 if ( IsWindowVisible( hWnd ) && !pFrame->mbInShow ) in ImplCallSizeHdl()
4352 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleSizeMsg() local
4353 if ( pFrame ) in ImplHandleSizeMsg()
4355 UpdateFrameGeometry( hWnd, pFrame ); in ImplHandleSizeMsg()
4357 pFrame->mnWidth = (int)LOWORD(lParam); in ImplHandleSizeMsg()
4358 pFrame->mnHeight = (int)HIWORD(lParam); in ImplHandleSizeMsg()
4360 ImplSaveFrameState( pFrame ); in ImplHandleSizeMsg()
4373 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleFocusMsg() local
4374 if ( pFrame && !WinSalFrame::mbInReparent ) in ImplHandleFocusMsg()
4379 if ( IsWindowVisible( hWnd ) && !pFrame->mbInShow ) in ImplHandleFocusMsg()
4383 if ( pFrame->mbIME && pFrame->mhDefIMEContext ) in ImplHandleFocusMsg()
4387 pFrame->mbSpezIME = (nImeProps & IME_PROP_SPECIAL_UI) != 0; in ImplHandleFocusMsg()
4388 pFrame->mbAtCursorIME = (nImeProps & IME_PROP_AT_CARET) != 0; in ImplHandleFocusMsg()
4389 pFrame->mbHandleIME = !pFrame->mbSpezIME; in ImplHandleFocusMsg()
4392 pFrame->CallCallback( SALEVENT_GETFOCUS, 0 ); in ImplHandleFocusMsg()
4396 pFrame->CallCallback( SALEVENT_LOSEFOCUS, 0 ); in ImplHandleFocusMsg()
4412 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleCloseMsg() local
4413 if ( pFrame ) in ImplHandleCloseMsg()
4415 pFrame->CallCallback( SALEVENT_CLOSE, 0 ); in ImplHandleCloseMsg()
4430 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleShutDownMsg() local
4431 if ( pFrame ) in ImplHandleShutDownMsg()
4433 nRet = pFrame->CallCallback( SALEVENT_SHUTDOWN, 0 ); in ImplHandleShutDownMsg()
4476 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleSettingsChangeMsg() local
4477 if ( pFrame ) in ImplHandleSettingsChangeMsg()
4481 if ( pFrame->mbFullScreen ) in ImplHandleSettingsChangeMsg()
4482 ImplSalFrameFullScreenPos( pFrame ); in ImplHandleSettingsChangeMsg()
4485 pFrame->CallCallback( nSalEvent, 0 ); in ImplHandleSettingsChangeMsg()
4496 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleUserEvent() local
4497 if ( pFrame ) in ImplHandleUserEvent()
4499 pFrame->CallCallback( SALEVENT_USEREVENT, (void*)lParam ); in ImplHandleUserEvent()
4518 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleForcePalette() local
4519 if ( pFrame && pFrame->mpGraphics ) in ImplHandleForcePalette()
4521 WinSalGraphics* pGraphics = pFrame->mpGraphics; in ImplHandleForcePalette()
4529 pFrame->CallCallback( SALEVENT_DISPLAYCHANGED, 0 ); in ImplHandleForcePalette()
4609 WinSalFrame* pFrame = NULL; in ImplHandlePalette() local
4611 pFrame = GetWindowPtr( hWnd ); in ImplHandlePalette()
4612 if ( pFrame && pFrame->mpGraphics ) in ImplHandlePalette()
4614 hDC = pFrame->mpGraphics->getHDC(); in ImplHandlePalette()
4647 if ( pTempFrame != pFrame ) in ImplHandlePalette()
4696 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleMinMax() local
4697 if ( pFrame ) in ImplHandleMinMax()
4701 if ( pFrame->mbFullScreen ) in ImplHandleMinMax()
4707 ImplSalCalcFullScreenSize( pFrame, nX, nY, nDX, nDY ); in ImplHandleMinMax()
4729 if ( pFrame->mnMinWidth || pFrame->mnMinHeight ) in ImplHandleMinMax()
4731 int nWidth = pFrame->mnMinWidth; in ImplHandleMinMax()
4732 int nHeight = pFrame->mnMinHeight; in ImplHandleMinMax()
4734 ImplSalAddBorder( pFrame, nWidth, nHeight ); in ImplHandleMinMax()
4742 if ( pFrame->mnMaxWidth || pFrame->mnMaxHeight ) in ImplHandleMinMax()
4744 int nWidth = pFrame->mnMaxWidth; in ImplHandleMinMax()
4745 int nHeight = pFrame->mnMaxHeight; in ImplHandleMinMax()
4747 ImplSalAddBorder( pFrame, nWidth, nHeight ); in ImplHandleMinMax()
5066 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleMenuActivate() local
5067 if ( !pFrame ) in ImplHandleMenuActivate()
5083 long nRet = pFrame->CallCallback( SALEVENT_MENUACTIVATE, &aMenuEvt ); in ImplHandleMenuActivate()
5085 nRet = pFrame->CallCallback( SALEVENT_MENUDEACTIVATE, &aMenuEvt ); in ImplHandleMenuActivate()
5087 pFrame->mLastActivatedhMenu = hMenu; in ImplHandleMenuActivate()
5095 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleMenuSelect() local
5096 if ( !pFrame ) in ImplHandleMenuSelect()
5112 if ( hMenu && !pFrame->mLastActivatedhMenu ) in ImplHandleMenuSelect()
5123 nRet = pFrame->CallCallback( SALEVENT_MENUACTIVATE, &aMenuEvt ); in ImplHandleMenuSelect()
5125 nRet = pFrame->CallCallback( SALEVENT_MENUDEACTIVATE, &aMenuEvt ); in ImplHandleMenuSelect()
5127 pFrame->mLastActivatedhMenu = hMenu; in ImplHandleMenuSelect()
5133 pFrame->mLastActivatedhMenu = NULL; in ImplHandleMenuSelect()
5141 pFrame->mSelectedhMenu = hMenu; in ImplHandleMenuSelect()
5164 nRet = pFrame->CallCallback( SALEVENT_MENUHIGHLIGHT, &aMenuEvt ); in ImplHandleMenuSelect()
5172 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleCommand() local
5173 if ( !pFrame ) in ImplHandleCommand()
5185 WinSalMenuItem *pSalMenuItem = ImplGetSalMenuItem( pFrame->mSelectedhMenu, nId, FALSE ); in ImplHandleCommand()
5191 nRet = pFrame->CallCallback( SALEVENT_MENUCOMMAND, &aMenuEvt ); in ImplHandleCommand()
5199 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleSysCommand() local
5200 if ( !pFrame ) in ImplHandleSysCommand()
5205 if ( pFrame->mbFullScreen ) in ImplHandleSysCommand()
5207 BOOL bMaximize = IsZoomed( pFrame->mhWnd ); in ImplHandleSysCommand()
5208 BOOL bMinimize = IsIconic( pFrame->mhWnd ); in ImplHandleSysCommand()
5253 long nRet = pFrame->CallCallback( SALEVENT_KEYINPUT, &aKeyEvt ); in ImplHandleSysCommand()
5254 pFrame->CallCallback( SALEVENT_KEYUP, &aKeyEvt ); in ImplHandleSysCommand()
5288 long nRet = pFrame->CallCallback( SALEVENT_KEYINPUT, &aKeyEvt ); in ImplHandleSysCommand()
5289 pFrame->CallCallback( SALEVENT_KEYUP, &aKeyEvt ); in ImplHandleSysCommand()
5306 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleInputLangChange() local
5307 if ( pFrame && pFrame->mbIME && pFrame->mhDefIMEContext ) in ImplHandleInputLangChange()
5312 pFrame->mbSpezIME = (nImeProps & IME_PROP_SPECIAL_UI) != 0; in ImplHandleInputLangChange()
5313 pFrame->mbAtCursorIME = (nImeProps & IME_PROP_AT_CARET) != 0; in ImplHandleInputLangChange()
5314 pFrame->mbHandleIME = !pFrame->mbSpezIME; in ImplHandleInputLangChange()
5318 UINT nLang = pFrame->mnInputLang; in ImplHandleInputLangChange()
5319 ImplUpdateInputLang( pFrame ); in ImplHandleInputLangChange()
5322 if( nLang != pFrame->mnInputLang ) in ImplHandleInputLangChange()
5323 pFrame->CallCallback( SALEVENT_INPUTLANGUAGECHANGE, 0 ); in ImplHandleInputLangChange()
5330 static void ImplUpdateIMECursorPos( WinSalFrame* pFrame, HIMC hIMC ) in ImplUpdateIMECursorPos() argument
5338 pFrame->CallCallback( SALEVENT_EXTTEXTINPUTPOS, (void*)&aPosEvt ); in ImplUpdateIMECursorPos()
5351 if ( GetFocus() == pFrame->mhWnd ) in ImplUpdateIMECursorPos()
5353 CreateCaret( pFrame->mhWnd, 0, in ImplUpdateIMECursorPos()
5367 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleIMEStartComposition() local
5368 if ( pFrame ) in ImplHandleIMEStartComposition()
5373 ImplUpdateIMECursorPos( pFrame, hIMC ); in ImplHandleIMEStartComposition()
5377 if ( pFrame->mbHandleIME ) in ImplHandleIMEStartComposition()
5379 if ( pFrame->mbAtCursorIME ) in ImplHandleIMEStartComposition()
5391 static sal_Bool ImplHandleIMECompositionInput( WinSalFrame* pFrame, in ImplHandleIMECompositionInput() argument
5420 pFrame->CallCallback( SALEVENT_EXTTEXTINPUT, (void*)&aEvt ); in ImplHandleIMECompositionInput()
5421 pFrame->CallCallback( SALEVENT_ENDEXTTEXTINPUT, (void*)NULL ); in ImplHandleIMECompositionInput()
5422 ImplUpdateIMECursorPos( pFrame, hIMC ); in ImplHandleIMECompositionInput()
5426 if ( !pFrame->mbAtCursorIME ) in ImplHandleIMECompositionInput()
5486 if ( !nTextLen && !pFrame->mbCandidateMode ) in ImplHandleIMECompositionInput()
5488 pFrame->CallCallback( SALEVENT_EXTTEXTINPUT, (void*)&aEvt ); in ImplHandleIMECompositionInput()
5489 pFrame->CallCallback( SALEVENT_ENDEXTTEXTINPUT, (void*)NULL ); in ImplHandleIMECompositionInput()
5504 if ( pFrame->mbCandidateMode ) in ImplHandleIMECompositionInput()
5509 pFrame->CallCallback( SALEVENT_EXTTEXTINPUT, (void*)&aEvt ); in ImplHandleIMECompositionInput()
5511 ImplUpdateIMECursorPos( pFrame, hIMC ); in ImplHandleIMECompositionInput()
5528 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleIMEComposition() local
5529 if ( pFrame && (!lParam || (lParam & GCS_RESULTSTR)) ) in ImplHandleIMEComposition()
5533 if ( pFrame->mpGraphics && in ImplHandleIMEComposition()
5534 pFrame->mpGraphics->getHDC() ) in ImplHandleIMEComposition()
5535 SetBkMode( pFrame->mpGraphics->getHDC(), TRANSPARENT ); in ImplHandleIMEComposition()
5538 if ( pFrame && pFrame->mbHandleIME ) in ImplHandleIMEComposition()
5549 pFrame->CallCallback( SALEVENT_EXTTEXTINPUT, (void*)&aEvt ); in ImplHandleIMEComposition()
5550 pFrame->CallCallback( SALEVENT_ENDEXTTEXTINPUT, (void*)NULL ); in ImplHandleIMEComposition()
5557 if ( ImplHandleIMECompositionInput( pFrame, hIMC, lParam ) ) in ImplHandleIMEComposition()
5577 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleIMEEndComposition() local
5578 if ( pFrame && pFrame->mbHandleIME ) in ImplHandleIMEEndComposition()
5580 if ( pFrame->mbAtCursorIME ) in ImplHandleIMEEndComposition()
5618 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleAppCommand() local
5619 Window *pWindow = pFrame ? pFrame->GetWindow() : NULL; in ImplHandleAppCommand()
5644 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleIMENotify() local
5645 if ( pFrame && pFrame->mbHandleIME && in ImplHandleIMENotify()
5646 pFrame->mbAtCursorIME ) in ImplHandleIMENotify()
5649 pFrame->mbCandidateMode = TRUE; in ImplHandleIMENotify()
5652 HWND hWnd = pFrame->mhWnd; in ImplHandleIMENotify()
5660 pFrame->CallCallback( SALEVENT_EXTTEXTINPUTPOS, (void*)&aPosEvt ); in ImplHandleIMENotify()
5684 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleIMENotify() local
5685 if ( pFrame ) in ImplHandleIMENotify()
5686 pFrame->mbCandidateMode = FALSE; in ImplHandleIMENotify()
5696 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleIMEReconvertString() local
5713 pFrame->CallCallback( SALEVENT_STARTRECONVERSION, (void*)NULL ); in ImplHandleIMEReconvertString()
5716 pFrame->CallCallback( SALEVENT_SURROUNDINGTEXTREQUEST, (void*)&aEvt ); in ImplHandleIMEReconvertString()
5730 pFrame->CallCallback( SALEVENT_SURROUNDINGTEXTREQUEST, (void*)&aEvt ); in ImplHandleIMEReconvertString()
5751 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleIMEConfirmReconvertString() local
5757 pFrame->CallCallback( SALEVENT_SURROUNDINGTEXTREQUEST, (void*)&aEvt ); in ImplHandleIMEConfirmReconvertString()
5768 pFrame->CallCallback( SALEVENT_SURROUNDINGTEXTSELECTIONCHANGE, (void*)&aSelEvt ); in ImplHandleIMEConfirmReconvertString()
5837 WinSalFrame* pFrame = (WinSalFrame*)pStruct->lpCreateParams; in SalFrameWndProc() local
5838 if ( pFrame != 0 ) in SalFrameWndProc()
5840 SetWindowPtr( hWnd, pFrame ); in SalFrameWndProc()
5844 pFrame->mhWnd = hWnd; in SalFrameWndProc()
5845 pFrame->maSysData.hWnd = hWnd; in SalFrameWndProc()
6036 WinSalFrame* pFrame = GetWindowPtr( hWnd ); in SalFrameWndProc() local
6038 if( pFrame ) in SalFrameWndProc()
6039 pWin = pFrame->GetWindow(); in SalFrameWndProc()