summaryrefslogtreecommitdiff
path: root/oox/inc
diff options
context:
space:
mode:
authorSarper Akdemir <sarper.akdemir@collabora.com>2022-09-19 09:56:57 +0300
committerMiklos Vajna <vmiklos@collabora.com>2022-09-20 08:29:29 +0200
commit9ecc76988ec46ba0d6c5cb72ac88f65da48867b1 (patch)
tree86a1409d99ad0a0b724ebd92ba6658d411dbc045 /oox/inc
parent4616f006df9497a8beaeb9181368b8708f1eeedc (diff)
tdf#89928 pptx import: implement import of BiLevel threshold
Implement import BiLevel effect's threshold value. If threshold isn't exactly 50%, we can't map it to the doc model. Therefore as a workaround apply the BiLevel (Black/White) effect with specified threshold directly to the graphic. Change-Id: Ib24d149d74b103d926560708c68bb937b02c4cfe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140136 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'oox/inc')
-rw-r--r--oox/inc/drawingml/fillproperties.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/oox/inc/drawingml/fillproperties.hxx b/oox/inc/drawingml/fillproperties.hxx
index 9cef3c98f2b1..828c858e12f2 100644
--- a/oox/inc/drawingml/fillproperties.hxx
+++ b/oox/inc/drawingml/fillproperties.hxx
@@ -113,6 +113,7 @@ struct BlipFillProperties
std::optional< sal_Int32 > moColorEffect; /// XML token for a color effect.
std::optional< sal_Int32 > moBrightness; /// Brightness in the range [-100000,100000].
std::optional< sal_Int32 > moContrast; /// Contrast in the range [-100000,100000].
+ std::optional< sal_Int32 > moBiLevelThreshold; /// Bi-Level (Black/White) effect threshold (1/1000 percent)
Color maColorChangeFrom; /// Start color of color transformation.
Color maColorChangeTo; /// Destination color of color transformation.
Color maDuotoneColors[2]; /// Duotone Colors