summaryrefslogtreecommitdiff
path: root/svx/source/dialog/dlgctrl.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-09-29 11:55:52 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-09-30 16:14:25 +0200
commit0749b68fe14ef8687c9fa28133a960f66add1fc7 (patch)
tree8b446de77a4ac4fd4739d3ee21fbb3c13a5239fe /svx/source/dialog/dlgctrl.cxx
parent3e719d72ed64b0690ebef2dda1d56a0d28bc0c0e (diff)
drop unused SvxXRectPreview
Change-Id: I7e43c0e1e12be40cfecbe6614430e9291efe8c2e Reviewed-on: https://gerrit.libreoffice.org/61137 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source/dialog/dlgctrl.cxx')
-rw-r--r--svx/source/dialog/dlgctrl.cxx63
1 files changed, 0 insertions, 63 deletions
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)