📄 outlineview.html
字号:
<DT><B>参数:</B><DD><CODE>paragraphStartIndex</CODE> - 段落的开始索引<DD><CODE>paragraphEndIndex</CODE> - 段落的结束索引 <p> <b>例子: </b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments() .getActiveDocument(); BaseText baseText = doc.getSection(0).getBaseText(); baseText.insertText(0,"this is a test!\n this is a test!"); DocumentView view = doc.getDocumentView(); OutlineView outlineView = view.getOutlineView(); outlineView.promoteParagraph(0); outlineView.demoteParagraph(1); outlineView.expandParagraphs(0,1); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当参数paragraphStartIndex越界时
<DD><CODE><A HREF="../../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当参数paragraphEndIndex越界时</DL>
</DD>
</DL>
<HR>
<A NAME="getViewType()"><!-- --></A><H3>
getViewType</H3>
<PRE>
public int <B>getViewType</B>()</PRE>
<DL>
<DD>返回当前的视图类型。
<P>
<DD><DL>
<DT><B>覆盖:</B><DD>类 <CODE><A HREF="../../../../../../application/workbooks/workbook/documents/document/view/NormalView.html" title="application.workbooks.workbook.documents.document.view 中的类">NormalView</A></CODE> 中的 <CODE><A HREF="../../../../../../application/workbooks/workbook/documents/document/view/NormalView.html#getViewType()">getViewType</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>返回:</B><DD>视图类型 <p> <b>例子:</b> <pre> //请输入一些文字。 Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); DocumentView docView = doc.getDocumentView(); OutlineView pageView = docView.getOutlineView(); System.out.println("得到当前文档视图的类型是:"+pageView.getViewType()); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="promote(long, long)"><!-- --></A><H3>
promote</H3>
<PRE>
public void <B>promote</B>(long startOffset,
long length)</PRE>
<DL>
<DD>将指定的字符串所在段落升级。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>startOffset</CODE> - 光标的起始位置<DD><CODE>length</CODE> - 需要升级的字符串长度 <p> <b>例子: </b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments() .getActiveDocument(); BaseText baseText = doc.getSection(0).getBaseText(); baseText.insertText(0,"this is a test!\n this is a test!"); DocumentView view = doc.getDocumentView(); OutlineView outlineView = view.getOutlineView(); outlineView.promote(doc.getOffset(),(doc.getLength() - doc.getOffset())); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当参数startOffset,length越界时</DL>
</DD>
</DL>
<HR>
<A NAME="promoteParagraph(int)"><!-- --></A><H3>
promoteParagraph</H3>
<PRE>
public void <B>promoteParagraph</B>(int paragraphIndex)</PRE>
<DL>
<DD>将指定的段落升级。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>paragraphIndex</CODE> - 段落索引 <p> <b>例子: </b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments() .getActiveDocument(); BaseText baseText = doc.getSection(0).getBaseText(); baseText.insertText(0,"this is a test!\n this is a test!"); DocumentView view = doc.getDocumentView(); OutlineView outlineView = view.getOutlineView(); outlineView.promoteParagraph(1); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当参数paragrapIndex超出范围时</DL>
</DD>
</DL>
<HR>
<A NAME="promoteParagraph(int, int)"><!-- --></A><H3>
promoteParagraph</H3>
<PRE>
public void <B>promoteParagraph</B>(int paragraphStartIndex,
int paragraphEndIndex)</PRE>
<DL>
<DD>将指定范围的段落升级。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>paragraphStartIndex</CODE> - 段落的开始索引<DD><CODE>paragraphEndIndex</CODE> - 段落的结束索引 <p> <b>例子: </b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments() .getActiveDocument(); BaseText baseText = doc.getSection(0).getBaseText(); baseText.insertText(0,"this is a test!\n this is a test!"); DocumentView view = doc.getDocumentView(); OutlineView outlineView = view.getOutlineView(); outlineView.promoteParagraph(0,1); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当参数paragraphStartIndex超出范围时
<DD><CODE><A HREF="../../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当参数paragraphEndIndex超出范围时</DL>
</DD>
</DL>
<HR>
<A NAME="showAllHeadings()"><!-- --></A><H3>
showAllHeadings</H3>
<PRE>
public void <B>showAllHeadings</B>()</PRE>
<DL>
<DD>在大纲视图中显示所有标题段落。 <p> <b>例子: </b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments() .getActiveDocument(); BaseText baseText = doc.getSection(0).getBaseText(); baseText.insertText(0,"this is a test!\n this is a test!"); DocumentView view = doc.getDocumentView(); OutlineView outlineView = view.getOutlineView(); outlineView.showHeading(OutlineLevelConstants.OUT_LINE_LEVEL1); outlineView.showAllHeadings(); </pre>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="showFormating(boolean)"><!-- --></A><H3>
showFormating</H3>
<PRE>
public void <B>showFormating</B>(boolean showFormat)</PRE>
<DL>
<DD>显示大纲视图下的格式。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>showFormat</CODE> - 布尔型,是否显示格式。如果为true表示显示格式;为false表示不显示格式 <p> <b>例子: </b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments() .getActiveDocument(); BaseText baseText = doc.getSection(0).getBaseText(); baseText.insertText(0,"this is a test!\n this is a test!"); DocumentView view = doc.getDocumentView(); OutlineView outlineView = view.getOutlineView(); outlineView.showHeading(OutlineLevelConstants.OUT_LINE_LEVEL1); outlineView.showFormating(false);</DL>
</DD>
</DL>
<HR>
<A NAME="showOutlineLevel(int)"><!-- --></A><H3>
showOutlineLevel</H3>
<PRE>
public void <B>showOutlineLevel</B>(int level)</PRE>
<DL>
<DD>在大纲视图中显示指定级别的标题段落。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>level</CODE> - 标题级别 常量如下: <Pre> OutlineLevelConstants.OUT_LINE_LEVEL1 大纲级别1 OutlineLevelConstants.OUT_LINE_LEVEL2 大纲级别2 OutlineLevelConstants.OUT_LINE_LEVEL3 大纲级别3 OutlineLevelConstants.OUT_LINE_LEVEL4 大纲级别4 OutlineLevelConstants.OUT_LINE_LEVEL5 大纲级别5 OutlineLevelConstants.OUT_LINE_LEVEL6 大纲级别6 OutlineLevelConstants.OUT_LINE_LEVEL7 大纲级别7 OutlineLevelConstants.OUT_LINE_LEVEL8 大纲级别8 OutlineLevelConstants.OUT_LINE_LEVEL9 大纲级别9 OutlineLevelConstants.OUT_LINE_LEVEL_BODY_TEXT 所有大纲级别 </Pre> <p> <b>例子: </b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments() .getActiveDocument(); BaseText baseText = doc.getSection(0).getBaseText(); baseText.insertText(0,"this is a test!\n this is a test!"); DocumentView view = doc.getDocumentView(); OutlineView outlineView = view.getOutlineView(); outlineView.showOutlineLevel(OutlineLevelConstants.OUT_LINE_LEVEL1); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 指定的级别不存在<DT><B>另请参见:</B><DD><A HREF="../../../../../../application/constants/OutlineLevelConstants.html" title="application.constants 中的接口"><CODE>OutlineLevelConstants</CODE></A></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="跳过导航链接"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>概述</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>软件包</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>类</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>树</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>索引</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>帮助</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../../application/workbooks/workbook/documents/document/view/NormalView.html" title="application.workbooks.workbook.documents.document.view 中的类"><B>上一个类</B></A>
<A HREF="../../../../../../application/workbooks/workbook/documents/document/view/PageView.html" title="application.workbooks.workbook.documents.document.view 中的类"><B>下一个类</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../../index.html?application/workbooks/workbook/documents/document/view/OutlineView.html" target="_top"><B>框架</B></A>
<A HREF="OutlineView.html" target="_top"><B>无框架</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>所有类</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../../allclasses-noframe.html"><B>所有类</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
摘要: 嵌套 | 字段 | 构造方法 | <A HREF="#method_summary">方法</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
详细信息: 字段 | 构造方法 | <A HREF="#method_detail">方法</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
版权所有 2001-2006 无锡永中科技有限公司
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -