_global.java

来自「将Excel和Word的类型库都转换过来了」· Java 代码 · 共 484 行 · 第 1/2 页

JAVA
484
字号
/** * JacobGen generated file --- do not edit * * (http://www.bigatti.it/projects/jacobgen) */package org.nethawker.word11;import com.jacob.com.*;public class _Global extends Dispatch {	public static final String componentName = "Word._Global";	public _Global() {		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 _Global(Dispatch d) {		// take over the IDispatch pointer		m_pDispatch = d.m_pDispatch;		// null out the input's pointer		d.m_pDispatch = 0;	}	public _Global(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 getName() {		return Dispatch.get(this, "Name").toString();	}	public Documents getDocuments() {		return new Documents(Dispatch.get(this, "Documents").toDispatch());	}	public Windows getWindows() {		return new Windows(Dispatch.get(this, "Windows").toDispatch());	}	public Document getActiveDocument() {		return new Document(Dispatch.get(this, "ActiveDocument").toDispatch());	}	public Window getActiveWindow() {		return new Window(Dispatch.get(this, "ActiveWindow").toDispatch());	}	public Selection getSelection() {		return new Selection(Dispatch.get(this, "Selection").toDispatch());	}	public Object getWordBasic() {		return Dispatch.get(this, "WordBasic");	}	public boolean getPrintPreview() {		return Dispatch.get(this, "PrintPreview").toBoolean();	}	public void setPrintPreview(boolean lastParam) {		Dispatch.put(this, "PrintPreview", new Variant(lastParam));	}	public RecentFiles getRecentFiles() {		return new RecentFiles(Dispatch.get(this, "RecentFiles").toDispatch());	}	public Template getNormalTemplate() {		return new Template(Dispatch.get(this, "NormalTemplate").toDispatch());	}	public System getSystem() {		return new System(Dispatch.get(this, "System").toDispatch());	}	public AutoCorrect getAutoCorrect() {		return new AutoCorrect(Dispatch.get(this, "AutoCorrect").toDispatch());	}	public FontNames getFontNames() {		return new FontNames(Dispatch.get(this, "FontNames").toDispatch());	}	public FontNames getLandscapeFontNames() {		return new FontNames(Dispatch.get(this, "LandscapeFontNames").toDispatch());	}	public FontNames getPortraitFontNames() {		return new FontNames(Dispatch.get(this, "PortraitFontNames").toDispatch());	}	public Languages getLanguages() {		return new Languages(Dispatch.get(this, "Languages").toDispatch());	}	public org.nethawker.office11.Assistant getAssistant() {		return new org.nethawker.office11.Assistant(Dispatch.get(this, "Assistant").toDispatch());	}	public FileConverters getFileConverters() {		return new FileConverters(Dispatch.get(this, "FileConverters").toDispatch());	}	public Dialogs getDialogs() {		return new Dialogs(Dispatch.get(this, "Dialogs").toDispatch());	}	public CaptionLabels getCaptionLabels() {		return new CaptionLabels(Dispatch.get(this, "CaptionLabels").toDispatch());	}	public AutoCaptions getAutoCaptions() {		return new AutoCaptions(Dispatch.get(this, "AutoCaptions").toDispatch());	}	public AddIns getAddIns() {		return new AddIns(Dispatch.get(this, "AddIns").toDispatch());	}	public Tasks getTasks() {		return new Tasks(Dispatch.get(this, "Tasks").toDispatch());	}	public Object getMacroContainer() {		return Dispatch.get(this, "MacroContainer");	}	public org.nethawker.office11.CommandBars getCommandBars() {		return new org.nethawker.office11.CommandBars(Dispatch.get(this, "CommandBars").toDispatch());	}	public SynonymInfo getSynonymInfo(String word, Variant lastParam) {		return new SynonymInfo(Dispatch.call(this, "SynonymInfo", word, lastParam).toDispatch());	}	public SynonymInfo getSynonymInfo(String word) {		return new SynonymInfo(Dispatch.call(this, "SynonymInfo", word).toDispatch());	}	public VBE getVBE() {		return new VBE(Dispatch.get(this, "VBE").toDispatch());	}	public ListGalleries getListGalleries() {		return new ListGalleries(Dispatch.get(this, "ListGalleries").toDispatch());	}	public String getActivePrinter() {		return Dispatch.get(this, "ActivePrinter").toString();	}	public void setActivePrinter(String lastParam) {		Dispatch.put(this, "ActivePrinter", lastParam);	}	public Templates getTemplates() {		return new Templates(Dispatch.get(this, "Templates").toDispatch());	}	public Object getCustomizationContext() {		return Dispatch.get(this, "CustomizationContext");	}	public void setCustomizationContext(Object lastParam) {		Dispatch.put(this, "CustomizationContext", lastParam);	}	public KeyBindings getKeyBindings() {		return new KeyBindings(Dispatch.get(this, "KeyBindings").toDispatch());	}	public KeysBoundTo getKeysBoundTo(int keyCategory, String command, Variant lastParam) {		return new KeysBoundTo(Dispatch.call(this, "KeysBoundTo", new Variant(keyCategory), command, lastParam).toDispatch());	}	public KeysBoundTo getKeysBoundTo(int keyCategory, String command) {		return new KeysBoundTo(Dispatch.call(this, "KeysBoundTo", new Variant(keyCategory), command).toDispatch());	}	public KeyBinding getFindKey(int keyCode, Variant lastParam) {		return new KeyBinding(Dispatch.call(this, "FindKey", new Variant(keyCode), lastParam).toDispatch());	}	public KeyBinding getFindKey(int keyCode) {		return new KeyBinding(Dispatch.call(this, "FindKey", new Variant(keyCode)).toDispatch());	}	public Options getOptions() {		return new Options(Dispatch.get(this, "Options").toDispatch());	}	public Dictionaries getCustomDictionaries() {		return new Dictionaries(Dispatch.get(this, "CustomDictionaries").toDispatch());	}	public void setStatusBar(String lastParam) {		Dispatch.put(this, "StatusBar", lastParam);	}	public boolean getShowVisualBasicEditor() {		return Dispatch.get(this, "ShowVisualBasicEditor").toBoolean();	}	public void setShowVisualBasicEditor(boolean lastParam) {		Dispatch.put(this, "ShowVisualBasicEditor", new Variant(lastParam));	}	public boolean getIsObjectValid(Object lastParam) {		return Dispatch.call(this, "IsObjectValid", lastParam).toBoolean();	}	public HangulHanjaConversionDictionaries getHangulHanjaDictionaries() {		return new HangulHanjaConversionDictionaries(Dispatch.get(this, "HangulHanjaDictionaries").toDispatch());	}	public boolean repeat(Variant lastParam) {		return Dispatch.call(this, "Repeat", lastParam).toBoolean();	}	public boolean repeat() {		return Dispatch.call(this, "Repeat").toBoolean();	}

⌨️ 快捷键说明

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