新书推介:《语义网技术体系》
作者:瞿裕忠,胡伟,程龚
   XML论坛     W3CHINA.ORG讨论区     计算机科学论坛     SOAChina论坛     Blog     开放翻译计划     新浪微博  
 
  • 首页
  • 登录
  • 注册
  • 软件下载
  • 资料下载
  • 核心成员
  • 帮助
  •   Add to Google

    >> 本版讨论SVG, GML, X3D, VRML, VML, XAML, AVALON, Batik等基于XML的图形技术,以及有关GIS的应用。
    [返回] 中文XML论坛 - 专业的XML技术讨论区XML.ORG.CN讨论区 - 高级XML应用『 SVG/GML/VRML/X3D/XAML 』 → [转帖]Adobe SVG Viewer IDL 查看新帖用户列表

      发表一个新主题  发表一个新投票  回复主题  (订阅本版) 您是本帖的第 4102 个阅读者浏览上一篇主题  刷新本主题   树形显示贴子 浏览下一篇主题
     * 贴子主题: [转帖]Adobe SVG Viewer IDL 举报  打印  推荐  IE收藏夹 
       本主题类别:     
     SCYANGYU 帅哥哟,离线,有人找我吗?处女座1971-9-20
      
      
      威望:7
      等级:大四(每天看1小时莱昂氏)
      文章:217
      积分:1281
      门派:XML.ORG.CN
      注册:2005/2/17

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给SCYANGYU发送一个短消息 把SCYANGYU加入好友 查看SCYANGYU的个人资料 搜索SCYANGYU在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 引用回复这个贴子 回复这个贴子 查看SCYANGYU的博客楼主
    发贴心情 [转帖]Adobe SVG Viewer IDL

    The following is the interface definition for the Adobe SVG Viewer. It is a standard IDL document, and is used to link to the Viewer as an ActiveX object. This allows the viewer to be used as a component within a Windows program written in any language which supports IDL, such as C, C++, C#, Delphi, Java, Javascript, Visual Basic, and others.

    To use the following code, highlight all of the text within the light yellow box, copy and paste it into a text editor, then save it as NPSVG3.IDL in any convenient directory. After saving the IDL file, follow the directions provided with your programming IDE on how to include it within your project.

    Have Fun!

    Brian Grainger granam@shaw.ca

    // typelib filename: NPSVG3.dll

    [
      uuid(8415B62C-3C1B-416E-B5D7-40D983A9FA50),
      version(3.0),
      helpstring("SVGActiveX 3.0 Type Library"),
      custom(DE77BA64-517C-11D1-A2DA-0000F8773CE9, 83951780),
      custom(DE77BA63-517C-11D1-A2DA-0000F8773CE9, 1004130005)

    ]
    library SVGACTIVEXLib
    {
        // TLib :     // TLib : OLE Automation : {00020430-0000-0000-C000-000000000046}
        importlib("Stdole2.tlb");

        // Forward declare all types defined in this typelib
        dispinterface _ISVGControlEvents;
        interface ISVGControl;

        [
          uuid(BD719F6D-BC21-4435-9BA1-AFD2F73E22B2),
          helpstring("_ISVGControlEvents Interface")
        ]
        dispinterface _ISVGControlEvents {
            properties:
            methods:
        };

        [
          uuid(377B5106-3B4E-4A2D-8520-8767590CAC86),
          helpstring("SVGCtl Class")
        ]
        coclass SVGCtl {
            [default] interface ISVGControl;
        };

        [
          odl,
          uuid(41066AF3-53A3-4C67-83AC-14688B13B31E),
          helpstring("ISVGControl Interface"),
          dual,
          oleautomation
        ]
        interface ISVGControl : IDispatch {
            [id(0x00000014), propget, helpstring("property SRC")]
            HRESULT SRC([out, retval] BSTR* pVal);
            [id(0x00000014), propput, helpstring("property SRC")]
            HRESULT SRC([in] BSTR pVal);
            [id(0x60020002), helpstring("gets the src")]
            HRESULT getSrc([out, retval] BSTR* pVal);
            [id(0x60020003), helpstring("sets the src")]
            HRESULT setSrc([in] BSTR newVal);
            [id(0xfffffdf3), propget, helpstring("Stock property ReadyState")]
            HRESULT ReadyState([out, retval] long* pnReadyState);
            [id(0x00000065), helpstring("method reload")]
            HRESULT reload();
            [id(0x00000002), propget, helpstring("property DefaultFontFamily")]
            HRESULT DefaultFontFamily([out, retval] BSTR* pVal);
            [id(0x00000002), propput, helpstring("property DefaultFontFamily")]
            HRESULT DefaultFontFamily([in] BSTR pVal);
            [id(0x60020008), helpstring("getDefaultFontFamily")]
            HRESULT getDefaultFontFamily([out, retval] BSTR* pVal);
            [id(0x60020009), helpstring("setDefaultFontFamily")]
            HRESULT setDefaultFontFamily([in] BSTR newVal);
            [id(0x00000003), propget, helpstring("property DefaultFontSize")]
            HRESULT DefaultFontSize([out, retval] single* pVal);
            [id(0x00000003), propput, helpstring("property DefaultFontSize")]
            HRESULT DefaultFontSize([in] single pVal);
            [id(0x6002000c), helpstring("getDefaultFontSize")]
            HRESULT getDefaultFontSize([out, retval] single* pVal);
            [id(0x6002000d), helpstring("setDefaultFontSize")]
            HRESULT setDefaultFontSize([in] single newVal);
            [id(0x00000004), propget, helpstring("property DefaultAntialias")]
            HRESULT DefaultAntialias([out, retval] long* pVal);
            [id(0x00000004), propput, helpstring("property DefaultAntialias")]
            HRESULT DefaultAntialias([in] long pVal);
            [id(0x60020010), helpstring("getDefaultAntialias")]
            HRESULT getDefaultAntialias([out, retval] long* pVal);
            [id(0x60020011), helpstring("setDefaultAntialias")]
            HRESULT setDefaultAntialias([in] long newVal);
            [id(0x00000012), propget, helpstring("property FULLSCREEN")]
            HRESULT FULLSCREEN([out, retval] BSTR* pVal);
            [id(0x00000012), propput, helpstring("property FULLSCREEN")]
            HRESULT FULLSCREEN([in] BSTR pVal);
            [id(0x00000013), propget, helpstring("property USE_SVGZ")]
            HRESULT USE_SVGZ([out, retval] BSTR* pVal);
            [id(0x00000013), propput, helpstring("property USE_SVGZ")]
            HRESULT USE_SVGZ([in] BSTR pVal);
            [id(0x00000015), propget, helpstring("property WMODE")]
            HRESULT WMODE([out, retval] BSTR* pVal);
            [id(0x00000015), propput, helpstring("property WMODE")]
            HRESULT WMODE([in] BSTR pVal);
            [id(0x00000017), propget, helpstring("property INTERNALID")]
            HRESULT INTERNALID([out, retval] BSTR* pVal);
            [id(0x00000017), propput, helpstring("property INTERNALID")]
            HRESULT INTERNALID([in] BSTR pVal);
            [id(0x00000016), propget, helpstring("property window")]
            HRESULT window([out, retval] IDispatch** pVal);
            [id(0x0000006d), helpstring("getWindow")]
            HRESULT getWindow([out, retval] IDispatch** pVal);
            [id(0x0000006b), helpstring("method getSVGDocument")]
            HRESULT getSVGDocument([out, retval] IDispatch** ppSVGDocument);
            [id(0x0000006a), helpstring("method getSVGViewerVersion")]
            HRESULT getSVGViewerVersion([out, retval] BSTR* pVersion);
            [id(0x0000006c), helpstring("method disableAutoUpdate")]
            HRESULT disableAutoUpdate();
        };

        [
          uuid(78156A80-C6A1-4BBF-8E6A-3CD390EEB4E2),
          helpstring("SVG Behavior Factory Class")
        ]
        coclass SVGBehaviorFactory {
            [default] interface IDispatch;
        };

        [
          uuid(ABD2F8EA-F1D9-4704-BDC3-A07741F967A2),
          helpstring("SVG Scriptable Renderer Class")
        ]
        coclass SVGRenderer {
            [default] interface IDispatch;
        };
    };


    http://wiki.svg.org/index.php/AsvIDL


       收藏   分享  
    顶(0)
      




    ----------------------------------------------
    http://borland.mblogger.cn/scyangyu/

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2005/2/27 10:53:00
     
     GoogleAdSense处女座1971-9-20
      
      
      等级:大一新生
      文章:1
      积分:50
      门派:无门无派
      院校:未填写
      注册:2007-01-01
    给Google AdSense发送一个短消息 把Google AdSense加入好友 查看Google AdSense的个人资料 搜索Google AdSense在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 访问Google AdSense的主页 引用回复这个贴子 回复这个贴子 查看Google AdSense的博客广告
    2024/12/2 0:24:54

    本主题贴数1,分页: [1]

    管理选项修改tag | 锁定 | 解锁 | 提升 | 删除 | 移动 | 固顶 | 总固顶 | 奖励 | 惩罚 | 发布公告
    W3C Contributing Supporter! W 3 C h i n a ( since 2003 ) 旗 下 站 点
    苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
    3,812.012ms