PCQRSCANER/venv/Lib/site-packages/pptx/oxml/theme.py

34 lines
754 B
Python
Raw Normal View History

2019-12-22 21:51:47 +01:00
# encoding: utf-8
"""
lxml custom element classes for theme-related XML elements.
"""
from __future__ import absolute_import, division, print_function, unicode_literals
from . import parse_from_template
from .xmlchemy import BaseOxmlElement
class CT_OfficeStyleSheet(BaseOxmlElement):
"""
``<a:theme>`` element, root of a theme part
"""
_tag_seq = (
"a:themeElements",
"a:objectDefaults",
"a:extraClrSchemeLst",
"a:custClrLst",
"a:extLst",
)
del _tag_seq
@classmethod
def new_default(cls):
"""
Return a new ``<a:theme>`` element containing default settings
suitable for use with a notes master.
"""
return parse_from_template("theme")