📄 version.java
字号:
/** * JacobGen generated file --- do not edit * * (http://www.bigatti.it/projects/jacobgen) */package org.nethawker.word11;import com.jacob.com.*;public class Version extends Dispatch { public static final String componentName = "Word.Version"; public Version() { super(componentName); } /** * This constructor is used instead of a case operation to * turn a Dispatch object into a wider object - it must exist * in every wrapper class whose instances may be returned from * method calls wrapped in VT_DISPATCH Variants. */ public Version(Dispatch d) { // take over the IDispatch pointer m_pDispatch = d.m_pDispatch; // null out the input's pointer d.m_pDispatch = 0; } public Version(String compName) { super(compName); } public Application getApplication() { return new Application(Dispatch.get(this, "Application").toDispatch()); } public int getCreator() { return Dispatch.get(this, "Creator").toInt(); } public Object getParent() { return Dispatch.get(this, "Parent"); } public String getSavedBy() { return Dispatch.get(this, "SavedBy").toString(); } public String getComment() { return Dispatch.get(this, "Comment").toString(); } public java.util.Date getDate() { return comDateToJavaDate(Dispatch.get(this, "Date").toDate()); } public int getIndex() { return Dispatch.get(this, "Index").toInt(); } public void openOld() { Dispatch.call(this, "OpenOld"); } public void delete() { Dispatch.call(this, "Delete"); } public Document open() { return new Document(Dispatch.call(this, "Open").toDispatch()); } static long zoneOffset = java.util.Calendar.getInstance().get(java.util.Calendar.ZONE_OFFSET); static java.util.Date comDateToJavaDate(double comDate) { comDate = comDate - 25569D; long millis = Math.round(86400000L * comDate) - zoneOffset; java.util.Calendar cal = java.util.Calendar.getInstance(); cal.setTime(new java.util.Date(millis)); millis -= cal.get(cal.DST_OFFSET); return new java.util.Date(millis); } static double javaDateToComDate(java.util.Date javaDate) { java.util.Calendar cal = java.util.Calendar.getInstance(); cal.setTime(javaDate); long gmtOffset = (cal.get(cal.ZONE_OFFSET) + cal.get(cal.DST_OFFSET)); long millis = javaDate.getTime() + gmtOffset; return 25569D+millis/86400000D; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -