aboutsummaryrefslogtreecommitdiff
path: root/.venv/lib/python3.12/site-packages/openpyxl/chartsheet/publish.py
diff options
context:
space:
mode:
Diffstat (limited to '.venv/lib/python3.12/site-packages/openpyxl/chartsheet/publish.py')
-rw-r--r--.venv/lib/python3.12/site-packages/openpyxl/chartsheet/publish.py58
1 files changed, 58 insertions, 0 deletions
diff --git a/.venv/lib/python3.12/site-packages/openpyxl/chartsheet/publish.py b/.venv/lib/python3.12/site-packages/openpyxl/chartsheet/publish.py
new file mode 100644
index 00000000..4f5714e8
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/openpyxl/chartsheet/publish.py
@@ -0,0 +1,58 @@
+# Copyright (c) 2010-2024 openpyxl
+
+from openpyxl.descriptors import (
+ Bool,
+ Integer,
+ String,
+ Set,
+ Sequence
+)
+from openpyxl.descriptors.serialisable import Serialisable
+
+
+class WebPublishItem(Serialisable):
+ tagname = "webPublishItem"
+
+ id = Integer()
+ divId = String()
+ sourceType = Set(values=(['sheet', 'printArea', 'autoFilter', 'range', 'chart', 'pivotTable', 'query', 'label']))
+ sourceRef = String()
+ sourceObject = String(allow_none=True)
+ destinationFile = String()
+ title = String(allow_none=True)
+ autoRepublish = Bool(allow_none=True)
+
+ def __init__(self,
+ id=None,
+ divId=None,
+ sourceType=None,
+ sourceRef=None,
+ sourceObject=None,
+ destinationFile=None,
+ title=None,
+ autoRepublish=None,
+ ):
+ self.id = id
+ self.divId = divId
+ self.sourceType = sourceType
+ self.sourceRef = sourceRef
+ self.sourceObject = sourceObject
+ self.destinationFile = destinationFile
+ self.title = title
+ self.autoRepublish = autoRepublish
+
+
+class WebPublishItems(Serialisable):
+ tagname = "WebPublishItems"
+
+ count = Integer(allow_none=True)
+ webPublishItem = Sequence(expected_type=WebPublishItem, )
+
+ __elements__ = ('webPublishItem',)
+
+ def __init__(self,
+ count=None,
+ webPublishItem=None,
+ ):
+ self.count = len(webPublishItem)
+ self.webPublishItem = webPublishItem