summaryrefslogtreecommitdiffstats
path: root/include/drawinglayer/tools/primitive2dxmldump.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2024-02-03 14:18:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-02-04 11:31:54 +0100
commit14f6b169b5d04f4bfcb28bf7e10fad21dc6f191c (patch)
treecae58d755c9cd4c95af6aca37d0080cd42fc3ef5 /include/drawinglayer/tools/primitive2dxmldump.hxx
parentuse ViewShell DOCCOLOR when available for charts (diff)
downloadcore-14f6b169b5d04f4bfcb28bf7e10fad21dc6f191c.tar.gz
core-14f6b169b5d04f4bfcb28bf7e10fad21dc6f191c.zip
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 'include/drawinglayer/tools/primitive2dxmldump.hxx')
-rw-r--r--include/drawinglayer/tools/primitive2dxmldump.hxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/drawinglayer/tools/primitive2dxmldump.hxx b/include/drawinglayer/tools/primitive2dxmldump.hxx
index 9dc06e7b674d..29c432f24680 100644
--- a/include/drawinglayer/tools/primitive2dxmldump.hxx
+++ b/include/drawinglayer/tools/primitive2dxmldump.hxx
@@ -22,15 +22,18 @@ namespace tools { class XmlWriter; }
namespace drawinglayer
{
-class DRAWINGLAYER_DLLPUBLIC Primitive2dXmlDump final
+class DRAWINGLAYER_DLLPUBLIC Primitive2dXmlDump
{
private:
std::vector<bool> maFilter;
+
+protected:
void decomposeAndWrite(const drawinglayer::primitive2d::Primitive2DContainer& rPrimitive2DSequence, tools::XmlWriter& rWriter);
+ static OUString idToString(sal_uInt32 nId);
public:
Primitive2dXmlDump();
- ~Primitive2dXmlDump();
+ virtual ~Primitive2dXmlDump();
/** Dumps the input primitive sequence to xml into a file or memory stream and parses the xml for testing.
*
@@ -44,6 +47,8 @@ public:
/** Dumps the input primitive sequence to xml into a file. */
void dump(const drawinglayer::primitive2d::Primitive2DContainer& rPrimitive2DSequence, const OUString& rStreamName);
+ /** overridden by svx::ExtendedPrimitive2dXmlDump */
+ virtual bool decomposeAndWrite( const drawinglayer::primitive2d::BasePrimitive2D& /*rPrimitive2DSequence*/, ::tools::XmlWriter& /*rWriter*/) { return false; }
};
}