<s> """<STR_LIT>""" <EOL> from __future__ import absolute_import , print_function , unicode_literals <EOL> from ... enum . chart import XL_LEGEND_POSITION <EOL> from . . text import CT_TextBody <EOL> from . . xmlchemy import BaseOxmlElement , OptionalAttribute , ZeroOrOne <EOL> class CT_Legend ( BaseOxmlElement ) : <EOL> """<STR_LIT>""" <EOL> _tag_seq = ( <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' <EOL> ) <EOL> legendPos = ZeroOrOne ( '<STR_LIT>' , successors = _tag_seq [ <NUM_LIT:1> : ] ) <EOL> layout = ZeroOrOne ( '<STR_LIT>' , successors = _tag_seq [ <NUM_LIT:3> : ] ) <EOL> overlay = ZeroOrOne ( '<STR_LIT>' , successors = _tag_seq [ <NUM_LIT:4> : ] ) <EOL> txPr = ZeroOrOne ( '<STR_LIT>' , successors = _tag_seq [ <NUM_LIT:6> : ] ) <EOL> del _tag_seq <EOL> @ property <EOL> def defRPr ( self ) : <EOL> """<STR_LIT>""" <EOL> txPr = self . get_or_add_txPr ( ) <EOL> defRPr = txPr . defRPr <EOL> return defRPr <EOL> @ property <EOL> def horz_offset ( self ) : <EOL> """<STR_LIT>""" <EOL> layout = self . layout <EOL> if layout is None : <EOL> return <NUM_LIT:0.0> <EOL> return layout . horz_offset <EOL> @ horz_offset . setter <EOL> def horz_offset ( self , offset ) : <EOL> """<STR_LIT>""" <EOL> layout = self . get_or_add_layout ( ) <EOL> layout . horz_offset = offset <EOL> def _new_txPr ( self ) : <EOL> return CT_TextBody . new_txPr ( ) <EOL> class CT_LegendPos ( BaseOxmlElement ) : <EOL> """<STR_LIT>""" <EOL> val = OptionalAttribute ( <EOL> '<STR_LIT>' , XL_LEGEND_POSITION , default = XL_LEGEND_POSITION . RIGHT <EOL> ) </s>
