From ec09f526114ef289e7a0a7804f443f2b16a67f15 Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Thu, 30 Nov 2017 23:35:05 +0530 Subject: lokdialog: Kill some code; use already existing method to paint This is not require now in the new approach where the dialog is already created by the time paint request call for dialog happens. Layouting is already complete by that time. Change-Id: I610b050a268e61e8d4036aa7eb5766cf0c8b37e0 --- vcl/source/window/dialog.cxx | 11 ----------- vcl/source/window/window.cxx | 9 --------- 2 files changed, 20 deletions(-) (limited to 'vcl') diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx index 59fcf1518eff..5ef3c0fb0238 100644 --- a/vcl/source/window/dialog.cxx +++ b/vcl/source/window/dialog.cxx @@ -882,17 +882,6 @@ bool Dialog::selectPageByUIXMLDescription(const OString& /*rUIXMLDescription*/) return true; } -void Dialog::paintDialog(VirtualDevice& rDevice) -{ - setDeferredProperties(); - ImplAdjustNWFSizes(); - Show(); - ToTop(); - ensureRepaint(); - - PaintToDevice(&rDevice, Point(0, 0), Size()); -} - void Dialog::InvalidateFloatingWindow(const Point& rPos) { if (const vcl::ILibreOfficeKitNotifier* pNotifier = GetLOKNotifier()) diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 26a63eea7870..2e6669e46904 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -3203,15 +3203,6 @@ vcl::LOKWindowId Window::GetLOKWindowId() const return mpWindowImpl->mnLOKWindowId; } -void Window::paintDialog(VirtualDevice& rDevice) -{ - // FIXME are these two necessary? - Show(); - ToTop(); - - PaintToDevice(&rDevice, Point(0, 0), Size()); -} - Size Window::PaintActiveFloatingWindow(VirtualDevice& rDevice) const { Size aRet; -- cgit