Re: GOffice components
"Robert Staudinger" <[email protected]> Tue, 9 May 2006 13:07:31 +0200
| Newsgroups | gmane.comp.gnome.office.general |
|---|---|
| Message-ID | <[email protected]> |
On 5/9/06, Jean Br=E9fort <[email protected]> wrote: > Le mardi 09 mai 2006 =E0 11:37 +0200, Robert Staudinger a =E9crit : > > Hi Jean, > > > > On 3/12/06, Jean Br=E9fort <[email protected]> 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 provide= d > > > 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