Home Forums DITA and XMetaL Discussion XMetaL customizing: How to support new image types? Reply To: XMetaL customizing: How to support new image types?

t3programmer

Reply to: XMetaL customizing: How to support new image types?

Hello,

I got one step further: I replaced the OCXReplacement entry for “Shell.Explorer.2” by

[code]

img
SVG
{D27CDB6E-AE6D-11cf-96B8-444553540000} ShockwaveFlash.ShockwaveFlash.10

[/code]

By inserting

[code]
ipc.Control.LoadMovie( 0,  “file:///” + ActiveDocument.Path + “\” + src + fileExt );
[/code]

I can use the Flash player for displaying “swf” files. “flv” files are not yet displayed. How to do this, I'll try to figure out myself.

However, I have now lost the SVG functionality since the new ActiveX control replaces the old one.

  • How can I define that both “Shell.Explorer.2” and “ShockwaveFlash.ShockwaveFlash.10” are available as in-place-controls in XMetaL? I would like to use “Shell.Explorer.2” for images with extension “svg” and “ShockwaveFlash.ShockwaveFlash.10” for images with extension “swf”.

Still, I have another question:

  • Within my debugging environment “XMetal Developer 6.0” the in-place-controls are no longer working. That means:
    • When debugging the code of “SVG_OnShouldCreate.js”, in the 'Debug Variables Window' it says 'undefined' for 'ipc.Control' and 'Server exception error' for 'ipc.NextEventParam'.
    • After opening in XMetaL, the “swf” images are displayed like missing graphics.

    In contrast, without debugging, XMetaL displays the “swf” images correctly. What can be reasons why the in-place-controls do not work in the VisualStudio 2008 debugging session?

Reply

Products
Downloads
Support