_commandbars.java

来自「将Excel和Word的类型库都转换过来了」· Java 代码 · 共 228 行

JAVA
228
字号
/** * JacobGen generated file --- do not edit * * (http://www.bigatti.it/projects/jacobgen) */package org.nethawker.office11;import com.jacob.com.*;public class _CommandBars extends Dispatch {	public static final String componentName = "Office._CommandBars";	public _CommandBars() {		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 _CommandBars(Dispatch d) {		// take over the IDispatch pointer		m_pDispatch = d.m_pDispatch;		// null out the input's pointer		d.m_pDispatch = 0;	}	public _CommandBars(String compName) {		super(compName);	}	public Object getApplication() {		return Dispatch.get(this, "Application");	}	public int getCreator() {		return Dispatch.get(this, "Creator").toInt();	}	public CommandBarControl getActionControl() {		return new CommandBarControl(Dispatch.get(this, "ActionControl").toDispatch());	}	public CommandBar getActiveMenuBar() {		return new CommandBar(Dispatch.get(this, "ActiveMenuBar").toDispatch());	}	public CommandBar add(Variant name, Variant position, Variant menuBar, Variant lastParam) {		return new CommandBar(Dispatch.call(this, "Add", name, position, menuBar, lastParam).toDispatch());	}	public CommandBar add(Variant name, Variant position, Variant menuBar) {		return new CommandBar(Dispatch.call(this, "Add", name, position, menuBar).toDispatch());	}	public CommandBar add(Variant name, Variant position) {		return new CommandBar(Dispatch.call(this, "Add", name, position).toDispatch());	}	public CommandBar add(Variant name) {		return new CommandBar(Dispatch.call(this, "Add", name).toDispatch());	}	public CommandBar add() {		return new CommandBar(Dispatch.call(this, "Add").toDispatch());	}	public int getCount() {		return Dispatch.get(this, "Count").toInt();	}	public boolean getDisplayTooltips() {		return Dispatch.get(this, "DisplayTooltips").toBoolean();	}	public void setDisplayTooltips(boolean lastParam) {		Dispatch.put(this, "DisplayTooltips", new Variant(lastParam));	}	public boolean getDisplayKeysInTooltips() {		return Dispatch.get(this, "DisplayKeysInTooltips").toBoolean();	}	public void setDisplayKeysInTooltips(boolean lastParam) {		Dispatch.put(this, "DisplayKeysInTooltips", new Variant(lastParam));	}	public CommandBarControl findControl(Variant type, Variant id, Variant tag, Variant lastParam) {		return new CommandBarControl(Dispatch.call(this, "FindControl", type, id, tag, lastParam).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 CommandBar getItem(Variant lastParam) {		return new CommandBar(Dispatch.call(this, "Item", lastParam).toDispatch());	}	public boolean getLargeButtons() {		return Dispatch.get(this, "LargeButtons").toBoolean();	}	public void setLargeButtons(boolean lastParam) {		Dispatch.put(this, "LargeButtons", new Variant(lastParam));	}	public int getMenuAnimationStyle() {		return Dispatch.get(this, "MenuAnimationStyle").toInt();	}	public void setMenuAnimationStyle(int lastParam) {		Dispatch.put(this, "MenuAnimationStyle", new Variant(lastParam));	}	public Variant get_NewEnum() {		return Dispatch.get(this, "_NewEnum");	}	public Object getParent() {		return Dispatch.get(this, "Parent");	}	public void releaseFocus() {		Dispatch.call(this, "ReleaseFocus");	}	public int getIdsString(int ids, String lastParam) {		return Dispatch.call(this, "IdsString", new Variant(ids), lastParam).toInt();	}	public int getTmcGetName(int tmc, String lastParam) {		return Dispatch.call(this, "TmcGetName", new Variant(tmc), lastParam).toInt();	}	public boolean getAdaptiveMenus() {		return Dispatch.get(this, "AdaptiveMenus").toBoolean();	}	public void setAdaptiveMenus(boolean lastParam) {		Dispatch.put(this, "AdaptiveMenus", new Variant(lastParam));	}	public CommandBarControls findControls(Variant type, Variant id, Variant tag, Variant lastParam) {		return new CommandBarControls(Dispatch.call(this, "FindControls", type, id, tag, lastParam).toDispatch());	}	public CommandBarControls findControls(Variant type, Variant id, Variant tag) {		return new CommandBarControls(Dispatch.call(this, "FindControls", type, id, tag).toDispatch());	}	public CommandBarControls findControls(Variant type, Variant id) {		return new CommandBarControls(Dispatch.call(this, "FindControls", type, id).toDispatch());	}	public CommandBarControls findControls(Variant type) {		return new CommandBarControls(Dispatch.call(this, "FindControls", type).toDispatch());	}	public CommandBarControls findControls() {		return new CommandBarControls(Dispatch.call(this, "FindControls").toDispatch());	}	public CommandBar addEx(Variant tbidOrName, Variant position, Variant menuBar, Variant temporary, Variant lastParam) {		return new CommandBar(Dispatch.call(this, "AddEx", tbidOrName, position, menuBar, temporary, lastParam).toDispatch());	}	public CommandBar addEx(Variant tbidOrName, Variant position, Variant menuBar, Variant temporary) {		return new CommandBar(Dispatch.call(this, "AddEx", tbidOrName, position, menuBar, temporary).toDispatch());	}	public CommandBar addEx(Variant tbidOrName, Variant position, Variant menuBar) {		return new CommandBar(Dispatch.call(this, "AddEx", tbidOrName, position, menuBar).toDispatch());	}	public CommandBar addEx(Variant tbidOrName, Variant position) {		return new CommandBar(Dispatch.call(this, "AddEx", tbidOrName, position).toDispatch());	}	public CommandBar addEx(Variant tbidOrName) {		return new CommandBar(Dispatch.call(this, "AddEx", tbidOrName).toDispatch());	}	public CommandBar addEx() {		return new CommandBar(Dispatch.call(this, "AddEx").toDispatch());	}	public boolean getDisplayFonts() {		return Dispatch.get(this, "DisplayFonts").toBoolean();	}	public void setDisplayFonts(boolean lastParam) {		Dispatch.put(this, "DisplayFonts", new Variant(lastParam));	}	public boolean getDisableCustomize() {		return Dispatch.get(this, "DisableCustomize").toBoolean();	}	public void setDisableCustomize(boolean lastParam) {		Dispatch.put(this, "DisableCustomize", new Variant(lastParam));	}	public boolean getDisableAskAQuestionDropdown() {		return Dispatch.get(this, "DisableAskAQuestionDropdown").toBoolean();	}	public void setDisableAskAQuestionDropdown(boolean lastParam) {		Dispatch.put(this, "DisableAskAQuestionDropdown", new Variant(lastParam));	}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?