summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-07-10 20:29:40 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-07-10 20:29:40 +0000
commit5c25e06a318c2053e8f9ef60875dbef1f646f2f3 (patch)
tree130c2b739a7f69563ca5f2ace1575d7bf52b7994
parentadd item handler so that right-click works over an item; fixes 1751318 (diff)
downloadinkscape-5c25e06a318c2053e8f9ef60875dbef1f646f2f3.tar.gz
inkscape-5c25e06a318c2053e8f9ef60875dbef1f646f2f3.zip
patch 1741941
(bzr r3221)
-rw-r--r--share/extensions/lorem_ipsum.inx13
-rw-r--r--share/extensions/lorem_ipsum.py1
2 files changed, 8 insertions, 6 deletions
diff --git a/share/extensions/lorem_ipsum.inx b/share/extensions/lorem_ipsum.inx
index 6adc4a91a..5681cd62c 100644
--- a/share/extensions/lorem_ipsum.inx
+++ b/share/extensions/lorem_ipsum.inx
@@ -3,15 +3,16 @@
<id>com.kaioa.lorem_ipsum</id>
<dependency type="executable" location="extensions">lorem_ipsum.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
+ <_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>
<param name="num" type="int" min="1" max="1000" _gui-text="Number of paragraphs">5</param>
<param name="sentencecount" type="int" min="2" max="100" _gui-text="Sentences per paragraph">16</param>
<param name="fluctuation" type="int" min="1" max="100" _gui-text="Paragraph length fluctuation (sentences)">4</param>
- <effect>
- <object-type>all</object-type>
- <effects-menu>
- <submenu _name="Render"/>
- </effects-menu>
- </effect>
+ <effect>
+ <object-type>all</object-type>
+ <effects-menu>
+ <submenu _name="Render"/>
+ </effects-menu>
+ </effect>
<script>
<command reldir="extensions" interpreter="python">lorem_ipsum.py</command>
</script>
diff --git a/share/extensions/lorem_ipsum.py b/share/extensions/lorem_ipsum.py
index 602b1eedf..f4e43108a 100644
--- a/share/extensions/lorem_ipsum.py
+++ b/share/extensions/lorem_ipsum.py
@@ -176,6 +176,7 @@ foo=[
class MyEffect(inkex.Effect):
def __init__(self):
inkex.Effect.__init__(self)
+ self.OptionParser.add_option("--title")
self.OptionParser.add_option("-n", "--numberofparagraphs",
action="store", type="int",
dest="num", default=5,