summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdmrkv.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/svdraw/svdmrkv.cxx')
-rw-r--r--svx/source/svdraw/svdmrkv.cxx19
1 files changed, 19 insertions, 0 deletions
diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx
index 91f85baf3c83..4b85b92065f0 100644
--- a/svx/source/svdraw/svdmrkv.cxx
+++ b/svx/source/svdraw/svdmrkv.cxx
@@ -500,6 +500,25 @@ void SdrMarkView::BrkMarkGluePoints()
}
}
+sal_uIntPtr SdrMarkView::GetMarkableObjCount() const
+{
+ sal_uIntPtr nCount=0;
+ SdrPageView* pPV = GetSdrPageView();
+
+ if(pPV)
+ {
+ SdrObjList* pOL=pPV->GetObjList();
+ sal_uIntPtr nObjAnz=pOL->GetObjCount();
+ for (sal_uIntPtr nObjNum=0; nObjNum<nObjAnz; nObjNum++) {
+ SdrObject* pObj=pOL->GetObj(nObjNum);
+ if (IsObjMarkable(pObj,pPV)) {
+ nCount++;
+ }
+ }
+ }
+ return nCount;
+}
+
void SdrMarkView::hideMarkHandles()
{
if(!mbMarkHandlesHidden)