Lines Matching refs:mpFrame

150     mpFrame = pFrame;
154 …NSWindow* pNSWindow = [super initWithContentRect: aRect styleMask: mpFrame->getStyleMask() backing…
158 …bool bAllowFullScreen = (0 == (mpFrame->mnStyle & (SAL_FRAME_STYLE_DIALOG | SAL_FRAME_STYLE_TOOLTI…
159 bAllowFullScreen &= (0 == (~mpFrame->mnStyle & (SAL_FRAME_STYLE_SIZEABLE)));
160 bAllowFullScreen &= (mpFrame->mpParent == NULL);
179 return mpFrame;
207 if( (mpFrame->mnStyle &
213 if( (mpFrame->mnStyle & SAL_FRAME_STYLE_OWNERDRAWDECORATION) != 0 )
215 if( mpFrame->mbFullScreen )
217 if( (mpFrame->mnStyle & SAL_FRAME_STYLE_FLOAT_FOCUSABLE) )
227 if( mpFrame && AquaSalFrame::isAlive( mpFrame ) )
233 if( mpFrame->mpMenu )
234 mpFrame->mpMenu->setMainMenu();
235 else if( ! mpFrame->mpParent &&
236 … ( (mpFrame->mnStyle & nGuessDocument) == nGuessDocument || // set default menu for e.g. help
237mpFrame->mbFullScreen ) ) // ser default menu for e.g. presentation
245 if( (mpFrame->mpParent && mpFrame->mpParent->GetWindow()->IsInModalMode()) )
248 mpFrame->CallCallback( SALEVENT_GETFOCUS, 0 );
249 mpFrame->SendPaintEvent(); // repaint controls as active
258 if( mpFrame && AquaSalFrame::isAlive( mpFrame ) )
260 mpFrame->CallCallback(SALEVENT_LOSEFOCUS, 0);
261 mpFrame->SendPaintEvent(); // repaint controls as inactive
270 if( mpFrame && AquaSalFrame::isAlive( mpFrame ) )
271 mpFrame->screenParametersChanged();
279 if( mpFrame && AquaSalFrame::isAlive( mpFrame ) )
281 mpFrame->UpdateFrameGeometry();
282 mpFrame->CallCallback( SALEVENT_MOVE, 0 );
291 if( mpFrame && AquaSalFrame::isAlive( mpFrame ) )
293 mpFrame->UpdateFrameGeometry();
294 mpFrame->CallCallback( SALEVENT_RESIZE, 0 );
295 mpFrame->SendPaintEvent();
304 if( mpFrame && AquaSalFrame::isAlive( mpFrame ) )
306 mpFrame->mbShown = false;
307 mpFrame->UpdateFrameGeometry();
308 mpFrame->CallCallback( SALEVENT_RESIZE, 0 );
317 if( mpFrame && AquaSalFrame::isAlive( mpFrame ) )
319 mpFrame->mbShown = true;
320 mpFrame->UpdateFrameGeometry();
321 mpFrame->CallCallback( SALEVENT_RESIZE, 0 );
331 if( mpFrame && AquaSalFrame::isAlive( mpFrame ) )
334 mpFrame->CallCallback( SALEVENT_ENDEXTTEXTINPUT, 0 );
335 if( AquaSalFrame::isAlive( mpFrame ) )
337 mpFrame->CallCallback( SALEVENT_CLOSE, 0 );
349 if( !mpFrame || !AquaSalFrame::isAlive( mpFrame))
351 mpFrame->mbFullScreen = true;
359 if( !mpFrame || !AquaSalFrame::isAlive( mpFrame))
361 mpFrame->mbFullScreen = false;
370 if( mpFrame && AquaSalFrame::isAlive( mpFrame ) )
371 mpFrame->ToTop( SAL_FRAME_TOTOP_RESTOREWHENMIN | SAL_FRAME_TOTOP_GRABFOCUS );
376 return mpFrame -> GetWindow() -> GetAccessible() -> getAccessibleContext();
434 mpFrame = pFrame;
448 return mpFrame;
453 if( mpFrame && AquaSalFrame::isAlive( mpFrame ) )
456 …const NSRect aRect = { NSZeroPoint, NSMakeSize( mpFrame->maGeometry.nWidth, mpFrame->maGeometry.nH…
457 [self addCursorRect: aRect cursor: mpFrame->getCurrentCursor()];
474 if( !mpFrame)
476 if( !AquaSalFrame::isAlive( mpFrame))
478 if( !mpFrame->getClipPath())
502 // NOTE: the mpFrame access below is not guarded yet!
503 // TODO: mpFrame et al need to be guarded by an independent mutex
504 …AquaSalGraphics* pGraphics = (mpFrame && AquaSalFrame::isAlive(mpFrame)) ? mpFrame->mpGraphics : N…
515 if( mpFrame && AquaSalFrame::isAlive( mpFrame ) )
517 if( mpFrame->mpGraphics )
519 mpFrame->mpGraphics->UpdateWindow( aRect );
520 if( mpFrame->getClipPath() )
521 [mpFrame->getNSWindow() invalidateShadow];
541 pDispatchFrame = mpFrame;
648 s_pMouseFrame = mpFrame;
658 if( s_pMouseFrame == mpFrame )
719 if( AquaSalFrame::isAlive( mpFrame ) )
722 mpFrame->mnLastEventTime = static_cast<sal_uLong>( fMagnifyTime * 1000.0 );
723 mpFrame->mnLastModifierFlags = [pEvent modifierFlags];
755 mpFrame->CocoaToVCL( aPt );
758 aEvent.mnTime = mpFrame->mnLastEventTime;
759 aEvent.mnX = static_cast<long>(aPt.x) - mpFrame->maGeometry.nX;
760 aEvent.mnY = static_cast<long>(aPt.y) - mpFrame->maGeometry.nY;
761 aEvent.mnCode = ImplGetModifierMask( mpFrame->mnLastModifierFlags );
767 aEvent.mnX = mpFrame->maGeometry.nWidth-1-aEvent.mnX;
777 mpFrame->CallCallback( SALEVENT_WHEELMOUSE, &aEvent );
792 if( AquaSalFrame::isAlive( mpFrame ) )
794 mpFrame->mnLastEventTime = static_cast<sal_uLong>( [pEvent timestamp] * 1000.0 );
795 mpFrame->mnLastModifierFlags = [pEvent modifierFlags];
812 mpFrame->CocoaToVCL( aPt );
815 aEvent.mnTime = mpFrame->mnLastEventTime;
816 aEvent.mnX = static_cast<long>(aPt.x) - mpFrame->maGeometry.nX;
817 aEvent.mnY = static_cast<long>(aPt.y) - mpFrame->maGeometry.nY;
818 aEvent.mnCode = ImplGetModifierMask( mpFrame->mnLastModifierFlags );
823 aEvent.mnX = mpFrame->maGeometry.nWidth-1-aEvent.mnX;
833 mpFrame->CallCallback( SALEVENT_WHEELMOUSE, &aEvent );
835 if( dY != 0.0 && AquaSalFrame::isAlive( mpFrame ))
843 mpFrame->CallCallback( SALEVENT_WHEELMOUSE, &aEvent );
852 if( AquaSalFrame::isAlive( mpFrame ) )
854 mpFrame->mnLastEventTime = static_cast<sal_uLong>( [pEvent timestamp] * 1000.0 );
855 mpFrame->mnLastModifierFlags = [pEvent modifierFlags];
872 mpFrame->CocoaToVCL( aPt );
875 aEvent.mnTime = mpFrame->mnLastEventTime;
876 aEvent.mnX = static_cast<long>(aPt.x) - mpFrame->maGeometry.nX;
877 aEvent.mnY = static_cast<long>(aPt.y) - mpFrame->maGeometry.nY;
878 aEvent.mnCode = ImplGetModifierMask( mpFrame->mnLastModifierFlags );
883 aEvent.mnX = mpFrame->maGeometry.nWidth-1-aEvent.mnX;
896 mpFrame->CallCallback( SALEVENT_WHEELMOUSE, &aEvent );
898 if( dY != 0.0 && AquaSalFrame::isAlive( mpFrame ) )
909 mpFrame->CallCallback( SALEVENT_WHEELMOUSE, &aEvent );
919 if( AquaSalFrame::isAlive( mpFrame ) )
926 mpFrame->mnLastEventTime = static_cast<sal_uLong>( [pEvent timestamp] * 1000.0 );
927 mpFrame->mnLastModifierFlags = [pEvent modifierFlags];
950 if( (mpFrame->mnLastModifierFlags & (NSAlternateKeyMask | NSCommandKeyMask))
965 (mpFrame->mnLastModifierFlags & aExceptionalKeys[i].nModifierMask)
981 if( AquaSalFrame::isAlive( mpFrame ) )
983 mpFrame->mnLastEventTime = static_cast<sal_uLong>( [pEvent timestamp] * 1000.0 );
984 mpFrame->mnLastModifierFlags = [pEvent modifierFlags];
992 if( AquaSalFrame::isAlive( mpFrame ) )
1014 unsigned int nLastModifiers = mpFrame->mnLastModifierFlags;
1047 aEvent.mnTime = mpFrame->mnLastEventTime;
1054 mpFrame->CallCallback( SALEVENT_EXTTEXTINPUT, &aEvent );
1055 if( AquaSalFrame::isAlive( mpFrame ) )
1056 mpFrame->CallCallback( SALEVENT_ENDEXTTEXTINPUT, 0 );
1062 aEvent.mnTime = mpFrame->mnLastEventTime;
1069 mpFrame->CallCallback( SALEVENT_EXTTEXTINPUT, &aEvent );
1070 if( AquaSalFrame::isAlive( mpFrame ) )
1071 mpFrame->CallCallback( SALEVENT_ENDEXTTEXTINPUT, 0 );
1325 …[self sendKeyInputAndReleaseToFrame: KEY_RETURN character: '\n' modifiers: mpFrame->mnLastModifier…
1449 …return [self sendKeyInputAndReleaseToFrame: nKeyCode character: aChar modifiers: mpFrame->mnLastMo…
1463 if( AquaSalFrame::isAlive( mpFrame ) )
1466 aEvent.mnTime = mpFrame->mnLastEventTime;
1470 nRet = mpFrame->CallCallback( SALEVENT_KEYINPUT, &aEvent );
1474 if( AquaSalFrame::isAlive( mpFrame ) )
1475 mpFrame->CallCallback( SALEVENT_KEYUP, &aEvent );
1494 …BOOL bRet = [self sendKeyToFrameDirect: nKeyCode character: keyChar modifiers: mpFrame->mnLastModi…
1573 aInputEvent.mnTime = mpFrame->mnLastEventTime;
1607 mpFrame->CallCallback( SALEVENT_EXTTEXTINPUT, (void *)&aInputEvent );
1613 mpFrame->CallCallback( SALEVENT_EXTTEXTINPUT, (void *)&aInputEvent );
1614 mpFrame->CallCallback( SALEVENT_ENDEXTTEXTINPUT, 0 );
1651 if( AquaSalFrame::isAlive( mpFrame ) )
1656 if( (mpFrame->mnICOptions & SAL_INPUTCONTEXT_TEXT) != 0 &&
1679 mpFrame->CallCallback( SALEVENT_EXTTEXTINPUTPOS, (void *)&aPosEvent );
1683 rect.origin.x = aPosEvent.mnX + mpFrame->maGeometry.nX;
1684 rect.origin.y = aPosEvent.mnY + mpFrame->maGeometry.nY + 4; // add some space for underlines
1688 mpFrame->VCLToCocoa( rect );
1693 return mpFrame->getNSWindow();
1700 Window *pWindow = mpFrame -> GetWindow();
1713 return mpFrame->getNSWindow();