From b878bd3fe9cdc2ad0180b05892b7feeaa06b9c8d Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 29 Sep 2018 11:58:10 +0100 Subject: rename XRectPreview back to SvxXRectPreview MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I5d684a651c075104cfb2f2bd73303a2e7f5a7fdd Reviewed-on: https://gerrit.libreoffice.org/61138 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- svx/source/dialog/dlgctrl.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'svx') diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx index 4850967c52fd..0750a5355853 100644 --- a/svx/source/dialog/dlgctrl.cxx +++ b/svx/source/dialog/dlgctrl.cxx @@ -1626,7 +1626,7 @@ void PreviewBase::StyleUpdated() CustomWidgetController::StyleUpdated(); } -XRectPreview::XRectPreview() +SvxXRectPreview::SvxXRectPreview() : mpRectangleObject(nullptr) { } @@ -1637,7 +1637,7 @@ tools::Rectangle PreviewBase::GetPreviewSize() const return aObjectSize; } -void XRectPreview::SetDrawingArea(weld::DrawingArea* pDrawingArea) +void SvxXRectPreview::SetDrawingArea(weld::DrawingArea* pDrawingArea) { PreviewBase::SetDrawingArea(pDrawingArea); InitSettings(); @@ -1646,7 +1646,7 @@ void XRectPreview::SetDrawingArea(weld::DrawingArea* pDrawingArea) mpRectangleObject = new SdrRectObj(getModel(), GetPreviewSize()); } -void XRectPreview::Resize() +void SvxXRectPreview::Resize() { SdrObject *pOrigObject = mpRectangleObject; if (pOrigObject) @@ -1658,18 +1658,18 @@ void XRectPreview::Resize() PreviewBase::Resize(); } -XRectPreview::~XRectPreview() +SvxXRectPreview::~SvxXRectPreview() { SdrObject::Free(mpRectangleObject); } -void XRectPreview::SetAttributes(const SfxItemSet& rItemSet) +void SvxXRectPreview::SetAttributes(const SfxItemSet& rItemSet) { mpRectangleObject->SetMergedItemSet(rItemSet, true); mpRectangleObject->SetMergedItem(XLineStyleItem(drawing::LineStyle_NONE)); } -void XRectPreview::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle&) +void SvxXRectPreview::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle&) { rRenderContext.Push(PushFlags::MAPMODE); rRenderContext.SetMapMode(MapMode(MapUnit::Map100thMM)); -- cgit