summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: da5ab8b)
raw | patch | inline | side by side (parent: da5ab8b)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Tue, 10 Jul 2007 20:29:40 +0000 (20:29 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Tue, 10 Jul 2007 20:29:40 +0000 (20:29 +0000) |
share/extensions/lorem_ipsum.inx | patch | blob | history | |
share/extensions/lorem_ipsum.py | patch | blob | history |
index 6adc4a91a1481db8ebda1976b182203f58abb7c1..5681cd62ca59e7c4958b5be0f6c28854ef18302b 100644 (file)
<id>com.kaioa.lorem_ipsum</id>\r
<dependency type="executable" location="extensions">lorem_ipsum.py</dependency>\r
<dependency type="executable" location="extensions">inkex.py</dependency>\r
+ <_param name="title" type="description">This effect creates the standard "Lorem Ipsum" pseudolatin placeholder text. If a flowed text is selected, Lorem Ipsum is added to it; otherwise a new flowed text object, the size of the page, is created in a new layer.</_param>\r
<param name="num" type="int" min="1" max="1000" _gui-text="Number of paragraphs">5</param>\r
<param name="sentencecount" type="int" min="2" max="100" _gui-text="Sentences per paragraph">16</param>\r
<param name="fluctuation" type="int" min="1" max="100" _gui-text="Paragraph length fluctuation (sentences)">4</param>\r
- <effect>
- <object-type>all</object-type>
- <effects-menu>
- <submenu _name="Render"/>
- </effects-menu>
- </effect>
+ <effect>\r
+ <object-type>all</object-type>\r
+ <effects-menu>\r
+ <submenu _name="Render"/>\r
+ </effects-menu>\r
+ </effect>\r
<script>\r
<command reldir="extensions" interpreter="python">lorem_ipsum.py</command>\r
</script>\r
index 602b1eedfedc3854165c6e60b8e38ac836de99e7..f4e43108ad6d108795fc27a9affcd32a245bd8d2 100644 (file)
class MyEffect(inkex.Effect):\r
def __init__(self):\r
inkex.Effect.__init__(self)\r
+ self.OptionParser.add_option("--title")\r
self.OptionParser.add_option("-n", "--numberofparagraphs",\r
action="store", type="int", \r
dest="num", default=5,\r