General XMetaL Discussion

XMetaL Community Forum General XMetaL Discussion Is it possible to give the user facility to change the document font style?

  • biswajitsr

    Is it possible to give the user facility to change the document font style?

    Participants 0
    Replies 1
    Last Activity 12 years, 4 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.

    Reply

    Derek Read

    Reply to: Is it possible to give the user facility to change the document font style?

    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.

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support