Overview | Package | Class | Tree | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## application.workbooks.workbook.presentations
Class Presentation

    java.lang.Object
      application.workbooks.workbook.presentations.Presentation

public class Presentation
extends java.lang.Object

该类定义了幻灯片对象的方法。

Method Summary
`void` | `addColorScheme(ColorScheme colorScheme)` 向标准配色方案中增加一个配色方案。
`void` | `addCustomShowList(CustomShowList list)` 添加自定义播放列表对象。
`void` | `applyTemplate(java.lang.String fileName)` 应用设计模板。
`void` | `close()` 关闭该简报制作应用。
`void` | `convertToDocument()` 将幻灯片转换为文档形式，并用文字处理方式打开。
`void` | `deleteColorScheme(int colorSchemeIndex)` 从标准配色方案中删除一个配色方案。
`void` | `deleteCustomShowList(CustomShowList list)` 删除自定义播放列表对象。
`void` | `deleteCustomShowList(java.lang.String listName)` 删除自定义播放列表对象。
`PgShapes` | `getActiveShapes()` 得到当前活动的浮动对象集合。
`ColorScheme` | `getColorScheme(int index)` 得到配色方案。
`CustomShowList` | `getCustomShowList(int index)` 根据索引得到相应的自定义播放列表对象。
`CustomShowList` | `getCustomShowList(java.lang.String name)` 根据列表名得到相应的自定义播放列表对象。
`int` | `getCustomShowListCount()` 得到系统中自定义列表的总数。
`HandoutMaster` | `getHandoutMaster()` 得到讲义母板。
`java.lang.String` | `getName()` 得到该简报制作应用的全名。
`NoteMaster` | `getNoteMaster()` 得到备注母板。
`Notepages` | `getNotepages()` 得到备注页视图管理器。
`OutlineText` | `getOutlineText()` 得到大纲编辑器。
`Print` | `getPrint()` 获得打印驱动
`SlideMaster` | `getSlideMaster()` 得到幻灯片母板。
`Slides` | `getSlides()` 得到幻灯片管理器。
`SlideShowSettings` | `getSlideShowSetting()` 得到幻灯放映设置。
`int` | `getStandardSchemeCount()` 得到系统中标准配色方案总数。
`TitleMaster` | `getTitleMaster()` 得到标题母板。
`void` | `insertTitleMaster()` 插入标题母版。
`void` | `setCustomShowList(java.lang.String oldName, java.lang.String listName, int[] listContent)` 设置自定义播放列表。
`void` | `switchView(int viewType)` 切换幻灯片视图。

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### addColorScheme

    public void addColorScheme(ColorScheme colorScheme)

  向标准配色方案中增加一个配色方案。

  Parameters:
    `colorScheme` - 一个配色方案

    例子:

         application.workbooks.workbook.Presentations
         .getActivePresentation().addColorScheme(new application.workbooks.workbook.presentations.presentation.ColorScheme(
         Color.BLACK,Color.BLACK,Color.BLACK,Color.BLACK,Color.BLACK,Color.BLACK,Color.BLACK,Color.BLACK));

  See Also:
    `deleteColorScheme(int)`, `getStandardSchemeCount()`, `getColorScheme(int index)`, `ColorScheme`

### addCustomShowList

    public void addCustomShowList(CustomShowList list)

  添加自定义播放列表对象。

  Parameters:
    `list` - 自定义播放列表

    例子:

         int[] aa={0,0,0,1,1,1,2,2,2};
         application.workbooks.workbook.Presentations
         .getActivePresentation().addCustomShowList(new application.workbooks.workbook.presentations.presentation
         .CustomShowList("SlayersBoxer",aa));

  See Also:
    `getCustomShowList(String name)`, `getCustomShowList(int index)`, `deleteCustomShowList(application.workbooks.workbook.presentations.presentation.CustomShowList list)`, `deleteCustomShowList(String listName)`, `getCustomShowListCount()`, `setCustomShowList(java.lang.String, int[])`, `CustomShowList`

### applyTemplate

    public void applyTemplate(java.lang.String fileName)

  应用设计模板。

  Parameters:
    `fileName` - 模板的路径

    例子:

         application.workbooks.workbook.Presentations
         .getActivePresentation().applyTemplate("c://EIO_Binders//Template//Presentation//常用//超越者.eit");

### close

    public void close()

  关闭该简报制作应用。

  例子:

       application.workbooks.workbook.Presentations.getActivePresentation().close();

### convertToDocument

    public void convertToDocument()

  将幻灯片转换为文档形式，并用文字处理方式打开。

  例子:

       application.workbooks.workbook.Presentations
       .getActivePresentation().convertToDocument();

### deleteColorScheme

    public void deleteColorScheme(int colorSchemeIndex)

  从标准配色方案中删除一个配色方案。

  Parameters:
    `colorSchemeIndex` - 表示要删除的配色方案（范围从0到配色方案数-1）

    例子:

         application.workbooks.workbook.Presentations
         .getActivePresentation().deleteColorScheme(1);

  See Also:
    `addColorScheme(application.workbooks.workbook.presentations.presentation.ColorScheme)`, `getStandardSchemeCount()`, `getColorScheme(int index)`, `ColorScheme`

### deleteCustomShowList

    public void deleteCustomShowList(CustomShowList list)

  删除自定义播放列表对象。

  Parameters:
    `list` - 自定义播放列表

    例子:

         application.workbooks.workbook.Presentations
         .getActivePresentation().deleteCustomShowList(application.workbooks.workbook.Presentations
         .getActivePresentation().getCustomShowList("SlayersBoxer"));

  See Also:
    `getCustomShowList(int index)`, `getCustomShowList(String name)`, `addCustomShowList(application.workbooks.workbook.presentations.presentation.CustomShowList)`, `getCustomShowListCount()`, `setCustomShowList(java.lang.String, int[])`, `deleteCustomShowList(String listName)`, `CustomShowList`

### deleteCustomShowList

    public void deleteCustomShowList(java.lang.String listName)

  删除自定义播放列表对象。

  Parameters:
    `listName` - 自定义播放列表名

    例子:

         application.workbooks.workbook.Presentations
         .getActivePresentation().deleteCustomShowList("SlayersBoxer");

  See Also:
    `getCustomShowList(int index)`, `getCustomShowList(String name)`, `addCustomShowList(application.workbooks.workbook.presentations.presentation.CustomShowList)`, `getCustomShowListCount()`, `setCustomShowList(java.lang.String, int[])`, `deleteCustomShowList(application.workbooks.workbook.presentations.presentation.CustomShowList list)`, `CustomShowList`

### getActiveShapes

    public PgShapes getActiveShapes()

  得到当前活动的浮动对象集合。

  Returns:
    当前活动的浮动对象集合

    例子:

         System.out.println(application.workbooks.workbook.Presentations
         .getActivePresentaton().getActiveShapes().getAllPgShapes().length);

  See Also:
    `PgShapes`

### getColorScheme

    public ColorScheme getColorScheme(int index)

  得到配色方案。

  Returns:
    配色方案

    例子:

         ColorScheme scheme = application.workbooks.workbook.Presentations
         getActivePresentation().getColorScheme(1);
         scheme.setBackgroundColor(Color.red);
         PSelection.getSlide().setColorScheme(scheme);

  See Also:
    `addColorScheme(application.workbooks.workbook.presentations.presentation.ColorScheme)`, `deleteColorScheme(int)`, `getStandardSchemeCount()`, `ColorScheme`

### getCustomShowList

    public CustomShowList getCustomShowList(int index)

  根据索引得到相应的自定义播放列表对象。

  Parameters:
    `index` - 自定义播放列表索引值
  Returns:
    自定义播放列表

    例子:

         application.workbooks.workbook.Presentations
         .getActivePresentation().deleteCustomShowList(application.workbooks.workbook.Presentations
         .getActivePresentation().getCustomShowList(0));

  See Also:
    `getCustomShowList(String name)`, `addCustomShowList(application.workbooks.workbook.presentations.presentation.CustomShowList)`, `deleteCustomShowList(application.workbooks.workbook.presentations.presentation.CustomShowList list)`, `deleteCustomShowList(String listName)`, `getCustomShowListCount()`, `setCustomShowList(java.lang.String, int[])`, `CustomShowList`

### getCustomShowList

    public CustomShowList getCustomShowList(java.lang.String name)

  根据列表名得到相应的自定义播放列表对象。

  Parameters:
    `name` - 自定义播放列表名
  Returns:
    自定义播放列表

    例子:

         application.workbooks.workbook.Presentations
         .getActivePresentation().deleteCustomShowList(application.workbooks.workbook.Presentations
         .getActivePresentation().getCustomShowList("SlayersBoxer"));

  See Also:
    `getCustomShowList(int index)`, `addCustomShowList(application.workbooks.workbook.presentations.presentation.CustomShowList)`, `deleteCustomShowList(application.workbooks.workbook.presentations.presentation.CustomShowList list)`, `deleteCustomShowList(String listName)`, `getCustomShowListCount()`, `setCustomShowList(java.lang.String, int[])`, `CustomShowList`

### getCustomShowListCount

    public int getCustomShowListCount()

  得到系统中自定义列表的总数。

  Returns:
    自定义播放列表数量

    例子:

         System.out.println( application.workbooks.workbook.Presentations
         .getActivePresentation().getCustomShowListCount() );

  See Also:
    `getCustomShowList(int index)`, `getCustomShowList(String name)`, `addCustomShowList(application.workbooks.workbook.presentations.presentation.CustomShowList)`, `deleteCustomShowList(application.workbooks.workbook.presentations.presentation.CustomShowList list)`, `deleteCustomShowList(String listName)`, `setCustomShowList(java.lang.String, int[])`, `CustomShowList`

### getHandoutMaster

    public HandoutMaster getHandoutMaster()

  得到讲义母板。

  Returns:
    讲义母板

    例子:

         application.workbooks.workbook.Presentations
         .getActivePresentation().getHandoutMaster().setColorScheme(new application.workbooks.workbook.presentations.presentation.ColorScheme(Color.BLACK,Color.BLACK,Color.BLACK,Color.BLACK,Color.BLACK,Color.BLACK,Color.BLACK,Color.BLACK));

  See Also:
    `HandoutMaster`

### getName

    public java.lang.String getName()

  得到该简报制作应用的全名。

  Returns:
    返回该简报制作应用的全名，为字符串型

    例子:

         System.out.println( application.workbooks.workbook.Presentations.getActivePresentation()
         .getName());

### getNoteMaster

    public NoteMaster getNoteMaster()

  得到备注母板。

  Returns:
    备注母板

    例子:

         application.workbooks.workbook.Presentations
         .getActivePresentation().getNoteMaster().setColorScheme(new application.workbooks.workbook.presentations.presentation.ColorScheme(Color.BLACK,Color.BLACK,Color.BLACK,Color.BLACK,Color.BLACK,Color.BLACK,Color.BLACK,Color.BLACK));

  See Also:
    `NoteMaster`

### getNotepages

    public Notepages getNotepages()

  得到备注页视图管理器。

  Returns:
    备注页视图管理器

    例子:

         application.workbooks.workbook.Presentations
         .getActivePresentation().getNotepages().goTo(2);

  See Also:
    `Notepages`

### getOutlineText

    public OutlineText getOutlineText()

  得到大纲编辑器。

  Returns:
    大纲编辑器

    例子:

         application.workbooks.workbook.Presentations
         .getActivePresentation().getOutlineText().insertText(0,"I have the right to know.");

  See Also:
    `OutlineText`

### getPrint

    public Print getPrint()

  获得打印驱动

  Returns:
    打印驱动

    例子:

         Print print = application.workbooks.workbook.Presentations.getActivePresentation().getPrint();
        	print.setCurrent();
          print.print();

  See Also:
    `Print`

### getSlideMaster

    public SlideMaster getSlideMaster()

  得到幻灯片母板。

  Returns:
    幻灯片母板

    例子:

         application.workbooks.workbook.Presentations
         .getActivePresentation().getSlideMaster().setColorScheme(new application.workbooks.workbook.presentations.presentation.ColorScheme(Color.BLACK,Color.BLACK,Color.BLACK,Color.BLACK,Color.BLACK,Color.BLACK,Color.BLACK,Color.BLACK));

  See Also:
    `SlideMaster`

### getSlides

    public Slides getSlides()

  得到幻灯片管理器。

  Returns:
    幻灯片管理器

    例子:

         System.out.println(application.workbooks.workbook.Presentations
         .getActivePresentation().getSlides().getSlideCount());

  See Also:
    `Slides`

### getSlideShowSetting

    public SlideShowSettings getSlideShowSetting()

  得到幻灯放映设置。

  Returns:
    幻灯放映设置

    例子:

         application.workbooks.workbook.Presentations
         .getActivePresentation().getSlideShowSetting().setPresentType(1);

  See Also:
    `SlideShowSettings`

### getStandardSchemeCount

    public int getStandardSchemeCount()

  得到系统中标准配色方案总数。

  Returns:
    配色方案数量

    例子:

         System.out.println(application.workbooks.workbook.Presentations
         .getActivePresentation().getStandardSchemeCount());

  See Also:
    `addColorScheme(application.workbooks.workbook.presentations.presentation.ColorScheme)`, `deleteColorScheme(int)`, `getColorScheme(int index)`, `ColorScheme`

### getTitleMaster

    public TitleMaster getTitleMaster()

  得到标题母板。

  Returns:
    标题母板

    例子:

         application.workbooks.workbook.Presentations
         .getActivePresentation().getTitleMaster().setColorScheme(new application.workbooks.workbook.presentations.presentation.ColorScheme(Color.BLACK,Color.BLACK,Color.BLACK,Color.BLACK,Color.BLACK,Color.BLACK,Color.BLACK,Color.BLACK));

  See Also:
    `TitleMaster`

### insertTitleMaster

    public void insertTitleMaster()

  插入标题母版。

  例子:

       Presentation presentation = Presentations.getActivePresentation();
      	presentation.switchView(PresentationConstants.SLIDEMASTER);
         presentation.insertTitleMaster();
      	//test
      	presentation.getTitleMaster().setColorScheme(
      				new application.workbooks.workbook.presentations.presentation.ColorScheme(Color.BLACK,Color.BLACK,Color.BLACK,Color.BLACK,Color.BLACK,Color.BLACK,Color.BLACK,Color.BLACK));

### setCustomShowList

    public void setCustomShowList(java.lang.String oldName,
                                  java.lang.String listName,
                                  int[] listContent)

  设置自定义播放列表。

  Parameters:
    `listName` - 自定义播放列表名
    `listContent` - 自定义播放列表内容

    例子:

         int[] list={0,0,0,1,1,1,2,2,2};
         application.workbooks.workbook.Presentations
         .getActivePresentation().setCustomShowList("www","cat",list);

  See Also:
    `getCustomShowList(int index)`, `getCustomShowList(String name)`, `addCustomShowList(application.workbooks.workbook.presentations.presentation.CustomShowList)`, `deleteCustomShowList(application.workbooks.workbook.presentations.presentation.CustomShowList list)`, `deleteCustomShowList(String listName)`, `getCustomShowListCount()`, `CustomShowList`

### switchView

    public void switchView(int viewType)

  切换幻灯片视图。

  Parameters:
    `viewType` - 需要显示的视图类型，其常量和相应的值如下：

         PresentationConstants.NORMALVIEW = 0（普通视图）
         PresentationConstants.OUTLINEVIEW = 1（大纲视图）
         PresentationConstants.SLIDEVIEW = 2（幻灯片视图）
         PresentationConstants.SLIDESORTVIEW = 3（幻灯片浏览视图）
         PresentationConstants.SLIDEMASTER = 4（幻灯片母版视图）
         PresentationConstants.TITLEMASTER = 5（幻灯片标题母版视图）
         PresentationConstants.HANDOUTMASTER = 6（幻灯片讲义母版视图）
         PresentationConstants.NOTEMASTER = 7（幻灯片备注母版视图）
         PresentationConstants.NOTEPAGEVIEW = 8（备注页视图）

    例子:

         application.workbooks.workbook.Presentations
         .getActivePresentation().switchView(PresentationConstants.NOTEPAGEVIEW);

  See Also:
    `PresentationConstants`

Overview | Package | Class | Tree | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

版权所有 2001-2004 无锡永中科技有限公司