[sugar] Re: abiword plugin

Martin Sevior msevior
Sun Dec 10 18:08:32 EST 2006


On Sun, 2006-12-10 at 14:16 +0100, Tomeu Vizoso wrote:
> Hi folks,
> 
> what's the plan with the olpc abiword plugin for mozilla?
> 
> Is this plugin intended to wrap abiwidget or a descendant of it?
> 
> When you tell me so, I am ready to wrap it and put the plugin in
> whichever repository you want.
> 

Hi Tomeu,
         In addition to Rob's plan outlined earlier, it would be useful
to include the new events created by dom and emitted by abiwidget in the
python bindings.

These are in abi/src/wp/ap/unix/abiwidget.cpp
.......

static const struct WidgetAction abiwidget_actions [] = {
	{ G_TYPE_BOOLEAN, "bold", AV_CHG_FMTCHAR | AV_CHG_MOTION,
fire_bool_char_prop},
	{ G_TYPE_BOOLEAN, "italic", AV_CHG_FMTCHAR | AV_CHG_MOTION,
fire_bool_char_prop},
	{ G_TYPE_BOOLEAN, "underline", AV_CHG_FMTCHAR | AV_CHG_MOTION,
fire_bool_char_prop},
	{ G_TYPE_BOOLEAN, "overline", AV_CHG_FMTCHAR | AV_CHG_MOTION,
fire_bool_char_prop},
	{ G_TYPE_BOOLEAN, "line-through", AV_CHG_FMTCHAR | AV_CHG_MOTION,
fire_bool_char_prop},
	{ G_TYPE_BOOLEAN, "topline", AV_CHG_FMTCHAR | AV_CHG_MOTION,
fire_bool_char_prop},
	{ G_TYPE_BOOLEAN, "bottomline", AV_CHG_FMTCHAR | AV_CHG_MOTION,
fire_bool_char_prop},
	{ G_TYPE_BOOLEAN, "subscript", AV_CHG_FMTCHAR | AV_CHG_MOTION,
fire_bool_char_prop},
	{ G_TYPE_BOOLEAN, "superscript", AV_CHG_FMTCHAR | AV_CHG_MOTION,
fire_bool_char_prop},
	{ G_TYPE_DOUBLE,  "font-size", AV_CHG_FMTCHAR | AV_CHG_MOTION,
fire_double_char_prop},
	{ G_TYPE_STRING,  "font-family", AV_CHG_FMTCHAR | AV_CHG_MOTION,
fire_string_char_prop},
	{ G_TYPE_BOOLEAN, "can-undo", AV_CHG_ALL, fire_undo_redo},
	{ G_TYPE_BOOLEAN, "can-redo", AV_CHG_ALL, fire_undo_redo}
};

We will also maintain the python abiword activity. It will continue to
be a useful backup should libcrossmark not be ready in time.

Cheers

Martin


> Regards,
> 
> Tomeu
> 



More information about the Sugar-devel mailing list