diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-11-28 12:10:35 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-11-28 13:32:30 +0000 |
commit | 0a05120e1a08c29b3495878d2a3b5fb30d344c6c (patch) | |
tree | 762332c40ab40a987fe730129c67daaa616b489d /svx | |
parent | a9e4622e164e582316f5bdf00fe8dbabe849ef16 (diff) |
we will need getColorConfig, etc. again
Change-Id: Ie7f8d37b550c788fd6235a5de4bbcc51ac6f8150
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdmrkv.cxx | 19 | ||||
-rw-r--r-- | svx/source/svdraw/svdpntv.cxx | 5 |
2 files changed, 24 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) diff --git a/svx/source/svdraw/svdpntv.cxx b/svx/source/svdraw/svdpntv.cxx index e4264681a49f..14470e4a8b18 100644 --- a/svx/source/svdraw/svdpntv.cxx +++ b/svx/source/svdraw/svdpntv.cxx @@ -1257,6 +1257,11 @@ void SdrPaintView::VisAreaChanged(const SdrPageWindow& /*rWindow*/) Broadcast(SvxViewHint(SvxViewHint::SVX_HINT_VIEWCHANGED)); } +const svtools::ColorConfig& SdrPaintView::getColorConfig() const +{ + return maColorConfig; +} + void SdrPaintView::onChangeColorConfig() { SetGridColor( Color( maColorConfig.GetColorValue( svtools::DRAWGRID ).nColor ) ); |