_document.java

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

JAVA
1,463
字号
/** * JacobGen generated file --- do not edit * * (http://www.bigatti.it/projects/jacobgen) */package org.nethawker.word11;import com.jacob.com.*;public class _Document extends Dispatch {	public static final String componentName = "Word._Document";	public _Document() {		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 _Document(Dispatch d) {		// take over the IDispatch pointer		m_pDispatch = d.m_pDispatch;		// null out the input's pointer		d.m_pDispatch = 0;	}	public _Document(String compName) {		super(compName);	}	public String getName() {		return Dispatch.get(this, "Name").toString();	}	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 Object getBuiltInDocumentProperties() {		return Dispatch.get(this, "BuiltInDocumentProperties");	}	public Object getCustomDocumentProperties() {		return Dispatch.get(this, "CustomDocumentProperties");	}	public String getPath() {		return Dispatch.get(this, "Path").toString();	}	public Bookmarks getBookmarks() {		return new Bookmarks(Dispatch.get(this, "Bookmarks").toDispatch());	}	public Tables getTables() {		return new Tables(Dispatch.get(this, "Tables").toDispatch());	}	public Footnotes getFootnotes() {		return new Footnotes(Dispatch.get(this, "Footnotes").toDispatch());	}	public Endnotes getEndnotes() {		return new Endnotes(Dispatch.get(this, "Endnotes").toDispatch());	}	public Comments getComments() {		return new Comments(Dispatch.get(this, "Comments").toDispatch());	}	public int getType() {		return Dispatch.get(this, "Type").toInt();	}	public boolean getAutoHyphenation() {		return Dispatch.get(this, "AutoHyphenation").toBoolean();	}	public void setAutoHyphenation(boolean lastParam) {		Dispatch.put(this, "AutoHyphenation", new Variant(lastParam));	}	public boolean getHyphenateCaps() {		return Dispatch.get(this, "HyphenateCaps").toBoolean();	}	public void setHyphenateCaps(boolean lastParam) {		Dispatch.put(this, "HyphenateCaps", new Variant(lastParam));	}	public int getHyphenationZone() {		return Dispatch.get(this, "HyphenationZone").toInt();	}	public void setHyphenationZone(int lastParam) {		Dispatch.put(this, "HyphenationZone", new Variant(lastParam));	}	public int getConsecutiveHyphensLimit() {		return Dispatch.get(this, "ConsecutiveHyphensLimit").toInt();	}	public void setConsecutiveHyphensLimit(int lastParam) {		Dispatch.put(this, "ConsecutiveHyphensLimit", new Variant(lastParam));	}	public Sections getSections() {		return new Sections(Dispatch.get(this, "Sections").toDispatch());	}	public Paragraphs getParagraphs() {		return new Paragraphs(Dispatch.get(this, "Paragraphs").toDispatch());	}	public Words getWords() {		return new Words(Dispatch.get(this, "Words").toDispatch());	}	public Sentences getSentences() {		return new Sentences(Dispatch.get(this, "Sentences").toDispatch());	}	public Characters getCharacters() {		return new Characters(Dispatch.get(this, "Characters").toDispatch());	}	public Fields getFields() {		return new Fields(Dispatch.get(this, "Fields").toDispatch());	}	public FormFields getFormFields() {		return new FormFields(Dispatch.get(this, "FormFields").toDispatch());	}	public Styles getStyles() {		return new Styles(Dispatch.get(this, "Styles").toDispatch());	}	public Frames getFrames() {		return new Frames(Dispatch.get(this, "Frames").toDispatch());	}	public TablesOfFigures getTablesOfFigures() {		return new TablesOfFigures(Dispatch.get(this, "TablesOfFigures").toDispatch());	}	public Variables getVariables() {		return new Variables(Dispatch.get(this, "Variables").toDispatch());	}	public MailMerge getMailMerge() {		return new MailMerge(Dispatch.get(this, "MailMerge").toDispatch());	}	public Envelope getEnvelope() {		return new Envelope(Dispatch.get(this, "Envelope").toDispatch());	}	public String getFullName() {		return Dispatch.get(this, "FullName").toString();	}	public Revisions getRevisions() {		return new Revisions(Dispatch.get(this, "Revisions").toDispatch());	}	public TablesOfContents getTablesOfContents() {		return new TablesOfContents(Dispatch.get(this, "TablesOfContents").toDispatch());	}	public TablesOfAuthorities getTablesOfAuthorities() {		return new TablesOfAuthorities(Dispatch.get(this, "TablesOfAuthorities").toDispatch());	}	public PageSetup getPageSetup() {		return new PageSetup(Dispatch.get(this, "PageSetup").toDispatch());	}	public void setPageSetup(PageSetup lastParam) {		Dispatch.put(this, "PageSetup", lastParam);	}	public Windows getWindows() {		return new Windows(Dispatch.get(this, "Windows").toDispatch());	}	public boolean getHasRoutingSlip() {		return Dispatch.get(this, "HasRoutingSlip").toBoolean();	}	public void setHasRoutingSlip(boolean lastParam) {		Dispatch.put(this, "HasRoutingSlip", new Variant(lastParam));	}	public RoutingSlip getRoutingSlip() {		return new RoutingSlip(Dispatch.get(this, "RoutingSlip").toDispatch());	}	public boolean getRouted() {		return Dispatch.get(this, "Routed").toBoolean();	}	public TablesOfAuthoritiesCategories getTablesOfAuthoritiesCategories() {		return new TablesOfAuthoritiesCategories(Dispatch.get(this, "TablesOfAuthoritiesCategories").toDispatch());	}	public Indexes getIndexes() {		return new Indexes(Dispatch.get(this, "Indexes").toDispatch());	}	public boolean getSaved() {		return Dispatch.get(this, "Saved").toBoolean();	}	public void setSaved(boolean lastParam) {		Dispatch.put(this, "Saved", new Variant(lastParam));	}	public Range getContent() {		return new Range(Dispatch.get(this, "Content").toDispatch());	}	public Window getActiveWindow() {		return new Window(Dispatch.get(this, "ActiveWindow").toDispatch());	}	public int getKind() {		return Dispatch.get(this, "Kind").toInt();	}	public void setKind(int lastParam) {		Dispatch.put(this, "Kind", new Variant(lastParam));	}	public boolean getReadOnly() {		return Dispatch.get(this, "ReadOnly").toBoolean();	}	public Subdocuments getSubdocuments() {		return new Subdocuments(Dispatch.get(this, "Subdocuments").toDispatch());	}	public boolean getIsMasterDocument() {		return Dispatch.get(this, "IsMasterDocument").toBoolean();	}	public float getDefaultTabStop() {		return Dispatch.get(this, "DefaultTabStop").toFloat();	}	public void setDefaultTabStop(float lastParam) {		Dispatch.put(this, "DefaultTabStop", new Variant(lastParam));	}	public boolean getEmbedTrueTypeFonts() {		return Dispatch.get(this, "EmbedTrueTypeFonts").toBoolean();	}	public void setEmbedTrueTypeFonts(boolean lastParam) {		Dispatch.put(this, "EmbedTrueTypeFonts", new Variant(lastParam));	}	public boolean getSaveFormsData() {		return Dispatch.get(this, "SaveFormsData").toBoolean();	}	public void setSaveFormsData(boolean lastParam) {		Dispatch.put(this, "SaveFormsData", new Variant(lastParam));	}	public boolean getReadOnlyRecommended() {		return Dispatch.get(this, "ReadOnlyRecommended").toBoolean();	}	public void setReadOnlyRecommended(boolean lastParam) {		Dispatch.put(this, "ReadOnlyRecommended", new Variant(lastParam));	}	public boolean getSaveSubsetFonts() {		return Dispatch.get(this, "SaveSubsetFonts").toBoolean();	}

⌨️ 快捷键说明

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