summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2018-02-10 13:24:21 +0100
committerAndras Timar <andras.timar@collabora.com>2018-02-12 18:05:20 +0100
commit1c5ba7f055f8dc9f2ff081ad0e8509a18e74c61c (patch)
tree659fc811b6e206f5558d473486ed8b2895d94770 /cui
parentd319b8ea37122b494992c76fd9dc890b95e48e01 (diff)
lokdialog: Handle dialog items' invalidation in general
Reviewed-on: https://gerrit.libreoffice.org/49240 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com> (cherry picked from commit b33287cde2d270d83e2658529be768a99dba98f0) Signed-off-by: Andras Timar <andras.timar@collabora.com> Change-Id: Ib7b178fe97964bc5fd6ac173a143ba8ba089e237
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/backgrnd.cxx20
1 files changed, 0 insertions, 20 deletions
diff --git a/cui/source/tabpages/backgrnd.cxx b/cui/source/tabpages/backgrnd.cxx
index ed04e696199c..8fd4f9337850 100644
--- a/cui/source/tabpages/backgrnd.cxx
+++ b/cui/source/tabpages/backgrnd.cxx
@@ -163,7 +163,6 @@ protected:
virtual void Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& rRect ) override;
virtual void DataChanged( const DataChangedEvent& rDCEvt ) override;
virtual void Resize() override;
- virtual void LogicInvalidate(const Rectangle* pRectangle) override;
private:
@@ -325,25 +324,6 @@ void BackgroundPreviewImpl::DataChanged( const DataChangedEvent& rDCEvt )
Window::DataChanged( rDCEvt );
}
-
-void BackgroundPreviewImpl::LogicInvalidate(const Rectangle* /*pRectangle*/)
-{
- // Invalidate the container dialog or floating window
- // The code is same as in Control::LogicInvalidate() method
- if (comphelper::LibreOfficeKit::isActive() && !comphelper::LibreOfficeKit::isDialogPainting())
- {
- if (VclPtr<vcl::Window> pParent = GetParentWithLOKNotifier())
- {
- // invalidate the complete floating window for now
- if (pParent->ImplIsFloatingWindow())
- return pParent->LogicInvalidate(nullptr);
-
- const Rectangle aRect(Point(GetOutOffXPixel(), GetOutOffYPixel()), Size(GetOutputWidthPixel(), GetOutputHeightPixel()));
- pParent->LogicInvalidate(&aRect);
- }
- }
-}
-
#define HDL(hdl) LINK(this,SvxBackgroundTabPage,hdl)
SvxBackgroundTabPage::SvxBackgroundTabPage(vcl::Window* pParent, const SfxItemSet& rCoreSet)