|
嗬嗬,謝謝!最好是再詳細一點的,麻煩了
shawn 發表於 2011-4-25 13:37:00
這個是 2011R3安裝後,viewermap.xml中的內容:
<?xml version="1.0" encoding="utf-8"?>
<!-- CAXA PDEM file and viewer map define here -->
<!-- 圖文檔開發小組 -->
<!-- 版權屬於CAXA -->
<!-- -->
<!-- ************** 編輯時請參照如下說明 ************* -->
<!-- VIEW name 項為係統自定義的viewer名稱,任意定義 -->
<!-- prog_id 項為VIEWER的PROGID,可參考ActiveX COM -->
<!-- file_ext項為該viewer能夠顯示的文件後綴名,;不能-->
<!-- 少 -->
<!-- description項為viewer的描述,任意定義 -->
<!-- METHOD name項為係統統一的方法名,不能修改,InitViewer-->
<!-- 表示係統統一的文件瀏覽器初始方法,具體的viewer -->
<!-- 怎麽如何初始化,則為nameinctrl項所定義的方法 -->
<!-- METHOD name項為係統統一的方法名,不能修改,OpenFile -->
<!-- 表示係統統一的打開文件瀏覽的方法,具體的viewer -->
<!-- 怎麽打開文件瀏覽,則為nameinctrl項所定義的方法 -->
<!-- METHOD name項為係統統一的方法名,不能修改,CloseFile -->
<!-- 表示係統統一的關閉文件瀏覽的方法,具體的viewer -->
<!-- 怎麽關閉文件瀏覽,則為nameinctrl項所定義的方法 -->
<!-- PARAM vt項表示方法參數的類型,其值如下定義: -->
<!-- VT_EMPTY= 0 -->
<!-- VT_NULL = 1 -->
<!-- VT_I2 = 2 -->
<!-- VT_I4 = 3 -->
<!-- VT_R4 = 4 -->
<!-- VT_R8 = 5 -->
<!-- VT_CY = 6 -->
<!-- VT_DATE = 7 -->
<!-- VT_BSTR = 8 -->
<!-- value項為參數值,如果該值由統一方法傳入,該值 -->
<!-- 為空,同時PARAM值為YES -->
<!-- OPENTYPE = 0,代表使用控件ID打開 -->
<!-- OPENTYPE = 1,代表使用ShellExe打開 -->
<!-- OPENTYPE = 2,代表使用CreateProcess打開 -->
<!-- ************************************************* -->
<ALLVIEW>
<VIEW name="CAXA View" prog_id="CAXAVIEW.CaxaViewCtrl.1" file_ext="exb;dwg;cxp;" description="" opentype ="0">
<METHOD name="OpenFile" nameinctrl="OpenFile">
<PARAM vt="8" value="">YES</PARAM>
</METHOD>
</VIEW>
<VIEW name="Office View" prog_id="OA.OACtrl.1" file_ext="doc;docx;ppt;pptx;xls;xlsx;" description="" opentype ="0">
<METHOD name="OpenFile" nameinctrl="open">
<PARAM vt="8" value="">YES</PARAM>
</METHOD>
<METHOD name="CloseFile" nameinctrl="Close">
<PARAM vt="8" value="">NO</PARAM>
</METHOD>
</VIEW>
<VIEW name="Office View" prog_id="Shell.Explorer.2" file_ext="doc;docx;txt;ppt;xls;icd;cut;nc;" description="" opentype ="0">
<METHOD name="OpenFile" nameinctrl="Navigate">
<PARAM vt="8" value="">YES</PARAM>
</METHOD>
</VIEW>
<VIEW name="Office View" prog_id="DSOFramer.FramerControl" file_ext="doc;docx;ppt;xls;" description="" opentype ="0">
<METHOD name="OpenFile" nameinctrl="open">
<PARAM vt="8" value="">YES</PARAM>
</METHOD>
<METHOD name="initviewer" nameinctrl="Menubar" property="yes">
<PARAM vt="8" value="0">NO</PARAM>
</METHOD>
<METHOD name="initviewer" nameinctrl="Titlebar" property="yes">
<PARAM vt="8" value="0">NO</PARAM>
</METHOD>
<METHOD name="CloseFile" nameinctrl="Close">
<PARAM vt="8" value="">NO</PARAM>
</METHOD>
</VIEW>
<VIEW name="AutoVueX View" prog_id="AUTOVUEX.AutoVueXCtrl.1" file_ext="prt;asm;" description="" opentype ="0">
<METHOD name="OpenFile" nameinctrl="SRC">
<PARAM vt="8" value="">YES</PARAM>
</METHOD>
</VIEW>
<VIEW name="HSF View" prog_id="Hoops3dStream.Hoops3dStreamCtrl.1" file_ext="ics;hsf;" description="" opentype ="0">
<METHOD name="OpenFile" nameinctrl="FileName" property="yes">
<PARAM vt="8" value="">YES</PARAM>
</METHOD>
</VIEW>
<VIEW name="eDrawings View" prog_id="EModelView.EModelViewControl" file_ext="sldprt;sldasm;slddrw;" description="" opentype ="0">
<METHOD name="OpenFile" nameinctrl="Filename" property="yes">
<PARAM vt="8" value="">YES</PARAM>
</METHOD>
</VIEW>
<VIEW name="PDF View" prog_id="AcroRd32.exe" file_ext="pdf;" description="" opentype ="2">
<METHOD name="OpenFile" nameinctrl="Filename" property="yes">
<PARAM vt="8" value="">YES</PARAM>
</METHOD>
</VIEW>
<VIEW name="EXE View" prog_id="" file_ext="exe;bat;com" description="" opentype ="1">
<METHOD name="OpenFile" nameinctrl="Filename" property="yes">
<PARAM vt="8" value="">YES</PARAM>
</METHOD>
</VIEW>
<VIEW name="KM View" prog_id="DRAWKM32.DrawKm32Ctrl.1" file_ext="kmg;" description="" opentype ="0">
<METHOD name="OpenFile" nameinctrl="Filename" property="yes">
<PARAM vt="8" value="">YES</PARAM>
</METHOD>
</VIEW>
<VIEW name="Caxa WorkFlow Template View" prog_id="EAP.WfViewerCtrl.1" file_ext="wft;" description="" opentype ="0">
<METHOD name="OpenFile" nameinctrl="Filename" property="yes">
<PARAM vt="8" value="">YES</PARAM>
</METHOD>
</VIEW>
<VIEW name="AVI View" prog_id="Storm.exe" file_ext="avi;" description="" opentype="1">
<METHOD name="OpenFile" nameinctrl="Filename" property="yes">
<PARAM vt="8" value="">YES</PARAM>
</METHOD>
</VIEW>
<VIEW name="proe View" prog_id="PVACTIVEX.PVactiveXCtrl.1" file_ext="1;2;3;4;5;6;7;8;9;" description="" opentype="0">
<METHOD name="OpenFile" nameinctrl="setFileNa |
|