📄 presentation.html
字号:
int type = event.getType(); switch (type) { case PresentationEvent.SELECTION_CHANGED_SLIDE: SlideRange range = event.getSlideRange(); Slide[] slide = range.getAllSlides(); for (int i =0 ;i< slide.length;i++) { System.out.println(slide[i].getSlideIndex()); } break; case PresentationEvent.SHOW_NEXT_SLIDE: JOptionPane.showMessageDialog(Application.getMainFrame(),"SHOW_NEXT_CLICK_SLIDE"); break; } } }; pre.addPresentationListener(l); pre.removePresentationListener(l); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="rename(java.lang.String)"><!-- --></A><H3>
rename</H3>
<PRE>
public void <B>rename</B>(java.lang.String newName)</PRE>
<DL>
<DD>重命名当前简报。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>newName</CODE> - 更名后简报的新名字 <p> <b>例子:</b> <pre> Workbook workbook = Application.getWorkbooks().getActiveWorkbook(); Presentation present = workbook.getPresentations().getActivePresentation(); present.rename("jianbao1"); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 简报的新名字无效</DL>
</DD>
</DL>
<HR>
<A NAME="selectSlide(int)"><!-- --></A><H3>
selectSlide</H3>
<PRE>
public void <B>selectSlide</B>(int index)</PRE>
<DL>
<DD>选中某一张幻灯片。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>index</CODE> - 幻灯片索引值 <p> <b>例子:</b> <pre> Workbook workbook = Application.getWorkbooks().getActiveWorkbook(); Presentation present = workbook.getPresentations().getActivePresentation(); present.selectSlide(2); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 指定的幻灯片不存在</DL>
</DD>
</DL>
<HR>
<A NAME="setAllFillAttribute(application.workbooks.workbook.style.fill.FillAttribute)"><!-- --></A><H3>
setAllFillAttribute</H3>
<PRE>
public void <B>setAllFillAttribute</B>(<A HREF="../../../../application/workbooks/workbook/style/fill/FillAttribute.html" title="application.workbooks.workbook.style.fill 中的类">FillAttribute</A> attr)</PRE>
<DL>
<DD>设置所有幻灯片的背景效果。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>attr</CODE> - 背景效果属性 <p> <b>例子:</b> <pre> Workbook workbook = Application.getWorkbooks().getActiveWorkbook(); Presentation present = workbook.getPresentations().getActivePresentation(); FillAttribute fillattribute = present.getFillAttribute(1); present.setAllFillAttribute(fillattribute); </pre> <p>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 指定的背景效果属性为null</DL>
</DD>
</DL>
<HR>
<A NAME="setAllSlideTransition(application.workbooks.workbook.presentations.presentation.slide.SlideTransitionSetting)"><!-- --></A><H3>
setAllSlideTransition</H3>
<PRE>
public void <B>setAllSlideTransition</B>(application.workbooks.workbook.presentations.presentation.slide.SlideTransitionSetting setting)</PRE>
<DL>
<DD>应用所有幻灯片切换方式。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>setting</CODE> - 幻灯片切换方式设置<p><b>例子:</b><pre>Workbook workbook = Application.getWorkbooks().getActiveWorkbook();Presentation present = workbook.getPresentations().getActivePresentation();SlideTransitionSetting setting = present.getSlideTransition(2);present.setAllSlideTransition(setting);</pre><p>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 幻灯片切换方式属性为null</DL>
</DD>
</DL>
<HR>
<A NAME="setCustomShowLists(application.workbooks.workbook.presentations.presentation.show.CustomShowLists)"><!-- --></A><H3>
setCustomShowLists</H3>
<PRE>
public void <B>setCustomShowLists</B>(application.workbooks.workbook.presentations.presentation.show.CustomShowLists lists)</PRE>
<DL>
<DD>设置相应的自定义播放列表管理器对象。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>lists</CODE> - 自定义播放列表。 <p> <b>例子:</b> <pre> Workbook workbook = Application.getWorkbooks().getActiveWorkbook(); Presentation present = workbook.getPresentations().getActivePresentation(); CustomShowLists customshowlists = present.getCustomShowLists(); int[] lists1 = {1, 2, 3}; int[] lists2 = {1, 2, 4}; int[] lists3 = {1, 3 ,2}; customshowlists.addCustomShowList("player1", lists1); customshowlists.addCustomShowList("player2", lists2); CustomShowList customshowlist = customshowlists.getCustomShow(2); customshowlists.setCustomShow("player2", "player3" ,lists3); present.setCustomShowLists(customshowlists); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 自定义播放列表管理器对象为null</DL>
</DD>
</DL>
<HR>
<A NAME="setFillAttribute(int, application.workbooks.workbook.style.fill.FillAttribute)"><!-- --></A><H3>
setFillAttribute</H3>
<PRE>
public void <B>setFillAttribute</B>(int index,
<A HREF="../../../../application/workbooks/workbook/style/fill/FillAttribute.html" title="application.workbooks.workbook.style.fill 中的类">FillAttribute</A> attr)</PRE>
<DL>
<DD>设置幻灯片的背景效果。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>index</CODE> - 幻灯片索引值<DD><CODE>attr</CODE> - 背景效果属性 <p> <b>例子:</b> <pre> Workbook workbook = Application.getWorkbooks().getActiveWorkbook(); Presentation present = workbook.getPresentations().getActivePresentation(); FillAttribute fillattribute = present.getFillAttribute(1); present.setFillAttribute(2,fillattribute); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 指定的幻灯片不存在
<DD><CODE><A HREF="../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 指定的背景效果属性为null</DL>
</DD>
</DL>
<HR>
<A NAME="setSlideShowSetting(application.workbooks.workbook.presentations.presentation.show.SlideShowSetting)"><!-- --></A><H3>
setSlideShowSetting</H3>
<PRE>
public void <B>setSlideShowSetting</B>(application.workbooks.workbook.presentations.presentation.show.SlideShowSetting setting)</PRE>
<DL>
<DD>设置幻灯片放映方式。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>setting</CODE> - 幻灯片放映方式对象。 <p> <b>例子:</b> <pre>Workbook workbook = Application.getWorkbooks().getActiveWorkbook();Presentation present = workbook.getPresentations().getActivePresentation();SlideShowSetting setting = present.getSlideShowSetting();setting.setShowType(0);present.setSlideShowSetting(setting); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 幻灯片放映方式对象为null</DL>
</DD>
</DL>
<HR>
<A NAME="setSlideTransition(int, application.workbooks.workbook.presentations.presentation.slide.SlideTransitionSetting)"><!-- --></A><H3>
setSlideTransition</H3>
<PRE>
public void <B>setSlideTransition</B>(int index,
application.workbooks.workbook.presentations.presentation.slide.SlideTransitionSetting setting)</PRE>
<DL>
<DD>应用幻灯片切换方式。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>index</CODE> - 幻灯片索引值<DD><CODE>setting</CODE> - 幻灯片切换方式设置<p><b>例子:</b><pre>Workbook workbook = Application.getWorkbooks().getActiveWorkbook();Presentation present = workbook.getPresentations().getActivePresentation();SlideTransitionSetting setting = present.getSlideTransition(2);present.setSlideTransition(1,setting);</pre><p>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 指定的幻灯片不存在
<DD><CODE><A HREF="../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 幻灯片切换方式属性为null</DL>
</DD>
</DL>
<HR>
<A NAME="setViewZoom(int)"><!-- --></A><H3>
setViewZoom</H3>
<PRE>
public void <B>setViewZoom</B>(int zoom)</PRE>
<DL>
<DD>设置当前激活的pg视图的Zoom值。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>zoom</CODE> - pg视图的zoom值 <p> <b>例子:</b> <pre> Workbook workbook = Application.getWorkbooks().getActiveWorkbook(); Presentation present = workbook.getPresentations().getActivePresentation(); present.setViewZoom(78); int count = present.getViewZoom(); System.out.println(count); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 指定的Zoom值超出允许范围</DL>
</DD>
</DL>
<HR>
<A NAME="switchView(int)"><!-- --></A><H3>
switchView</H3>
<PRE>
public void <B>switchView</B>(int viewType)</PRE>
<DL>
<DD>切换幻灯片视图。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>viewType</CODE> - 显示视图的类型 <pre> 需要显示的视图类型,其取值为如下常量: PresentationConstants.NORMALVIEW = 0(常规视图); PresentationConstants.SLIDESORTVIEW = 3(幻灯片浏览视图); PresentationConstants.SHOWVIEW = 4(放映视图); PresentationConstants.SLIDEMASTER = 5(幻灯片母版); PresentationConstants.HANDOUTMASTER = 7(讲义母版 ); PresentationConstants.NOTEMASTER = 8(备注母版); PresentationConstants.NOTEPAGEVIEW = 9(备注页视图); </pre> <p> <b>例子:</b> <pre> Workbook workbook = Application.getWorkbooks().getActiveWorkbook(); Presentation present = workbook.getPresentations().getActivePresentation(); present.switchView(3); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 指定的常量不存在</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">
上一个类
下一个类</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?application/workbooks/workbook/presentations/Presentation.html" target="_top"><B>框架</B></A>
<A HREF="Presentation.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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -