Martin,<br><br>Thank you for the pointer. Very helpful.<br><br>We have been able to add the text box feature in the write activity.<br><br>Regards,<br><br>Manu<br><br><div class="gmail_quote">On Fri, Jul 17, 2009 at 5:05 AM, Martin Sevior <span dir="ltr"><<a href="mailto:msevior@gmail.com">msevior@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Manusheel,<br>
There is no specific pyabiword binding for insert<br>
textbox but your can use the following technique to access the<br>
abiword/src/wp/ap/xp/ap_EditMethods.cpp function that provide the<br>
interface to libabiword.<br>
<br>
do:<br>
<br>
self._abiword_canvas.invoke_cmd("insTextbox","",0,0)<br>
<br>
To invoke the GUI to insert a textbox.<br>
<br>
Cheers<br>
<br>
Martin<br>
<div><div></div><div class="h5"><br>
On Fri, Jul 17, 2009 at 3:18 AM, Manusheel Gupta<<a href="mailto:manu@laptop.org">manu@laptop.org</a>> wrote:<br>
> Tomeu,<br>
><br>
> Hope all is well.<br>
><br>
> We have been working on developing a template builder tool in write<br>
> activity, and wish to have your pointers on certain features-<br>
><br>
> 1. Text box - We realize that the text box tool is missing in the current<br>
> write activity, and wish to develop it. We looked at abiwidget.h file<br>
> closely, and it seems to us that there<br>
> is no method (function) provided to add textboxes. We investigated<br>
> deeper into the details, and arrived at an approach to develop the text box<br>
> feature-<br>
><br>
> a. Create a textbox class on the lines of tablecreator class- It<br>
> seems that we need to work on 4 files:<br>
><br>
> 1. OXML_Element_TextBox.cpp<br>
> 2. OXML_Element_TextBox.h<br>
> 3. OXMLi_ListenerState_TextBox.cpp<br>
> 4. OXMLi_ListenerState_TextBox.h<br>
><br>
> b. Use invoke_cmd method to insert Textbox.<br>
> We are not very clear on what all arguments can be passed in this<br>
> method, and their usage. Could you please direct us to a resource, which<br>
> could be helpful in<br>
> understanding this.<br>
><br>
> We also wish to ask you about the details of the code, which is used to<br>
> enable menu selections in the advanced abiword activity.<br>
><br>
> Thank you.<br>
><br>
> Manu<br>
><br>
</div></div>> _______________________________________________<br>
> Sugar-devel mailing list<br>
> <a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
> <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
><br>
><br>
</blockquote></div><br>