diff options
Diffstat (limited to 'vcl/aqua/source/window/salobj.cxx')
-rw-r--r-- | vcl/aqua/source/window/salobj.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/aqua/source/window/salobj.cxx b/vcl/aqua/source/window/salobj.cxx index 23df35581ecb..ef8d59f391a3 100644 --- a/vcl/aqua/source/window/salobj.cxx +++ b/vcl/aqua/source/window/salobj.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -51,7 +51,7 @@ AquaSalObject::AquaSalObject( AquaSalFrame* pFrame ) : { maSysData.nSize = sizeof( maSysData ); maSysData.pView = NULL; - + NSRect aInitFrame = { { 0, 0 }, { 20, 20 } }; mpClipView = [[NSClipView alloc] initWithFrame: aInitFrame ]; if( mpClipView ) @@ -91,7 +91,7 @@ AquaSalObject::~AquaSalObject() similar effect to non-rectangular windows is achieved by using a non-opaque window and not painting where one wants the background to shine through. - + With respect to SalObject this leaves us to having an NSClipView containing the child view. Even a QTMovieView respects the boundaries of that, which gives us a clip "region" consisting of one rectangle. @@ -179,7 +179,7 @@ void AquaSalObject::setClippedPosSize() NSView *pView = maSysData.pView; [pView setFrame: aViewRect]; } - + NSRect aClipViewRect = { { mnX, mnY }, { mnWidth, mnHeight } }; NSPoint aClipPt = { 0, 0 }; if( mbClip ) @@ -192,10 +192,10 @@ void AquaSalObject::setClippedPosSize() if( mnClipY == 0 ) aClipPt.y = mnHeight - mnClipHeight;; } - + mpFrame->VCLToCocoa( aClipViewRect, false ); [mpClipView setFrame: aClipViewRect]; - + [mpClipView scrollToPoint: aClipPt]; } |