summaryrefslogtreecommitdiff
path: root/sdext/source/pdfimport/wrapper
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <dave@treblig.org>2024-08-14 02:12:17 +0100
committerDavid Gilbert <freedesktop@treblig.org>2024-10-17 20:49:00 +0200
commita61eff73a16d891828e8723ad02fffe94b2d2216 (patch)
tree3aee850834fd8be53cb67a5bf3075119dde0096c /sdext/source/pdfimport/wrapper
parent7b218d6b4f3217b0fc629ef354b0fa4a94315597 (diff)
tdf#148526 sdext,pdfimport: Parse clipToStrokePath
Parse the soon to be created clipToStrokePath command and route it through the tree code. Change-Id: I8fa17457ffd062e91983b6ed80bd64259aa7114e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172923 Tested-by: Jenkins Reviewed-by: David Gilbert <freedesktop@treblig.org>
Diffstat (limited to 'sdext/source/pdfimport/wrapper')
-rw-r--r--sdext/source/pdfimport/wrapper/keyword_list1
-rw-r--r--sdext/source/pdfimport/wrapper/wrapper.cxx3
2 files changed, 4 insertions, 0 deletions
diff --git a/sdext/source/pdfimport/wrapper/keyword_list b/sdext/source/pdfimport/wrapper/keyword_list
index 4d1e6d2d4013..470a414f68fb 100644
--- a/sdext/source/pdfimport/wrapper/keyword_list
+++ b/sdext/source/pdfimport/wrapper/keyword_list
@@ -6,6 +6,7 @@ struct hash_entry { const char* name; enum parseKey eKey; };
%%
clipPath,CLIPPATH
+clipToStrokePath,CLIPTOSTROKEPATH
drawChar,DRAWCHAR
drawImage,DRAWIMAGE
drawLink,DRAWLINK
diff --git a/sdext/source/pdfimport/wrapper/wrapper.cxx b/sdext/source/pdfimport/wrapper/wrapper.cxx
index 6ecf0c14d7a9..5f5fe296e947 100644
--- a/sdext/source/pdfimport/wrapper/wrapper.cxx
+++ b/sdext/source/pdfimport/wrapper/wrapper.cxx
@@ -76,6 +76,7 @@ namespace
// converter
enum parseKey {
CLIPPATH,
+ CLIPTOSTROKEPATH,
DRAWCHAR,
DRAWIMAGE,
DRAWLINK,
@@ -863,6 +864,8 @@ void Parser::parseLine( std::string_view aLine )
{
case CLIPPATH:
m_pSink->intersectClip(lp.readPath()); break;
+ case CLIPTOSTROKEPATH:
+ m_pSink->intersectClipToStroke(lp.readPath()); break;
case DRAWCHAR:
lp.readChar(); break;
case DRAWIMAGE: