_workbook.java
来自「将Excel和Word的类型库都转换过来了」· Java 代码 · 共 1,133 行 · 第 1/3 页
JAVA
1,133 行
/** * JacobGen generated file --- do not edit * * (http://www.bigatti.it/projects/jacobgen) */package org.nethawker.excel11;import com.jacob.com.*;public class _Workbook extends Dispatch { public static final String componentName = "Excel._Workbook"; public _Workbook() { 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 _Workbook(Dispatch d) { // take over the IDispatch pointer m_pDispatch = d.m_pDispatch; // null out the input's pointer d.m_pDispatch = 0; } public _Workbook(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 Dispatch getParent() { return Dispatch.get(this, "Parent").toDispatch(); } public boolean getAcceptLabelsInFormulas() { return Dispatch.get(this, "AcceptLabelsInFormulas").toBoolean(); } public void setAcceptLabelsInFormulas(boolean lastParam) { Dispatch.put(this, "AcceptLabelsInFormulas", new Variant(lastParam)); } public void activate() { Dispatch.call(this, "Activate"); } public Chart getActiveChart() { return new Chart(Dispatch.get(this, "ActiveChart").toDispatch()); } public Dispatch getActiveSheet() { return Dispatch.get(this, "ActiveSheet").toDispatch(); } public String getAuthor() { return Dispatch.get(this, "Author").toString(); } public void setAuthor(String lastParam) { Dispatch.put(this, "Author", lastParam); } public int getAutoUpdateFrequency() { return Dispatch.get(this, "AutoUpdateFrequency").toInt(); } public void setAutoUpdateFrequency(int lastParam) { Dispatch.put(this, "AutoUpdateFrequency", new Variant(lastParam)); } public boolean getAutoUpdateSaveChanges() { return Dispatch.get(this, "AutoUpdateSaveChanges").toBoolean(); } public void setAutoUpdateSaveChanges(boolean lastParam) { Dispatch.put(this, "AutoUpdateSaveChanges", new Variant(lastParam)); } public int getChangeHistoryDuration() { return Dispatch.get(this, "ChangeHistoryDuration").toInt(); } public void setChangeHistoryDuration(int lastParam) { Dispatch.put(this, "ChangeHistoryDuration", new Variant(lastParam)); } public Dispatch getBuiltinDocumentProperties() { return Dispatch.get(this, "BuiltinDocumentProperties").toDispatch(); } public void changeFileAccess(int mode, Variant writePassword, Variant lastParam) { Dispatch.call(this, "ChangeFileAccess", new Variant(mode), writePassword, lastParam); } public void changeFileAccess(int mode, Variant writePassword) { Dispatch.call(this, "ChangeFileAccess", new Variant(mode), writePassword); } public void changeFileAccess(int mode) { Dispatch.call(this, "ChangeFileAccess", new Variant(mode)); } public void changeLink(String name, String newName, int lastParam) { Dispatch.call(this, "ChangeLink", name, newName, new Variant(lastParam)); } public void changeLink(String name, String newName) { Dispatch.call(this, "ChangeLink", name, newName); } public Sheets getCharts() { return new Sheets(Dispatch.get(this, "Charts").toDispatch()); } public void close(Variant saveChanges, Variant filename, Variant lastParam) { Dispatch.call(this, "Close", saveChanges, filename, lastParam); } public void close(Variant saveChanges, Variant filename) { Dispatch.call(this, "Close", saveChanges, filename); } public void close(Variant saveChanges) { Dispatch.call(this, "Close", saveChanges); } public void close() { Dispatch.call(this, "Close"); } public String getCodeName() { return Dispatch.get(this, "CodeName").toString(); } public String get_CodeName() { return Dispatch.get(this, "_CodeName").toString(); } public void set_CodeName(String lastParam) { Dispatch.put(this, "_CodeName", lastParam); } public Variant getColors(Variant lastParam) { return Dispatch.call(this, "Colors", lastParam); } public Variant getColors() { return Dispatch.get(this, "Colors"); } public void setColors(Variant index, Variant lastParam) { Dispatch.call(this, "Colors", index, lastParam); } public void setColors() { Dispatch.call(this, "Colors"); } public org.nethawker.office11._CommandBars getCommandBars() { return new org.nethawker.office11._CommandBars(Dispatch.get(this, "CommandBars").toDispatch()); } public String getComments() { return Dispatch.get(this, "Comments").toString(); } public void setComments(String lastParam) { Dispatch.put(this, "Comments", lastParam); } public int getConflictResolution() { return Dispatch.get(this, "ConflictResolution").toInt(); } public void setConflictResolution(int lastParam) { Dispatch.put(this, "ConflictResolution", new Variant(lastParam)); } public Dispatch getContainer() { return Dispatch.get(this, "Container").toDispatch(); } public boolean getCreateBackup() { return Dispatch.get(this, "CreateBackup").toBoolean(); } public Dispatch getCustomDocumentProperties() { return Dispatch.get(this, "CustomDocumentProperties").toDispatch(); } public boolean getDate1904() { return Dispatch.get(this, "Date1904").toBoolean(); } public void setDate1904(boolean lastParam) { Dispatch.put(this, "Date1904", new Variant(lastParam)); } public void deleteNumberFormat(String lastParam) { Dispatch.call(this, "DeleteNumberFormat", lastParam); } public Sheets getDialogSheets() { return new Sheets(Dispatch.get(this, "DialogSheets").toDispatch()); } public int getDisplayDrawingObjects() { return Dispatch.get(this, "DisplayDrawingObjects").toInt(); } public void setDisplayDrawingObjects(int lastParam) { Dispatch.put(this, "DisplayDrawingObjects", new Variant(lastParam)); } public boolean exclusiveAccess() { return Dispatch.call(this, "ExclusiveAccess").toBoolean(); } public int getFileFormat() { return Dispatch.get(this, "FileFormat").toInt(); } public void forwardMailer() { Dispatch.call(this, "ForwardMailer"); } public String getFullName() { return Dispatch.get(this, "FullName").toString(); } public boolean getHasMailer() { return Dispatch.get(this, "HasMailer").toBoolean(); } public void setHasMailer(boolean lastParam) { Dispatch.put(this, "HasMailer", new Variant(lastParam)); } public boolean getHasPassword() { return Dispatch.get(this, "HasPassword").toBoolean(); } public boolean getHasRoutingSlip() { return Dispatch.get(this, "HasRoutingSlip").toBoolean(); } public void setHasRoutingSlip(boolean lastParam) { Dispatch.put(this, "HasRoutingSlip", new Variant(lastParam)); } public boolean getIsAddin() { return Dispatch.get(this, "IsAddin").toBoolean(); } public void setIsAddin(boolean lastParam) { Dispatch.put(this, "IsAddin", new Variant(lastParam)); } public String getKeywords() { return Dispatch.get(this, "Keywords").toString(); } public void setKeywords(String lastParam) { Dispatch.put(this, "Keywords", lastParam); } public Variant linkInfo(String name, int linkInfo, Variant type, Variant lastParam) { return Dispatch.call(this, "LinkInfo", name, new Variant(linkInfo), type, lastParam); } public Variant linkInfo(String name, int linkInfo, Variant type) { return Dispatch.call(this, "LinkInfo", name, new Variant(linkInfo), type); } public Variant linkInfo(String name, int linkInfo) { return Dispatch.call(this, "LinkInfo", name, new Variant(linkInfo)); } public Variant linkSources(Variant lastParam) { return Dispatch.call(this, "LinkSources", lastParam); } public Variant linkSources() { return Dispatch.call(this, "LinkSources"); } public Mailer getMailer() { return new Mailer(Dispatch.get(this, "Mailer").toDispatch()); } public void mergeWorkbook(Variant lastParam) { Dispatch.call(this, "MergeWorkbook", lastParam); } public Sheets getModules() { return new Sheets(Dispatch.get(this, "Modules").toDispatch()); } public boolean getMultiUserEditing() { return Dispatch.get(this, "MultiUserEditing").toBoolean(); } public String getName() { return Dispatch.get(this, "Name").toString(); } public Dispatch getNames() { return Dispatch.get(this, "Names").toDispatch(); } public Window newWindow() { return new Window(Dispatch.call(this, "NewWindow").toDispatch()); } public String getOnSave() { return Dispatch.get(this, "OnSave").toString(); } public void setOnSave(String lastParam) { Dispatch.put(this, "OnSave", lastParam); } public String getOnSheetActivate() { return Dispatch.get(this, "OnSheetActivate").toString(); } public void setOnSheetActivate(String lastParam) { Dispatch.put(this, "OnSheetActivate", lastParam); } public String getOnSheetDeactivate() { return Dispatch.get(this, "OnSheetDeactivate").toString(); } public void setOnSheetDeactivate(String lastParam) { Dispatch.put(this, "OnSheetDeactivate", lastParam); } public void openLinks(String name, Variant readOnly, Variant lastParam) { Dispatch.call(this, "OpenLinks", name, readOnly, lastParam); } public void openLinks(String name, Variant readOnly) { Dispatch.call(this, "OpenLinks", name, readOnly); } public void openLinks(String name) { Dispatch.call(this, "OpenLinks", name); } public String getPath() { return Dispatch.get(this, "Path").toString(); } public boolean getPersonalViewListSettings() { return Dispatch.get(this, "PersonalViewListSettings").toBoolean(); } public void setPersonalViewListSettings(boolean lastParam) {
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?