diff options
Diffstat (limited to 'svx/source/svdraw/svdpagv.cxx')
-rw-r--r-- | svx/source/svdraw/svdpagv.cxx | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/svx/source/svdraw/svdpagv.cxx b/svx/source/svdraw/svdpagv.cxx index 1758cd92745b..65a72cc915be 100644 --- a/svx/source/svdraw/svdpagv.cxx +++ b/svx/source/svdraw/svdpagv.cxx @@ -331,8 +331,8 @@ void SdrPageView::PaintOutlinerView(OutputDevice* pOut, const Rectangle& rRect) //const SdrObject* pTextObjTmp=GetView().GetTextEditObject(); //const SdrTextObj* pText=PTR_CAST(SdrTextObj,pTextObjTmp); //FASTBOOL bTextFrame=pText!=NULL && pText->IsTextFrame(); - ULONG nViewAnz=GetView().pTextEditOutliner->GetViewCount(); - for (ULONG i=0; i<nViewAnz; i++) { + sal_uIntPtr nViewAnz=GetView().pTextEditOutliner->GetViewCount(); + for (sal_uIntPtr i=0; i<nViewAnz; i++) { OutlinerView* pOLV=GetView().pTextEditOutliner->GetView(i); if (pOLV->GetWindow()==pOut) { GetView().ImpPaintOutlinerView(*pOLV, rRect); @@ -497,7 +497,7 @@ void SdrPageView::SetDesignMode( bool _bDesignMode ) const //////////////////////////////////////////////////////////////////////////////////////////////////// #ifdef OS2 -#define RGBCOLOR(r,g,b) ((ULONG)(((BYTE)(b) | ((USHORT)(g)<<8)) | (((ULONG)(BYTE)(r))<<16))) +#define RGBCOLOR(r,g,b) ((sal_uIntPtr)(((sal_uInt8)(b) | ((sal_uInt16)(g)<<8)) | (((sal_uIntPtr)(sal_uInt8)(r))<<16))) #endif void SdrPageView::DrawPageViewGrid(OutputDevice& rOut, const Rectangle& rRect, Color aColor) @@ -604,11 +604,11 @@ void SdrPageView::DrawPageViewGrid(OutputDevice& rOut, const Rectangle& rRect, C long y1=GetPage()->GetUppBorder()+1+nWrX; long y2=GetPage()->GetHgt()-GetPage()->GetLwrBorder()-1+nWrY; const SdrPageGridFrameList* pFrames=GetPage()->GetGridFrameList(this,NULL); - //USHORT nBufSiz=1024; // 4k Buffer = max. 512 Punkte + //sal_uInt16 nBufSiz=1024; // 4k Buffer = max. 512 Punkte // #90353# long* pBuf = NULL; - USHORT nGridPaintAnz=1; + sal_uInt16 nGridPaintAnz=1; if (pFrames!=NULL) nGridPaintAnz=pFrames->GetCount(); - for (USHORT nGridPaintNum=0; nGridPaintNum<nGridPaintAnz; nGridPaintNum++) { + for (sal_uInt16 nGridPaintNum=0; nGridPaintNum<nGridPaintAnz; nGridPaintNum++) { if (pFrames!=NULL) { const SdrPageGridFrame& rGF=(*pFrames)[nGridPaintNum]; nWrX=rGF.GetPaperRect().Left(); @@ -649,13 +649,13 @@ void SdrPageView::DrawPageViewGrid(OutputDevice& rOut, const Rectangle& rRect, C { if( bHoriLines ) { - ULONG nGridFlags = ( bHoriSolid ? GRID_HORZLINES : GRID_DOTS ); - UINT16 nSteps = sal_uInt16(nx1 / nx2); - UINT32 nRestPerStepMul1000 = nSteps ? ( ((nx1 * 1000L)/ nSteps) - (nx2 * 1000L) ) : 0; - UINT32 nStepOffset = 0; - UINT16 nPointOffset = 0; + sal_uIntPtr nGridFlags = ( bHoriSolid ? GRID_HORZLINES : GRID_DOTS ); + sal_uInt16 nSteps = sal_uInt16(nx1 / nx2); + sal_uInt32 nRestPerStepMul1000 = nSteps ? ( ((nx1 * 1000L)/ nSteps) - (nx2 * 1000L) ) : 0; + sal_uInt32 nStepOffset = 0; + sal_uInt16 nPointOffset = 0; - for(UINT16 a=0;a<nSteps;a++) + for(sal_uInt16 a=0;a<nSteps;a++) { // Zeichnen rOut.DrawGrid( @@ -674,13 +674,13 @@ void SdrPageView::DrawPageViewGrid(OutputDevice& rOut, const Rectangle& rRect, C if( bVertLines ) { - ULONG nGridFlags = ( bVertSolid ? GRID_VERTLINES : GRID_DOTS ); - UINT16 nSteps = sal_uInt16(ny1 / ny2); - UINT32 nRestPerStepMul1000 = nSteps ? ( ((ny1 * 1000L)/ nSteps) - (ny2 * 1000L) ) : 0; - UINT32 nStepOffset = 0; - UINT16 nPointOffset = 0; + sal_uIntPtr nGridFlags = ( bVertSolid ? GRID_VERTLINES : GRID_DOTS ); + sal_uInt16 nSteps = sal_uInt16(ny1 / ny2); + sal_uInt32 nRestPerStepMul1000 = nSteps ? ( ((ny1 * 1000L)/ nSteps) - (ny2 * 1000L) ) : 0; + sal_uInt32 nStepOffset = 0; + sal_uInt16 nPointOffset = 0; - for(UINT16 a=0;a<nSteps;a++) + for(sal_uInt16 a=0;a<nSteps;a++) { // Zeichnen rOut.DrawGrid( @@ -806,7 +806,7 @@ sal_Bool SdrPageView::IsObjMarkable(SdrObject* pObj) const { // Der Layer muss sichtbar und darf nicht gesperrt sein SdrLayerID nL = pObj->GetLayer(); - return (aLayerVisi.IsSet(BYTE(nL)) && !aLayerLock.IsSet(BYTE(nL))); + return (aLayerVisi.IsSet(sal_uInt8(nL)) && !aLayerLock.IsSet(sal_uInt8(nL))); } } @@ -823,7 +823,7 @@ void SdrPageView::SetPageOrigin(const Point& rOrg) } } -void SdrPageView::ImpInvalidateHelpLineArea(USHORT nNum) const +void SdrPageView::ImpInvalidateHelpLineArea(sal_uInt16 nNum) const { if (GetView().IsHlplVisible() && nNum<aHelpLines.GetCount()) { const SdrHelpLine& rHL=aHelpLines[nNum]; @@ -853,14 +853,14 @@ void SdrPageView::SetHelpLines(const SdrHelpLineList& rHLL) InvalidateAllWin(); } -void SdrPageView::SetHelpLine(USHORT nNum, const SdrHelpLine& rNewHelpLine) +void SdrPageView::SetHelpLine(sal_uInt16 nNum, const SdrHelpLine& rNewHelpLine) { if (nNum<aHelpLines.GetCount() && aHelpLines[nNum]!=rNewHelpLine) { - FASTBOOL bNeedRedraw=TRUE; + FASTBOOL bNeedRedraw=sal_True; if (aHelpLines[nNum].GetKind()==rNewHelpLine.GetKind()) { switch (rNewHelpLine.GetKind()) { - case SDRHELPLINE_VERTICAL : if (aHelpLines[nNum].GetPos().X()==rNewHelpLine.GetPos().X()) bNeedRedraw=FALSE; break; - case SDRHELPLINE_HORIZONTAL: if (aHelpLines[nNum].GetPos().Y()==rNewHelpLine.GetPos().Y()) bNeedRedraw=FALSE; break; + case SDRHELPLINE_VERTICAL : if (aHelpLines[nNum].GetPos().X()==rNewHelpLine.GetPos().X()) bNeedRedraw=sal_False; break; + case SDRHELPLINE_HORIZONTAL: if (aHelpLines[nNum].GetPos().Y()==rNewHelpLine.GetPos().Y()) bNeedRedraw=sal_False; break; default: break; } // switch } @@ -870,7 +870,7 @@ void SdrPageView::SetHelpLine(USHORT nNum, const SdrHelpLine& rNewHelpLine) } } -void SdrPageView::DeleteHelpLine(USHORT nNum) +void SdrPageView::DeleteHelpLine(sal_uInt16 nNum) { if (nNum<aHelpLines.GetCount()) { ImpInvalidateHelpLineArea(nNum); @@ -878,7 +878,7 @@ void SdrPageView::DeleteHelpLine(USHORT nNum) } } -void SdrPageView::InsertHelpLine(const SdrHelpLine& rHL, USHORT nNum) +void SdrPageView::InsertHelpLine(const SdrHelpLine& rHL, sal_uInt16 nNum) { if (nNum>aHelpLines.GetCount()) nNum=aHelpLines.GetCount(); aHelpLines.Insert(rHL,nNum); @@ -961,7 +961,7 @@ void SdrPageView::LeaveOneGroup() { if(GetAktGroup()) { - BOOL bGlueInvalidate = (GetView().ImpIsGlueVisible()); + sal_Bool bGlueInvalidate = (GetView().ImpIsGlueVisible()); if(bGlueInvalidate) GetView().GlueInvalidate(); @@ -999,7 +999,7 @@ void SdrPageView::LeaveAllGroup() { if(GetAktGroup()) { - BOOL bGlueInvalidate = (GetView().ImpIsGlueVisible()); + sal_Bool bGlueInvalidate = (GetView().ImpIsGlueVisible()); if(bGlueInvalidate) GetView().GlueInvalidate(); @@ -1033,9 +1033,9 @@ void SdrPageView::LeaveAllGroup() } } -USHORT SdrPageView::GetEnteredLevel() const +sal_uInt16 SdrPageView::GetEnteredLevel() const { - USHORT nAnz=0; + sal_uInt16 nAnz=0; SdrObject* pGrp=GetAktGroup(); while (pGrp!=NULL) { nAnz++; @@ -1062,7 +1062,7 @@ XubString SdrPageView::GetActualGroupName() const XubString SdrPageView::GetActualPathName(sal_Unicode cSep) const { XubString aStr; - BOOL bNamFnd(FALSE); + sal_Bool bNamFnd(sal_False); SdrObject* pGrp = GetAktGroup(); while(pGrp) @@ -1072,7 +1072,7 @@ XubString SdrPageView::GetActualPathName(sal_Unicode cSep) const if(!aStr1.Len()) aStr1 += sal_Unicode('?'); else - bNamFnd = TRUE; + bNamFnd = sal_True; aStr += aStr1; pGrp = pGrp->GetUpGroup(); |