we will need getColorConfig, etc. again
Change-Id: Ie7f8d37b550c788fd6235a5de4bbcc51ac6f8150
This commit is contained in:
@@ -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; }
|
||||
|
@@ -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
|
||||
|
@@ -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)
|
||||
|
@@ -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 ) );
|
||||
|
Reference in New Issue
Block a user