Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I customise the Property dialog for an element within my DTD?

0
Posted

How do I customise the Property dialog for an element within my DTD?

0

You can improve support for a DTD by creating a plugin node property dialog. To do this, edit the xds file for the document type, and add a element inside the main , with a “service-id” attribute giving the registered ID of the code providing the GtkWidget for elements of that type. FIXME: write information on how to actually create the plugin For example for the DocBook element; the xds file gives an ID of “docbook-orderedlist-properties”. This is hooked up in the source code in src/plugin-docbook.c to a routine (the C function “docbook_orderedlist_properties_factory_method”) which loads a GUI from a Glade file, and uses a set of utility functions that bind the widgets in the glade file to attributes of the XML element. For example, the radio buttons are linked to the various valid values of the “numeration” attribute.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123