[Sugar-devel] creating your own templates in write activity

Manusheel Gupta manu at laptop.org
Fri Jul 17 15:25:08 EDT 2009


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 <msevior at 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<manu at 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-devel at lists.sugarlabs.org
> > http://lists.sugarlabs.org/listinfo/sugar-devel
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.laptop.org/pipermail/devel/attachments/20090718/11566647/attachment.html>


More information about the Devel mailing list