summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svx/inc/svx/sdrmasterpagedescriptor.hxx4
-rw-r--r--svx/inc/svx/sdrpaintwindow.hxx4
-rw-r--r--svx/inc/svx/svdcrtv.hxx6
-rw-r--r--svx/inc/svx/svddrgv.hxx3
-rw-r--r--svx/inc/svx/svdhdl.hxx12
-rw-r--r--svx/source/sdr/contact/objectcontactofpageview.cxx6
-rw-r--r--svx/source/svdraw/clonelist.cxx8
-rw-r--r--svx/source/svdraw/gradtrns.cxx2
-rw-r--r--svx/source/svdraw/gradtrns.hxx2
-rw-r--r--svx/source/svdraw/sdrmasterpagedescriptor.cxx4
-rw-r--r--svx/source/svdraw/sdrpagewindow.cxx6
-rw-r--r--svx/source/svdraw/sdrpaintwindow.cxx4
-rw-r--r--svx/source/svdraw/svdattr.cxx6
-rw-r--r--svx/source/svdraw/svdcrtv.cxx14
-rw-r--r--svx/source/svdraw/svddrgv.cxx14
-rw-r--r--svx/source/svdraw/svdmrkv.cxx8
-rw-r--r--svx/source/svdraw/svdpntv.cxx4
-rw-r--r--svx/source/svdraw/svdview.cxx6
-rw-r--r--sw/source/ui/inc/view.hxx6
-rw-r--r--sw/source/ui/uiview/viewdraw.cxx4
-rw-r--r--sw/source/ui/uiview/viewport.cxx14
21 files changed, 68 insertions, 69 deletions
diff --git a/svx/inc/svx/sdrmasterpagedescriptor.hxx b/svx/inc/svx/sdrmasterpagedescriptor.hxx
index 20658c11922b..1917a681bb69 100644
--- a/svx/inc/svx/sdrmasterpagedescriptor.hxx
+++ b/svx/inc/svx/sdrmasterpagedescriptor.hxx
@@ -80,8 +80,8 @@ namespace sdr
void SetVisibleLayers(const SetOfByte& rNew);
// operators
- sal_Bool operator==(const MasterPageDescriptor& rCandidate) const;
- sal_Bool operator!=(const MasterPageDescriptor& rCandidate) const;
+ bool operator==(const MasterPageDescriptor& rCandidate) const;
+ bool operator!=(const MasterPageDescriptor& rCandidate) const;
const SdrPageProperties* getCorrectSdrPageProperties() const;
};
diff --git a/svx/inc/svx/sdrpaintwindow.hxx b/svx/inc/svx/sdrpaintwindow.hxx
index 5191f737f516..bf8620ca8655 100644
--- a/svx/inc/svx/sdrpaintwindow.hxx
+++ b/svx/inc/svx/sdrpaintwindow.hxx
@@ -112,7 +112,7 @@ public:
Rectangle GetVisibleArea() const;
// Is OutDev a printer?
- sal_Bool OutputToPrinter() const { return (OUTDEV_PRINTER == mrOutputDevice.GetOutDevType()); }
+ bool OutputToPrinter() const { return (OUTDEV_PRINTER == mrOutputDevice.GetOutDevType()); }
// Is OutDev a window?
sal_Bool OutputToWindow() const { return (OUTDEV_WINDOW == mrOutputDevice.GetOutDevType()); }
@@ -121,7 +121,7 @@ public:
sal_Bool OutputToVirtualDevice() const { return (OUTDEV_VIRDEV == mrOutputDevice.GetOutDevType()); }
// Is OutDev a recording MetaFile?
- sal_Bool OutputToRecordingMetaFile() const;
+ bool OutputToRecordingMetaFile() const;
// prepare PreRendering (evtl.)
void PreparePreRenderDevice();
diff --git a/svx/inc/svx/svdcrtv.hxx b/svx/inc/svx/svdcrtv.hxx
index 5e42e5f99b11..9a95ba1d377d 100644
--- a/svx/inc/svx/svdcrtv.hxx
+++ b/svx/inc/svx/svdcrtv.hxx
@@ -114,13 +114,13 @@ public:
void SetGluePointEditMode(sal_Bool bOn=sal_True) { SdrDragView::SetGluePointEditMode(bOn); CheckEdgeMode(); }
// Determine whether a text tool is activated
- sal_Bool IsTextTool() const;
+ bool IsTextTool() const;
// Determine whether an object connector tool activated
- sal_Bool IsEdgeTool() const;
+ bool IsEdgeTool() const;
// Determine whether a measurement tool activated
- sal_Bool IsMeasureTool() const;
+ bool IsMeasureTool() const;
void SetCurrentObj(sal_uInt16 nIdent, sal_uInt32 nInvent=SdrInventor);
void TakeCurrentObj(sal_uInt16& nIdent, sal_uInt32& nInvent) const { nInvent=nAktInvent; nIdent=nAktIdent; }
diff --git a/svx/inc/svx/svddrgv.hxx b/svx/inc/svx/svddrgv.hxx
index 47ac8a8324b5..1997dfb4145b 100644
--- a/svx/inc/svx/svddrgv.hxx
+++ b/svx/inc/svx/svddrgv.hxx
@@ -139,8 +139,7 @@ public:
sal_Bool IsInsertGluePoint() const { return bInsGluePoint; }
// Interaktives einfuegen eines neuen Punktes. nIdx=0 => vor dem ersten Punkt.
- sal_Bool IsInsObjPointPossible() const;
- sal_Bool IsInsPointPossible() const { return IsInsObjPointPossible(); }
+ bool IsInsObjPointPossible() const;
sal_Bool BegInsObjPoint(const Point& rPnt, sal_Bool bNewObj) { return ImpBegInsObjPoint(sal_False, 0L, rPnt, bNewObj, 0L); }
void MovInsObjPoint(const Point& rPnt) { MovDragObj(rPnt); }
sal_Bool EndInsObjPoint(SdrCreateCmd eCmd);
diff --git a/svx/inc/svx/svdhdl.hxx b/svx/inc/svx/svdhdl.hxx
index 5b46d35794d3..2a58f612ec8c 100644
--- a/svx/inc/svx/svdhdl.hxx
+++ b/svx/inc/svx/svdhdl.hxx
@@ -302,8 +302,8 @@ private:
unsigned bGradient : 1;
// select which handle to move
- unsigned bMoveSingleHandle : 1;
- unsigned bMoveFirstHandle : 1;
+ bool bMoveSingleHandle : 1;
+ bool bMoveFirstHandle : 1;
// create marker for this kind
virtual void CreateB2dIAObject();
@@ -329,10 +329,10 @@ public:
void FromIAOToItem(SdrObject* pObj, sal_Bool bSetItemOnObject, sal_Bool bUndo);
// selection flags for interaction
- sal_Bool IsMoveSingleHandle() const { return bMoveSingleHandle; }
- void SetMoveSingleHandle(sal_Bool bNew) { bMoveSingleHandle = bNew; }
- sal_Bool IsMoveFirstHandle() const { return bMoveFirstHandle; }
- void SetMoveFirstHandle(sal_Bool bNew) { bMoveFirstHandle = bNew; }
+ bool IsMoveSingleHandle() const { return bMoveSingleHandle; }
+ void SetMoveSingleHandle(bool bNew) { bMoveSingleHandle = bNew; }
+ bool IsMoveFirstHandle() const { return bMoveFirstHandle; }
+ void SetMoveFirstHandle(bool bNew) { bMoveFirstHandle = bNew; }
};
////////////////////////////////////////////////////////////////////////////////////////////////////
diff --git a/svx/source/sdr/contact/objectcontactofpageview.cxx b/svx/source/sdr/contact/objectcontactofpageview.cxx
index 89ab683b8dbd..d53539ffceb8 100644
--- a/svx/source/sdr/contact/objectcontactofpageview.cxx
+++ b/svx/source/sdr/contact/objectcontactofpageview.cxx
@@ -144,7 +144,7 @@ namespace sdr
{
// visualize entered group when that feature is switched on and it's not
// a print output. #i29129# No ghosted display for printing.
- sal_Bool bVisualizeEnteredGroup(DoVisualizeEnteredGroup() && !isOutputToPrinter());
+ bool bVisualizeEnteredGroup(DoVisualizeEnteredGroup() && !isOutputToPrinter());
// Visualize entered groups: Set to ghosted as default
// start. Do this only for the DrawPage, not for MasterPages
@@ -156,12 +156,12 @@ namespace sdr
// #114359# save old and set clip region
OutputDevice* pOutDev = TryToGetOutputDevice();
OSL_ENSURE(0 != pOutDev, "ObjectContactOfPageView without OutDev, someone has overloaded TryToGetOutputDevice wrong (!)");
- sal_Bool bClipRegionPushed(sal_False);
+ bool bClipRegionPushed(false);
const Region& rRedrawArea(rDisplayInfo.GetRedrawArea());
if(!rRedrawArea.IsEmpty())
{
- bClipRegionPushed = sal_True;
+ bClipRegionPushed = true;
pOutDev->Push(PUSH_CLIPREGION);
pOutDev->IntersectClipRegion(rRedrawArea);
}
diff --git a/svx/source/svdraw/clonelist.cxx b/svx/source/svdraw/clonelist.cxx
index 068780974723..fc4c94aaaded 100644
--- a/svx/source/svdraw/clonelist.cxx
+++ b/svx/source/svdraw/clonelist.cxx
@@ -31,14 +31,14 @@ void CloneList::AddPair(const SdrObject* pOriginal, SdrObject* pClone)
maCloneList.push_back(pClone);
// look for subobjects, too.
- sal_Bool bOriginalIsGroup(pOriginal->IsGroupObject());
- sal_Bool bCloneIsGroup(pClone->IsGroupObject());
+ bool bOriginalIsGroup(pOriginal->IsGroupObject());
+ bool bCloneIsGroup(pClone->IsGroupObject());
if(bOriginalIsGroup && pOriginal->ISA(E3dObject) && !pOriginal->ISA(E3dScene))
- bOriginalIsGroup = sal_False;
+ bOriginalIsGroup = false;
if(bCloneIsGroup && pClone->ISA(E3dObject) && !pClone->ISA(E3dScene))
- bCloneIsGroup = sal_False;
+ bCloneIsGroup = false;
if(bOriginalIsGroup && bCloneIsGroup)
{
diff --git a/svx/source/svdraw/gradtrns.cxx b/svx/source/svdraw/gradtrns.cxx
index d44dfcd35173..f0bdfeb24525 100644
--- a/svx/source/svdraw/gradtrns.cxx
+++ b/svx/source/svdraw/gradtrns.cxx
@@ -179,7 +179,7 @@ void GradTransformer::GradToVec(GradTransGradient& rG, GradTransVector& rV, cons
//////////////////////////////////////////////////////////////////////////////
void GradTransformer::VecToGrad(GradTransVector& rV, GradTransGradient& rG, GradTransGradient& rGOld, const SdrObject* pObj,
- sal_Bool bMoveSingle, sal_Bool bMoveFirst)
+ bool bMoveSingle, bool bMoveFirst)
{
// fill old gradient to new gradient to have a base
rG = rGOld;
diff --git a/svx/source/svdraw/gradtrns.hxx b/svx/source/svdraw/gradtrns.hxx
index 23cf3e9ea56e..0d14a3e3025c 100644
--- a/svx/source/svdraw/gradtrns.hxx
+++ b/svx/source/svdraw/gradtrns.hxx
@@ -48,7 +48,7 @@ public:
void GradToVec(GradTransGradient& rG, GradTransVector& rV,
const SdrObject* pObj);
void VecToGrad(GradTransVector& rV, GradTransGradient& rG,
- GradTransGradient& rGOld, const SdrObject* pObj, sal_Bool bMoveSingle, sal_Bool bMoveFirst);
+ GradTransGradient& rGOld, const SdrObject* pObj, bool bMoveSingle, bool bMoveFirst);
};
#endif // _GRADTRANS_HXX
diff --git a/svx/source/svdraw/sdrmasterpagedescriptor.cxx b/svx/source/svdraw/sdrmasterpagedescriptor.cxx
index 1b848905bde5..9e8e80dd768f 100644
--- a/svx/source/svdraw/sdrmasterpagedescriptor.cxx
+++ b/svx/source/svdraw/sdrmasterpagedescriptor.cxx
@@ -90,14 +90,14 @@ namespace sdr
}
// operators
- sal_Bool MasterPageDescriptor::operator==(const MasterPageDescriptor& rCandidate) const
+ bool MasterPageDescriptor::operator==(const MasterPageDescriptor& rCandidate) const
{
return (&maOwnerPage == &rCandidate.maOwnerPage
&& &maUsedPage == &rCandidate.maUsedPage
&& maVisibleLayers == rCandidate.maVisibleLayers);
}
- sal_Bool MasterPageDescriptor::operator!=(const MasterPageDescriptor& rCandidate) const
+ bool MasterPageDescriptor::operator!=(const MasterPageDescriptor& rCandidate) const
{
return (&maOwnerPage != &rCandidate.maOwnerPage
|| &maUsedPage != &rCandidate.maUsedPage
diff --git a/svx/source/svdraw/sdrpagewindow.cxx b/svx/source/svdraw/sdrpagewindow.cxx
index f89fdfad2fae..99a8323d6b8a 100644
--- a/svx/source/svdraw/sdrpagewindow.cxx
+++ b/svx/source/svdraw/sdrpagewindow.cxx
@@ -276,7 +276,7 @@ void SdrPageWindow::RedrawAll(sdr::contact::ViewObjectContactRedirector* pRedire
SdrModel& rModel = *((SdrModel*)rView.GetModel());
// get to be processed layers
- const sal_Bool bPrinter(GetPaintWindow().OutputToPrinter());
+ const bool bPrinter(GetPaintWindow().OutputToPrinter());
SetOfByte aProcessLayers = bPrinter ? mrPageView.GetPrintableLayers() : mrPageView.GetVisibleLayers();
// create PaintInfoRec; use Rectangle only temporarily
@@ -328,7 +328,7 @@ void SdrPageWindow::RedrawLayer(const SdrLayerID* pId, sdr::contact::ViewObjectC
SdrModel& rModel = *((SdrModel*)rView.GetModel());
// get the layers to process
- const sal_Bool bPrinter(GetPaintWindow().OutputToPrinter());
+ const bool bPrinter(GetPaintWindow().OutputToPrinter());
SetOfByte aProcessLayers = bPrinter ? mrPageView.GetPrintableLayers() : mrPageView.GetVisibleLayers();
// is the given layer visible at all?
@@ -337,7 +337,7 @@ void SdrPageWindow::RedrawLayer(const SdrLayerID* pId, sdr::contact::ViewObjectC
// find out if we are painting the ControlLayer
const SdrLayerAdmin& rLayerAdmin = rModel.GetLayerAdmin();
const SdrLayerID nControlLayerId = rLayerAdmin.GetLayerID(rLayerAdmin.GetControlLayerName(), sal_False);
- const sal_Bool bControlLayerProcessingActive(pId && nControlLayerId == *pId);
+ const bool bControlLayerProcessingActive(pId && nControlLayerId == *pId);
// create PaintInfoRec, use Rectangle only temporarily
const Region& rRegion = GetPaintWindow().GetRedrawRegion();
diff --git a/svx/source/svdraw/sdrpaintwindow.cxx b/svx/source/svdraw/sdrpaintwindow.cxx
index f2084cb12d89..3df44a1bac2b 100644
--- a/svx/source/svdraw/sdrpaintwindow.cxx
+++ b/svx/source/svdraw/sdrpaintwindow.cxx
@@ -183,7 +183,7 @@ Rectangle SdrPaintWindow::GetVisibleArea() const
return Rectangle(GetOutputDevice().PixelToLogic(Rectangle(Point(0,0), aVisSizePixel)));
}
-sal_Bool SdrPaintWindow::OutputToRecordingMetaFile() const
+bool SdrPaintWindow::OutputToRecordingMetaFile() const
{
GDIMetaFile* pMetaFile = mrOutputDevice.GetConnectMetaFile();
return (pMetaFile && pMetaFile->IsRecord() && !pMetaFile->IsPause());
@@ -191,7 +191,7 @@ sal_Bool SdrPaintWindow::OutputToRecordingMetaFile() const
void SdrPaintWindow::PreparePreRenderDevice()
{
- const sal_Bool bPrepareBufferedOutput(
+ const bool bPrepareBufferedOutput(
mrPaintView.IsBufferedOutputAllowed()
&& !OutputToPrinter()
&& !OutputToVirtualDevice()
diff --git a/svx/source/svdraw/svdattr.cxx b/svx/source/svdraw/svdattr.cxx
index 77ea5361474d..550e599ecebc 100644
--- a/svx/source/svdraw/svdattr.cxx
+++ b/svx/source/svdraw/svdattr.cxx
@@ -840,7 +840,7 @@ SfxItemPresentation SdrAngleItem::GetPresentation(
OUString& rText, const IntlWrapper * pIntlWrapper) const
{
sal_Int32 nValue(GetValue());
- sal_Bool bNeg(nValue < 0);
+ bool bNeg(nValue < 0);
if(bNeg)
nValue = -nValue;
@@ -864,8 +864,8 @@ SfxItemPresentation SdrAngleItem::GetPresentation(
aText.insert(0, aUnicodeNull);
sal_Int32 nLen = aText.getLength();
- sal_Bool bNull1(aText[nLen-1] == aUnicodeNull);
- sal_Bool bNull2(bNull1 && aText[nLen-2] == aUnicodeNull);
+ bool bNull1(aText[nLen-1] == aUnicodeNull);
+ bool bNull2(bNull1 && aText[nLen-2] == aUnicodeNull);
if(bNull2)
{
diff --git a/svx/source/svdraw/svdcrtv.cxx b/svx/source/svdraw/svdcrtv.cxx
index 0bf9178c2771..e6980bd72006 100644
--- a/svx/source/svdraw/svdcrtv.cxx
+++ b/svx/source/svdraw/svdcrtv.cxx
@@ -326,7 +326,7 @@ sal_Bool SdrCreateView::MouseMove(const MouseEvent& rMEvt, Window* pWin)
{
// TODO: Change default hit tolerance at IsMarkedHit() some time!
Point aPos(pWin->PixelToLogic(rMEvt.GetPosPixel()));
- sal_Bool bMarkHit=PickHandle(aPos)!=NULL || IsMarkedObjHit(aPos);
+ bool bMarkHit=PickHandle(aPos)!=NULL || IsMarkedObjHit(aPos);
SdrObjConnection aCon;
if (!bMarkHit) SdrEdgeObj::ImpFindConnector(aPos,*pPV,aCon,NULL,pWin);
SetConnectMarker(aCon,*pPV);
@@ -335,17 +335,17 @@ sal_Bool SdrCreateView::MouseMove(const MouseEvent& rMEvt, Window* pWin)
return SdrDragView::MouseMove(rMEvt,pWin);
}
-sal_Bool SdrCreateView::IsTextTool() const
+bool SdrCreateView::IsTextTool() const
{
return eEditMode==SDREDITMODE_CREATE && nAktInvent==SdrInventor && (nAktIdent==OBJ_TEXT || nAktIdent==OBJ_TEXTEXT || nAktIdent==OBJ_TITLETEXT || nAktIdent==OBJ_OUTLINETEXT);
}
-sal_Bool SdrCreateView::IsEdgeTool() const
+bool SdrCreateView::IsEdgeTool() const
{
return eEditMode==SDREDITMODE_CREATE && nAktInvent==SdrInventor && (nAktIdent==OBJ_EDGE);
}
-sal_Bool SdrCreateView::IsMeasureTool() const
+bool SdrCreateView::IsMeasureTool() const
{
return eEditMode==SDREDITMODE_CREATE && nAktInvent==SdrInventor && (nAktIdent==OBJ_MEASURE);
}
@@ -605,7 +605,7 @@ sal_Bool SdrCreateView::EndCreateObj(SdrCreateCmd eCmd)
return sal_False; // sal_False = event not interpreted
}
- sal_Bool bPntsEq=nAnz>1;
+ bool bPntsEq=nAnz>1;
sal_uIntPtr i=1;
Point aP0=aDragStat.GetPoint(0);
while (bPntsEq && i<nAnz) { bPntsEq=aP0==aDragStat.GetPoint(i); i++; }
@@ -642,7 +642,7 @@ sal_Bool SdrCreateView::EndCreateObj(SdrCreateCmd eCmd)
pObj->SetLayer(nLayer);
// recognize creation of a new 3D object inside a 3D scene
- sal_Bool bSceneIntoScene(sal_False);
+ bool bSceneIntoScene(false);
if(pObjMerk
&& pObjMerk->ISA(E3dScene)
@@ -659,7 +659,7 @@ sal_Bool SdrCreateView::EndCreateObj(SdrCreateCmd eCmd)
SdrObject::Free( pObjMerk );
pObjMerk = 0L;
bRet = sal_False;
- bSceneIntoScene = sal_True;
+ bSceneIntoScene = true;
}
}
diff --git a/svx/source/svdraw/svddrgv.cxx b/svx/source/svdraw/svddrgv.cxx
index 9838b47763f9..e4cbdd40e188 100644
--- a/svx/source/svdraw/svddrgv.cxx
+++ b/svx/source/svdraw/svddrgv.cxx
@@ -169,7 +169,7 @@ sal_Bool SdrDragView::TakeDragObjAnchorPos(Point& rPos, sal_Bool bTR ) const
if (pObj->ISA(SdrCaptionObj))
{
Point aPt(((SdrCaptionObj*)pObj)->GetTailPos());
- sal_Bool bTail=eDragHdl==HDL_POLY; // drag tail
+ bool bTail=eDragHdl==HDL_POLY; // drag tail
sal_Bool bOwn=mpCurrentSdrDragMethod->ISA(SdrDragObjOwn); // specific to object
if (!bTail)
{ // for bTail, TakeActionRect already does the right thing
@@ -246,7 +246,7 @@ sal_Bool SdrDragView::BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl*
bDragHdl=eDragHdl==HDL_REF1 || eDragHdl==HDL_REF2 || eDragHdl==HDL_MIRX;
// Expand test for HDL_ANCHOR_TR
- sal_Bool bNotDraggable = (HDL_ANCHOR == eDragHdl || HDL_ANCHOR_TR == eDragHdl);
+ bool bNotDraggable = (HDL_ANCHOR == eDragHdl || HDL_ANCHOR_TR == eDragHdl);
if(pHdl && (pHdl->GetKind() == HDL_SMARTTAG) && pForcedMeth )
{
@@ -268,12 +268,12 @@ sal_Bool SdrDragView::BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl*
case HDL_UPPER: case HDL_LOWER:
{
// are 3D objects selected?
- sal_Bool b3DObjSelected = sal_False;
+ bool b3DObjSelected = false;
for(sal_uInt32 a=0;!b3DObjSelected && a<GetMarkedObjectCount();a++)
{
SdrObject* pObj = GetMarkedObjectByIndex(a);
if(pObj && pObj->ISA(E3dObject))
- b3DObjSelected = sal_True;
+ b3DObjSelected = true;
}
// If yes, allow shear even when !IsShearAllowed,
// because 3D objects are limited rotations
@@ -416,14 +416,14 @@ sal_Bool SdrDragView::BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl*
return sal_False;
}
- sal_Bool bSingleTextObjMark = sal_False; // SJ: #i100490#
+ bool bSingleTextObjMark = false; // SJ: #i100490#
if ( GetMarkedObjectCount() == 1 )
{
pMarkedObj=GetMarkedObjectByIndex(0);
if ( pMarkedObj &&
pMarkedObj->ISA( SdrTextObj ) &&
static_cast<SdrTextObj*>(pMarkedObj)->IsTextFrame() )
- bSingleTextObjMark = sal_True;
+ bSingleTextObjMark = true;
}
if ( bSingleTextObjMark )
mpCurrentSdrDragMethod = new SdrDragObjOwn(*this);
@@ -623,7 +623,7 @@ void SdrDragView::BrkDragObj()
}
}
-sal_Bool SdrDragView::IsInsObjPointPossible() const
+bool SdrDragView::IsInsObjPointPossible() const
{
return pMarkedObj!=NULL && pMarkedObj->IsPolyObj();
}
diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx
index 9a66432d4aca..3b09919212ae 100644
--- a/svx/source/svdraw/svdmrkv.cxx
+++ b/svx/source/svdraw/svdmrkv.cxx
@@ -1192,12 +1192,12 @@ void SdrMarkView::SetFrameHandles(sal_Bool bOn)
void SdrMarkView::SetEditMode(SdrViewEditMode eMode)
{
if (eMode!=eEditMode) {
- sal_Bool bGlue0=eEditMode==SDREDITMODE_GLUEPOINTEDIT;
- sal_Bool bEdge0=((SdrCreateView*)this)->IsEdgeTool();
+ bool bGlue0=eEditMode==SDREDITMODE_GLUEPOINTEDIT;
+ bool bEdge0=((SdrCreateView*)this)->IsEdgeTool();
eEditMode0=eEditMode;
eEditMode=eMode;
- sal_Bool bGlue1=eEditMode==SDREDITMODE_GLUEPOINTEDIT;
- sal_Bool bEdge1=((SdrCreateView*)this)->IsEdgeTool();
+ bool bGlue1=eEditMode==SDREDITMODE_GLUEPOINTEDIT;
+ bool bEdge1=((SdrCreateView*)this)->IsEdgeTool();
// avoid flickering when switching between GlueEdit and EdgeTool
if (bGlue1 && !bGlue0) ImpSetGlueVisible2(bGlue1);
if (bEdge1!=bEdge0) ImpSetGlueVisible3(bEdge1);
diff --git a/svx/source/svdraw/svdpntv.cxx b/svx/source/svdraw/svdpntv.cxx
index 6e9993ab7950..6d7ca2453585 100644
--- a/svx/source/svdraw/svdpntv.cxx
+++ b/svx/source/svdraw/svdpntv.cxx
@@ -1014,7 +1014,7 @@ bool SdrPaintView::IsGroupEntered() const
void SdrPaintView::SetNotPersistDefaultAttr(const SfxItemSet& rAttr, sal_Bool /*bReplaceAll*/)
{
// bReplaceAll has no effect here at all.
- sal_Bool bMeasure=ISA(SdrView) && ((SdrView*)this)->IsMeasureTool();
+ bool bMeasure=ISA(SdrView) && ((SdrView*)this)->IsMeasureTool();
const SfxPoolItem *pPoolItem=NULL;
if (rAttr.GetItemState(SDRATTR_LAYERID,sal_True,&pPoolItem)==SFX_ITEM_SET) {
SdrLayerID nLayerId=((const SdrLayerIdItem*)pPoolItem)->GetValue();
@@ -1033,7 +1033,7 @@ void SdrPaintView::SetNotPersistDefaultAttr(const SfxItemSet& rAttr, sal_Bool /*
void SdrPaintView::MergeNotPersistDefaultAttr(SfxItemSet& rAttr, sal_Bool /*bOnlyHardAttr*/) const
{
// bOnlyHardAttr has no effect here at all.
- sal_Bool bMeasure=ISA(SdrView) && ((SdrView*)this)->IsMeasureTool();
+ bool bMeasure=ISA(SdrView) && ((SdrView*)this)->IsMeasureTool();
const XubString& aNam=bMeasure?aMeasureLayer:aAktLayer;
rAttr.Put(SdrLayerNameItem(aNam));
SdrLayerID nLayer=pMod->GetLayerAdmin().GetLayerID(aNam,sal_True);
diff --git a/svx/source/svdraw/svdview.cxx b/svx/source/svdraw/svdview.cxx
index b9c9f99d2f10..19e5acf3876d 100644
--- a/svx/source/svdraw/svdview.cxx
+++ b/svx/source/svdraw/svdview.cxx
@@ -322,10 +322,10 @@ SdrHitKind SdrView::PickAnything(const Point& rLogicPos, SdrViewEvent& rVEvt) co
const Point aLocalLogicPosition(rLogicPos);
sal_Bool bEditMode=IsEditMode();
- sal_Bool bPointMode=bEditMode && HasMarkablePoints();
+ bool bPointMode=bEditMode && HasMarkablePoints();
sal_Bool bGluePointMode=IsGluePointEditMode();
- sal_Bool bInsPolyPt=bPointMode && IsInsObjPointMode() && IsInsObjPointPossible();
- sal_Bool bInsGluePt=bGluePointMode && IsInsGluePointMode() && IsInsGluePointPossible();
+ bool bInsPolyPt=bPointMode && IsInsObjPointMode() && IsInsObjPointPossible();
+ bool bInsGluePt=bGluePointMode && IsInsGluePointMode() && IsInsGluePointPossible();
sal_Bool bIsTextEdit=IsTextEdit();
sal_Bool bTextEditHit=IsTextEditHit(aLocalLogicPosition,0/*nHitTolLog*/);
sal_Bool bTextEditSel=IsTextEditInSelectionMode();
diff --git a/sw/source/ui/inc/view.hxx b/sw/source/ui/inc/view.hxx
index 2268c631ded8..3c06d7ddbb07 100644
--- a/sw/source/ui/inc/view.hxx
+++ b/sw/source/ui/inc/view.hxx
@@ -277,9 +277,9 @@ class SW_DLLPUBLIC SwView: public SfxViewShell
SW_DLLPRIVATE sal_uLong FUNC_Search( const SwSearchOptions& rOptions );
SW_DLLPRIVATE void Replace();
- sal_Bool IsDocumentBorder();
+ bool IsDocumentBorder();
- SW_DLLPRIVATE sal_Bool IsTextTool() const;
+ SW_DLLPRIVATE bool IsTextTool() const;
// create control elements
SW_DLLPRIVATE void CreateBtns();
@@ -563,7 +563,7 @@ public:
void LeaveDrawCreate() { m_nDrawSfxId = m_nFormSfxId = USHRT_MAX; m_sDrawCustom.Erase();}
sal_Bool IsDrawMode() { return (m_nDrawSfxId != USHRT_MAX || m_nFormSfxId != USHRT_MAX); }
bool IsFormMode() const;
- sal_Bool IsBezierEditMode();
+ bool IsBezierEditMode();
bool AreOnlyFormsSelected() const;
sal_Bool HasDrwObj(SdrObject *pSdrObj) const;
sal_Bool HasOnlyObj(SdrObject *pSdrObj, sal_uInt32 eObjInventor) const;
diff --git a/sw/source/ui/uiview/viewdraw.cxx b/sw/source/ui/uiview/viewdraw.cxx
index d65846cfb794..1ab4270abfa7 100644
--- a/sw/source/ui/uiview/viewdraw.cxx
+++ b/sw/source/ui/uiview/viewdraw.cxx
@@ -593,7 +593,7 @@ sal_Bool SwView::BeginTextEdit(SdrObject* pObj, SdrPageView* pPV, Window* pWin,
/******************************************************************************
* Beschreibung: Ist ein DrawTextObjekt selektiert?
******************************************************************************/
-sal_Bool SwView::IsTextTool() const
+bool SwView::IsTextTool() const
{
sal_uInt16 nId;
sal_uInt32 nInvent;
@@ -612,7 +612,7 @@ SdrView* SwView::GetDrawView() const
return GetWrtShell().GetDrawView();
}
-sal_Bool SwView::IsBezierEditMode()
+bool SwView::IsBezierEditMode()
{
return (!IsDrawSelMode() && GetWrtShell().GetDrawView()->HasMarkablePoints());
}
diff --git a/sw/source/ui/uiview/viewport.cxx b/sw/source/ui/uiview/viewport.cxx
index f7233229f867..0a8ea0d19ff6 100644
--- a/sw/source/ui/uiview/viewport.cxx
+++ b/sw/source/ui/uiview/viewport.cxx
@@ -51,11 +51,11 @@
#define WB_RIGHT_ALIGNED ((WinBits)0x00008000)
#endif
-static sal_Bool bProtectDocShellVisArea = sal_False;
+static bool bProtectDocShellVisArea = false;
static sal_uInt16 nPgNum = 0;
-sal_Bool SwView::IsDocumentBorder()
+bool SwView::IsDocumentBorder()
{
return GetDocShell()->GetCreateMode() == SFX_CREATE_MODE_EMBEDDED ||
m_pWrtShell->GetViewOptions()->getBrowseMode() ||
@@ -74,7 +74,7 @@ inline long GetLeftMargin( SwView &rView )
static void lcl_GetPos(SwView* pView,
Point& rPos,
SwScrollbar* pScrollbar,
- sal_Bool bBorder)
+ bool bBorder)
{
SwWrtShell &rSh = pView->GetWrtShell();
const Size m_aDocSz( rSh.GetDocSize() );
@@ -744,7 +744,7 @@ IMPL_LINK( SwView, EndScrollHdl, SwScrollbar *, pScrollbar )
Help::ShowQuickHelp(pScrollbar, Rectangle(), aEmptyStr, 0);
}
Point aPos( m_aVisArea.TopLeft() );
- sal_Bool bBorder = IsDocumentBorder();
+ bool bBorder = IsDocumentBorder();
lcl_GetPos(this, aPos, pScrollbar, bBorder);
if ( bBorder && aPos == m_aVisArea.TopLeft() )
UpdateScrollbars();
@@ -1035,7 +1035,7 @@ void SwView::InnerResizePixel( const Point &rOfst, const Size &rSize )
//EditWin niemals einstellen!
//VisArea einstellen, aber dort nicht das SetVisArea der DocShell rufen!
- bProtectDocShellVisArea = sal_True;
+ bProtectDocShellVisArea = true;
CalcVisArea( aEditSz );
//visibility changes of the automatic horizontal scrollbar
//require to repeat the ViewResizePixel() call - but only once!
@@ -1045,7 +1045,7 @@ void SwView::InnerResizePixel( const Point &rOfst, const Size &rSize )
bVScrollVisible != m_pVScrollbar->IsVisible(sal_True))
bRepeat = sal_True;
}while( bRepeat );
- bProtectDocShellVisArea = sal_False;
+ bProtectDocShellVisArea = false;
m_bInInnerResizePixel = sal_False;
}
@@ -1209,7 +1209,7 @@ sal_Bool SwView::UpdateScrollbars()
sal_Bool bRet = sal_False;
if ( !m_aVisArea.IsEmpty() )
{
- const sal_Bool bBorder = IsDocumentBorder();
+ const bool bBorder = IsDocumentBorder();
Rectangle aTmpRect( m_aVisArea );
if ( bBorder )
{