diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2024-02-03 14:18:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-02-04 11:31:54 +0100 |
commit | 14f6b169b5d04f4bfcb28bf7e10fad21dc6f191c (patch) | |
tree | cae58d755c9cd4c95af6aca37d0080cd42fc3ef5 /svx/qa | |
parent | 32b814355b50e2f271ce46058990049bc7098266 (diff) |
Move mnTransparenceForShadow down to SdrCellPrimitive2D
where it belongs. It appears it was only put into
BufferedDecompositionPrimitive2D so that it can be accessed
by Primitive2DXmlDump, so fix that by creating an extended version
of the dumper for use in svx.
Change-Id: Idb0b849c4fa538bbede882e48c2d090669c2325a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162949
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/qa')
-rw-r--r-- | svx/qa/unit/sdr.cxx | 12 | ||||
-rw-r--r-- | svx/qa/unit/svdraw.cxx | 6 | ||||
-rw-r--r-- | svx/qa/unit/table.cxx | 4 | ||||
-rw-r--r-- | svx/qa/unit/unodraw.cxx | 4 |
4 files changed, 13 insertions, 13 deletions
diff --git a/svx/qa/unit/sdr.cxx b/svx/qa/unit/sdr.cxx index 15759a2f406f..a58209941b5c 100644 --- a/svx/qa/unit/sdr.cxx +++ b/svx/qa/unit/sdr.cxx @@ -12,7 +12,7 @@ #include <com/sun/star/drawing/XDrawPagesSupplier.hpp> #include <com/sun/star/drawing/XDrawPage.hpp> -#include <drawinglayer/tools/primitive2dxmldump.hxx> +#include <extendedprimitive2dxmldump.hxx> #include <rtl/ustring.hxx> #include <svx/sdr/contact/displayinfo.hxx> #include <svx/sdr/contact/viewcontact.hxx> @@ -67,7 +67,7 @@ CPPUNIT_TEST_FIXTURE(SdrTest, testShadowScaleOrigin) = renderPageToPrimitives(xDrawPage); // Examine the created primitives. - drawinglayer::Primitive2dXmlDump aDumper; + svx::ExtendedPrimitive2dXmlDump aDumper; xmlDocUniquePtr pDocument = aDumper.dumpAndParse(xPrimitiveSequence); sal_Int32 fShadowX = getXPath(pDocument, "//shadow/transform"_ostr, "xy13"_ostr).toInt32(); sal_Int32 fShadowY = getXPath(pDocument, "//shadow/transform"_ostr, "xy23"_ostr).toInt32(); @@ -93,7 +93,7 @@ CPPUNIT_TEST_FIXTURE(SdrTest, testShadowAlignment) = renderPageToPrimitives(xDrawPage); // Examine the created primitives. - drawinglayer::Primitive2dXmlDump aDumper; + svx::ExtendedPrimitive2dXmlDump aDumper; xmlDocUniquePtr pDocument = aDumper.dumpAndParse(xPrimitiveSequence); // Without the accompanying fix in place, this test would have failed with: @@ -136,7 +136,7 @@ CPPUNIT_TEST_FIXTURE(SdrTest, testShadowAlignment) = renderPageToPrimitives(xDrawPage); // Examine the created primitives. - drawinglayer::Primitive2dXmlDump aDumper; + svx::ExtendedPrimitive2dXmlDump aDumper; xmlDocUniquePtr pDocument = aDumper.dumpAndParse(xPrimitiveSequence); // Without the accompanying fix in place, this test would have failed with: @@ -159,7 +159,7 @@ CPPUNIT_TEST_FIXTURE(SdrTest, testZeroWidthTextWrap) = renderPageToPrimitives(xDrawPage); // Examine the created primitives. - drawinglayer::Primitive2dXmlDump aDumper; + svx::ExtendedPrimitive2dXmlDump aDumper; xmlDocUniquePtr pDocument = aDumper.dumpAndParse(xPrimitiveSequence); // Without the accompanying fix in place, this test would have failed with: // - Expected: 1 @@ -181,7 +181,7 @@ CPPUNIT_TEST_FIXTURE(SdrTest, testSlideBackground) = renderPageToPrimitives(xDrawPage); // Then make sure that the background has a bitmap: - drawinglayer::Primitive2dXmlDump aDumper; + svx::ExtendedPrimitive2dXmlDump aDumper; xmlDocUniquePtr pDocument = aDumper.dumpAndParse(xPrimitiveSequence); // Without the accompanying fix in place, this test would have failed with: // - Expected: 1 diff --git a/svx/qa/unit/svdraw.cxx b/svx/qa/unit/svdraw.cxx index 66f4528d889f..53f2d2a9f981 100644 --- a/svx/qa/unit/svdraw.cxx +++ b/svx/qa/unit/svdraw.cxx @@ -18,7 +18,7 @@ #include <com/sun/star/drawing/PolyPolygonBezierCoords.hpp> #include <com/sun/star/drawing/HomogenMatrix3.hpp> -#include <drawinglayer/tools/primitive2dxmldump.hxx> +#include <extendedprimitive2dxmldump.hxx> #include <rtl/ustring.hxx> #include <vcl/virdev.hxx> #include <svx/sdr/contact/displayinfo.hxx> @@ -80,7 +80,7 @@ xmlDocUniquePtr lcl_dumpAndParseFirstObjectWithAssert(SdrPage* pSdrPage) drawinglayer::primitive2d::Primitive2DContainer xPrimitiveSequence; rDrawPageVOContact.getPrimitive2DSequenceHierarchy(aDisplayInfo, xPrimitiveSequence); - drawinglayer::Primitive2dXmlDump aDumper; + svx::ExtendedPrimitive2dXmlDump aDumper; xmlDocUniquePtr pXmlDoc = aDumper.dumpAndParse(xPrimitiveSequence); CPPUNIT_ASSERT(pXmlDoc); return pXmlDoc; @@ -285,7 +285,7 @@ CPPUNIT_TEST_FIXTURE(SvdrawTest, testRectangleObject) drawinglayer::primitive2d::Primitive2DContainer xPrimitiveSequence; rDrawPageVOContact.getPrimitive2DSequenceHierarchy(aDisplayInfo, xPrimitiveSequence); - drawinglayer::Primitive2dXmlDump aDumper; + svx::ExtendedPrimitive2dXmlDump aDumper; xmlDocUniquePtr pXmlDoc = aDumper.dumpAndParse(xPrimitiveSequence); assertXPath(pXmlDoc, "/primitive2D"_ostr, 1); diff --git a/svx/qa/unit/table.cxx b/svx/qa/unit/table.cxx index e51cd3f860ce..e5abaeb06e57 100644 --- a/svx/qa/unit/table.cxx +++ b/svx/qa/unit/table.cxx @@ -12,7 +12,7 @@ #include <com/sun/star/drawing/XDrawPagesSupplier.hpp> #include <com/sun/star/drawing/XDrawPage.hpp> -#include <drawinglayer/tools/primitive2dxmldump.hxx> +#include <extendedprimitive2dxmldump.hxx> #include <rtl/ustring.hxx> #include <svx/sdr/contact/displayinfo.hxx> #include <svx/sdr/contact/viewcontact.hxx> @@ -74,7 +74,7 @@ CPPUNIT_TEST_FIXTURE(Test, testTableShadowBlur) = renderPageToPrimitives(xDrawPage); // Then make sure that the cell fill part of the shadow has the expected transparency: - drawinglayer::Primitive2dXmlDump aDumper; + svx::ExtendedPrimitive2dXmlDump aDumper; xmlDocUniquePtr pDocument = aDumper.dumpAndParse(xPrimitiveSequence); // Without the accompanying fix in place, this test would have failed with: //- Expected: 0 diff --git a/svx/qa/unit/unodraw.cxx b/svx/qa/unit/unodraw.cxx index c077fd53a4bc..a7417356e13a 100644 --- a/svx/qa/unit/unodraw.cxx +++ b/svx/qa/unit/unodraw.cxx @@ -27,7 +27,7 @@ #include <svx/unopage.hxx> #include <vcl/virdev.hxx> #include <svx/sdr/contact/displayinfo.hxx> -#include <drawinglayer/tools/primitive2dxmldump.hxx> +#include <extendedprimitive2dxmldump.hxx> #include <svx/sdr/contact/viewcontact.hxx> #include <svx/sdr/contact/viewobjectcontact.hxx> #include <unotools/streamwrap.hxx> @@ -145,7 +145,7 @@ CPPUNIT_TEST_FIXTURE(UnodrawTest, testTableShadowDirect) rDrawPageVOContact.getPrimitive2DSequenceHierarchy(aDisplayInfo, xPrimitiveSequence); // Check the primitives. - drawinglayer::Primitive2dXmlDump aDumper; + svx::ExtendedPrimitive2dXmlDump aDumper; xmlDocUniquePtr pDocument = aDumper.dumpAndParse(xPrimitiveSequence); assertXPath(pDocument, "//shadow"_ostr, /*nNumberOfNodes=*/1); |