General XMetaL Discussion
biswajitsr June 8, 2010 at 5:48 am
Is it possible to give the user facility to change the document font style?June 8, 2010 at 5:48 amParticipants 0Replies 1Last Activity 12 years, 8 months ago
Is it possible to give the user facility to change the document font style? My requirement is to give the user of XMetal, option to change the font style of document.Derek Read June 8, 2010 at 6:07 am
Reply to: Is it possible to give the user facility to change the document font style?June 8, 2010 at 6:07 am
The answer is yes, but which “yes” the answer actually will be depends on exactly what you mean.
Are you talking about aiding the user in inserting XML markup and styling it appropriately (for example by styling an element called as bold text)? If this is the case then you should refer to the XMetaL Developer Customization Guide. This discusses the creation of customization files, including the CSS file that defines the styling for a particular document type.
If you mean you already have a customization (DTD/XSD, CSS, CTM and possibly other files) that has CSS styling configured already and you wish to give the user some ability to modify that CSS styling and your user understands CSS you could tell them where you have installed the customization files (DTD, CSS, CTM, MCR or XAC, etc) and they can modify the CSS file that controls all the styling.
There are also a number of APIs that allow you to control CSS settings through script, so, depending on how much coding you wish to do, how much control you wish to give the user, and the type of interface you want to build for the user to interact with this (form, menu items, toolbar buttons, simple prompts, just a list of macros, etc) the amount of script you need to write would vary. In this case you will also want to read the Customization Guide and look for the CSS related APIs in the Programmers Guide. There are a few examples of styling content in the Journalist demo inside the file journalist.mcr (Macros folder) in the events On_Mouse_Over and On_Mouse_Out. Most likely any functionality you want to add will be different, but this might give you an idea of what is possible.
- You must be logged in to reply to this topic.