diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 19:57:37 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 20:26:17 +0100 |
commit | 0d957046f103605ba51b2a59a8f4c463ca33010a (patch) | |
tree | 66acd5576bd19167c14837d8b036673485f252bc /svx/source/svdraw/svdsnpv.cxx | |
parent | bd9581d46d78c5742fbb50f1b4a9ff2fc1dae7e8 (diff) |
bool improvements
Change-Id: Ic32faa81bfbb66a9d8632fb3db187e33c31188ed
Diffstat (limited to 'svx/source/svdraw/svdsnpv.cxx')
-rw-r--r-- | svx/source/svdraw/svdsnpv.cxx | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/svx/source/svdraw/svdsnpv.cxx b/svx/source/svdraw/svdsnpv.cxx index 65337d25a116..4bdc12c38ff8 100644 --- a/svx/source/svdraw/svdsnpv.cxx +++ b/svx/source/svdraw/svdsnpv.cxx @@ -177,29 +177,29 @@ void ImplHelpLineOverlay::SetPosition(const basegfx::B2DPoint& rNewPosition) void SdrSnapView::ClearVars() { nMagnSizPix=4; - bSnapEnab=sal_True; - bGridSnap=sal_True; - bSnapTo1Pix=sal_True; - bBordSnap=sal_True; - bHlplSnap=sal_True; - bOFrmSnap=sal_True; - bOPntSnap=sal_False; - bOConSnap=sal_True; - bMoveMFrmSnap=sal_True; - bMoveOFrmSnap=sal_True; - bMoveOPntSnap=sal_True; - bMoveOConSnap=sal_True; - bMoveSnapOnlyTopLeft=sal_False; - bOrtho=sal_False; - bBigOrtho=sal_True; + bSnapEnab=true; + bGridSnap=true; + bSnapTo1Pix=true; + bBordSnap=true; + bHlplSnap=true; + bOFrmSnap=true; + bOPntSnap=false; + bOConSnap=true; + bMoveMFrmSnap=true; + bMoveOFrmSnap=true; + bMoveOPntSnap=true; + bMoveOConSnap=true; + bMoveSnapOnlyTopLeft=false; + bOrtho=false; + bBigOrtho=true; nSnapAngle=1500; - bAngleSnapEnab=sal_False; - bMoveOnlyDragging=sal_False; - bSlantButShear=sal_False; - bCrookNoContortion=sal_False; + bAngleSnapEnab=false; + bMoveOnlyDragging=false; + bSlantButShear=false; + bCrookNoContortion=false; eCrookMode=SDRCROOK_ROTATE; - bHlplFixed=sal_False; - bEliminatePolyPoints=sal_False; + bHlplFixed=false; + bEliminatePolyPoints=false; nEliminatePolyPointLimitAngle=0; BrkSetPageOrg(); @@ -348,7 +348,7 @@ sal_uInt16 SdrSnapView::SnapPos(Point& rPnt, const SdrPageView* pPV) const sal_uIntPtr nMaxFrameSnapCount=200; // go back to IM_DEEPNOGROUPS runthrough for snap to object comparisons - SdrObjListIter aIter(*pPV->GetPage(),IM_DEEPNOGROUPS,sal_True); + SdrObjListIter aIter(*pPV->GetPage(),IM_DEEPNOGROUPS,true); while (aIter.IsMore() && (nMaxPointSnapCount>0 || nMaxFrameSnapCount>0)) { SdrObject* pO=aIter.Next(); @@ -444,7 +444,7 @@ void SdrSnapView::CheckSnap(const Point& rPt, const SdrPageView* pPV, long& nBes } } else { nBestXSnap=aPt.X(); - bXSnapped=sal_True; + bXSnapped=true; } } if ((nRet & SDRSNAP_YSNAPPED) !=0) { @@ -454,7 +454,7 @@ void SdrSnapView::CheckSnap(const Point& rPt, const SdrPageView* pPV, long& nBes } } else { nBestYSnap=aPt.Y(); - bYSnapped=sal_True; + bYSnapped=true; } } } |