we will need getColorConfig, etc. again

Change-Id: Ie7f8d37b550c788fd6235a5de4bbcc51ac6f8150
This commit is contained in:
Caolán McNamara
2013-11-28 12:10:35 +00:00
parent a9e4622e16
commit 0a05120e1a
4 changed files with 28 additions and 0 deletions

View File

@@ -206,6 +206,8 @@ public:
void SetFrameHandles(sal_Bool bOn);
sal_Bool IsFrameHandles() const { return bForceFrameHandles; }
sal_uIntPtr GetMarkableObjCount() const;
// Limit. Exceeding the limit causes an implicite switch to FrameHandles. default=50.
void SetFrameHandlesLimit(sal_uInt16 nAnz) { nFrameHandlesLimit=nAnz; }
sal_uInt16 GetFrameHandlesLimit() const { return nFrameHandlesLimit; }

View File

@@ -533,6 +533,8 @@ public:
sal_Bool IsPrintPreview() const { return bPrintPreview; }
void SetPrintPreview(bool bOn = true) { bPrintPreview=bOn; }
const svtools::ColorConfig& getColorConfig() const;
virtual void onChangeColorConfig();
// #103834# Set background color for svx at SdrPageViews

View File

@@ -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)

View File

@@ -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 ) );