summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorRishabh <kris.kr296@gmail.com>2016-02-17 14:02:30 +0530
committerKatarina Behrens <Katarina.Behrens@cib.de>2016-02-17 13:03:52 +0000
commitaa0f47aa65693a9763ac0ebeed85c09ac2076431 (patch)
tree342b73e2c2ef3f50f9508e06fb92e0f4be88f1f1 /svx
parent681294d55b6b4edcdef08982596cb4bcee32e635 (diff)
tdf#97924: Transparency slider causes entire sidebar to constantly refresh
Reduce the calls for sidebar resize Change-Id: I82552b67c0876777a31b6912befcd8f9d737ae94 Reviewed-on: https://gerrit.libreoffice.org/22416 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sidebar/area/AreaPropertyPanelBase.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/svx/source/sidebar/area/AreaPropertyPanelBase.cxx b/svx/source/sidebar/area/AreaPropertyPanelBase.cxx
index aff96d707607..da276398aa50 100644
--- a/svx/source/sidebar/area/AreaPropertyPanelBase.cxx
+++ b/svx/source/sidebar/area/AreaPropertyPanelBase.cxx
@@ -188,6 +188,7 @@ void AreaPropertyPanelBase::Initialize()
mpBTNGradient->SetAccessibleRelationLabeledBy(mpBTNGradient);
mpSidebarController = sfx2::sidebar::SidebarController::GetSidebarControllerForFrame(mxFrame);
+ mpSidebarController->NotifyResize();
}
void AreaPropertyPanelBase::SetTransparency(sal_uInt16 nVal)
@@ -743,6 +744,7 @@ void AreaPropertyPanelBase::updateFillStyle(bool bDisabled, bool bDefault, const
mpToolBoxColor->Hide();
meLastXFS = static_cast<sal_uInt16>(-1);
mpStyleItem.reset();
+ mpSidebarController->NotifyResize();
}
void AreaPropertyPanelBase::updateFillGradient(bool bDisabled, bool bDefault, const XFillGradientItem* pItem)
@@ -780,6 +782,7 @@ void AreaPropertyPanelBase::updateFillGradient(bool bDisabled, bool bDefault, co
mpLbFillGradTo->SetNoSelection();
}
}
+ mpSidebarController->NotifyResize();
}
void AreaPropertyPanelBase::updateFillHatch(bool bDisabled, bool bDefault, const XFillHatchItem* pItem)
@@ -809,6 +812,7 @@ void AreaPropertyPanelBase::updateFillHatch(bool bDisabled, bool bDefault, const
mpLbFillAttr->SetNoSelection();
}
}
+ mpSidebarController->NotifyResize();
}
void AreaPropertyPanelBase::updateFillColor(bool bDefault, const XFillColorItem* pItem)
@@ -825,6 +829,7 @@ void AreaPropertyPanelBase::updateFillColor(bool bDefault, const XFillColorItem*
Update();
}
+ mpSidebarController->NotifyResize();
}
void AreaPropertyPanelBase::updateFillBitmap(bool bDisabled, bool bDefault, const XFillBitmapItem* pItem)
@@ -854,6 +859,7 @@ void AreaPropertyPanelBase::updateFillBitmap(bool bDisabled, bool bDefault, cons
mpLbFillAttr->SetNoSelection();
}
}
+ mpSidebarController->NotifyResize();
}
void AreaPropertyPanelBase::NotifyItemUpdate(
@@ -972,7 +978,6 @@ void AreaPropertyPanelBase::NotifyItemUpdate(
break;
}
}
- mpSidebarController->NotifyResize();
}
void AreaPropertyPanelBase::Update()