1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
| # Copyright (c) 2010-2024 openpyxl
|
| from openpyxl.descriptors.serialisable import Serialisable
|
| from openpyxl.descriptors.nested import (
| NestedBool,
| NestedFloat,
| NestedMinMax,
| NestedNoneSet,
| )
|
| class PictureOptions(Serialisable):
|
| tagname = "pictureOptions"
|
| applyToFront = NestedBool(allow_none=True, nested=True)
| applyToSides = NestedBool(allow_none=True, nested=True)
| applyToEnd = NestedBool(allow_none=True, nested=True)
| pictureFormat = NestedNoneSet(values=(['stretch', 'stack', 'stackScale']), nested=True)
| pictureStackUnit = NestedFloat(allow_none=True, nested=True)
|
| __elements__ = ('applyToFront', 'applyToSides', 'applyToEnd', 'pictureFormat', 'pictureStackUnit')
|
| def __init__(self,
| applyToFront=None,
| applyToSides=None,
| applyToEnd=None,
| pictureFormat=None,
| pictureStackUnit=None,
| ):
| self.applyToFront = applyToFront
| self.applyToSides = applyToSides
| self.applyToEnd = applyToEnd
| self.pictureFormat = pictureFormat
| self.pictureStackUnit = pictureStackUnit
|
|