summaryrefslogtreecommitdiff
path: root/svx/source/engine3d
diff options
context:
space:
mode:
authorMikhail Voytenko <mav@openoffice.org>2011-01-10 16:11:35 +0100
committerMikhail Voytenko <mav@openoffice.org>2011-01-10 16:11:35 +0100
commit94d85ef550ad17efba5dec09290d0e8176a8b455 (patch)
tree41a1a79c31bd144b9374142c6259d33e2a3f5b89 /svx/source/engine3d
parent3f4e9b4c3cd9028744ea6ed5e93c41c51a15d229 (diff)
removetooltypes01: #i112600# remove tooltypes from svx
Diffstat (limited to 'svx/source/engine3d')
-rw-r--r--svx/source/engine3d/cube3d.cxx8
-rw-r--r--svx/source/engine3d/dragmt3d.cxx14
-rw-r--r--svx/source/engine3d/e3dundo.cxx10
-rw-r--r--svx/source/engine3d/float3d.cxx546
-rw-r--r--svx/source/engine3d/lathe3d.cxx8
-rw-r--r--svx/source/engine3d/obj3d.cxx56
-rw-r--r--svx/source/engine3d/objfac3d.cxx4
-rw-r--r--svx/source/engine3d/polygn3d.cxx14
-rw-r--r--svx/source/engine3d/sphere3d.cxx4
-rw-r--r--svx/source/engine3d/svx3ditems.cxx66
-rw-r--r--svx/source/engine3d/view3d.cxx160
-rw-r--r--svx/source/engine3d/view3d1.cxx10
12 files changed, 450 insertions, 450 deletions
diff --git a/svx/source/engine3d/cube3d.cxx b/svx/source/engine3d/cube3d.cxx
index b78d464d4897..6329ca2a3203 100644
--- a/svx/source/engine3d/cube3d.cxx
+++ b/svx/source/engine3d/cube3d.cxx
@@ -87,7 +87,7 @@ void E3dCubeObj::SetDefaultAttributes(E3dDefaultAttributes& rDefault)
|*
\************************************************************************/
-UINT16 E3dCubeObj::GetObjIdentifier() const
+sal_uInt16 E3dCubeObj::GetObjIdentifier() const
{
return E3D_CUBEOBJ_ID;
}
@@ -98,7 +98,7 @@ UINT16 E3dCubeObj::GetObjIdentifier() const
|*
\************************************************************************/
-SdrObject *E3dCubeObj::DoConvertToPolyObj(BOOL /*bBezier*/) const
+SdrObject *E3dCubeObj::DoConvertToPolyObj(sal_Bool /*bBezier*/) const
{
return NULL;
}
@@ -147,7 +147,7 @@ void E3dCubeObj::SetCubeSize(const basegfx::B3DVector& rNew)
}
}
-void E3dCubeObj::SetPosIsCenter(BOOL bNew)
+void E3dCubeObj::SetPosIsCenter(sal_Bool bNew)
{
if(bPosIsCenter != bNew)
{
@@ -156,7 +156,7 @@ void E3dCubeObj::SetPosIsCenter(BOOL bNew)
}
}
-void E3dCubeObj::SetSideFlags(UINT16 nNew)
+void E3dCubeObj::SetSideFlags(sal_uInt16 nNew)
{
if(nSideFlags != nNew)
{
diff --git a/svx/source/engine3d/dragmt3d.cxx b/svx/source/engine3d/dragmt3d.cxx
index fd44db7b02d9..6fadec8cc9dc 100644
--- a/svx/source/engine3d/dragmt3d.cxx
+++ b/svx/source/engine3d/dragmt3d.cxx
@@ -57,11 +57,11 @@ E3dDragMethod::E3dDragMethod (
SdrDragView &_rView,
const SdrMarkList& rMark,
E3dDragConstraint eConstr,
- BOOL bFull)
+ sal_Bool bFull)
: SdrDragMethod(_rView),
meConstraint(eConstr),
mbMoveFull(bFull),
- mbMovedAtAll(FALSE)
+ mbMovedAtAll(sal_False)
{
// Fuer alle in der selektion befindlichen 3D-Objekte
// eine Unit anlegen
@@ -175,7 +175,7 @@ bool E3dDragMethod::BeginSdrDrag()
Show();
}
- return TRUE;
+ return sal_True;
}
/*************************************************************************
@@ -218,7 +218,7 @@ bool E3dDragMethod::EndSdrDrag(bool /*bCopy*/)
getSdrDragView().EndUndo();
}
- return TRUE;
+ return sal_True;
}
/*************************************************************************
@@ -321,7 +321,7 @@ TYPEINIT1(E3dDragRotate, E3dDragMethod);
E3dDragRotate::E3dDragRotate(SdrDragView &_rView,
const SdrMarkList& rMark,
E3dDragConstraint eConstr,
- BOOL bFull)
+ sal_Bool bFull)
: E3dDragMethod(_rView, rMark, eConstr, bFull)
{
// Zentrum aller selektierten Objekte in Augkoordinaten holen
@@ -421,7 +421,7 @@ void E3dDragRotate::MoveSdrDrag(const Point& rPnt)
}
long nSnap = 0;
- if(!getSdrDragView().IsRotateAllowed(FALSE))
+ if(!getSdrDragView().IsRotateAllowed(sal_False))
nSnap = 90;
if(nSnap != 0)
@@ -514,7 +514,7 @@ E3dDragMove::E3dDragMove(SdrDragView &_rView,
const SdrMarkList& rMark,
SdrHdlKind eDrgHdl,
E3dDragConstraint eConstr,
- BOOL bFull)
+ sal_Bool bFull)
: E3dDragMethod(_rView, rMark, eConstr, bFull),
meWhatDragHdl(eDrgHdl)
{
diff --git a/svx/source/engine3d/e3dundo.cxx b/svx/source/engine3d/e3dundo.cxx
index 6c9a541b8c7c..97658f4dcd68 100644
--- a/svx/source/engine3d/e3dundo.cxx
+++ b/svx/source/engine3d/e3dundo.cxx
@@ -52,9 +52,9 @@ E3dUndoAction::~E3dUndoAction ()
|* Repeat gibt es nicht
|*
\************************************************************************/
-BOOL E3dUndoAction::CanRepeat(SfxRepeatTarget&) const
+sal_Bool E3dUndoAction::CanRepeat(SfxRepeatTarget&) const
{
- return FALSE;
+ return sal_False;
}
/************************************************************************/
@@ -116,7 +116,7 @@ E3dAttributesUndoAction::E3dAttributesUndoAction( SdrModel &rModel,
E3dObject* pInObject,
const SfxItemSet& rNewSet,
const SfxItemSet& rOldSet,
- BOOL bUseSubObj)
+ sal_Bool bUseSubObj)
: SdrUndoAction( rModel ),
pObject ( pInObject ),
pView ( p3dView ),
@@ -164,9 +164,9 @@ void E3dAttributesUndoAction::Redo()
|* Mehrfaches Undo nicht moeglich
|*
\************************************************************************/
-BOOL E3dAttributesUndoAction::CanRepeat(SfxRepeatTarget& /*rView*/) const
+sal_Bool E3dAttributesUndoAction::CanRepeat(SfxRepeatTarget& /*rView*/) const
{
- return FALSE;
+ return sal_False;
}
/*************************************************************************
diff --git a/svx/source/engine3d/float3d.cxx b/svx/source/engine3d/float3d.cxx
index e1e90d88c22f..ea33f2089ed0 100644
--- a/svx/source/engine3d/float3d.cxx
+++ b/svx/source/engine3d/float3d.cxx
@@ -236,7 +236,7 @@ __EXPORT Svx3DWin::Svx3DWin( SfxBindings* pInBindings,
aImgLightOn ( SVX_RES( RID_SVXIMAGE_LIGHT_ON ) ),
aImgLightOff ( SVX_RES( RID_SVXIMAGE_LIGHT_OFF ) ),
- bUpdate ( FALSE ),
+ bUpdate ( sal_False ),
eViewType ( VIEWTYPE_GEO ),
pModel ( NULL ),
@@ -253,7 +253,7 @@ __EXPORT Svx3DWin::Svx3DWin( SfxBindings* pInBindings,
// pPool ( NULL ),
mpImpl ( new Svx3DWinImpl() ),
mpRemember2DAttributes(NULL),
- bOnly3DChanged ( FALSE )
+ bOnly3DChanged ( sal_False )
{
SETHCIMAGE( aBtnGeo, BMP_GEO_H );
SETHCIMAGE( aBtnRepresentation, BMP_REPRESENTATION_H );
@@ -410,7 +410,7 @@ __EXPORT Svx3DWin::Svx3DWin( SfxBindings* pInBindings,
SfxDispatcher* pDispatcher = LocalGetDispatcher(pBindings);
if (pDispatcher != NULL)
{
- SfxBoolItem aItem( SID_3D_INIT, TRUE );
+ SfxBoolItem aItem( SID_3D_INIT, sal_True );
pDispatcher->Execute(
SID_3D_INIT, SFX_CALLMODE_ASYNCHRON | SFX_CALLMODE_RECORD, &aItem, 0L );
}
@@ -487,18 +487,18 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
while(nWhich)
{
- SfxItemState eState = rAttrs.GetItemState(nWhich, FALSE);
+ SfxItemState eState = rAttrs.GetItemState(nWhich, sal_False);
if(SFX_ITEM_DONTCARE == eState)
mpRemember2DAttributes->InvalidateItem(nWhich);
else if(SFX_ITEM_SET == eState)
- mpRemember2DAttributes->Put(rAttrs.Get(nWhich, FALSE));
+ mpRemember2DAttributes->Put(rAttrs.Get(nWhich, sal_False));
nWhich = aIter.NextWhich();
}
// construct field values
const SfxPoolItem* pItem;
- //BOOL bUpdate = FALSE;
+ //sal_Bool bUpdate = sal_False;
// evtl. PoolUnit ermitteln
if( !mpImpl->pPool )
@@ -511,16 +511,16 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
// Segmentanzahl aenderbar ? und andere Stati
- SfxItemState eState = rAttrs.GetItemState( SID_ATTR_3D_INTERN, FALSE, &pItem );
+ SfxItemState eState = rAttrs.GetItemState( SID_ATTR_3D_INTERN, sal_False, &pItem );
if( SFX_ITEM_SET == eState )
{
- UINT32 nState = ( ( const SfxUInt32Item* )pItem )->GetValue();
- //BOOL bLathe = (BOOL) ( nState & 1 );
- BOOL bExtrude = (BOOL) ( nState & 2 );
- BOOL bSphere = (BOOL) ( nState & 4 );
- BOOL bCube = (BOOL) ( nState & 8 );
+ sal_uInt32 nState = ( ( const SfxUInt32Item* )pItem )->GetValue();
+ //sal_Bool bLathe = (sal_Bool) ( nState & 1 );
+ sal_Bool bExtrude = (sal_Bool) ( nState & 2 );
+ sal_Bool bSphere = (sal_Bool) ( nState & 4 );
+ sal_Bool bCube = (sal_Bool) ( nState & 8 );
- BOOL bChart = (BOOL) ( nState & 32 ); // Chart
+ sal_Bool bChart = (sal_Bool) ( nState & 32 ); // Chart
if( !bChart )
{
@@ -558,41 +558,41 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
else
{
// Geometrie
- aFtHorizontal.Enable( FALSE );
- aNumHorizontal.Enable( FALSE );
+ aFtHorizontal.Enable( sal_False );
+ aNumHorizontal.Enable( sal_False );
aNumHorizontal.SetEmptyFieldValue();
- aFtVertical.Enable( FALSE );
- aNumVertical.Enable( FALSE );
+ aFtVertical.Enable( sal_False );
+ aNumVertical.Enable( sal_False );
aNumVertical.SetEmptyFieldValue();
- aFLSegments.Enable( FALSE );
- aFtEndAngle.Enable( FALSE );
- aMtrEndAngle.Enable( FALSE );
+ aFLSegments.Enable( sal_False );
+ aFtEndAngle.Enable( sal_False );
+ aMtrEndAngle.Enable( sal_False );
aMtrEndAngle.SetEmptyFieldValue();
- aFtDepth.Enable( FALSE );
- aMtrDepth.Enable( FALSE );
+ aFtDepth.Enable( sal_False );
+ aMtrDepth.Enable( sal_False );
aMtrDepth.SetEmptyFieldValue();
// Darstellung
- aBtnShadow3d.Enable( FALSE );
- aFtSlant.Enable( FALSE );
- aMtrSlant.Enable( FALSE );
- aFLShadow.Enable( FALSE );
+ aBtnShadow3d.Enable( sal_False );
+ aFtSlant.Enable( sal_False );
+ aMtrSlant.Enable( sal_False );
+ aFLShadow.Enable( sal_False );
- aFtDistance.Enable( FALSE );
- aMtrDistance.Enable( FALSE );
+ aFtDistance.Enable( sal_False );
+ aMtrDistance.Enable( sal_False );
aMtrDistance.SetEmptyFieldValue();
- aFtFocalLeng.Enable( FALSE );
- aMtrFocalLength.Enable( FALSE );
+ aFtFocalLeng.Enable( sal_False );
+ aMtrFocalLength.Enable( sal_False );
aMtrFocalLength.SetEmptyFieldValue();
- aFLCamera.Enable( FALSE );
+ aFLCamera.Enable( sal_False );
// Unterer Bereich
- aBtnConvertTo3D.Enable( FALSE );
- aBtnLatheObject.Enable( FALSE );
+ aBtnConvertTo3D.Enable( sal_False );
+ aBtnLatheObject.Enable( sal_False );
}
}
// Bitmapfuellung ? -> Status
- BOOL bBitmap(FALSE);
+ sal_Bool bBitmap(sal_False);
eState = rAttrs.GetItemState(XATTR_FILLSTYLE);
if(eState != SFX_ITEM_DONTCARE)
{
@@ -632,8 +632,8 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
{
aNumHorizontal.SetValue( nValue );
// evtl. am Ende...
- // aCtlLightPreview.GetSvx3DLightControl().SetHorizontalSegments( (UINT16)nValue );
- bUpdate = TRUE;
+ // aCtlLightPreview.GetSvx3DLightControl().SetHorizontalSegments( (sal_uInt16)nValue );
+ bUpdate = sal_True;
}
else if( aNumHorizontal.IsEmptyFieldValue() )
aNumHorizontal.SetValue( nValue );
@@ -643,7 +643,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( !aNumHorizontal.IsEmptyFieldValue() )
{
aNumHorizontal.SetEmptyFieldValue();
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
}
@@ -654,13 +654,13 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
eState = rAttrs.GetItemState(SDRATTR_3DOBJ_VERT_SEGS);
if( eState != SFX_ITEM_DONTCARE )
{
- UINT32 nValue = ((const Svx3DVerticalSegmentsItem&)rAttrs.Get(SDRATTR_3DOBJ_VERT_SEGS)).GetValue();
- if( nValue != (UINT32) aNumVertical.GetValue() )
+ sal_uInt32 nValue = ((const Svx3DVerticalSegmentsItem&)rAttrs.Get(SDRATTR_3DOBJ_VERT_SEGS)).GetValue();
+ if( nValue != (sal_uInt32) aNumVertical.GetValue() )
{
aNumVertical.SetValue( nValue );
// evtl. am Ende...
- //aCtlLightPreview.GetSvx3DLightControl().SetVerticalSegments( (UINT16)nValue );
- bUpdate = TRUE;
+ //aCtlLightPreview.GetSvx3DLightControl().SetVerticalSegments( (sal_uInt16)nValue );
+ bUpdate = sal_True;
}
else if( aNumVertical.IsEmptyFieldValue() )
aNumVertical.SetValue( nValue );
@@ -670,7 +670,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( !aNumVertical.IsEmptyFieldValue() )
{
aNumVertical.SetEmptyFieldValue();
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
}
@@ -681,15 +681,15 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
eState = rAttrs.GetItemState(SDRATTR_3DOBJ_DEPTH);
if( eState != SFX_ITEM_DONTCARE )
{
- UINT32 nValue = ((const Svx3DDepthItem&)rAttrs.Get(SDRATTR_3DOBJ_DEPTH)).GetValue();
- UINT32 nValue2 = GetCoreValue( aMtrDepth, ePoolUnit );
+ sal_uInt32 nValue = ((const Svx3DDepthItem&)rAttrs.Get(SDRATTR_3DOBJ_DEPTH)).GetValue();
+ sal_uInt32 nValue2 = GetCoreValue( aMtrDepth, ePoolUnit );
if( nValue != nValue2 )
{
if( eFUnit != aMtrDepth.GetUnit() )
SetFieldUnit( aMtrDepth, eFUnit );
SetMetricValue( aMtrDepth, nValue, ePoolUnit );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
else if( aMtrDepth.IsEmptyFieldValue() )
aMtrDepth.SetValue( aMtrDepth.GetValue() );
@@ -699,7 +699,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( !aMtrDepth.IsEmptyFieldValue() )
{
aMtrDepth.SetEmptyFieldValue();
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
}
@@ -708,11 +708,11 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
eState = rAttrs.GetItemState(SDRATTR_3DOBJ_DOUBLE_SIDED);
if( eState != SFX_ITEM_DONTCARE )
{
- BOOL bValue = ((const Svx3DDoubleSidedItem&)rAttrs.Get(SDRATTR_3DOBJ_DOUBLE_SIDED)).GetValue();
+ sal_Bool bValue = ((const Svx3DDoubleSidedItem&)rAttrs.Get(SDRATTR_3DOBJ_DOUBLE_SIDED)).GetValue();
if( bValue != aBtnDoubleSided.IsChecked() )
{
aBtnDoubleSided.Check( bValue );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
else if( aBtnDoubleSided.GetState() == STATE_DONTKNOW )
aBtnDoubleSided.Check( bValue );
@@ -722,7 +722,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aBtnDoubleSided.GetState() != STATE_DONTKNOW )
{
aBtnDoubleSided.SetState( STATE_DONTKNOW );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
@@ -732,11 +732,11 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
eState = rAttrs.GetItemState(SDRATTR_3DOBJ_PERCENT_DIAGONAL);
if( eState != SFX_ITEM_DONTCARE )
{
- UINT16 nValue = ((const Svx3DPercentDiagonalItem&)rAttrs.Get(SDRATTR_3DOBJ_PERCENT_DIAGONAL)).GetValue();
+ sal_uInt16 nValue = ((const Svx3DPercentDiagonalItem&)rAttrs.Get(SDRATTR_3DOBJ_PERCENT_DIAGONAL)).GetValue();
if( nValue != aMtrPercentDiagonal.GetValue() )
{
aMtrPercentDiagonal.SetValue( nValue );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
else if( aMtrPercentDiagonal.IsEmptyFieldValue() )
aMtrPercentDiagonal.SetValue( nValue );
@@ -746,7 +746,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( !aMtrPercentDiagonal.IsEmptyFieldValue() )
{
aMtrPercentDiagonal.SetEmptyFieldValue();
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
}
@@ -757,11 +757,11 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
eState = rAttrs.GetItemState(SDRATTR_3DOBJ_BACKSCALE);
if( eState != SFX_ITEM_DONTCARE )
{
- UINT16 nValue = ((const Svx3DBackscaleItem&)rAttrs.Get(SDRATTR_3DOBJ_BACKSCALE)).GetValue();
+ sal_uInt16 nValue = ((const Svx3DBackscaleItem&)rAttrs.Get(SDRATTR_3DOBJ_BACKSCALE)).GetValue();
if( nValue != aMtrBackscale.GetValue() )
{
aMtrBackscale.SetValue( nValue );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
else if( aMtrBackscale.IsEmptyFieldValue() )
aMtrBackscale.SetValue( nValue );
@@ -771,7 +771,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( !aMtrBackscale.IsEmptyFieldValue() )
{
aMtrBackscale.SetEmptyFieldValue();
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
}
@@ -782,11 +782,11 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
eState = rAttrs.GetItemState(SDRATTR_3DOBJ_END_ANGLE);
if( eState != SFX_ITEM_DONTCARE )
{
- INT32 nValue = ((const Svx3DEndAngleItem&)rAttrs.Get(SDRATTR_3DOBJ_END_ANGLE)).GetValue();
+ sal_Int32 nValue = ((const Svx3DEndAngleItem&)rAttrs.Get(SDRATTR_3DOBJ_END_ANGLE)).GetValue();
if( nValue != aMtrEndAngle.GetValue() )
{
aMtrEndAngle.SetValue( nValue );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
else
@@ -794,7 +794,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( !aMtrEndAngle.IsEmptyFieldValue() )
{
aMtrEndAngle.SetEmptyFieldValue();
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
}
@@ -803,7 +803,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
eState = rAttrs.GetItemState(SDRATTR_3DOBJ_NORMALS_KIND);
if( eState != SFX_ITEM_DONTCARE )
{
- UINT16 nValue = ((const Svx3DNormalsKindItem&)rAttrs.Get(SDRATTR_3DOBJ_NORMALS_KIND)).GetValue();
+ sal_uInt16 nValue = ((const Svx3DNormalsKindItem&)rAttrs.Get(SDRATTR_3DOBJ_NORMALS_KIND)).GetValue();
if( ( !aBtnNormalsObj.IsChecked() && nValue == 0 ) ||
( !aBtnNormalsFlat.IsChecked() && nValue == 1 ) ||
@@ -812,7 +812,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
aBtnNormalsObj.Check( nValue == 0 );
aBtnNormalsFlat.Check( nValue == 1 );
aBtnNormalsSphere.Check( nValue == 2 );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
else
@@ -821,10 +821,10 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
aBtnNormalsFlat.IsChecked() ||
aBtnNormalsSphere.IsChecked() )
{
- aBtnNormalsObj.Check( FALSE );
- aBtnNormalsFlat.Check( FALSE );
- aBtnNormalsSphere.Check( FALSE );
- bUpdate = TRUE;
+ aBtnNormalsObj.Check( sal_False );
+ aBtnNormalsFlat.Check( sal_False );
+ aBtnNormalsSphere.Check( sal_False );
+ bUpdate = sal_True;
}
}
@@ -832,11 +832,11 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
eState = rAttrs.GetItemState(SDRATTR_3DOBJ_NORMALS_INVERT);
if( eState != SFX_ITEM_DONTCARE )
{
- BOOL bValue = ((const Svx3DNormalsInvertItem&)rAttrs.Get(SDRATTR_3DOBJ_NORMALS_INVERT)).GetValue();
+ sal_Bool bValue = ((const Svx3DNormalsInvertItem&)rAttrs.Get(SDRATTR_3DOBJ_NORMALS_INVERT)).GetValue();
if( bValue != aBtnNormalsInvert.IsChecked() )
{
aBtnNormalsInvert.Check( bValue );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
else if( aBtnNormalsInvert.GetState() == STATE_DONTKNOW )
aBtnNormalsInvert.Check( bValue );
@@ -846,7 +846,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aBtnNormalsInvert.GetState() != STATE_DONTKNOW )
{
aBtnNormalsInvert.SetState( STATE_DONTKNOW );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
@@ -854,11 +854,11 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
eState = rAttrs.GetItemState(SDRATTR_3DSCENE_TWO_SIDED_LIGHTING);
if( eState != SFX_ITEM_DONTCARE )
{
- BOOL bValue = ((const Svx3DTwoSidedLightingItem&)rAttrs.Get(SDRATTR_3DSCENE_TWO_SIDED_LIGHTING)).GetValue();
+ sal_Bool bValue = ((const Svx3DTwoSidedLightingItem&)rAttrs.Get(SDRATTR_3DSCENE_TWO_SIDED_LIGHTING)).GetValue();
if( bValue != aBtnTwoSidedLighting.IsChecked() )
{
aBtnTwoSidedLighting.Check( bValue );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
else if( aBtnTwoSidedLighting.GetState() == STATE_DONTKNOW )
aBtnTwoSidedLighting.Check( bValue );
@@ -868,7 +868,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aBtnTwoSidedLighting.GetState() != STATE_DONTKNOW )
{
aBtnTwoSidedLighting.SetState( STATE_DONTKNOW );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
@@ -877,11 +877,11 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
eState = rAttrs.GetItemState(SDRATTR_3DSCENE_SHADE_MODE);
if( eState != SFX_ITEM_DONTCARE )
{
- UINT16 nValue = ((const Svx3DShadeModeItem&)rAttrs.Get(SDRATTR_3DSCENE_SHADE_MODE)).GetValue();
+ sal_uInt16 nValue = ((const Svx3DShadeModeItem&)rAttrs.Get(SDRATTR_3DSCENE_SHADE_MODE)).GetValue();
if( nValue != aLbShademode.GetSelectEntryPos() )
{
aLbShademode.SelectEntryPos( nValue );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
else
@@ -889,7 +889,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aLbShademode.GetSelectEntryCount() != 0 )
{
aLbShademode.SetNoSelection();
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
@@ -897,13 +897,13 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
eState = rAttrs.GetItemState(SDRATTR_3DOBJ_SHADOW_3D);
if( eState != SFX_ITEM_DONTCARE )
{
- BOOL bValue = ((const Svx3DShadow3DItem&)rAttrs.Get(SDRATTR_3DOBJ_SHADOW_3D)).GetValue();
+ sal_Bool bValue = ((const Svx3DShadow3DItem&)rAttrs.Get(SDRATTR_3DOBJ_SHADOW_3D)).GetValue();
if( bValue != aBtnShadow3d.IsChecked() )
{
aBtnShadow3d.Check( bValue );
aFtSlant.Enable( bValue );
aMtrSlant.Enable( bValue );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
else if( aBtnShadow3d.GetState() == STATE_DONTKNOW )
aBtnShadow3d.Check( bValue );
@@ -913,7 +913,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aBtnShadow3d.GetState() != STATE_DONTKNOW )
{
aBtnShadow3d.SetState( STATE_DONTKNOW );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
@@ -921,11 +921,11 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
eState = rAttrs.GetItemState(SDRATTR_3DSCENE_SHADOW_SLANT);
if( eState != SFX_ITEM_DONTCARE )
{
- UINT16 nValue = ((const Svx3DShadowSlantItem&)rAttrs.Get(SDRATTR_3DSCENE_SHADOW_SLANT)).GetValue();
+ sal_uInt16 nValue = ((const Svx3DShadowSlantItem&)rAttrs.Get(SDRATTR_3DSCENE_SHADOW_SLANT)).GetValue();
if( nValue != aMtrSlant.GetValue() )
{
aMtrSlant.SetValue( nValue );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
else
@@ -933,7 +933,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( !aMtrSlant.IsEmptyFieldValue() )
{
aMtrSlant.SetEmptyFieldValue();
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
@@ -941,15 +941,15 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
eState = rAttrs.GetItemState(SDRATTR_3DSCENE_DISTANCE);
if( eState != SFX_ITEM_DONTCARE )
{
- UINT32 nValue = ((const Svx3DDistanceItem&)rAttrs.Get(SDRATTR_3DSCENE_DISTANCE)).GetValue();
- UINT32 nValue2 = GetCoreValue( aMtrDistance, ePoolUnit );
+ sal_uInt32 nValue = ((const Svx3DDistanceItem&)rAttrs.Get(SDRATTR_3DSCENE_DISTANCE)).GetValue();
+ sal_uInt32 nValue2 = GetCoreValue( aMtrDistance, ePoolUnit );
if( nValue != nValue2 )
{
if( eFUnit != aMtrDistance.GetUnit() )
SetFieldUnit( aMtrDistance, eFUnit );
SetMetricValue( aMtrDistance, nValue, ePoolUnit );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
else
@@ -957,7 +957,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( !aMtrDepth.IsEmptyFieldValue() )
{
aMtrDepth.SetEmptyFieldValue();
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
@@ -965,15 +965,15 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
eState = rAttrs.GetItemState(SDRATTR_3DSCENE_FOCAL_LENGTH);
if( eState != SFX_ITEM_DONTCARE )
{
- UINT32 nValue = ((const Svx3DFocalLengthItem&)rAttrs.Get(SDRATTR_3DSCENE_FOCAL_LENGTH)).GetValue();
- UINT32 nValue2 = GetCoreValue( aMtrFocalLength, ePoolUnit );
+ sal_uInt32 nValue = ((const Svx3DFocalLengthItem&)rAttrs.Get(SDRATTR_3DSCENE_FOCAL_LENGTH)).GetValue();
+ sal_uInt32 nValue2 = GetCoreValue( aMtrFocalLength, ePoolUnit );
if( nValue != nValue2 )
{
if( eFUnit != aMtrFocalLength.GetUnit() )
SetFieldUnit( aMtrFocalLength, eFUnit );
SetMetricValue( aMtrFocalLength, nValue, ePoolUnit );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
else
@@ -981,7 +981,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( !aMtrFocalLength.IsEmptyFieldValue() )
{
aMtrFocalLength.SetEmptyFieldValue();
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
@@ -997,7 +997,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aColor != pLb->GetSelectEntryColor() )
{
LBSelectColor( pLb, aColor );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
else
@@ -1005,7 +1005,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aLbLight1.GetSelectEntryCount() != 0 )
{
aLbLight1.SetNoSelection();
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
// Licht 1 (an/aus)
@@ -1017,7 +1017,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
( !bOn && GetUILightState( aBtnLight1 )) )
{
SetUILightState( aBtnLight1, bOn );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
if( aBtnLight1.GetState() == STATE_DONTKNOW )
aBtnLight1.Check( aBtnLight1.IsChecked() );
@@ -1027,14 +1027,14 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aBtnLight1.GetState() != STATE_DONTKNOW )
{
aBtnLight1.SetState( STATE_DONTKNOW );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
// Licht 1 (Richtung)
eState = rAttrs.GetItemState(SDRATTR_3DSCENE_LIGHTDIRECTION_1);
if( eState != SFX_ITEM_DONTCARE )
{
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
// Licht 2 (Farbe)
@@ -1046,7 +1046,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aColor != pLb->GetSelectEntryColor() )
{
LBSelectColor( pLb, aColor );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
else
@@ -1054,7 +1054,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aLbLight2.GetSelectEntryCount() != 0 )
{
aLbLight2.SetNoSelection();
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
// Licht 2 (an/aus)
@@ -1066,7 +1066,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
( !bOn && GetUILightState( aBtnLight2 )) )
{
SetUILightState( aBtnLight2, bOn );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
if( aBtnLight2.GetState() == STATE_DONTKNOW )
aBtnLight2.Check( aBtnLight2.IsChecked() );
@@ -1076,14 +1076,14 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aBtnLight2.GetState() != STATE_DONTKNOW )
{
aBtnLight2.SetState( STATE_DONTKNOW );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
// Licht 2 (Richtung)
eState = rAttrs.GetItemState(SDRATTR_3DSCENE_LIGHTDIRECTION_2);
if( eState != SFX_ITEM_DONTCARE )
{
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
// Licht 3 (Farbe)
@@ -1095,7 +1095,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aColor != pLb->GetSelectEntryColor() )
{
LBSelectColor( pLb, aColor );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
else
@@ -1103,7 +1103,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aLbLight3.GetSelectEntryCount() != 0 )
{
aLbLight3.SetNoSelection();
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
// Licht 3 (an/aus)
@@ -1115,7 +1115,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
( !bOn && GetUILightState( aBtnLight3)) )
{
SetUILightState( aBtnLight3, bOn );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
if( aBtnLight3.GetState() == STATE_DONTKNOW )
aBtnLight3.Check( aBtnLight3.IsChecked() );
@@ -1125,14 +1125,14 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aBtnLight3.GetState() != STATE_DONTKNOW )
{
aBtnLight3.SetState( STATE_DONTKNOW );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
// Licht 3 (Richtung)
eState = rAttrs.GetItemState(SDRATTR_3DSCENE_LIGHTDIRECTION_3);
if( eState != SFX_ITEM_DONTCARE )
{
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
// Licht 4 (Farbe)
@@ -1144,7 +1144,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aColor != pLb->GetSelectEntryColor() )
{
LBSelectColor( pLb, aColor );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
else
@@ -1152,7 +1152,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aLbLight4.GetSelectEntryCount() != 0 )
{
aLbLight4.SetNoSelection();
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
// Licht 4 (an/aus)
@@ -1164,7 +1164,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
( !bOn && GetUILightState( aBtnLight4 )) )
{
SetUILightState( aBtnLight4, bOn );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
if( aBtnLight4.GetState() == STATE_DONTKNOW )
aBtnLight4.Check( aBtnLight4.IsChecked() );
@@ -1174,14 +1174,14 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aBtnLight4.GetState() != STATE_DONTKNOW )
{
aBtnLight4.SetState( STATE_DONTKNOW );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
// Licht 4 (Richtung)
eState = rAttrs.GetItemState(SDRATTR_3DSCENE_LIGHTDIRECTION_4);
if( eState != SFX_ITEM_DONTCARE )
{
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
// Licht 5 (Farbe)
@@ -1193,7 +1193,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aColor != pLb->GetSelectEntryColor() )
{
LBSelectColor( pLb, aColor );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
else
@@ -1201,7 +1201,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aLbLight5.GetSelectEntryCount() != 0 )
{
aLbLight5.SetNoSelection();
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
// Licht 5 (an/aus)
@@ -1213,7 +1213,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
( !bOn && GetUILightState( aBtnLight5 )) )
{
SetUILightState( aBtnLight5, bOn );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
if( aBtnLight5.GetState() == STATE_DONTKNOW )
aBtnLight5.Check( aBtnLight5.IsChecked() );
@@ -1223,14 +1223,14 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aBtnLight5.GetState() != STATE_DONTKNOW )
{
aBtnLight5.SetState( STATE_DONTKNOW );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
// Licht 5 (Richtung)
eState = rAttrs.GetItemState(SDRATTR_3DSCENE_LIGHTDIRECTION_5);
if( eState != SFX_ITEM_DONTCARE )
{
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
// Licht 6 (Farbe)
@@ -1242,7 +1242,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aColor != pLb->GetSelectEntryColor() )
{
LBSelectColor( pLb, aColor );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
else
@@ -1250,7 +1250,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aLbLight6.GetSelectEntryCount() != 0 )
{
aLbLight6.SetNoSelection();
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
// Licht 6 (an/aus)
@@ -1262,7 +1262,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
( !bOn && GetUILightState( aBtnLight6 )) )
{
SetUILightState( aBtnLight6, bOn );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
if( aBtnLight6.GetState() == STATE_DONTKNOW )
aBtnLight6.Check( aBtnLight6.IsChecked() );
@@ -1272,14 +1272,14 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aBtnLight6.GetState() != STATE_DONTKNOW )
{
aBtnLight6.SetState( STATE_DONTKNOW );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
// Licht 6 (Richtung)
eState = rAttrs.GetItemState(SDRATTR_3DSCENE_LIGHTDIRECTION_6);
if( eState != SFX_ITEM_DONTCARE )
{
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
// Licht 7 (Farbe)
@@ -1291,7 +1291,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aColor != pLb->GetSelectEntryColor() )
{
LBSelectColor( pLb, aColor );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
else
@@ -1299,7 +1299,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aLbLight7.GetSelectEntryCount() != 0 )
{
aLbLight7.SetNoSelection();
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
// Licht 7 (an/aus)
@@ -1311,7 +1311,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
( !bOn && GetUILightState( aBtnLight7 )) )
{
SetUILightState( aBtnLight7 , bOn );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
if( aBtnLight7.GetState() == STATE_DONTKNOW )
aBtnLight7.Check( aBtnLight7.IsChecked() );
@@ -1321,14 +1321,14 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aBtnLight7.GetState() != STATE_DONTKNOW )
{
aBtnLight7.SetState( STATE_DONTKNOW );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
// Licht 7 (Richtung)
eState = rAttrs.GetItemState(SDRATTR_3DSCENE_LIGHTDIRECTION_7);
if( eState != SFX_ITEM_DONTCARE )
{
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
// Licht 8 (Farbe)
@@ -1340,7 +1340,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aColor != pLb->GetSelectEntryColor() )
{
LBSelectColor( pLb, aColor );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
else
@@ -1348,7 +1348,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aLbLight8.GetSelectEntryCount() != 0 )
{
aLbLight8.SetNoSelection();
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
// Licht 8 (an/aus)
@@ -1360,7 +1360,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
( !bOn && GetUILightState( aBtnLight8 )) )
{
SetUILightState( aBtnLight8, bOn );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
if( aBtnLight8.GetState() == STATE_DONTKNOW )
aBtnLight8.Check( aBtnLight8.IsChecked() );
@@ -1370,14 +1370,14 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aBtnLight8.GetState() != STATE_DONTKNOW )
{
aBtnLight8.SetState( STATE_DONTKNOW );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
// Licht 8 (Richtung)
eState = rAttrs.GetItemState(SDRATTR_3DSCENE_LIGHTDIRECTION_8);
if( eState != SFX_ITEM_DONTCARE )
{
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
// Umgebungslicht
@@ -1389,7 +1389,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aColor != pLb->GetSelectEntryColor() )
{
LBSelectColor( pLb, aColor );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
else
@@ -1397,7 +1397,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aLbAmbientlight.GetSelectEntryCount() != 0 )
{
aLbAmbientlight.SetNoSelection();
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
@@ -1409,14 +1409,14 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
eState = rAttrs.GetItemState(SDRATTR_3DOBJ_TEXTURE_KIND);
if( eState != SFX_ITEM_DONTCARE )
{
- UINT16 nValue = ((const Svx3DTextureKindItem&)rAttrs.Get(SDRATTR_3DOBJ_TEXTURE_KIND)).GetValue();
+ sal_uInt16 nValue = ((const Svx3DTextureKindItem&)rAttrs.Get(SDRATTR_3DOBJ_TEXTURE_KIND)).GetValue();
if( ( !aBtnTexLuminance.IsChecked() && nValue == 1 ) ||
( !aBtnTexColor.IsChecked() && nValue == 3 ) )
{
aBtnTexLuminance.Check( nValue == 1 );
aBtnTexColor.Check( nValue == 3 );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
else
@@ -1424,9 +1424,9 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aBtnTexLuminance.IsChecked() ||
aBtnTexColor.IsChecked() )
{
- aBtnTexLuminance.Check( FALSE );
- aBtnTexColor.Check( FALSE );
- bUpdate = TRUE;
+ aBtnTexLuminance.Check( sal_False );
+ aBtnTexColor.Check( sal_False );
+ bUpdate = sal_True;
}
}
@@ -1434,7 +1434,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
eState = rAttrs.GetItemState(SDRATTR_3DOBJ_TEXTURE_MODE);
if( eState != SFX_ITEM_DONTCARE )
{
- UINT16 nValue = ((const Svx3DTextureModeItem&)rAttrs.Get(SDRATTR_3DOBJ_TEXTURE_MODE)).GetValue();
+ sal_uInt16 nValue = ((const Svx3DTextureModeItem&)rAttrs.Get(SDRATTR_3DOBJ_TEXTURE_MODE)).GetValue();
if( ( !aBtnTexReplace.IsChecked() && nValue == 1 ) ||
( !aBtnTexModulate.IsChecked() && nValue == 2 ) )
@@ -1442,7 +1442,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
aBtnTexReplace.Check( nValue == 1 );
aBtnTexModulate.Check( nValue == 2 );
//aBtnTexBlend.Check( nValue == 2 );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
else
@@ -1450,10 +1450,10 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aBtnTexReplace.IsChecked() ||
aBtnTexModulate.IsChecked() )
{
- aBtnTexReplace.Check( FALSE );
- aBtnTexModulate.Check( FALSE );
- //aBtnTexBlend.Check( FALSE );
- bUpdate = TRUE;
+ aBtnTexReplace.Check( sal_False );
+ aBtnTexModulate.Check( sal_False );
+ //aBtnTexBlend.Check( sal_False );
+ bUpdate = sal_True;
}
}
@@ -1461,7 +1461,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
eState = rAttrs.GetItemState(SDRATTR_3DOBJ_TEXTURE_PROJ_X);
if( eState != SFX_ITEM_DONTCARE )
{
- UINT16 nValue = ((const Svx3DTextureProjectionXItem&)rAttrs.Get(SDRATTR_3DOBJ_TEXTURE_PROJ_X)).GetValue();
+ sal_uInt16 nValue = ((const Svx3DTextureProjectionXItem&)rAttrs.Get(SDRATTR_3DOBJ_TEXTURE_PROJ_X)).GetValue();
if( ( !aBtnTexObjectX.IsChecked() && nValue == 0 ) ||
( !aBtnTexParallelX.IsChecked() && nValue == 1 ) ||
@@ -1470,7 +1470,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
aBtnTexObjectX.Check( nValue == 0 );
aBtnTexParallelX.Check( nValue == 1 );
aBtnTexCircleX.Check( nValue == 2 );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
else
@@ -1479,10 +1479,10 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
aBtnTexParallelX.IsChecked() ||
aBtnTexCircleX.IsChecked() )
{
- aBtnTexObjectX.Check( FALSE );
- aBtnTexParallelX.Check( FALSE );
- aBtnTexCircleX.Check( FALSE );
- bUpdate = TRUE;
+ aBtnTexObjectX.Check( sal_False );
+ aBtnTexParallelX.Check( sal_False );
+ aBtnTexCircleX.Check( sal_False );
+ bUpdate = sal_True;
}
}
@@ -1490,7 +1490,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
eState = rAttrs.GetItemState(SDRATTR_3DOBJ_TEXTURE_PROJ_Y);
if( eState != SFX_ITEM_DONTCARE )
{
- UINT16 nValue = ((const Svx3DTextureProjectionYItem&)rAttrs.Get(SDRATTR_3DOBJ_TEXTURE_PROJ_Y)).GetValue();
+ sal_uInt16 nValue = ((const Svx3DTextureProjectionYItem&)rAttrs.Get(SDRATTR_3DOBJ_TEXTURE_PROJ_Y)).GetValue();
if( ( !aBtnTexObjectY.IsChecked() && nValue == 0 ) ||
( !aBtnTexParallelY.IsChecked() && nValue == 1 ) ||
@@ -1499,7 +1499,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
aBtnTexObjectY.Check( nValue == 0 );
aBtnTexParallelY.Check( nValue == 1 );
aBtnTexCircleY.Check( nValue == 2 );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
else
@@ -1508,10 +1508,10 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
aBtnTexParallelY.IsChecked() ||
aBtnTexCircleY.IsChecked() )
{
- aBtnTexObjectY.Check( FALSE );
- aBtnTexParallelY.Check( FALSE );
- aBtnTexCircleY.Check( FALSE );
- bUpdate = TRUE;
+ aBtnTexObjectY.Check( sal_False );
+ aBtnTexParallelY.Check( sal_False );
+ aBtnTexCircleY.Check( sal_False );
+ bUpdate = sal_True;
}
}
@@ -1519,11 +1519,11 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
eState = rAttrs.GetItemState(SDRATTR_3DOBJ_TEXTURE_FILTER);
if( eState != SFX_ITEM_DONTCARE )
{
- BOOL bValue = ((const Svx3DTextureFilterItem&)rAttrs.Get(SDRATTR_3DOBJ_TEXTURE_FILTER)).GetValue();
+ sal_Bool bValue = ((const Svx3DTextureFilterItem&)rAttrs.Get(SDRATTR_3DOBJ_TEXTURE_FILTER)).GetValue();
if( bValue != aBtnTexFilter.IsChecked() )
{
aBtnTexFilter.Check( bValue );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
if( aBtnTexFilter.GetState() == STATE_DONTKNOW )
aBtnTexFilter.Check( bValue );
@@ -1533,7 +1533,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aBtnTexFilter.GetState() != STATE_DONTKNOW )
{
aBtnTexFilter.SetState( STATE_DONTKNOW );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
}
@@ -1551,7 +1551,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aColor != pLb->GetSelectEntryColor() )
{
LBSelectColor( pLb, aColor );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
else
@@ -1559,7 +1559,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aLbMatColor.GetSelectEntryCount() != 0 )
{
aLbMatColor.SetNoSelection();
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
@@ -1572,7 +1572,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aColor != pLb->GetSelectEntryColor() )
{
LBSelectColor( pLb, aColor );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
else
@@ -1580,7 +1580,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aLbMatEmission.GetSelectEntryCount() != 0 )
{
aLbMatEmission.SetNoSelection();
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
@@ -1593,7 +1593,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aColor != pLb->GetSelectEntryColor() )
{
LBSelectColor( pLb, aColor );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
else
@@ -1601,7 +1601,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aLbMatSpecular.GetSelectEntryCount() != 0 )
{
aLbMatSpecular.SetNoSelection();
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
@@ -1609,11 +1609,11 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
eState = rAttrs.GetItemState(SDRATTR_3DOBJ_MAT_SPECULAR_INTENSITY);
if( eState != SFX_ITEM_DONTCARE )
{
- UINT16 nValue = ((const Svx3DMaterialSpecularIntensityItem&)rAttrs.Get(SDRATTR_3DOBJ_MAT_SPECULAR_INTENSITY)).GetValue();
+ sal_uInt16 nValue = ((const Svx3DMaterialSpecularIntensityItem&)rAttrs.Get(SDRATTR_3DOBJ_MAT_SPECULAR_INTENSITY)).GetValue();
if( nValue != aMtrMatSpecularIntensity.GetValue() )
{
aMtrMatSpecularIntensity.SetValue( nValue );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
else
@@ -1621,7 +1621,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( !aMtrMatSpecularIntensity.IsEmptyFieldValue() )
{
aMtrMatSpecularIntensity.SetEmptyFieldValue();
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
@@ -1636,7 +1636,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
( aBtnPerspective.IsChecked() && ePT == PR_PARALLEL ) )
{
aBtnPerspective.Check( ePT == PR_PERSPECTIVE );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
if( aBtnPerspective.GetState() == STATE_DONTKNOW )
aBtnPerspective.Check( ePT == PR_PERSPECTIVE );
@@ -1646,7 +1646,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
if( aBtnPerspective.GetState() != STATE_DONTKNOW )
{
aBtnPerspective.SetState( STATE_DONTKNOW );
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
}
@@ -1656,7 +1656,7 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
// diese und entscheide
- bUpdate = TRUE;
+ bUpdate = sal_True;
}
if( bUpdate || bOnly3DChanged )
@@ -1666,12 +1666,12 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
// set LineStyle hard to XLINE_NONE when it's not set so that
// the default (XLINE_SOLID) is not used for 3d preview
- if(SFX_ITEM_SET != aSet.GetItemState(XATTR_LINESTYLE, FALSE))
+ if(SFX_ITEM_SET != aSet.GetItemState(XATTR_LINESTYLE, sal_False))
aSet.Put(XLineStyleItem(XLINE_NONE));
// set FillColor hard to WHITE when it's SFX_ITEM_DONTCARE so that
// the default (Blue7) is not used for 3d preview
- if(SFX_ITEM_DONTCARE == aSet.GetItemState(XATTR_FILLCOLOR, FALSE))
+ if(SFX_ITEM_DONTCARE == aSet.GetItemState(XATTR_FILLCOLOR, sal_False))
aSet.Put(XFillColorItem(String(), Color(COL_WHITE)));
aCtlPreview.Set3DAttributes(aSet);
@@ -1719,11 +1719,11 @@ void Svx3DWin::GetAttr( SfxItemSet& rAttrs )
while(nWhich)
{
- SfxItemState eState = mpRemember2DAttributes->GetItemState(nWhich, FALSE);
+ SfxItemState eState = mpRemember2DAttributes->GetItemState(nWhich, sal_False);
if(SFX_ITEM_DONTCARE == eState)
rAttrs.InvalidateItem(nWhich);
else if(SFX_ITEM_SET == eState)
- rAttrs.Put(mpRemember2DAttributes->Get(nWhich, FALSE));
+ rAttrs.Put(mpRemember2DAttributes->Get(nWhich, sal_False));
nWhich = aIter.NextWhich();
}
@@ -1733,7 +1733,7 @@ void Svx3DWin::GetAttr( SfxItemSet& rAttrs )
// Perspektive
if( aBtnPerspective.GetState() != STATE_DONTKNOW )
{
- UINT16 nValue;
+ sal_uInt16 nValue;
if( aBtnPerspective.IsChecked() )
nValue = PR_PERSPECTIVE;
else
@@ -1767,7 +1767,7 @@ void Svx3DWin::GetAttr( SfxItemSet& rAttrs )
// Anzahl Segmente (vertikal)
if( !aNumVertical.IsEmptyFieldValue() )
{
- UINT32 nValue = static_cast<UINT32>(aNumVertical.GetValue());
+ sal_uInt32 nValue = static_cast<sal_uInt32>(aNumVertical.GetValue());
rAttrs.Put(Svx3DVerticalSegmentsItem(nValue));
}
else
@@ -1776,7 +1776,7 @@ void Svx3DWin::GetAttr( SfxItemSet& rAttrs )
// Tiefe
if( !aMtrDepth.IsEmptyFieldValue() )
{
- UINT32 nValue = GetCoreValue( aMtrDepth, ePoolUnit );
+ sal_uInt32 nValue = GetCoreValue( aMtrDepth, ePoolUnit );
rAttrs.Put(Svx3DDepthItem(nValue));
}
else
@@ -1786,7 +1786,7 @@ void Svx3DWin::GetAttr( SfxItemSet& rAttrs )
TriState eState = aBtnDoubleSided.GetState();
if( eState != STATE_DONTKNOW )
{
- BOOL bValue = STATE_CHECK == eState;
+ sal_Bool bValue = STATE_CHECK == eState;
rAttrs.Put(Svx3DDoubleSidedItem(bValue));
}
else
@@ -1795,7 +1795,7 @@ void Svx3DWin::GetAttr( SfxItemSet& rAttrs )
// Kantenrundung
if( !aMtrPercentDiagonal.IsEmptyFieldValue() )
{
- UINT16 nValue = (UINT16) aMtrPercentDiagonal.GetValue();
+ sal_uInt16 nValue = (sal_uInt16) aMtrPercentDiagonal.GetValue();
rAttrs.Put(Svx3DPercentDiagonalItem(nValue));
}
else
@@ -1804,7 +1804,7 @@ void Svx3DWin::GetAttr( SfxItemSet& rAttrs )
// Tiefenskalierung
if( !aMtrBackscale.IsEmptyFieldValue() )
{
- UINT16 nValue = (UINT16)aMtrBackscale.GetValue();
+ sal_uInt16 nValue = (sal_uInt16)aMtrBackscale.GetValue();
rAttrs.Put(Svx3DBackscaleItem(nValue));
}
else
@@ -1813,14 +1813,14 @@ void Svx3DWin::GetAttr( SfxItemSet& rAttrs )
// Endwinkel
if( !aMtrEndAngle.IsEmptyFieldValue() )
{
- UINT16 nValue = (UINT16)aMtrEndAngle.GetValue();
+ sal_uInt16 nValue = (sal_uInt16)aMtrEndAngle.GetValue();
rAttrs.Put(Svx3DEndAngleItem(nValue));
}
else
rAttrs.InvalidateItem(SDRATTR_3DOBJ_END_ANGLE);
// Normalentyp
- UINT16 nValue = 99;
+ sal_uInt16 nValue = 99;
if( aBtnNormalsObj.IsChecked() )
nValue = 0;
else if( aBtnNormalsFlat.IsChecked() )
@@ -1837,7 +1837,7 @@ void Svx3DWin::GetAttr( SfxItemSet& rAttrs )
eState = aBtnNormalsInvert.GetState();
if( eState != STATE_DONTKNOW )
{
- BOOL bValue = STATE_CHECK == eState;
+ sal_Bool bValue = STATE_CHECK == eState;
rAttrs.Put(Svx3DNormalsInvertItem(bValue));
}
else
@@ -1847,7 +1847,7 @@ void Svx3DWin::GetAttr( SfxItemSet& rAttrs )
eState = aBtnTwoSidedLighting.GetState();
if( eState != STATE_DONTKNOW )
{
- BOOL bValue = STATE_CHECK == eState;
+ sal_Bool bValue = STATE_CHECK == eState;
rAttrs.Put(Svx3DTwoSidedLightingItem(bValue));
}
else
@@ -1867,7 +1867,7 @@ void Svx3DWin::GetAttr( SfxItemSet& rAttrs )
eState = aBtnShadow3d.GetState();
if( eState != STATE_DONTKNOW )
{
- BOOL bValue = STATE_CHECK == eState;
+ sal_Bool bValue = STATE_CHECK == eState;
rAttrs.Put(Svx3DShadow3DItem(bValue));
rAttrs.Put(SdrShadowItem(bValue));
}
@@ -1880,7 +1880,7 @@ void Svx3DWin::GetAttr( SfxItemSet& rAttrs )
// Neigung (Schatten)
if( !aMtrSlant.IsEmptyFieldValue() )
{
- UINT16 nValue2 = (UINT16) aMtrSlant.GetValue();
+ sal_uInt16 nValue2 = (sal_uInt16) aMtrSlant.GetValue();
rAttrs.Put(Svx3DShadowSlantItem(nValue2));
}
else
@@ -1889,7 +1889,7 @@ void Svx3DWin::GetAttr( SfxItemSet& rAttrs )
// Distanz
if( !aMtrDistance.IsEmptyFieldValue() )
{
- UINT32 nValue2 = GetCoreValue( aMtrDistance, ePoolUnit );
+ sal_uInt32 nValue2 = GetCoreValue( aMtrDistance, ePoolUnit );
rAttrs.Put(Svx3DDistanceItem(nValue2));
}
else
@@ -1898,7 +1898,7 @@ void Svx3DWin::GetAttr( SfxItemSet& rAttrs )
// Brennweite
if( !aMtrFocalLength.IsEmptyFieldValue() )
{
- UINT32 nValue2 = GetCoreValue( aMtrFocalLength, ePoolUnit );
+ sal_uInt32 nValue2 = GetCoreValue( aMtrFocalLength, ePoolUnit );
rAttrs.Put(Svx3DFocalLengthItem(nValue2));
}
else
@@ -1922,7 +1922,7 @@ void Svx3DWin::GetAttr( SfxItemSet& rAttrs )
eState = aBtnLight1.GetState();
if( eState != STATE_DONTKNOW )
{
- BOOL bValue = GetUILightState( aBtnLight1 );
+ sal_Bool bValue = GetUILightState( aBtnLight1 );
rAttrs.Put(Svx3DLightOnOff1Item(bValue));
// Licht 1 (Richtung)
@@ -1947,7 +1947,7 @@ void Svx3DWin::GetAttr( SfxItemSet& rAttrs )
eState = aBtnLight2.GetState();
if( eState != STATE_DONTKNOW )
{
- BOOL bValue = GetUILightState( aBtnLight2 );
+ sal_Bool bValue = GetUILightState( aBtnLight2 );
rAttrs.Put(Svx3DLightOnOff2Item(bValue));
// Licht 2 (Richtung)
@@ -1971,7 +1971,7 @@ void Svx3DWin::GetAttr( SfxItemSet& rAttrs )
eState = aBtnLight3.GetState();
if( eState != STATE_DONTKNOW )
{
- BOOL bValue = GetUILightState( aBtnLight3 );
+ sal_Bool bValue = GetUILightState( aBtnLight3 );
rAttrs.Put(Svx3DLightOnOff3Item(bValue));
// Licht 3 (Richtung)
@@ -1995,7 +1995,7 @@ void Svx3DWin::GetAttr( SfxItemSet& rAttrs )
eState = aBtnLight4.GetState();
if( eState != STATE_DONTKNOW )
{
- BOOL bValue = GetUILightState( aBtnLight4 );
+ sal_Bool bValue = GetUILightState( aBtnLight4 );
rAttrs.Put(Svx3DLightOnOff4Item(bValue));
// Licht 4 (Richtung)
@@ -2019,7 +2019,7 @@ void Svx3DWin::GetAttr( SfxItemSet& rAttrs )
eState = aBtnLight5.GetState();
if( eState != STATE_DONTKNOW )
{
- BOOL bValue = GetUILightState( aBtnLight5 );
+ sal_Bool bValue = GetUILightState( aBtnLight5 );
rAttrs.Put(Svx3DLightOnOff5Item(bValue));
// Licht 5 (Richtung)
@@ -2043,7 +2043,7 @@ void Svx3DWin::GetAttr( SfxItemSet& rAttrs )
eState = aBtnLight6.GetState();
if( eState != STATE_DONTKNOW )
{
- BOOL bValue = GetUILightState( aBtnLight6 );
+ sal_Bool bValue = GetUILightState( aBtnLight6 );
rAttrs.Put(Svx3DLightOnOff6Item(bValue));
// Licht 6 (Richtung)
@@ -2067,7 +2067,7 @@ void Svx3DWin::GetAttr( SfxItemSet& rAttrs )
eState = aBtnLight7.GetState();
if( eState != STATE_DONTKNOW )
{
- BOOL bValue = GetUILightState( aBtnLight7 );
+ sal_Bool bValue = GetUILightState( aBtnLight7 );
rAttrs.Put(Svx3DLightOnOff7Item(bValue));
// Licht 7 (Richtung)
@@ -2091,7 +2091,7 @@ void Svx3DWin::GetAttr( SfxItemSet& rAttrs )
eState = aBtnLight8.GetState();
if( eState != STATE_DONTKNOW )
{
- BOOL bValue = GetUILightState( aBtnLight8 );
+ sal_Bool bValue = GetUILightState( aBtnLight8 );
rAttrs.Put(Svx3DLightOnOff8Item(bValue));
// Licht 8 (Richtung)
@@ -2173,7 +2173,7 @@ void Svx3DWin::GetAttr( SfxItemSet& rAttrs )
eState = aBtnTexFilter.GetState();
if( eState != STATE_DONTKNOW )
{
- BOOL bValue = STATE_CHECK == eState;
+ sal_Bool bValue = STATE_CHECK == eState;
rAttrs.Put(Svx3DTextureFilterItem(bValue));
}
else
@@ -2213,7 +2213,7 @@ void Svx3DWin::GetAttr( SfxItemSet& rAttrs )
// Glanzpunkt Intensitaet
if( !aMtrMatSpecularIntensity.IsEmptyFieldValue() )
{
- UINT16 nValue2 = (UINT16) aMtrMatSpecularIntensity.GetValue();
+ sal_uInt16 nValue2 = (sal_uInt16) aMtrMatSpecularIntensity.GetValue();
rAttrs.Put(Svx3DMaterialSpecularIntensityItem(nValue2));
}
else
@@ -2324,7 +2324,7 @@ IMPL_LINK( Svx3DWin, ClickUpdateHdl, void *, EMPTYARG )
SfxDispatcher* pDispatcher = LocalGetDispatcher(pBindings);
if (pDispatcher != NULL)
{
- SfxBoolItem aItem( SID_3D_STATE, TRUE );
+ SfxBoolItem aItem( SID_3D_STATE, sal_True );
pDispatcher->Execute(
SID_3D_STATE, SFX_CALLMODE_ASYNCHRON | SFX_CALLMODE_RECORD, &aItem, 0L );
}
@@ -2343,7 +2343,7 @@ IMPL_LINK( Svx3DWin, ClickAssignHdl, void *, EMPTYARG )
SfxDispatcher* pDispatcher = LocalGetDispatcher(pBindings);
if (pDispatcher != NULL)
{
- SfxBoolItem aItem( SID_3D_ASSIGN, TRUE );
+ SfxBoolItem aItem( SID_3D_ASSIGN, sal_True );
pDispatcher->Execute(
SID_3D_ASSIGN, SFX_CALLMODE_ASYNCHRON | SFX_CALLMODE_RECORD, &aItem, 0L );
}
@@ -2359,7 +2359,7 @@ IMPL_LINK( Svx3DWin, ClickViewTypeHdl, void *, pBtn )
if( pBtn )
{
// Da das permanente Updaten der Preview zu teuer waere
- BOOL bUpdatePreview = aBtnLight.IsChecked();
+ sal_Bool bUpdatePreview = aBtnLight.IsChecked();
aBtnGeo.Check( &aBtnGeo == pBtn );
aBtnRepresentation.Check( &aBtnRepresentation == pBtn );
@@ -2623,11 +2623,11 @@ IMPL_LINK( Svx3DWin, ClickViewTypeHdl, void *, pBtn )
// -----------------------------------------------------------------------
IMPL_LINK( Svx3DWin, ClickHdl, PushButton *, pBtn )
{
- BOOL bUpdatePreview = FALSE;
+ sal_Bool bUpdatePreview = sal_False;
if( pBtn )
{
- USHORT nSId = 0;
+ sal_uInt16 nSId = 0;
if( pBtn == &aBtnConvertTo3D )
{
@@ -2645,7 +2645,7 @@ IMPL_LINK( Svx3DWin, ClickHdl, PushButton *, pBtn )
aBtnNormalsObj.Check( pBtn == &aBtnNormalsObj );
aBtnNormalsFlat.Check( pBtn == &aBtnNormalsFlat );
aBtnNormalsSphere.Check( pBtn == &aBtnNormalsSphere );
- bUpdatePreview = TRUE;
+ bUpdatePreview = sal_True;
}
else if( pBtn == &aBtnLight1 ||
pBtn == &aBtnLight2 ||
@@ -2670,51 +2670,51 @@ IMPL_LINK( Svx3DWin, ClickHdl, PushButton *, pBtn )
if( pBtn != &aBtnLight1 && aBtnLight1.IsChecked() )
{
- aBtnLight1.Check( FALSE );
+ aBtnLight1.Check( sal_False );
aLbLight1.Hide();
}
if( pBtn != &aBtnLight2 && aBtnLight2.IsChecked() )
{
- aBtnLight2.Check( FALSE );
+ aBtnLight2.Check( sal_False );
aLbLight2.Hide();
}
if( pBtn != &aBtnLight3 && aBtnLight3.IsChecked() )
{
- aBtnLight3.Check( FALSE );
+ aBtnLight3.Check( sal_False );
aLbLight3.Hide();
}
if( pBtn != &aBtnLight4 && aBtnLight4.IsChecked() )
{
- aBtnLight4.Check( FALSE );
+ aBtnLight4.Check( sal_False );
aLbLight4.Hide();
}
if( pBtn != &aBtnLight5 && aBtnLight5.IsChecked() )
{
- aBtnLight5.Check( FALSE );
+ aBtnLight5.Check( sal_False );
aLbLight5.Hide();
}
if( pBtn != &aBtnLight6 && aBtnLight6.IsChecked() )
{
- aBtnLight6.Check( FALSE );
+ aBtnLight6.Check( sal_False );
aLbLight6.Hide();
}
if( pBtn != &aBtnLight7 && aBtnLight7.IsChecked() )
{
- aBtnLight7.Check( FALSE );
+ aBtnLight7.Check( sal_False );
aLbLight7.Hide();
}
if( pBtn != &aBtnLight8 && aBtnLight8.IsChecked() )
{
- aBtnLight8.Check( FALSE );
+ aBtnLight8.Check( sal_False );
aLbLight8.Hide();
}
}
- BOOL bEnable = GetUILightState( *(ImageButton*)pBtn );
+ sal_Bool bEnable = GetUILightState( *(ImageButton*)pBtn );
aBtnLightColor.Enable( bEnable );
pLb->Enable( bEnable );
ClickLightHdl( pBtn );
- bUpdatePreview = TRUE;
+ bUpdatePreview = sal_True;
}
// Texturen
else if( pBtn == &aBtnTexLuminance ||
@@ -2722,7 +2722,7 @@ IMPL_LINK( Svx3DWin, ClickHdl, PushButton *, pBtn )
{
aBtnTexLuminance.Check( pBtn == &aBtnTexLuminance );
aBtnTexColor.Check( pBtn == &aBtnTexColor );
- bUpdatePreview = TRUE;
+ bUpdatePreview = sal_True;
}
else if( pBtn == &aBtnTexReplace ||
pBtn == &aBtnTexModulate )// ||
@@ -2731,7 +2731,7 @@ IMPL_LINK( Svx3DWin, ClickHdl, PushButton *, pBtn )
aBtnTexReplace.Check( pBtn == &aBtnTexReplace );
aBtnTexModulate.Check( pBtn == &aBtnTexModulate );
//aBtnTexBlend.Check( pBtn == &aBtnTexBlend );
- bUpdatePreview = TRUE;
+ bUpdatePreview = sal_True;
}
else if( pBtn == &aBtnTexParallelX ||
pBtn == &aBtnTexCircleX ||
@@ -2740,7 +2740,7 @@ IMPL_LINK( Svx3DWin, ClickHdl, PushButton *, pBtn )
aBtnTexParallelX.Check( pBtn == &aBtnTexParallelX );
aBtnTexCircleX.Check( pBtn == &aBtnTexCircleX );
aBtnTexObjectX.Check( pBtn == &aBtnTexObjectX );
- bUpdatePreview = TRUE;
+ bUpdatePreview = sal_True;
}
else if( pBtn == &aBtnTexParallelY ||
pBtn == &aBtnTexCircleY ||
@@ -2749,20 +2749,20 @@ IMPL_LINK( Svx3DWin, ClickHdl, PushButton *, pBtn )
aBtnTexParallelY.Check( pBtn == &aBtnTexParallelY );
aBtnTexCircleY.Check( pBtn == &aBtnTexCircleY );
aBtnTexObjectY.Check( pBtn == &aBtnTexObjectY );
- bUpdatePreview = TRUE;
+ bUpdatePreview = sal_True;
}
else if( pBtn == &aBtnShadow3d )
{
pBtn->Check( !pBtn->IsChecked() );
aFtSlant.Enable( pBtn->IsChecked() );
aMtrSlant.Enable( pBtn->IsChecked() );
- bUpdatePreview = TRUE;
+ bUpdatePreview = sal_True;
}
// Sonstige (keine Gruppen)
else if( pBtn != NULL )
{
pBtn->Check( !pBtn->IsChecked() );
- bUpdatePreview = TRUE;
+ bUpdatePreview = sal_True;
}
if( nSId > 0 )
@@ -2770,12 +2770,12 @@ IMPL_LINK( Svx3DWin, ClickHdl, PushButton *, pBtn )
SfxDispatcher* pDispatcher = LocalGetDispatcher(pBindings);
if (pDispatcher != NULL)
{
- SfxBoolItem aItem( nSId, TRUE );
+ SfxBoolItem aItem( nSId, sal_True );
pDispatcher->Execute(
nSId, SFX_CALLMODE_ASYNCHRON | SFX_CALLMODE_RECORD, &aItem, 0L );
}
}
- else if( bUpdatePreview == TRUE )
+ else if( bUpdatePreview == sal_True )
UpdatePreview();
}
return( 0L );
@@ -2817,7 +2817,7 @@ IMPL_LINK( Svx3DWin, SelectHdl, void *, p )
if( p )
{
Color aColor;
- BOOL bUpdatePreview = FALSE;
+ sal_Bool bUpdatePreview = sal_False;
// Material
if( p == &aLbMatFavorites )
@@ -2825,9 +2825,9 @@ IMPL_LINK( Svx3DWin, SelectHdl, void *, p )
Color aColObj( COL_WHITE );
Color aColEmis( COL_BLACK );
Color aColSpec( COL_WHITE );
- USHORT nSpecIntens = 20;
+ sal_uInt16 nSpecIntens = 20;
- USHORT nPos = aLbMatFavorites.GetSelectEntryPos();
+ sal_uInt16 nPos = aLbMatFavorites.GetSelectEntryPos();
switch( nPos )
{
case 1: // Metall
@@ -2880,19 +2880,19 @@ IMPL_LINK( Svx3DWin, SelectHdl, void *, p )
LBSelectColor( &aLbMatSpecular, aColSpec );
aMtrMatSpecularIntensity.SetValue( nSpecIntens );
- bUpdatePreview = TRUE;
+ bUpdatePreview = sal_True;
}
else if( p == &aLbMatColor ||
p == &aLbMatEmission ||
p == &aLbMatSpecular )
{
aLbMatFavorites.SelectEntryPos( 0 );
- bUpdatePreview = TRUE;
+ bUpdatePreview = sal_True;
}
// Beleuchtung
else if( p == &aLbAmbientlight )
{
- bUpdatePreview = TRUE;
+ bUpdatePreview = sal_True;
}
else if( p == &aLbLight1 ||
p == &aLbLight2 ||
@@ -2903,12 +2903,12 @@ IMPL_LINK( Svx3DWin, SelectHdl, void *, p )
p == &aLbLight7 ||
p == &aLbLight8 )
{
- bUpdatePreview = TRUE;
+ bUpdatePreview = sal_True;
}
else if( p == &aLbShademode )
- bUpdatePreview = TRUE;
+ bUpdatePreview = sal_True;
- if( bUpdatePreview == TRUE )
+ if( bUpdatePreview == sal_True )
UpdatePreview();
}
return( 0L );
@@ -2919,27 +2919,27 @@ IMPL_LINK( Svx3DWin, ModifyHdl, void*, pField )
{
if( pField )
{
- BOOL bUpdatePreview = FALSE;
+ sal_Bool bUpdatePreview = sal_False;
// Material
if( pField == &aMtrMatSpecularIntensity )
{
- bUpdatePreview = TRUE;
+ bUpdatePreview = sal_True;
}
else if( pField == &aNumHorizontal )
{
- bUpdatePreview = TRUE;
+ bUpdatePreview = sal_True;
}
else if( pField == &aNumVertical )
{
- bUpdatePreview = TRUE;
+ bUpdatePreview = sal_True;
}
else if( pField == &aMtrSlant )
{
- bUpdatePreview = TRUE;
+ bUpdatePreview = sal_True;
}
- if( bUpdatePreview == TRUE )
+ if( bUpdatePreview == sal_True )
UpdatePreview();
}
return( 0L );
@@ -2952,7 +2952,7 @@ IMPL_LINK( Svx3DWin, ClickLightHdl, PushButton*, pBtn )
if( pBtn )
{
- USHORT nLightSource = GetLightSource( pBtn );
+ sal_uInt16 nLightSource = GetLightSource( pBtn );
ColorLB* pLb = GetLbByButton( pBtn );
Color aColor( pLb->GetSelectEntryColor() );
SfxItemSet aLightItemSet(aCtlLightPreview.GetSvx3DLightControl().Get3DAttributes());
@@ -2982,7 +2982,7 @@ IMPL_LINK( Svx3DWin, ClickLightHdl, PushButton*, pBtn )
// -----------------------------------------------------------------------
IMPL_LINK( Svx3DWin, DoubleClickHdl, void*, EMPTYARG )
{
- //USHORT nItemId = aCtlFavorites.GetSelectItemId();
+ //sal_uInt16 nItemId = aCtlFavorites.GetSelectItemId();
//SfxItemSet* pSet = (SfxItemSet*) pFavorSetList->GetObject( nItemId - 1 );
//Update( *pSet );
@@ -3028,45 +3028,45 @@ IMPL_LINK( Svx3DWin, ChangeSelectionCallbackHdl, void*, EMPTYARG )
// Zustand: Keine Lampe selektiert
if( aBtnLight1.IsChecked() )
{
- aBtnLight1.Check( FALSE );
- aLbLight1.Enable( FALSE );
+ aBtnLight1.Check( sal_False );
+ aLbLight1.Enable( sal_False );
}
else if( aBtnLight2.IsChecked() )
{
- aBtnLight2.Check( FALSE );
- aLbLight2.Enable( FALSE );
+ aBtnLight2.Check( sal_False );
+ aLbLight2.Enable( sal_False );
}
else if( aBtnLight3.IsChecked() )
{
- aBtnLight3.Check( FALSE );
- aLbLight3.Enable( FALSE );
+ aBtnLight3.Check( sal_False );
+ aLbLight3.Enable( sal_False );
}
else if( aBtnLight4.IsChecked() )
{
- aBtnLight4.Check( FALSE );
- aLbLight4.Enable( FALSE );
+ aBtnLight4.Check( sal_False );
+ aLbLight4.Enable( sal_False );
}
else if( aBtnLight5.IsChecked() )
{
- aBtnLight5.Check( FALSE );
- aLbLight5.Enable( FALSE );
+ aBtnLight5.Check( sal_False );
+ aLbLight5.Enable( sal_False );
}
else if( aBtnLight6.IsChecked() )
{
- aBtnLight6.Check( FALSE );
- aLbLight6.Enable( FALSE );
+ aBtnLight6.Check( sal_False );
+ aLbLight6.Enable( sal_False );
}
else if( aBtnLight7.IsChecked() )
{
- aBtnLight7.Check( FALSE );
- aLbLight7.Enable( FALSE );
+ aBtnLight7.Check( sal_False );
+ aLbLight7.Enable( sal_False );
}
else if( aBtnLight8.IsChecked() )
{
- aBtnLight8.Check( FALSE );
- aLbLight8.Enable( FALSE );
+ aBtnLight8.Check( sal_False );
+ aLbLight8.Enable( sal_False );
}
- aBtnLightColor.Enable( FALSE );
+ aBtnLightColor.Enable( sal_False );
}
return( 0L );
@@ -3074,11 +3074,11 @@ IMPL_LINK( Svx3DWin, ChangeSelectionCallbackHdl, void*, EMPTYARG )
// -----------------------------------------------------------------------
// Methode um sicherzustellen, dass die LB auch mit einer Farbe gesetzt ist
-// Liefert TRUE zurueck, falls Farbe hinzugefuegt wurde
+// Liefert sal_True zurueck, falls Farbe hinzugefuegt wurde
// -----------------------------------------------------------------------
-BOOL Svx3DWin::LBSelectColor( ColorLB* pLb, const Color& rColor )
+sal_Bool Svx3DWin::LBSelectColor( ColorLB* pLb, const Color& rColor )
{
- BOOL bRet = FALSE;
+ sal_Bool bRet = sal_False;
pLb->SetNoSelection();
pLb->SelectEntry( rColor );
@@ -3086,17 +3086,17 @@ BOOL Svx3DWin::LBSelectColor( ColorLB* pLb, const Color& rColor )
{
String aStr(SVX_RES(RID_SVXFLOAT3D_FIX_R));
- aStr += String::CreateFromInt32((INT32)rColor.GetRed());
+ aStr += String::CreateFromInt32((sal_Int32)rColor.GetRed());
aStr += sal_Unicode(' ');
aStr += String(SVX_RES(RID_SVXFLOAT3D_FIX_G));
- aStr += String::CreateFromInt32((INT32)rColor.GetGreen());
+ aStr += String::CreateFromInt32((sal_Int32)rColor.GetGreen());
aStr += sal_Unicode(' ');
aStr += String(SVX_RES(RID_SVXFLOAT3D_FIX_B));
- aStr += String::CreateFromInt32((INT32)rColor.GetBlue());
+ aStr += String::CreateFromInt32((sal_Int32)rColor.GetBlue());
- USHORT nPos = pLb->InsertEntry( rColor, aStr );
+ sal_uInt16 nPos = pLb->InsertEntry( rColor, aStr );
pLb->SelectEntryPos( nPos );
- bRet = TRUE;
+ bRet = sal_True;
}
return( bRet );
}
@@ -3113,12 +3113,12 @@ void Svx3DWin::UpdatePreview()
SfxDispatcher* pDispatcher = LocalGetDispatcher(pBindings);
if (pDispatcher != NULL)
{
- SfxBoolItem aItem( SID_3D_STATE, TRUE );
+ SfxBoolItem aItem( SID_3D_STATE, sal_True );
pDispatcher->Execute(
SID_3D_STATE, SFX_CALLMODE_SYNCHRON | SFX_CALLMODE_RECORD, &aItem, 0L );
}
// Flag zuruecksetzen
- bOnly3DChanged = FALSE;
+ bOnly3DChanged = sal_False;
}
// ItemSet besorgen
@@ -3173,9 +3173,9 @@ void Svx3DWin::InitColorLB( const SdrModel* pDoc )
}
// -----------------------------------------------------------------------
-USHORT Svx3DWin::GetLightSource( const PushButton* pBtn )
+sal_uInt16 Svx3DWin::GetLightSource( const PushButton* pBtn )
{
- USHORT nLight = 8;
+ sal_uInt16 nLight = 8;
if( pBtn == NULL )
{
@@ -3270,7 +3270,7 @@ ColorLB* Svx3DWin::GetLbByButton( const PushButton* pBtn )
|*
\************************************************************************/
__EXPORT Svx3DChildWindow::Svx3DChildWindow( Window* _pParent,
- USHORT nId,
+ sal_uInt16 nId,
SfxBindings* pBindings,
SfxChildWinInfo* pInfo ) :
SfxChildWindow( _pParent, nId )
@@ -3288,7 +3288,7 @@ __EXPORT Svx3DChildWindow::Svx3DChildWindow( Window* _pParent,
|* ControllerItem fuer 3DStatus
|*
\************************************************************************/
-Svx3DCtrlItem::Svx3DCtrlItem( USHORT _nId,
+Svx3DCtrlItem::Svx3DCtrlItem( sal_uInt16 _nId,
Svx3DWin* pWin,
SfxBindings* _pBindings) :
SfxControllerItem( _nId, *_pBindings ),
@@ -3297,7 +3297,7 @@ Svx3DCtrlItem::Svx3DCtrlItem( USHORT _nId,
}
// -----------------------------------------------------------------------
-void __EXPORT Svx3DCtrlItem::StateChanged( USHORT /*nSId*/,
+void __EXPORT Svx3DCtrlItem::StateChanged( sal_uInt16 /*nSId*/,
SfxItemState /*eState*/, const SfxPoolItem* /*pItem*/ )
{
}
@@ -3308,22 +3308,22 @@ void __EXPORT Svx3DCtrlItem::StateChanged( USHORT /*nSId*/,
|*
\************************************************************************/
-SvxConvertTo3DItem::SvxConvertTo3DItem(UINT16 _nId, SfxBindings* _pBindings)
+SvxConvertTo3DItem::SvxConvertTo3DItem(sal_uInt16 _nId, SfxBindings* _pBindings)
: SfxControllerItem(_nId, *_pBindings),
- bState(FALSE)
+ bState(sal_False)
{
}
-void SvxConvertTo3DItem::StateChanged(UINT16 /*_nId*/, SfxItemState eState, const SfxPoolItem* /*pState*/)
+void SvxConvertTo3DItem::StateChanged(sal_uInt16 /*_nId*/, SfxItemState eState, const SfxPoolItem* /*pState*/)
{
- BOOL bNewState = (eState != SFX_ITEM_DISABLED);
+ sal_Bool bNewState = (eState != SFX_ITEM_DISABLED);
if(bNewState != bState)
{
bState = bNewState;
SfxDispatcher* pDispatcher = LocalGetDispatcher(&GetBindings());
if (pDispatcher != NULL)
{
- SfxBoolItem aItem( SID_3D_STATE, TRUE );
+ SfxBoolItem aItem( SID_3D_STATE, sal_True );
pDispatcher->Execute(
SID_3D_STATE, SFX_CALLMODE_ASYNCHRON|SFX_CALLMODE_RECORD, &aItem, 0L);
}
diff --git a/svx/source/engine3d/lathe3d.cxx b/svx/source/engine3d/lathe3d.cxx
index 4d88dce0fb4d..284394cc202c 100644
--- a/svx/source/engine3d/lathe3d.cxx
+++ b/svx/source/engine3d/lathe3d.cxx
@@ -130,7 +130,7 @@ void E3dLatheObj::SetDefaultAttributes(E3dDefaultAttributes& rDefault)
|*
\************************************************************************/
-UINT16 E3dLatheObj::GetObjIdentifier() const
+sal_uInt16 E3dLatheObj::GetObjIdentifier() const
{
return E3D_LATHEOBJ_ID;
}
@@ -158,7 +158,7 @@ void E3dLatheObj::operator=(const SdrObject& rObj)
|*
\************************************************************************/
-SdrObject *E3dLatheObj::DoConvertToPolyObj(BOOL /*bBezier*/) const
+SdrObject *E3dLatheObj::DoConvertToPolyObj(sal_Bool /*bBezier*/) const
{
return NULL;
}
@@ -248,9 +248,9 @@ void E3dLatheObj::TakeObjNamePlural(XubString& rName) const
|*
\************************************************************************/
-BOOL E3dLatheObj::IsBreakObjPossible()
+sal_Bool E3dLatheObj::IsBreakObjPossible()
{
- return TRUE;
+ return sal_True;
}
SdrAttrObj* E3dLatheObj::GetBreakObj()
diff --git a/svx/source/engine3d/obj3d.cxx b/svx/source/engine3d/obj3d.cxx
index c9ceb1ef78a6..64f43790513d 100644
--- a/svx/source/engine3d/obj3d.cxx
+++ b/svx/source/engine3d/obj3d.cxx
@@ -117,7 +117,7 @@ E3dObjList::~E3dObjList()
{
}
-void E3dObjList::NbcInsertObject(SdrObject* pObj, ULONG nPos, const SdrInsertReason* pReason)
+void E3dObjList::NbcInsertObject(SdrObject* pObj, sal_uIntPtr nPos, const SdrInsertReason* pReason)
{
// Owner holen
DBG_ASSERT(GetOwnerObj()->ISA(E3dObject), "AW: Einfuegen 3DObject in Parent != 3DObject");
@@ -136,7 +136,7 @@ void E3dObjList::NbcInsertObject(SdrObject* pObj, ULONG nPos, const SdrInsertRea
}
}
-void E3dObjList::InsertObject(SdrObject* pObj, ULONG nPos, const SdrInsertReason* pReason)
+void E3dObjList::InsertObject(SdrObject* pObj, sal_uIntPtr nPos, const SdrInsertReason* pReason)
{
OSL_ENSURE(GetOwnerObj()->ISA(E3dObject), "Insert 3DObject in non-3D Parent");
//E3DModifySceneSnapRectUpdater aUpdater(GetOwnerObj());
@@ -151,7 +151,7 @@ void E3dObjList::InsertObject(SdrObject* pObj, ULONG nPos, const SdrInsertReason
}
}
-SdrObject* E3dObjList::NbcRemoveObject(ULONG nObjNum)
+SdrObject* E3dObjList::NbcRemoveObject(sal_uIntPtr nObjNum)
{
DBG_ASSERT(GetOwnerObj()->ISA(E3dObject), "AW: Entfernen 3DObject aus Parent != 3DObject");
//E3DModifySceneSnapRectUpdater aUpdater(GetOwnerObj());
@@ -168,7 +168,7 @@ SdrObject* E3dObjList::NbcRemoveObject(ULONG nObjNum)
return pRetval;
}
-SdrObject* E3dObjList::RemoveObject(ULONG nObjNum)
+SdrObject* E3dObjList::RemoveObject(sal_uIntPtr nObjNum)
{
OSL_ENSURE(GetOwnerObj()->ISA(E3dObject), "3DObject is removed from non-3D Parent");
//E3DModifySceneSnapRectUpdater aUpdater(GetOwnerObj());
@@ -256,9 +256,9 @@ void E3dObject::SetSelected(bool bNew)
|*
\************************************************************************/
-BOOL E3dObject::IsBreakObjPossible()
+sal_Bool E3dObject::IsBreakObjPossible()
{
- return FALSE;
+ return sal_False;
}
SdrAttrObj* E3dObject::GetBreakObj()
@@ -294,7 +294,7 @@ void E3dObject::SetRectsDirty(sal_Bool bNotMyself)
|*
\************************************************************************/
-UINT32 E3dObject::GetObjInventor() const
+sal_uInt32 E3dObject::GetObjInventor() const
{
return E3dInventor;
}
@@ -305,7 +305,7 @@ UINT32 E3dObject::GetObjInventor() const
|*
\************************************************************************/
-UINT16 E3dObject::GetObjIdentifier() const
+sal_uInt16 E3dObject::GetObjIdentifier() const
{
return E3D_OBJECT_ID;
}
@@ -318,19 +318,19 @@ UINT16 E3dObject::GetObjIdentifier() const
void E3dObject::TakeObjInfo(SdrObjTransformInfoRec& rInfo) const
{
- rInfo.bResizeFreeAllowed = TRUE;
- rInfo.bResizePropAllowed = TRUE;
- rInfo.bRotateFreeAllowed = TRUE;
- rInfo.bRotate90Allowed = TRUE;
- rInfo.bMirrorFreeAllowed = FALSE;
- rInfo.bMirror45Allowed = FALSE;
- rInfo.bMirror90Allowed = FALSE;
- rInfo.bShearAllowed = FALSE;
- rInfo.bEdgeRadiusAllowed = FALSE;
- rInfo.bCanConvToPath = FALSE;
+ rInfo.bResizeFreeAllowed = sal_True;
+ rInfo.bResizePropAllowed = sal_True;
+ rInfo.bRotateFreeAllowed = sal_True;
+ rInfo.bRotate90Allowed = sal_True;
+ rInfo.bMirrorFreeAllowed = sal_False;
+ rInfo.bMirror45Allowed = sal_False;
+ rInfo.bMirror90Allowed = sal_False;
+ rInfo.bShearAllowed = sal_False;
+ rInfo.bEdgeRadiusAllowed = sal_False;
+ rInfo.bCanConvToPath = sal_False;
// no transparence for 3d objects
- rInfo.bTransparenceAllowed = FALSE;
+ rInfo.bTransparenceAllowed = sal_False;
// gradient depends on fillstyle
// BM *** check if SetItem is NULL ***
@@ -344,10 +344,10 @@ void E3dObject::TakeObjInfo(SdrObjTransformInfoRec& rInfo) const
// also bei Durchdringugnen auch gegeneinander geschnitten werden
// muessten. Auch die Texturkoorinaten waeren ein ungeloestes
// Problem.
- rInfo.bCanConvToPoly = FALSE;
- rInfo.bCanConvToContour = FALSE;
- rInfo.bCanConvToPathLineToArea = FALSE;
- rInfo.bCanConvToPolyLineToArea = FALSE;
+ rInfo.bCanConvToPoly = sal_False;
+ rInfo.bCanConvToContour = sal_False;
+ rInfo.bCanConvToPathLineToArea = sal_False;
+ rInfo.bCanConvToPolyLineToArea = sal_False;
}
/*************************************************************************
@@ -951,7 +951,7 @@ void E3dObject::NbcRotate(const Point& rRef, long nWink, double sn, double cs)
// Also derzeit sind die Klebepunkte relativ zum aOutRect der Szene definiert. Vor dem Drehen
// werden die Klebepunkte relativ zur Seite definiert. Sie nehmen an der Drehung der Szene noch nicht Teil
// dafuer gibt es den
- SetGlueReallyAbsolute(TRUE);
+ SetGlueReallyAbsolute(sal_True);
// SendRepaintBroadcast();
double fWinkelInRad = nWink/100 * F_PI180;
@@ -963,7 +963,7 @@ void E3dObject::NbcRotate(const Point& rRef, long nWink, double sn, double cs)
SetRectsDirty(); // Veranlasst eine Neuberechnung aller BoundRects
NbcRotateGluePoints(rRef,nWink,sn,cs); // Rotiert die Klebepunkte (die haben noch Koordinaten relativ
// zum Urpsung des Blattes
- SetGlueReallyAbsolute(FALSE); // ab jetzt sind sie wieder relativ zum BoundRect (also dem aOutRect definiert)
+ SetGlueReallyAbsolute(sal_False); // ab jetzt sind sie wieder relativ zum BoundRect (also dem aOutRect definiert)
}
/*************************************************************************/
@@ -1127,7 +1127,7 @@ void E3dCompoundObject::AddToHdlList(SdrHdlList& rHdlList) const
|*
\************************************************************************/
-UINT16 E3dCompoundObject::GetObjIdentifier() const
+sal_uInt16 E3dCompoundObject::GetObjIdentifier() const
{
return E3D_COMPOUNDOBJ_ID;
}
@@ -1207,7 +1207,7 @@ void E3dCompoundObject::operator=(const SdrObject& rObj)
|*
\************************************************************************/
-void E3dCompoundObject::SetCreateNormals(BOOL bNew)
+void E3dCompoundObject::SetCreateNormals(sal_Bool bNew)
{
if(bCreateNormals != bNew)
{
@@ -1216,7 +1216,7 @@ void E3dCompoundObject::SetCreateNormals(BOOL bNew)
}
}
-void E3dCompoundObject::SetCreateTexture(BOOL bNew)
+void E3dCompoundObject::SetCreateTexture(sal_Bool bNew)
{
if(bCreateTexture != bNew)
{
diff --git a/svx/source/engine3d/objfac3d.cxx b/svx/source/engine3d/objfac3d.cxx
index 493e5260cd7e..be9edd9bf60f 100644
--- a/svx/source/engine3d/objfac3d.cxx
+++ b/svx/source/engine3d/objfac3d.cxx
@@ -44,14 +44,14 @@
|*
\************************************************************************/
-static BOOL bInit = FALSE;
+static sal_Bool bInit = sal_False;
E3dObjFactory::E3dObjFactory()
{
if ( !bInit )
{
SdrObjFactory::InsertMakeObjectHdl(LINK(this, E3dObjFactory, MakeObject));
- bInit = TRUE;
+ bInit = sal_True;
}
}
diff --git a/svx/source/engine3d/polygn3d.cxx b/svx/source/engine3d/polygn3d.cxx
index 0ec26903d2c0..7086aace6659 100644
--- a/svx/source/engine3d/polygn3d.cxx
+++ b/svx/source/engine3d/polygn3d.cxx
@@ -54,7 +54,7 @@ sdr::contact::ViewContact* E3dPolygonObj::CreateObjectSpecificViewContact()
E3dPolygonObj::E3dPolygonObj(
E3dDefaultAttributes& rDefault,
const basegfx::B3DPolyPolygon& rPolyPoly3D,
- BOOL bLinOnly)
+ sal_Bool bLinOnly)
: E3dCompoundObject(rDefault),
bLineOnly(bLinOnly)
{
@@ -78,7 +78,7 @@ E3dPolygonObj::E3dPolygonObj(
E3dDefaultAttributes& rDefault,
const basegfx::B3DPolyPolygon& rPolyPoly3D,
const basegfx::B3DPolyPolygon& rPolyNormals3D,
- BOOL bLinOnly)
+ sal_Bool bLinOnly)
: E3dCompoundObject(rDefault),
bLineOnly(bLinOnly)
{
@@ -101,7 +101,7 @@ E3dPolygonObj::E3dPolygonObj(
const basegfx::B3DPolyPolygon& rPolyPoly3D,
const basegfx::B3DPolyPolygon& rPolyNormals3D,
const basegfx::B2DPolyPolygon& rPolyTexture2D,
- BOOL bLinOnly)
+ sal_Bool bLinOnly)
: E3dCompoundObject(rDefault),
bLineOnly(bLinOnly)
{
@@ -188,7 +188,7 @@ void E3dPolygonObj::CreateDefaultTexture()
// Entscheiden, welche Koordinaten als Source fuer das
// Mapping benutzt werden sollen
- UINT16 nSourceMode = 0;
+ sal_uInt16 nSourceMode = 0;
// Groessten Freiheitsgrad ermitteln
if(!(aNormal.getX() > aNormal.getY() && aNormal.getX() > aNormal.getZ()))
@@ -265,7 +265,7 @@ E3dPolygonObj::~E3dPolygonObj()
|*
\************************************************************************/
-UINT16 E3dPolygonObj::GetObjIdentifier() const
+sal_uInt16 E3dPolygonObj::GetObjIdentifier() const
{
return E3D_POLYGONOBJ_ID;
}
@@ -318,7 +318,7 @@ void E3dPolygonObj::SetPolyTexture2D(const basegfx::B2DPolyPolygon& rNewPolyText
|*
\************************************************************************/
-SdrObject *E3dPolygonObj::DoConvertToPolyObj(BOOL /*bBezier*/) const
+SdrObject *E3dPolygonObj::DoConvertToPolyObj(sal_Bool /*bBezier*/) const
{
return NULL;
}
@@ -349,7 +349,7 @@ void E3dPolygonObj::operator=(const SdrObject& rObj)
|*
\************************************************************************/
-void E3dPolygonObj::SetLineOnly(BOOL bNew)
+void E3dPolygonObj::SetLineOnly(sal_Bool bNew)
{
if(bNew != bLineOnly)
{
diff --git a/svx/source/engine3d/sphere3d.cxx b/svx/source/engine3d/sphere3d.cxx
index 316c353ad7bb..2c1d4ea0480f 100644
--- a/svx/source/engine3d/sphere3d.cxx
+++ b/svx/source/engine3d/sphere3d.cxx
@@ -117,7 +117,7 @@ void E3dSphereObj::SetDefaultAttributes(E3dDefaultAttributes& rDefault)
|*
\************************************************************************/
-UINT16 E3dSphereObj::GetObjIdentifier() const
+sal_uInt16 E3dSphereObj::GetObjIdentifier() const
{
return E3D_SPHEREOBJ_ID;
}
@@ -128,7 +128,7 @@ UINT16 E3dSphereObj::GetObjIdentifier() const
|*
\************************************************************************/
-SdrObject *E3dSphereObj::DoConvertToPolyObj(BOOL /*bBezier*/) const
+SdrObject *E3dSphereObj::DoConvertToPolyObj(sal_Bool /*bBezier*/) const
{
return NULL;
}
diff --git a/svx/source/engine3d/svx3ditems.cxx b/svx/source/engine3d/svx3ditems.cxx
index 68ce67febc25..ef108bb902ae 100644
--- a/svx/source/engine3d/svx3ditems.cxx
+++ b/svx/source/engine3d/svx3ditems.cxx
@@ -66,7 +66,7 @@ Svx3DEndAngleItem::Svx3DEndAngleItem(sal_uInt32 nVal)
: SfxUInt32Item(SDRATTR_3DOBJ_END_ANGLE, nVal)
{}
-Svx3DDoubleSidedItem::Svx3DDoubleSidedItem(BOOL bVal)
+Svx3DDoubleSidedItem::Svx3DDoubleSidedItem(sal_Bool bVal)
: SfxBoolItem(SDRATTR_3DOBJ_DOUBLE_SIDED, bVal)
{}
@@ -74,7 +74,7 @@ Svx3DDoubleSidedItem::Svx3DDoubleSidedItem(BOOL bVal)
// #i28528#
// Added extra Item (Bool) for chart2 to be able to show reduced line geometry
-Svx3DReducedLineGeometryItem::Svx3DReducedLineGeometryItem(BOOL bVal)
+Svx3DReducedLineGeometryItem::Svx3DReducedLineGeometryItem(sal_Bool bVal)
: SfxBoolItem(SDRATTR_3DOBJ_REDUCED_LINE_GEOMETRY, bVal)
{}
@@ -102,7 +102,7 @@ Svx3DNormalsKindItem::Svx3DNormalsKindItem(sal_uInt16 nVal)
: SfxUInt16Item(SDRATTR_3DOBJ_NORMALS_KIND, nVal)
{}
-Svx3DNormalsInvertItem::Svx3DNormalsInvertItem(BOOL bVal)
+Svx3DNormalsInvertItem::Svx3DNormalsInvertItem(sal_Bool bVal)
: SfxBoolItem(SDRATTR_3DOBJ_NORMALS_INVERT, bVal)
{}
@@ -114,7 +114,7 @@ Svx3DTextureProjectionYItem::Svx3DTextureProjectionYItem(sal_uInt16 nVal)
: SfxUInt16Item(SDRATTR_3DOBJ_TEXTURE_PROJ_Y, nVal)
{}
-Svx3DShadow3DItem::Svx3DShadow3DItem(BOOL bVal)
+Svx3DShadow3DItem::Svx3DShadow3DItem(sal_Bool bVal)
: SfxBoolItem(SDRATTR_3DOBJ_SHADOW_3D, bVal)
{}
@@ -142,7 +142,7 @@ Svx3DTextureModeItem::Svx3DTextureModeItem(sal_uInt16 nVal)
: SfxUInt16Item(SDRATTR_3DOBJ_TEXTURE_MODE, nVal)
{}
-Svx3DTextureFilterItem::Svx3DTextureFilterItem(BOOL bVal)
+Svx3DTextureFilterItem::Svx3DTextureFilterItem(sal_Bool bVal)
: SfxBoolItem(SDRATTR_3DOBJ_TEXTURE_FILTER, bVal)
{}
@@ -158,7 +158,7 @@ Svx3DFocalLengthItem::Svx3DFocalLengthItem(sal_uInt32 nVal)
: SfxUInt32Item(SDRATTR_3DSCENE_FOCAL_LENGTH, nVal)
{}
-Svx3DTwoSidedLightingItem::Svx3DTwoSidedLightingItem(BOOL bVal)
+Svx3DTwoSidedLightingItem::Svx3DTwoSidedLightingItem(sal_Bool bVal)
: SfxBoolItem(SDRATTR_3DSCENE_TWO_SIDED_LIGHTING, bVal)
{}
@@ -198,35 +198,35 @@ Svx3DAmbientcolorItem::Svx3DAmbientcolorItem(const Color& rCol)
: SvxColorItem(rCol, SDRATTR_3DSCENE_AMBIENTCOLOR)
{}
-Svx3DLightOnOff1Item::Svx3DLightOnOff1Item(BOOL bVal)
+Svx3DLightOnOff1Item::Svx3DLightOnOff1Item(sal_Bool bVal)
: SfxBoolItem(SDRATTR_3DSCENE_LIGHTON_1, bVal)
{}
-Svx3DLightOnOff2Item::Svx3DLightOnOff2Item(BOOL bVal)
+Svx3DLightOnOff2Item::Svx3DLightOnOff2Item(sal_Bool bVal)
: SfxBoolItem(SDRATTR_3DSCENE_LIGHTON_2, bVal)
{}
-Svx3DLightOnOff3Item::Svx3DLightOnOff3Item(BOOL bVal)
+Svx3DLightOnOff3Item::Svx3DLightOnOff3Item(sal_Bool bVal)
: SfxBoolItem(SDRATTR_3DSCENE_LIGHTON_3, bVal)
{}
-Svx3DLightOnOff4Item::Svx3DLightOnOff4Item(BOOL bVal)
+Svx3DLightOnOff4Item::Svx3DLightOnOff4Item(sal_Bool bVal)
: SfxBoolItem(SDRATTR_3DSCENE_LIGHTON_4, bVal)
{}
-Svx3DLightOnOff5Item::Svx3DLightOnOff5Item(BOOL bVal)
+Svx3DLightOnOff5Item::Svx3DLightOnOff5Item(sal_Bool bVal)
: SfxBoolItem(SDRATTR_3DSCENE_LIGHTON_5, bVal)
{}
-Svx3DLightOnOff6Item::Svx3DLightOnOff6Item(BOOL bVal)
+Svx3DLightOnOff6Item::Svx3DLightOnOff6Item(sal_Bool bVal)
: SfxBoolItem(SDRATTR_3DSCENE_LIGHTON_6, bVal)
{}
-Svx3DLightOnOff7Item::Svx3DLightOnOff7Item(BOOL bVal)
+Svx3DLightOnOff7Item::Svx3DLightOnOff7Item(sal_Bool bVal)
: SfxBoolItem(SDRATTR_3DSCENE_LIGHTON_7, bVal)
{}
-Svx3DLightOnOff8Item::Svx3DLightOnOff8Item(BOOL bVal)
+Svx3DLightOnOff8Item::Svx3DLightOnOff8Item(sal_Bool bVal)
: SfxBoolItem(SDRATTR_3DSCENE_LIGHTON_8, bVal)
{}
@@ -273,7 +273,7 @@ Svx3DShadeModeItem::Svx3DShadeModeItem(sal_uInt16 nVal)
//////////////////////////////////////////////////////////////////////////////
// #107245#
-Svx3DSmoothNormalsItem::Svx3DSmoothNormalsItem(BOOL bVal)
+Svx3DSmoothNormalsItem::Svx3DSmoothNormalsItem(sal_Bool bVal)
: SfxBoolItem(SDRATTR_3DOBJ_SMOOTH_NORMALS, bVal)
{}
@@ -298,7 +298,7 @@ SfxPoolItem* Svx3DSmoothNormalsItem::Create(SvStream& rIn, sal_uInt16 nItemVersi
//////////////////////////////////////////////////////////////////////////////
// #107245#
-Svx3DSmoothLidsItem::Svx3DSmoothLidsItem(BOOL bVal)
+Svx3DSmoothLidsItem::Svx3DSmoothLidsItem(sal_Bool bVal)
: SfxBoolItem(SDRATTR_3DOBJ_SMOOTH_LIDS, bVal)
{}
@@ -323,7 +323,7 @@ SfxPoolItem* Svx3DSmoothLidsItem::Create(SvStream& rIn, sal_uInt16 nItemVersion)
//////////////////////////////////////////////////////////////////////////////
// #107245#
-Svx3DCharacterModeItem::Svx3DCharacterModeItem(BOOL bVal)
+Svx3DCharacterModeItem::Svx3DCharacterModeItem(sal_Bool bVal)
: SfxBoolItem(SDRATTR_3DOBJ_CHARACTER_MODE, bVal)
{}
@@ -348,7 +348,7 @@ SfxPoolItem* Svx3DCharacterModeItem::Create(SvStream& rIn, sal_uInt16 nItemVersi
//////////////////////////////////////////////////////////////////////////////
// #107245#
-Svx3DCloseFrontItem::Svx3DCloseFrontItem(BOOL bVal)
+Svx3DCloseFrontItem::Svx3DCloseFrontItem(sal_Bool bVal)
: SfxBoolItem(SDRATTR_3DOBJ_CLOSE_FRONT, bVal)
{}
@@ -373,7 +373,7 @@ SfxPoolItem* Svx3DCloseFrontItem::Create(SvStream& rIn, sal_uInt16 nItemVersion)
//////////////////////////////////////////////////////////////////////////////
// #107245#
-Svx3DCloseBackItem::Svx3DCloseBackItem(BOOL bVal)
+Svx3DCloseBackItem::Svx3DCloseBackItem(sal_Bool bVal)
: SfxBoolItem(SDRATTR_3DOBJ_CLOSE_BACK, bVal)
{}
@@ -398,13 +398,13 @@ SfxPoolItem* Svx3DCloseBackItem::Create(SvStream& rIn, sal_uInt16 nItemVersion)
//////////////////////////////////////////////////////////////////////////////
// Svx3DNormalsKindItem: use drawing::NormalsKind
-sal_Bool Svx3DNormalsKindItem::QueryValue( uno::Any& rVal, BYTE /*nMemberId*/) const
+sal_Bool Svx3DNormalsKindItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
{
rVal <<= (drawing::NormalsKind)GetValue();
return sal_True;
}
-sal_Bool Svx3DNormalsKindItem::PutValue( const uno::Any& rVal, BYTE /*nMemberId*/)
+sal_Bool Svx3DNormalsKindItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
{
drawing::NormalsKind eVar;
if(!(rVal >>= eVar))
@@ -419,13 +419,13 @@ SfxPoolItem* Svx3DNormalsKindItem::Clone(SfxItemPool* /*pPool*/) const
}
// Svx3DTextureProjectionXItem: use drawing::TextureProjectionMode
-sal_Bool Svx3DTextureProjectionXItem::QueryValue( uno::Any& rVal, BYTE /*nMemberId*/) const
+sal_Bool Svx3DTextureProjectionXItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
{
rVal <<= (drawing::TextureProjectionMode)GetValue();
return sal_True;
}
-sal_Bool Svx3DTextureProjectionXItem::PutValue( const uno::Any& rVal, BYTE /*nMemberId*/)
+sal_Bool Svx3DTextureProjectionXItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
{
drawing::TextureProjectionMode eVar;
if(!(rVal >>= eVar))
@@ -440,13 +440,13 @@ SfxPoolItem* Svx3DTextureProjectionXItem::Clone(SfxItemPool* /*pPool*/) const
}
// Svx3DTextureProjectionYItem: use drawing::TextureProjectionMode
-sal_Bool Svx3DTextureProjectionYItem::QueryValue( uno::Any& rVal, BYTE /*nMemberId*/) const
+sal_Bool Svx3DTextureProjectionYItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
{
rVal <<= (drawing::TextureProjectionMode)GetValue();
return sal_True;
}
-sal_Bool Svx3DTextureProjectionYItem::PutValue( const uno::Any& rVal, BYTE /*nMemberId*/)
+sal_Bool Svx3DTextureProjectionYItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
{
drawing::TextureProjectionMode eVar;
if(!(rVal >>= eVar))
@@ -461,13 +461,13 @@ SfxPoolItem* Svx3DTextureProjectionYItem::Clone(SfxItemPool* /*pPool*/) const
}
// Svx3DTextureKindItem: use drawing::TextureKind
-sal_Bool Svx3DTextureKindItem::QueryValue( uno::Any& rVal, BYTE /*nMemberId*/) const
+sal_Bool Svx3DTextureKindItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
{
rVal <<= (drawing::TextureKind)GetValue();
return sal_True;
}
-sal_Bool Svx3DTextureKindItem::PutValue( const uno::Any& rVal, BYTE /*nMemberId*/)
+sal_Bool Svx3DTextureKindItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
{
drawing::TextureKind eVar;
if(!(rVal >>= eVar))
@@ -482,13 +482,13 @@ SfxPoolItem* Svx3DTextureKindItem::Clone(SfxItemPool* /*pPool*/) const
}
// Svx3DTextureModeItem: use drawing:TextureMode
-sal_Bool Svx3DTextureModeItem::QueryValue( uno::Any& rVal, BYTE /*nMemberId*/) const
+sal_Bool Svx3DTextureModeItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
{
rVal <<= (drawing::TextureMode)GetValue();
return sal_True;
}
-sal_Bool Svx3DTextureModeItem::PutValue( const uno::Any& rVal, BYTE /*nMemberId*/)
+sal_Bool Svx3DTextureModeItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
{
drawing::TextureMode eVar;
if(!(rVal >>= eVar))
@@ -503,13 +503,13 @@ SfxPoolItem* Svx3DTextureModeItem::Clone(SfxItemPool* /*pPool*/) const
}
// Svx3DPerspectiveItem: use drawing::ProjectionMode
-sal_Bool Svx3DPerspectiveItem::QueryValue( uno::Any& rVal, BYTE /*nMemberId*/) const
+sal_Bool Svx3DPerspectiveItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
{
rVal <<= (drawing::ProjectionMode)GetValue();
return sal_True;
}
-sal_Bool Svx3DPerspectiveItem::PutValue( const uno::Any& rVal, BYTE /*nMemberId*/)
+sal_Bool Svx3DPerspectiveItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
{
drawing::ProjectionMode eVar;
if(!(rVal >>= eVar))
@@ -524,13 +524,13 @@ SfxPoolItem* Svx3DPerspectiveItem::Clone(SfxItemPool* /*pPool*/) const
}
// Svx3DShadeModeItem: use drawing::ShadeMode
-sal_Bool Svx3DShadeModeItem::QueryValue( uno::Any& rVal, BYTE /*nMemberId*/) const
+sal_Bool Svx3DShadeModeItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
{
rVal <<= (drawing::ShadeMode)GetValue();
return sal_True;
}
-sal_Bool Svx3DShadeModeItem::PutValue( const uno::Any& rVal, BYTE /*nMemberId*/)
+sal_Bool Svx3DShadeModeItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
{
drawing::ShadeMode eVar;
if(!(rVal >>= eVar))
diff --git a/svx/source/engine3d/view3d.cxx b/svx/source/engine3d/view3d.cxx
index c69abb362754..9d54fe3882e3 100644
--- a/svx/source/engine3d/view3d.cxx
+++ b/svx/source/engine3d/view3d.cxx
@@ -254,7 +254,7 @@ E3dView::E3dView(SdrModel* pModel, OutputDevice* pOut) :
void E3dView::DrawMarkedObj(OutputDevice& rOut) const
{
// Existieren 3D-Objekte, deren Szenen nicht selektiert sind?
- BOOL bSpecialHandling = FALSE;
+ sal_Bool bSpecialHandling = sal_False;
E3dScene *pScene = NULL;
long nCnt = GetMarkedObjectCount();
@@ -266,14 +266,14 @@ void E3dView::DrawMarkedObj(OutputDevice& rOut) const
// zugehoerige Szene
pScene = ((E3dCompoundObject*)pObj)->GetScene();
if(pScene && !IsObjMarked(pScene))
- bSpecialHandling = TRUE;
+ bSpecialHandling = sal_True;
}
// Alle SelectionFlags zuruecksetzen
if(pObj && pObj->ISA(E3dObject))
{
pScene = ((E3dObject*)pObj)->GetScene();
if(pScene)
- pScene->SetSelected(FALSE);
+ pScene->SetSelected(sal_False);
}
}
@@ -290,7 +290,7 @@ void E3dView::DrawMarkedObj(OutputDevice& rOut) const
// zugehoerige Szene
pScene = ((E3dCompoundObject*)pObj)->GetScene();
if(pScene)
- pScene->SetSelected(FALSE);
+ pScene->SetSelected(sal_False);
}
}
@@ -304,7 +304,7 @@ void E3dView::DrawMarkedObj(OutputDevice& rOut) const
{
// Objekt markieren
E3dObject* p3DObj = (E3dObject*)pObj;
- p3DObj->SetSelected(TRUE);
+ p3DObj->SetSelected(sal_True);
pScene = p3DObj->GetScene();
pM = GetSdrMarkByIndex(nObjs);
}
@@ -315,9 +315,9 @@ void E3dView::DrawMarkedObj(OutputDevice& rOut) const
// code from parent
SortMarkedObjects();
- pScene->SetDrawOnlySelected(TRUE);
+ pScene->SetDrawOnlySelected(sal_True);
pScene->SingleObjectPainter(rOut); // #110094#-17
- pScene->SetDrawOnlySelected(FALSE);
+ pScene->SetDrawOnlySelected(sal_False);
}
// SelectionFlag zuruecksetzen
@@ -329,7 +329,7 @@ void E3dView::DrawMarkedObj(OutputDevice& rOut) const
// zugehoerige Szene
pScene = ((E3dCompoundObject*)pObj)->GetScene();
if(pScene)
- pScene->SetSelected(FALSE);
+ pScene->SetSelected(sal_False);
}
}
}
@@ -424,7 +424,7 @@ SdrModel* E3dView::GetMarkedObjModel() const
if(pScene && !IsObjMarked(pScene) && GetSdrPageView())
{
- ((E3dView*)this)->MarkObj(pScene, GetSdrPageView(), FALSE, TRUE);
+ ((E3dView*)this)->MarkObj(pScene, GetSdrPageView(), sal_False, sal_True);
}
}
}
@@ -473,9 +473,9 @@ SdrModel* E3dView::GetMarkedObjModel() const
|*
\************************************************************************/
-BOOL E3dView::Paste(const SdrModel& rMod, const Point& rPos, SdrObjList* pLst, UINT32 nOptions)
+sal_Bool E3dView::Paste(const SdrModel& rMod, const Point& rPos, SdrObjList* pLst, sal_uInt32 nOptions)
{
- BOOL bRetval = FALSE;
+ sal_Bool bRetval = sal_False;
// Liste holen
Point aPos(rPos);
@@ -483,7 +483,7 @@ BOOL E3dView::Paste(const SdrModel& rMod, const Point& rPos, SdrObjList* pLst, U
ImpGetPasteObjList(aPos, pDstList);
if(!pDstList)
- return FALSE;
+ return sal_False;
// Owner der Liste holen
SdrObject* pOwner = pDstList->GetOwnerObj();
@@ -526,9 +526,9 @@ BOOL E3dView::Paste(const SdrModel& rMod, const Point& rPos, SdrObjList* pLst, U
}
// #83403# Service routine used from local Clone() and from SdrCreateView::EndCreateObj(...)
-BOOL E3dView::ImpCloneAll3DObjectsToDestScene(E3dScene* pSrcScene, E3dScene* pDstScene, Point /*aOffset*/)
+sal_Bool E3dView::ImpCloneAll3DObjectsToDestScene(E3dScene* pSrcScene, E3dScene* pDstScene, Point /*aOffset*/)
{
- BOOL bRetval(FALSE);
+ sal_Bool bRetval(sal_False);
if(pSrcScene && pDstScene)
{
@@ -623,7 +623,7 @@ BOOL E3dView::ImpCloneAll3DObjectsToDestScene(E3dScene* pSrcScene, E3dScene* pDs
pNewCompoundObj->NbcSetLayer(pCompoundObj->GetLayer());
pNewCompoundObj->NbcSetStyleSheet(pCompoundObj->GetStyleSheet(), sal_True);
pDstScene->Insert3DObj(pNewCompoundObj);
- bRetval = TRUE;
+ bRetval = sal_True;
// Undo anlegen
if( GetModel()->IsUndoEnabled() )
@@ -642,11 +642,11 @@ BOOL E3dView::ImpCloneAll3DObjectsToDestScene(E3dScene* pSrcScene, E3dScene* pDs
|*
\************************************************************************/
-BOOL E3dView::IsConvertTo3DObjPossible() const
+sal_Bool E3dView::IsConvertTo3DObjPossible() const
{
- BOOL bAny3D(FALSE);
- BOOL bGroupSelected(FALSE);
- BOOL bRetval(TRUE);
+ sal_Bool bAny3D(sal_False);
+ sal_Bool bGroupSelected(sal_False);
+ sal_Bool bRetval(sal_True);
for(sal_uInt32 a=0;!bAny3D && a<GetMarkedObjectCount();a++)
{
@@ -659,20 +659,20 @@ BOOL E3dView::IsConvertTo3DObjPossible() const
bRetval = !bAny3D
&& (
- IsConvertToPolyObjPossible(FALSE)
- || IsConvertToPathObjPossible(FALSE)
+ IsConvertToPolyObjPossible(sal_False)
+ || IsConvertToPathObjPossible(sal_False)
|| IsImportMtfPossible());
return bRetval;
}
-void E3dView::ImpIsConvertTo3DPossible(SdrObject* pObj, BOOL& rAny3D,
- BOOL& rGroupSelected) const
+void E3dView::ImpIsConvertTo3DPossible(SdrObject* pObj, sal_Bool& rAny3D,
+ sal_Bool& rGroupSelected) const
{
if(pObj)
{
if(pObj->ISA(E3dObject))
{
- rAny3D = TRUE;
+ rAny3D = sal_True;
}
else
{
@@ -684,7 +684,7 @@ void E3dView::ImpIsConvertTo3DPossible(SdrObject* pObj, BOOL& rAny3D,
SdrObject* pNewObj = aIter.Next();
ImpIsConvertTo3DPossible(pNewObj, rAny3D, rGroupSelected);
}
- rGroupSelected = TRUE;
+ rGroupSelected = sal_True;
}
}
}
@@ -744,7 +744,7 @@ void E3dView::ImpChangeSomeAttributesFor3DConversion2(SdrObject* pObj)
}
}
-void E3dView::ImpCreateSingle3DObjectFlat(E3dScene* pScene, SdrObject* pObj, BOOL bExtrude, double fDepth, basegfx::B2DHomMatrix& rLatheMat)
+void E3dView::ImpCreateSingle3DObjectFlat(E3dScene* pScene, SdrObject* pObj, sal_Bool bExtrude, double fDepth, basegfx::B2DHomMatrix& rLatheMat)
{
// Einzelnes PathObject, dieses umwanden
SdrPathObj* pPath = PTR_CAST(SdrPathObj, pObj);
@@ -753,9 +753,9 @@ void E3dView::ImpCreateSingle3DObjectFlat(E3dScene* pScene, SdrObject* pObj, BOO
{
E3dDefaultAttributes aDefault = Get3DDefaultAttributes();
if(bExtrude)
- aDefault.SetDefaultExtrudeCharacterMode(TRUE);
+ aDefault.SetDefaultExtrudeCharacterMode(sal_True);
else
- aDefault.SetDefaultLatheCharacterMode(TRUE);
+ aDefault.SetDefaultLatheCharacterMode(sal_True);
// ItemSet des Ursprungsobjektes holen
SfxItemSet aSet(pObj->GetMergedItemSet());
@@ -771,10 +771,10 @@ void E3dView::ImpCreateSingle3DObjectFlat(E3dScene* pScene, SdrObject* pObj, BOO
// Das SdrPathObj ist nicht gefuellt, lasse die
// vordere und hintere Flaeche weg. Ausserdem ist
// eine beidseitige Darstellung notwendig.
- aDefault.SetDefaultExtrudeCloseFront(FALSE);
- aDefault.SetDefaultExtrudeCloseBack(FALSE);
+ aDefault.SetDefaultExtrudeCloseFront(sal_False);
+ aDefault.SetDefaultExtrudeCloseBack(sal_False);
- aSet.Put(Svx3DDoubleSidedItem(TRUE));
+ aSet.Put(Svx3DDoubleSidedItem(sal_True));
// Fuellattribut setzen
aSet.Put(XFillStyleItem(XFILL_SOLID));
@@ -813,7 +813,7 @@ void E3dView::ImpCreateSingle3DObjectFlat(E3dScene* pScene, SdrObject* pObj, BOO
}
}
-void E3dView::ImpCreate3DObject(E3dScene* pScene, SdrObject* pObj, BOOL bExtrude, double fDepth, basegfx::B2DHomMatrix& rLatheMat)
+void E3dView::ImpCreate3DObject(E3dScene* pScene, SdrObject* pObj, sal_Bool bExtrude, double fDepth, basegfx::B2DHomMatrix& rLatheMat)
{
if(pObj)
{
@@ -831,7 +831,7 @@ void E3dView::ImpCreate3DObject(E3dScene* pScene, SdrObject* pObj, BOOL bExtrude
ImpChangeSomeAttributesFor3DConversion(pObj);
// convert completely to path objects
- SdrObject* pNewObj1 = pObj->ConvertToPolyObj(FALSE, FALSE);
+ SdrObject* pNewObj1 = pObj->ConvertToPolyObj(sal_False, sal_False);
if(pNewObj1)
{
@@ -849,7 +849,7 @@ void E3dView::ImpCreate3DObject(E3dScene* pScene, SdrObject* pObj, BOOL bExtrude
ImpChangeSomeAttributesFor3DConversion2(pNewObj1);
// convert completely to path objects
- SdrObject* pNewObj2 = pObj->ConvertToContourObj(pNewObj1, TRUE);
+ SdrObject* pNewObj2 = pObj->ConvertToContourObj(pNewObj1, sal_True);
if(pNewObj2)
{
@@ -884,7 +884,7 @@ void E3dView::ImpCreate3DObject(E3dScene* pScene, SdrObject* pObj, BOOL bExtrude
|*
\************************************************************************/
-void E3dView::ConvertMarkedObjTo3D(BOOL bExtrude, basegfx::B2DPoint aPnt1, basegfx::B2DPoint aPnt2)
+void E3dView::ConvertMarkedObjTo3D(sal_Bool bExtrude, basegfx::B2DPoint aPnt1, basegfx::B2DPoint aPnt2)
{
if(AreObjectsMarked())
{
@@ -951,7 +951,7 @@ void E3dView::ConvertMarkedObjTo3D(BOOL bExtrude, basegfx::B2DPoint aPnt1, baseg
// SnapRect Ausdehnung mittels Spiegelung an der Rotationsachse
// erweitern
- for(UINT32 a=0;a<GetMarkedObjectCount();a++)
+ for(sal_uInt32 a=0;a<GetMarkedObjectCount();a++)
{
SdrMark* pMark = GetSdrMarkByIndex(a);
SdrObject* pObj = pMark->GetMarkedSdrObj();
@@ -991,7 +991,7 @@ void E3dView::ConvertMarkedObjTo3D(BOOL bExtrude, basegfx::B2DPoint aPnt1, baseg
// Ueber die Selektion gehen und in 3D wandeln, komplett mit
// Umwandeln in SdrPathObject, auch Schriften
- for(UINT32 a=0;a<GetMarkedObjectCount();a++)
+ for(sal_uInt32 a=0;a<GetMarkedObjectCount();a++)
{
SdrMark* pMark = GetSdrMarkByIndex(a);
SdrObject* pObj = pMark->GetMarkedSdrObj();
@@ -1021,8 +1021,8 @@ void E3dView::ConvertMarkedObjTo3D(BOOL bExtrude, basegfx::B2DPoint aPnt1, baseg
// und alle alten Objekte weghauen
SdrObject* pRepObj = GetMarkedObjectByIndex(0);
SdrPageView* pPV = GetSdrPageViewOfMarkedByIndex(0);
- MarkObj(pRepObj, pPV, TRUE);
- ReplaceObjectAtView(pRepObj, *pPV, pScene, FALSE);
+ MarkObj(pRepObj, pPV, sal_True);
+ ReplaceObjectAtView(pRepObj, *pPV, pScene, sal_False);
DeleteMarked();
MarkObj(pScene, pPV);
@@ -1109,7 +1109,7 @@ void E3dView::DoDepthArrange(E3dScene* pScene, double fDepth)
SdrObjListIter aIter(*pSubList, IM_FLAT);
E3dDepthLayer* pBaseLayer = NULL;
E3dDepthLayer* pLayer = NULL;
- INT32 nNumLayers = 0;
+ sal_Int32 nNumLayers = 0;
while(aIter.IsMore())
{
@@ -1156,12 +1156,12 @@ void E3dView::DoDepthArrange(E3dScene* pScene, double fDepth)
if(aCompareColor == aLocalColor)
{
- bOverlap = FALSE;
+ bOverlap = sal_False;
}
}
else if(eLocalFillStyle == XFILL_NONE)
{
- bOverlap = FALSE;
+ bOverlap = sal_False;
}
}
}
@@ -1246,7 +1246,7 @@ void E3dView::DoDepthArrange(E3dScene* pScene, double fDepth)
|*
\************************************************************************/
-BOOL E3dView::BegDragObj(const Point& rPnt, OutputDevice* pOut,
+sal_Bool E3dView::BegDragObj(const Point& rPnt, OutputDevice* pOut,
SdrHdl* pHdl, short nMinMov,
SdrDragMethod* pForcedMeth)
{
@@ -1257,25 +1257,25 @@ BOOL E3dView::BegDragObj(const Point& rPnt, OutputDevice* pOut,
}
else
{
- BOOL bOwnActionNecessary;
+ sal_Bool bOwnActionNecessary;
if (pHdl == NULL)
{
- bOwnActionNecessary = TRUE;
+ bOwnActionNecessary = sal_True;
}
else if (pHdl->IsVertexHdl() || pHdl->IsCornerHdl())
{
- bOwnActionNecessary = TRUE;
+ bOwnActionNecessary = sal_True;
}
else
{
- bOwnActionNecessary = FALSE;
+ bOwnActionNecessary = sal_False;
}
if(bOwnActionNecessary && GetMarkedObjectCount() >= 1)
{
E3dDragConstraint eConstraint = E3DDRAG_CONSTR_XYZ;
- BOOL bThereAreRootScenes = FALSE;
- BOOL bThereAre3DObjects = FALSE;
+ sal_Bool bThereAreRootScenes = sal_False;
+ sal_Bool bThereAre3DObjects = sal_False;
long nCnt = GetMarkedObjectCount();
for(long nObjs = 0;nObjs < nCnt;nObjs++)
{
@@ -1283,9 +1283,9 @@ BOOL E3dView::BegDragObj(const Point& rPnt, OutputDevice* pOut,
if(pObj)
{
if(pObj->ISA(E3dScene) && ((E3dScene*)pObj)->GetScene() == pObj)
- bThereAreRootScenes = TRUE;
+ bThereAreRootScenes = sal_True;
if(pObj->ISA(E3dObject))
- bThereAre3DObjects = TRUE;
+ bThereAre3DObjects = sal_True;
}
}
if( bThereAre3DObjects )
@@ -1361,7 +1361,7 @@ BOOL E3dView::BegDragObj(const Point& rPnt, OutputDevice* pOut,
|*
\************************************************************************/
-BOOL E3dView::HasMarkedScene()
+sal_Bool E3dView::HasMarkedScene()
{
return (GetMarkedScene() != NULL);
}
@@ -1374,9 +1374,9 @@ BOOL E3dView::HasMarkedScene()
E3dScene* E3dView::GetMarkedScene()
{
- ULONG nCnt = GetMarkedObjectCount();
+ sal_uIntPtr nCnt = GetMarkedObjectCount();
- for ( ULONG i = 0; i < nCnt; i++ )
+ for ( sal_uIntPtr i = 0; i < nCnt; i++ )
if ( GetMarkedObjectByIndex(i)->ISA(E3dScene) )
return (E3dScene*) GetMarkedObjectByIndex(i);
@@ -1422,7 +1422,7 @@ void E3dView::InitScene(E3dScene* pScene, double fW, double fH, double fCamZ)
{
Camera3D aCam(pScene->GetCamera());
- aCam.SetAutoAdjustProjection(FALSE);
+ aCam.SetAutoAdjustProjection(sal_False);
aCam.SetViewWindow(- fW / 2, - fH / 2, fW, fH);
basegfx::B3DPoint aLookAt;
@@ -1586,14 +1586,14 @@ void E3dView::MovAction(const Point& rPnt)
/*************************************************************************
|*
|* Schluss. Objekt und evtl. Unterobjekte ueber ImpCreate3DLathe erstellen
-|* [FG] Mit dem Parameterwert TRUE (SDefault: FALSE) wird einfach ein
+|* [FG] Mit dem Parameterwert sal_True (SDefault: sal_False) wird einfach ein
|* Rotationskoerper erzeugt, ohne den Benutzer die Lage der
|* Achse fetlegen zu lassen. Es reicht dieser Aufruf, falls
|* ein Objekt selektiert ist. (keine Initialisierung noetig)
|*
\************************************************************************/
-void E3dView::End3DCreation(BOOL bUseDefaultValuesForMirrorAxes)
+void E3dView::End3DCreation(sal_Bool bUseDefaultValuesForMirrorAxes)
{
ResetCreationActive();
@@ -1610,7 +1610,7 @@ void E3dView::End3DCreation(BOOL bUseDefaultValuesForMirrorAxes)
basegfx::B2DPoint aPnt1(aRect.Left(), -aRect.Top());
basegfx::B2DPoint aPnt2(aRect.Left(), -aRect.Bottom());
- ConvertMarkedObjTo3D(FALSE, aPnt1, aPnt2);
+ ConvertMarkedObjTo3D(sal_False, aPnt1, aPnt2);
}
else
{
@@ -1623,7 +1623,7 @@ void E3dView::End3DCreation(BOOL bUseDefaultValuesForMirrorAxes)
basegfx::B2DPoint aPnt1(aMirrorRef1.X(), -aMirrorRef1.Y());
basegfx::B2DPoint aPnt2(aMirrorRef2.X(), -aMirrorRef2.Y());
- ConvertMarkedObjTo3D(FALSE, aPnt1, aPnt2);
+ ConvertMarkedObjTo3D(sal_False, aPnt1, aPnt2);
}
}
}
@@ -1675,7 +1675,7 @@ void E3dView::InitView ()
nVDefaultSegments = 12;
aDefaultLightColor = RGB_Color(COL_WHITE);
aDefaultAmbientColor = RGB_Color(COL_BLACK);
- bDoubleSided = FALSE;
+ bDoubleSided = sal_False;
mpMirrorOverlay = 0L;
}
@@ -1685,13 +1685,13 @@ void E3dView::InitView ()
|*
\************************************************************************/
-BOOL E3dView::IsBreak3DObjPossible() const
+sal_Bool E3dView::IsBreak3DObjPossible() const
{
- ULONG nCount = GetMarkedObjectCount();
+ sal_uIntPtr nCount = GetMarkedObjectCount();
if (nCount > 0)
{
- ULONG i = 0;
+ sal_uIntPtr i = 0;
while (i < nCount)
{
@@ -1700,11 +1700,11 @@ BOOL E3dView::IsBreak3DObjPossible() const
if (pObj && pObj->ISA(E3dObject))
{
if(!(((E3dObject*)pObj)->IsBreakObjPossible()))
- return FALSE;
+ return sal_False;
}
else
{
- return FALSE;
+ return sal_False;
}
i++;
@@ -1712,10 +1712,10 @@ BOOL E3dView::IsBreak3DObjPossible() const
}
else
{
- return FALSE;
+ return sal_False;
}
- return TRUE;
+ return sal_True;
}
/*************************************************************************
@@ -1729,10 +1729,10 @@ void E3dView::Break3DObj()
if(IsBreak3DObjPossible())
{
// ALLE selektierten Objekte werden gewandelt
- UINT32 nCount = GetMarkedObjectCount();
+ sal_uInt32 nCount = GetMarkedObjectCount();
BegUndo(String(SVX_RESSTR(RID_SVX_3D_UNDO_BREAK_LATHE)));
- for(UINT32 a=0;a<nCount;a++)
+ for(sal_uInt32 a=0;a<nCount;a++)
{
E3dObject* pObj = (E3dObject*)GetMarkedObjectByIndex(a);
BreakSingle3DObj(pObj);
@@ -1775,11 +1775,11 @@ void E3dView::BreakSingle3DObj(E3dObject* pObj)
void E3dView::MergeScenes ()
{
- ULONG nCount = GetMarkedObjectCount();
+ sal_uIntPtr nCount = GetMarkedObjectCount();
if (nCount > 0)
{
- ULONG nObj = 0;
+ sal_uIntPtr nObj = 0;
SdrObject *pObj = GetMarkedObjectByIndex(nObj);
E3dScene *pScene = new E3dPolyScene(Get3DDefaultAttributes());
basegfx::B3DRange aBoundVol;
@@ -1898,29 +1898,29 @@ void E3dView::CheckPossibilities()
// Weitere Flags bewerten
if(bGroupPossible || bUnGroupPossible || bGrpEnterPossible)
{
- INT32 nMarkCnt = GetMarkedObjectCount();
- BOOL bCoumpound = FALSE;
- BOOL b3DObject = FALSE;
- for(INT32 nObjs = 0L; (nObjs < nMarkCnt) && !bCoumpound; nObjs++)
+ sal_Int32 nMarkCnt = GetMarkedObjectCount();
+ sal_Bool bCoumpound = sal_False;
+ sal_Bool b3DObject = sal_False;
+ for(sal_Int32 nObjs = 0L; (nObjs < nMarkCnt) && !bCoumpound; nObjs++)
{
SdrObject *pObj = GetMarkedObjectByIndex(nObjs);
if(pObj && pObj->ISA(E3dCompoundObject))
- bCoumpound = TRUE;
+ bCoumpound = sal_True;
if(pObj && pObj->ISA(E3dObject))
- b3DObject = TRUE;
+ b3DObject = sal_True;
}
// Bisher: Es sind ZWEI oder mehr beliebiger Objekte selektiert.
// Nachsehen, ob CompoundObjects beteiligt sind. Falls ja,
// das Gruppieren verbieten.
if(bGroupPossible && bCoumpound)
- bGroupPossible = FALSE;
+ bGroupPossible = sal_False;
if(bUnGroupPossible && b3DObject)
- bUnGroupPossible = FALSE;
+ bUnGroupPossible = sal_False;
if(bGrpEnterPossible && bCoumpound)
- bGrpEnterPossible = FALSE;
+ bGrpEnterPossible = sal_False;
}
}
diff --git a/svx/source/engine3d/view3d1.cxx b/svx/source/engine3d/view3d1.cxx
index 121696d8ed6b..6dd4dd816450 100644
--- a/svx/source/engine3d/view3d1.cxx
+++ b/svx/source/engine3d/view3d1.cxx
@@ -58,7 +58,7 @@
|*
\************************************************************************/
-void E3dView::ConvertMarkedToPolyObj(BOOL bLineToArea)
+void E3dView::ConvertMarkedToPolyObj(sal_Bool bLineToArea)
{
SdrObject* pNewObj = NULL;
@@ -68,7 +68,7 @@ void E3dView::ConvertMarkedToPolyObj(BOOL bLineToArea)
if (pObj && pObj->ISA(E3dPolyScene))
{
- BOOL bBezier = FALSE;
+ sal_Bool bBezier = sal_False;
pNewObj = ((E3dPolyScene*) pObj)->ConvertToPolyObj(bBezier, bLineToArea);
if (pNewObj)
@@ -118,7 +118,7 @@ void Imp_E3dView_InorderRun3DObjects(const SdrObject* pObj, sal_uInt32& rMask)
}
}
-SfxItemSet E3dView::Get3DAttributes(E3dScene* pInScene, BOOL /*bOnly3DAttr*/) const
+SfxItemSet E3dView::Get3DAttributes(E3dScene* pInScene, sal_Bool /*bOnly3DAttr*/) const
{
// ItemSet mit entspr. Bereich anlegen
SfxItemSet aSet(
@@ -137,7 +137,7 @@ SfxItemSet E3dView::Get3DAttributes(E3dScene* pInScene, BOOL /*bOnly3DAttr*/) co
else
{
// get attributes from all selected objects
- MergeAttrFromMarked(aSet, FALSE);
+ MergeAttrFromMarked(aSet, sal_False);
// calc flags for SID_ATTR_3D_INTERN
const SdrMarkList& rMarkList = GetMarkedObjectList();
@@ -179,7 +179,7 @@ SfxItemSet E3dView::Get3DAttributes(E3dScene* pInScene, BOOL /*bOnly3DAttr*/) co
|*
\************************************************************************/
-void E3dView::Set3DAttributes( const SfxItemSet& rAttr, E3dScene* pInScene, BOOL bReplaceAll)
+void E3dView::Set3DAttributes( const SfxItemSet& rAttr, E3dScene* pInScene, sal_Bool bReplaceAll)
{
sal_uInt32 nSelectedItems(0L);