Re: GOffice components
- From: "Robert Staudinger" <robert staudinger gmail com>
- To: "Jean Bréfort" <jean brefort normalesup org>
- Cc: gnome-office-list gnome org
- Subject: Re: GOffice components
- Date: Tue, 9 May 2006 13:07:31 +0200
On 5/9/06, Jean Bréfort <jean brefort normalesup org> wrote:
Le mardi 09 mai 2006 à 11:37 +0200, Robert Staudinger a écrit :
> Hi Jean,
>
> On 3/12/06, Jean Bréfort <jean brefort normalesup org> wrote:
> [...]
> > Here is the relevant part of the API (still very unstable):
> >
> > * retrieving general information:
> >
> >
> > GSList *go_components_get_mime_types (void);
> >
> > Gets the list of mime types supported by at least one plugin
> >
> >
> > GOMimePriority go_components_get_priority (char const *mime_type);
> >
> > Gets the level of support. The returned value is one of the following:
> > GO_MIME_PRIORITY_INVALID: an error occurred (this should never happen)
> > GO_MIME_PRIORITY_DISPLAY: the component can just display the contents.
> > GO_MIME_PRIORITY_PRINT: the component can display and print the
> > contents.
> > GO_MIME_PRIORITY_PARTIAL: there is some editing capacity, but not all
> > features are supported.
> > GO_MIME_PRIORITY_FULL: full editing support.
> > GO_MIME_PRIORITY_NATIVE: the same as above, but the plugin is provided
> > by the application which is associated with the mime type.
> [...]
>
> A minor nitpick of course, but is _PRINT really a subset of _PARTIAL
> and a superset of _DISPLAY, especially for non-native apps? Sure, the
> (gtk/gnome) world is moving towards cairo and the gtk printing
> support, hmm.
With _PRINT, you cannot edit or create a new embedded object. PARTIAL
has some support for that.
Hmm, assume i'd be thinking about a rich text component based on
gecko. It's basically a gtk widget (maybe could be made to draw on a
GdkWindow provided by the hosting application).
Would such a component be possible with the current (and planned goffice)?
What about expose events, would i have to trigger expose in the
draw_cairo() function?
What about printing? It's possible to create postscript output of a
document, but anything more advanced (e.g. rendering a part of a page
for embedding) seems hard.
Thanks for any advice,
Rob
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]