From 0749b68fe14ef8687c9fa28133a960f66add1fc7 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 29 Sep 2018 11:55:52 +0100 Subject: drop unused SvxXRectPreview MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I7e43c0e1e12be40cfecbe6614430e9291efe8c2e Reviewed-on: https://gerrit.libreoffice.org/61137 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- svx/source/dialog/dlgctrl.cxx | 63 ------------------------------------------- 1 file changed, 63 deletions(-) (limited to 'svx') diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx index 637ef4858949..4850967c52fd 100644 --- a/svx/source/dialog/dlgctrl.cxx +++ b/svx/source/dialog/dlgctrl.cxx @@ -1456,69 +1456,6 @@ void SvxXLinePreview::Paint(vcl::RenderContext& rRenderContext, const tools::Rec LocalPostPaint(rRenderContext); } -SvxXRectPreview::SvxXRectPreview(vcl::Window* pParent) -: SvxPreviewBase(pParent) - ,mpRectangleObject(nullptr) -{ - InitSettings(true, true); - - // create RectangleObject - const tools::Rectangle aObjectSize(Point(), GetOutputSize()); - mpRectangleObject = new SdrRectObj( - getModel(), - aObjectSize); -} - -void SvxXRectPreview::Resize() -{ - const tools::Rectangle aObjectSize(Point(), GetOutputSize()); - SdrObject *pOrigObject = mpRectangleObject; - if (pOrigObject) - { - mpRectangleObject = new SdrRectObj( - getModel(), - aObjectSize); - SetAttributes(pOrigObject->GetMergedItemSet()); - SdrObject::Free(pOrigObject); - } - SvxPreviewBase::Resize(); -} - -VCL_BUILDER_FACTORY(SvxXRectPreview) - -SvxXRectPreview::~SvxXRectPreview() -{ - disposeOnce(); -} - -void SvxXRectPreview::dispose() -{ - SdrObject::Free(mpRectangleObject); - SvxPreviewBase::dispose(); -} - -void SvxXRectPreview::SetAttributes(const SfxItemSet& rItemSet) -{ - mpRectangleObject->SetMergedItemSet(rItemSet, true); - mpRectangleObject->SetMergedItem(XLineStyleItem(drawing::LineStyle_NONE)); -} - -void SvxXRectPreview::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle&) -{ - LocalPrePaint(rRenderContext); - - sdr::contact::SdrObjectVector aObjectVector; - - aObjectVector.push_back(mpRectangleObject); - - sdr::contact::ObjectContactOfObjListPainter aPainter(getBufferDevice(), aObjectVector, nullptr); - sdr::contact::DisplayInfo aDisplayInfo; - - aPainter.ProcessDisplay(aDisplayInfo); - - LocalPostPaint(rRenderContext); -} - SvxXShadowPreview::SvxXShadowPreview() : mpRectangleObject(nullptr) , mpRectangleShadow(nullptr) -- cgit