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