Kaydet (Commit) a2a3e06a authored tarafından Chris Sherlock's avatar Chris Sherlock

drawinglayer: remove commented out code

Change-Id: I20fd2665f9fed59b45127dd4aa3dbce0fc58ac17
Reviewed-on: https://gerrit.libreoffice.org/43006Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarChris Sherlock <chris.sherlock79@gmail.com>
üst 6996c650
......@@ -92,44 +92,6 @@ namespace emfplushelper
{
}
// OutDevState::OutDevState() :
// clip(),
// clipRect(),
// xClipPoly(),
//
// lineColor(),
// fillColor(),
// textColor(),
// textFillColor(),
// textLineColor(),
//
// xFont(),
// transform(),
// mapModeTransform(),
// fontRotation(0.0),
//
// textEmphasisMarkStyle(FontEmphasisMark::NONE),
// pushFlags(PushFlags::ALL),
// textDirection(css::rendering::TextDirection::WEAK_LEFT_TO_RIGHT),
// textAlignment(0), // TODO(Q2): Synchronize with implrenderer
// // and possibly new rendering::TextAlignment
// textReliefStyle(FontRelief::NONE),
// textOverlineStyle(LINESTYLE_NONE),
// textUnderlineStyle(LINESTYLE_NONE),
// textStrikeoutStyle(STRIKEOUT_NONE),
// textReferencePoint(ALIGN_BASELINE),
//
// isTextOutlineModeSet(false),
// isTextEffectShadowSet(false),
// isTextWordUnderlineSet(false),
//
// isLineColorSet(false),
// isFillColorSet(false),
// isTextFillColorSet(false),
// isTextLineColorSet(false)
// {
// }
void EmfPlusHelperData::processObjectRecord(SvMemoryStream& rObjectStream, sal_uInt16 flags, sal_uInt32 dataSize, bool bUseWholeStream)
{
sal_uInt32 index;
......@@ -718,8 +680,6 @@ namespace emfplushelper
mbMultipart(false),
mMFlags(0),
mMStream(),
// mGSStack(),
// mGSContainerStack(),
mrTargetHolders(rTargetHolders),
mrPropertyHolders(rPropertyHolders)
{
......@@ -914,17 +874,9 @@ namespace emfplushelper
::basegfx::B2DPolyPolygon polyPolygon(polygon);
if (type == EmfPlusRecordTypeFillPie)
{
EMFPPlusFillPolygon(polyPolygon, flags & 0x8000, brushIndexOrColor);
// EMFPPlusFillPolygon(polyPolygon,
// rFactoryParms, rState, rCanvas, flags & 0x8000, brushIndexOrColor);
}
else
{
EMFPPlusDrawPolygon(polyPolygon, flags & 0xff);
// EMFPPlusDrawPolygon(polyPolygon,
// rFactoryParms, rState, rCanvas, flags & 0xff);
}
}
break;
case EmfPlusRecordTypeFillPath:
......@@ -935,7 +887,6 @@ namespace emfplushelper
SAL_INFO("cppcanvas.emf", "EMF+ FillPath slot: " << index);
EMFPPlusFillPolygon(static_cast<EMFPPath*>(maEMFPObjects[index].get())->GetPolygon(*this), flags & 0x8000, brushIndexOrColor);
// EMFPPlusFillPolygon(static_cast<EMFPPath*>(maEMFPObjects[index])->GetPolygon(*this), rFactoryParms, rState, rCanvas, flags & 0x8000, brushIndexOrColor);
}
break;
case EmfPlusRecordTypeDrawEllipse:
......@@ -962,17 +913,9 @@ namespace emfplushelper
::basegfx::utils::createPolygonFromEllipse(mappedCenter, mappedSize.getX(), mappedSize.getY())));
if (type == EmfPlusRecordTypeFillEllipse)
{
EMFPPlusFillPolygon(polyPolygon, flags & 0x8000, brushIndexOrColor);
// EMFPPlusFillPolygon(polyPolygon,
// rFactoryParms, rState, rCanvas, flags & 0x8000, brushIndexOrColor);
}
else
{
EMFPPlusDrawPolygon(polyPolygon, flags & 0xff);
// EMFPPlusDrawPolygon(polyPolygon,
// rFactoryParms, rState, rCanvas, flags & 0xff);
}
}
break;
case EmfPlusRecordTypeFillRects:
......@@ -1012,17 +955,9 @@ namespace emfplushelper
::basegfx::B2DPolyPolygon polyPolygon(polygon);
if (type == EmfPlusRecordTypeFillRects)
{
EMFPPlusFillPolygon(polyPolygon, isColor, brushIndexOrColor);
// EMFPPlusFillPolygon(polyPolygon,
// rFactoryParms, rState, rCanvas, isColor, brushIndexOrColor);
}
else
{
EMFPPlusDrawPolygon(polyPolygon, flags & 0xff);
// EMFPPlusDrawPolygon(polyPolygon,
// rFactoryParms, rState, rCanvas, flags & 0xff);
}
}
break;
}
......@@ -1041,7 +976,6 @@ namespace emfplushelper
path.Read(rMS, flags, *this);
EMFPPlusFillPolygon(path.GetPolygon(*this), flags & 0x8000, brushIndexOrColor);
// EMFPPlusFillPolygon(path.GetPolygon(*this), rFactoryParms, rState, rCanvas, flags & 0x8000, brushIndexOrColor);
break;
}
......@@ -1056,7 +990,6 @@ namespace emfplushelper
// 0x2000 bit indicates whether to draw an extra line between the last point
// and the first point, to close the shape.
EMFPPlusDrawPolygon(path.GetPolygon(*this, true, (flags & 0x2000)), flags);
// EMFPPlusDrawPolygon(path.GetPolygon(*this, true, (flags & 0x2000)), rFactoryParms, rState, rCanvas, flags);
break;
}
......@@ -1070,7 +1003,6 @@ namespace emfplushelper
SAL_WARN_IF(!path, "cppcanvas.emf", "EmfPlusRecordTypeDrawPath missing path");
EMFPPlusDrawPolygon(path->GetPolygon(*this), penIndex);
// EMFPPlusDrawPolygon(path->GetPolygon(*this), rFactoryParms, rState, rCanvas, penIndex);
break;
}
......@@ -1112,8 +1044,7 @@ namespace emfplushelper
cubicBezier.adaptiveSubdivideByDistance(aPolygon, 10.0);
EMFPPlusDrawPolygon(::basegfx::B2DPolyPolygon(aPolygon), flags & 0xff);
// EMFPPlusDrawPolygon(::basegfx::B2DPolyPolygon(aPolygon), rFactoryParms,
// rState, rCanvas, flags & 0xff);
// The ending coordinate of one Bezier curve is the starting coordinate of the next.
x1 = x4;
y1 = y4;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment