summaryrefslogtreecommitdiff
path: root/svgio/inc/svgstyleattributes.hxx
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2024-10-02 13:07:47 +0200
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2024-10-05 20:03:52 +0200
commitfcd2db0dff13ac592573c53c7da5fa6844695514 (patch)
tree39dda15ce926cd9319942537a9b358a397bb997b /svgio/inc/svgstyleattributes.hxx
parent9f4571da1df09461a58a7a7d1a7f0efcb7ac4959 (diff)
tdf#163212: context-fill/context-stroke can also use gradients
Change-Id: Ic6f7f5e0817d8f5fccee64938004aa899bde47dc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174382 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Tested-by: Jenkins Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174384 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'svgio/inc/svgstyleattributes.hxx')
-rw-r--r--svgio/inc/svgstyleattributes.hxx15
1 files changed, 10 insertions, 5 deletions
diff --git a/svgio/inc/svgstyleattributes.hxx b/svgio/inc/svgstyleattributes.hxx
index 30cbab965644..46b8baf4d1d3 100644
--- a/svgio/inc/svgstyleattributes.hxx
+++ b/svgio/inc/svgstyleattributes.hxx
@@ -248,18 +248,21 @@ namespace svgio::svgreader
bool mbStrokeDasharraySet : 1;
// tdf#155651 Defines if 'context-fill' is used in fill
- bool mbContextFill : 1;
+ bool mbUseFillFromContextFill : 1;
+
+ // tdf#155651 Defines if 'context-stroke' is used in fill
+ bool mbUseFillFromContextStroke : 1;
+
+ // tdf#155651 Defines if 'context-fill' is used in stroke
+ bool mbUseStrokeFromContextFill : 1;
// tdf#155651 Defines if 'context-stroke' is used in stroke
- bool mbContextStroke : 1;
+ bool mbUseStrokeFromContextStroke : 1;
// tdf#94765 Check id references in gradient/pattern getters
OUString maNodeFillURL;
OUString maNodeStrokeURL;
- const basegfx::BColor* maContextFill;
- const basegfx::BColor* maContextStroke;
-
/// internal helpers
void add_fillGradient(
const basegfx::B2DPolyPolygon& rPath,
@@ -320,6 +323,8 @@ namespace svgio::svgreader
void readCssStyle(std::u16string_view rCandidate);
const SvgStyleAttributes* getParentStyle() const;
+ const SvgMarkerNode* getMarkerParentNode() const;
+
SvgStyleAttributes(SvgNode& rOwner);
~SvgStyleAttributes();