summaryrefslogtreecommitdiff
path: root/svx/source
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2017-12-22 23:36:55 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2017-12-27 16:34:13 +0100
commitaa109e6a6fe771965acd17c00126aff74ca6f5c2 (patch)
tree6eb5d3442499980a110b83321d7b6b661ce9c9f3 /svx/source
parent828a7ffd3e76d21d65edb822299ca0c5a2b70ef2 (diff)
Share common code
Change-Id: Ia6ee42c799e566ad837e89d6456c50c7217da1eb
Diffstat (limited to 'svx/source')
-rw-r--r--svx/source/svdraw/svdmrkv.cxx22
1 files changed, 2 insertions, 20 deletions
diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx
index d02758a6eee8..2afc197bb8b8 100644
--- a/svx/source/svdraw/svdmrkv.cxx
+++ b/svx/source/svdraw/svdmrkv.cxx
@@ -522,41 +522,23 @@ void SdrMarkView::BrkMarkGluePoints()
}
}
-bool SdrMarkView::HasMultipleMarkableObjects() const
+bool SdrMarkView::MarkableObjectsExceed( int n ) const
{
SdrPageView* pPV = GetSdrPageView();
if (!pPV)
return false;
- int nCount=0;
SdrObjList* pOL=pPV->GetObjList();
const size_t nObjCount = pOL->GetObjCount();
for (size_t nObjNum=0; nObjNum<nObjCount; ++nObjNum) {
SdrObject* pObj=pOL->GetObj(nObjNum);
- if (IsObjMarkable(pObj,pPV) && ++nCount>1)
+ if (IsObjMarkable(pObj,pPV) && --n<0)
return true;
}
return false;
}
-bool SdrMarkView::HasMarkableObj() const
-{
- SdrPageView* pPV = GetSdrPageView();
- if(pPV)
- {
- SdrObjList* pOL=pPV->GetObjList();
- const size_t nObjCount = pOL->GetObjCount();
- for (size_t nObjNum = 0; nObjNum<nObjCount; ++nObjNum) {
- SdrObject* pObj=pOL->GetObj(nObjNum);
- if (IsObjMarkable(pObj,pPV)) {
- return true;
- }
- }
- }
- return false;
-}
-
void SdrMarkView::hideMarkHandles()
{
if(!mbMarkHandlesHidden)