27 |
""" |
""" |
28 |
uml_directive.arguments = (1, 0, 0) |
uml_directive.arguments = (1, 0, 0) |
29 |
uml_directive.options = {'caption': docutils.parsers.rst.directives.unchanged, |
uml_directive.options = {'caption': docutils.parsers.rst.directives.unchanged, |
30 |
'scale': docutils.parsers.rst.directives.nonnegative_int, |
'width': docutils.parsers.rst.directives.unchanged, |
31 |
} |
} |
32 |
uml_directive.content = 1 |
uml_directive.content = 1 |
33 |
|
|
63 |
trans = mputils._slashify(umltool.settings['to_tmpdir']) |
trans = mputils._slashify(umltool.settings['to_tmpdir']) |
64 |
#print trans |
#print trans |
65 |
src = trans+attributes['name']+"_gen.eps" |
src = trans+attributes['name']+"_gen.eps" |
66 |
uml_node = docutils.nodes.image(uri=src, alt="UML: "+attributes['name'], |
options['uri'] = src |
67 |
_uml=attributes['name']) |
options['alt'] = "UML: "+attributes['name'] |
68 |
|
options['_uml'] = attributes['name'] |
69 |
|
uml_node = docutils.nodes.image(src, **options) |
70 |
|
|
71 |
#if we have a caption, we want to make it a figure (or do we?) |
#if we have a caption, we want to make it a figure (or do we?) |
72 |
if options.has_key('caption') and len(options['caption']) > 0: |
if options.has_key('caption') and len(options['caption']) > 0: |