diff options
Diffstat (limited to 'sd/source/ui/func/fucon3d.cxx')
-rwxr-xr-x[-rw-r--r--] | sd/source/ui/func/fucon3d.cxx | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/sd/source/ui/func/fucon3d.cxx b/sd/source/ui/func/fucon3d.cxx index ef0827cc6efc..2b34ac183661 100644..100755 --- a/sd/source/ui/func/fucon3d.cxx +++ b/sd/source/ui/func/fucon3d.cxx @@ -131,7 +131,7 @@ E3dCompoundObject* FuConstruct3dObject::ImpCreateBasic3DShape() case SID_3D_SHELL: { - XPolygon aXPoly(Point (0, 1250), 2500, 2500, 0, 900, FALSE); + XPolygon aXPoly(Point (0, 1250), 2500, 2500, 0, 900, sal_False); aXPoly.Scale(5.0, 5.0); ::basegfx::B2DPolygon aB2DPolygon(aXPoly.getB2DPolygon()); @@ -143,13 +143,13 @@ E3dCompoundObject* FuConstruct3dObject::ImpCreateBasic3DShape() // Dies ist ein offenes Objekt, muss daher defaultmaessig // doppelseitig behandelt werden - p3DObj->SetMergedItem(Svx3DDoubleSidedItem(TRUE)); + p3DObj->SetMergedItem(Svx3DDoubleSidedItem(sal_True)); break; } case SID_3D_HALF_SPHERE: { - XPolygon aXPoly(Point (0, 1250), 2500, 2500, 0, 900, FALSE); + XPolygon aXPoly(Point (0, 1250), 2500, 2500, 0, 900, sal_False); aXPoly.Scale(5.0, 5.0); aXPoly.Insert(0, Point (2400*5, 1250*5), XPOLY_NORMAL); @@ -326,16 +326,16 @@ void FuConstruct3dObject::ImpPrepareBasic3DShape(E3dCompoundObject* p3DObj, E3dS pScene->SetMergedItemSetAndBroadcast(aAttr); } -BOOL FuConstruct3dObject::MouseButtonDown(const MouseEvent& rMEvt) +sal_Bool FuConstruct3dObject::MouseButtonDown(const MouseEvent& rMEvt) { - BOOL bReturn = FuConstruct::MouseButtonDown(rMEvt); + sal_Bool bReturn = FuConstruct::MouseButtonDown(rMEvt); if ( rMEvt.IsLeft() && !mpView->IsAction() ) { Point aPnt( mpWindow->PixelToLogic( rMEvt.GetPosPixel() ) ); mpWindow->CaptureMouse(); - USHORT nDrgLog = USHORT ( mpWindow->PixelToLogic(Size(DRGPIX,0)).Width() ); + sal_uInt16 nDrgLog = sal_uInt16 ( mpWindow->PixelToLogic(Size(DRGPIX,0)).Width() ); E3dCompoundObject* p3DObj = NULL; @@ -372,7 +372,7 @@ BOOL FuConstruct3dObject::MouseButtonDown(const MouseEvent& rMEvt) |* \************************************************************************/ -BOOL FuConstruct3dObject::MouseMove(const MouseEvent& rMEvt) +sal_Bool FuConstruct3dObject::MouseMove(const MouseEvent& rMEvt) { return FuConstruct::MouseMove(rMEvt); } @@ -383,15 +383,15 @@ BOOL FuConstruct3dObject::MouseMove(const MouseEvent& rMEvt) |* \************************************************************************/ -BOOL FuConstruct3dObject::MouseButtonUp(const MouseEvent& rMEvt) +sal_Bool FuConstruct3dObject::MouseButtonUp(const MouseEvent& rMEvt) { - BOOL bReturn = FALSE; + sal_Bool bReturn = sal_False; if ( mpView->IsCreateObj() && rMEvt.IsLeft() ) { Point aPnt( mpWindow->PixelToLogic( rMEvt.GetPosPixel() ) ); mpView->EndCreateObj(SDRCREATE_FORCEEND); - bReturn = TRUE; + bReturn = sal_True; } bReturn = FuConstruct::MouseButtonUp(rMEvt) || bReturn; @@ -406,12 +406,12 @@ BOOL FuConstruct3dObject::MouseButtonUp(const MouseEvent& rMEvt) |* |* Tastaturereignisse bearbeiten |* -|* Wird ein KeyEvent bearbeitet, so ist der Return-Wert TRUE, andernfalls -|* FALSE. +|* Wird ein KeyEvent bearbeitet, so ist der Return-Wert sal_True, andernfalls +|* sal_False. |* \************************************************************************/ -BOOL FuConstruct3dObject::KeyInput(const KeyEvent& rKEvt) +sal_Bool FuConstruct3dObject::KeyInput(const KeyEvent& rKEvt) { return( FuConstruct::KeyInput(rKEvt) ); } @@ -468,7 +468,7 @@ SdrObject* FuConstruct3dObject::CreateDefaultObject(const sal_uInt16 nID, const // copied code from E3dView::InitScene double fCamZ(aVolume.getMaxZ() + ((fW + fH) / 4.0)); Camera3D aCam(pScene->GetCamera()); - aCam.SetAutoAdjustProjection(FALSE); + aCam.SetAutoAdjustProjection(sal_False); aCam.SetViewWindow(- fW / 2, - fH / 2, fW, fH); ::basegfx::B3DPoint aLookAt; double fDefaultCamPosZ = mpView->GetDefaultCamPosZ(); |