commandbar.java
来自「将Excel和Word的类型库都转换过来了」· Java 代码 · 共 364 行
JAVA
364 行
/** * JacobGen generated file --- do not edit * * (http://www.bigatti.it/projects/jacobgen) */package org.nethawker.office11;import com.jacob.com.*;public class CommandBar extends Dispatch { public static final String componentName = "Office.CommandBar"; public CommandBar() { 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 CommandBar(Dispatch d) { // take over the IDispatch pointer m_pDispatch = d.m_pDispatch; // null out the input's pointer d.m_pDispatch = 0; } public CommandBar(String compName) { super(compName); } public Object getaccParent() { return Dispatch.get(this, "accParent"); } public int getaccChildCount() { return Dispatch.get(this, "accChildCount").toInt(); } public Object getaccChild(Variant lastParam) { return Dispatch.call(this, "accChild", lastParam); } public String getaccName(Variant lastParam) { return Dispatch.call(this, "accName", lastParam).toString(); } public String getaccName() { return Dispatch.get(this, "accName").toString(); } public String getaccValue(Variant lastParam) { return Dispatch.call(this, "accValue", lastParam).toString(); } public String getaccValue() { return Dispatch.get(this, "accValue").toString(); } public String getaccDescription(Variant lastParam) { return Dispatch.call(this, "accDescription", lastParam).toString(); } public String getaccDescription() { return Dispatch.get(this, "accDescription").toString(); } public Variant getaccRole(Variant lastParam) { return Dispatch.call(this, "accRole", lastParam); } public Variant getaccRole() { return Dispatch.get(this, "accRole"); } public Variant getaccState(Variant lastParam) { return Dispatch.call(this, "accState", lastParam); } public Variant getaccState() { return Dispatch.get(this, "accState"); } public String getaccHelp(Variant lastParam) { return Dispatch.call(this, "accHelp", lastParam).toString(); } public String getaccHelp() { return Dispatch.get(this, "accHelp").toString(); } public int getaccHelpTopic(String pszHelpFile, Variant lastParam) { return Dispatch.call(this, "accHelpTopic", pszHelpFile, lastParam).toInt(); } public int getaccHelpTopic(String pszHelpFile) { return Dispatch.call(this, "accHelpTopic", pszHelpFile).toInt(); } public String getaccKeyboardShortcut(Variant lastParam) { return Dispatch.call(this, "accKeyboardShortcut", lastParam).toString(); } public String getaccKeyboardShortcut() { return Dispatch.get(this, "accKeyboardShortcut").toString(); } public Variant getaccFocus() { return Dispatch.get(this, "accFocus"); } public Variant getaccSelection() { return Dispatch.get(this, "accSelection"); } public String getaccDefaultAction(Variant lastParam) { return Dispatch.call(this, "accDefaultAction", lastParam).toString(); } public String getaccDefaultAction() { return Dispatch.get(this, "accDefaultAction").toString(); } public void accSelect(int flagsSelect, Variant lastParam) { Dispatch.call(this, "accSelect", new Variant(flagsSelect), lastParam); } public void accSelect(int flagsSelect) { Dispatch.call(this, "accSelect", new Variant(flagsSelect)); } public void accLocation(int pxLeft, int pyTop, int pcxWidth, int pcyHeight, Variant lastParam) { Dispatch.call(this, "accLocation", new Variant(pxLeft), new Variant(pyTop), new Variant(pcxWidth), new Variant(pcyHeight), lastParam); } public void accLocation(int pxLeft, int pyTop, int pcxWidth, int pcyHeight) { Dispatch.call(this, "accLocation", new Variant(pxLeft), new Variant(pyTop), new Variant(pcxWidth), new Variant(pcyHeight)); } public Variant accNavigate(int navDir, Variant lastParam) { return Dispatch.call(this, "accNavigate", new Variant(navDir), lastParam); } public Variant accNavigate(int navDir) { return Dispatch.call(this, "accNavigate", new Variant(navDir)); } public Variant accHitTest(int xLeft, int lastParam) { return Dispatch.call(this, "accHitTest", new Variant(xLeft), new Variant(lastParam)); } public void accDoDefaultAction(Variant lastParam) { Dispatch.call(this, "accDoDefaultAction", lastParam); } public void accDoDefaultAction() { Dispatch.call(this, "accDoDefaultAction"); } public void setaccName(Variant varChild, String lastParam) { Dispatch.call(this, "accName", varChild, lastParam); } public void setaccName() { Dispatch.call(this, "accName"); } public void setaccValue(Variant varChild, String lastParam) { Dispatch.call(this, "accValue", varChild, lastParam); } public void setaccValue() { Dispatch.call(this, "accValue"); } public Object getApplication() { return Dispatch.get(this, "Application"); } public int getCreator() { return Dispatch.get(this, "Creator").toInt(); } public boolean getBuiltIn() { return Dispatch.get(this, "BuiltIn").toBoolean(); } public String getContext() { return Dispatch.get(this, "Context").toString(); } public void setContext(String lastParam) { Dispatch.put(this, "Context", lastParam); } public CommandBarControls getControls() { return new CommandBarControls(Dispatch.get(this, "Controls").toDispatch()); } public void delete() { Dispatch.call(this, "Delete"); } public boolean getEnabled() { return Dispatch.get(this, "Enabled").toBoolean(); } public void setEnabled(boolean lastParam) { Dispatch.put(this, "Enabled", new Variant(lastParam)); } public CommandBarControl findControl(Variant type, Variant id, Variant tag, Variant visible, Variant lastParam) { return new CommandBarControl(Dispatch.call(this, "FindControl", type, id, tag, visible, lastParam).toDispatch()); } public CommandBarControl findControl(Variant type, Variant id, Variant tag, Variant visible) { return new CommandBarControl(Dispatch.call(this, "FindControl", type, id, tag, visible).toDispatch()); } public CommandBarControl findControl(Variant type, Variant id, Variant tag) { return new CommandBarControl(Dispatch.call(this, "FindControl", type, id, tag).toDispatch()); } public CommandBarControl findControl(Variant type, Variant id) { return new CommandBarControl(Dispatch.call(this, "FindControl", type, id).toDispatch()); } public CommandBarControl findControl(Variant type) { return new CommandBarControl(Dispatch.call(this, "FindControl", type).toDispatch()); } public CommandBarControl findControl() { return new CommandBarControl(Dispatch.call(this, "FindControl").toDispatch()); } public int getHeight() { return Dispatch.get(this, "Height").toInt(); } public void setHeight(int lastParam) { Dispatch.put(this, "Height", new Variant(lastParam)); } public int getIndex() { return Dispatch.get(this, "Index").toInt(); } public int getInstanceId() { return Dispatch.get(this, "InstanceId").toInt(); } public int getLeft() { return Dispatch.get(this, "Left").toInt(); } public void setLeft(int lastParam) { Dispatch.put(this, "Left", new Variant(lastParam)); } public String getName() { return Dispatch.get(this, "Name").toString(); } public void setName(String lastParam) { Dispatch.put(this, "Name", lastParam); } public String getNameLocal() { return Dispatch.get(this, "NameLocal").toString(); } public void setNameLocal(String lastParam) { Dispatch.put(this, "NameLocal", lastParam); } public Object getParent() { return Dispatch.get(this, "Parent"); } public int getPosition() { return Dispatch.get(this, "Position").toInt(); } public void setPosition(int lastParam) { Dispatch.put(this, "Position", new Variant(lastParam)); } public int getRowIndex() { return Dispatch.get(this, "RowIndex").toInt(); } public void setRowIndex(int lastParam) { Dispatch.put(this, "RowIndex", new Variant(lastParam)); } public int getProtection() { return Dispatch.get(this, "Protection").toInt(); } public void setProtection(int lastParam) { Dispatch.put(this, "Protection", new Variant(lastParam)); } public void reset() { Dispatch.call(this, "Reset"); } public void showPopup(Variant x, Variant lastParam) { Dispatch.call(this, "ShowPopup", x, lastParam); } public void showPopup(Variant x) { Dispatch.call(this, "ShowPopup", x); } public void showPopup() { Dispatch.call(this, "ShowPopup"); } public int getTop() { return Dispatch.get(this, "Top").toInt(); } public void setTop(int lastParam) { Dispatch.put(this, "Top", new Variant(lastParam)); } public int getType() { return Dispatch.get(this, "Type").toInt(); } public boolean getVisible() { return Dispatch.get(this, "Visible").toBoolean(); } public void setVisible(boolean lastParam) { Dispatch.put(this, "Visible", new Variant(lastParam)); } public int getWidth() { return Dispatch.get(this, "Width").toInt(); } public void setWidth(int lastParam) { Dispatch.put(this, "Width", new Variant(lastParam)); } public boolean getAdaptiveMenu() { return Dispatch.get(this, "AdaptiveMenu").toBoolean(); } public void setAdaptiveMenu(boolean lastParam) { Dispatch.put(this, "AdaptiveMenu", new Variant(lastParam)); } public int getId() { return Dispatch.get(this, "Id").toInt(); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?