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.presentation.slides
Class HeaderFooterManager

    java.lang.Object
      application.workbooks.workbook.presentations.presentation.slides.HeaderFooterManager

public class HeaderFooterManager
extends java.lang.Object

页眉页脚管理器。

Method Summary
`void` | `applyHeaderFooter(SlideHeaderFooter slide, NoteHeaderFooter note, boolean applyAll)` 应用页眉页脚。
`void` | `applyNoteHeaderFooter(NoteHeaderFooter note)` 应用备注页页眉页脚设置。
`void` | `applySlideHeaderFooter(SlideHeaderFooter slide, boolean applyAll)` 应用幻灯片页眉页脚设置。
`NoteHeaderFooter` | `getNoteHeaderFooter()` 获取备注和讲义的页眉页脚信息。
`SlideHeaderFooter` | `getSlideHeaderFooter()` 获取当前幻灯片的页眉页脚对象。
`SlideHeaderFooter` | `getSlideHeaderFooter(int slideIndex)` 获取指定幻灯片的页眉页脚对象。

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

Method Detail

### applyHeaderFooter

    public void applyHeaderFooter(SlideHeaderFooter slide,
                                  NoteHeaderFooter note,
                                  boolean applyAll)

  应用页眉页脚。

  Parameters:
    `slide` - 幻灯片页眉页脚对象
    `note` - 备注与讲义页眉页脚对象
    `applyAll` - 布尔型值，如为true，将页眉页角应用到全部幻灯片；否则，仅应用到当前幻灯片

    例子:

         SlideHeaderFooter SHF=

         Presentations.getActivePresentation().getSlides().getHeaderFooterManager()
         .getSlideHeaderFooter();

         NoteHeaderFooter NHF=

         Presentations.getActivePresentation().getSlides().getHeaderFooterManager()
         .getNoteHeaderFooter();

         Presentations.getActivePresentation().Slides().getHeaderFooterManager()
         .applyHeaderFooter(SHF, NHF,true);

  See Also:
    `getNoteHeaderFooter()`, `getSlideHeaderFooter()`, `getSlideHeaderFooter(int slideIndex)`, `applyNoteHeaderFooter( application.workbooks.workbook.presentations.presentation.slides.NoteHeaderFooter note )`, `applySlideHeaderFooter( application.workbooks.workbook.presentations.presentation.slides.SlideHeaderFooter slide, boolean applyAll)`, `SlideHeaderFooter`, `NoteHeaderFooter`

### applyNoteHeaderFooter

    public void applyNoteHeaderFooter(NoteHeaderFooter note)

  应用备注页页眉页脚设置。

  Parameters:
    `note` - 备注页页眉页脚对象

    例子:

         NoteHeaderFooter noteHeaderFooter = Presentations.getActivePresentation().getSlides().getHeaderFooterManager()
         .getNoteHeaderFooter();

         noteHeaderFooter.setAutomaticDateIndex(3);
         noteHeaderFooter.setFixDateContent("");
         noteHeaderFooter.setFooterContent("wind");
         noteHeaderFooter.setShowDateAndTime(true);
         noteHeaderFooter.setShowFooter(true);
         noteHeaderFooter.setShowPageNumber(true);
         noteHeaderFooter.setUpdateAutomatic(true);
         noteHeaderFooter.setHeaderContent("helen");
         noteHeaderFooter.setShowHeader(true);
         Presentations.getActivePresentation().getSlides().getHeaderFooterManager().applyNoteHeaderFooter(noteHeaderFooter);

  See Also:
    `getNoteHeaderFooter()`, `getSlideHeaderFooter()`, `getSlideHeaderFooter(int slideIndex)`, `applyHeaderFooter( application.workbooks.workbook.presentations.presentation.slides.SlideHeaderFooter slide, application.workbooks.workbook.presentations.presentation.slides.NoteHeaderFooter note, boolean applyAll)`, `applySlideHeaderFooter( application.workbooks.workbook.presentations.presentation.slides.SlideHeaderFooter slide, boolean applyAll)`, `NoteHeaderFooter`

### applySlideHeaderFooter

    public void applySlideHeaderFooter(SlideHeaderFooter slide,
                                       boolean applyAll)

  应用幻灯片页眉页脚设置。

  Parameters:
    `slide` - 幻灯片页眉页脚对象
    `applyAll` - 布尔型值，如为true，将页眉页脚设置应用到全部幻灯片；否则，只将页眉页脚设置应用到当前幻灯片

    例子:

          SlideHeaderFooter slideHeaderFooter = Presentations.getActivePresentation().getSlides().getHeaderFooterManager().getSlideHeaderFooter();
         slideHeaderFooter.setAutomaticDateIndex(6);
         slideHeaderFooter.setFixDateContent("2004-8-2");
         slideHeaderFooter.setFooterContent("wisdom lefei");
         slideHeaderFooter.setShowDateAndTime(true);
         slideHeaderFooter.setShowFooter(true);
         slideHeaderFooter.setShowSlideNumber(true);
         slideHeaderFooter.setUpdateAutomatic(true);
         slideHeaderFooter.setShowOnTitleSlide(false);

         Presentations.getActivePresentation().getSlides().getHeaderFooterManager().applySlideHeaderFooter(slideHeaderFooter, true);

  See Also:
    `getNoteHeaderFooter()`, `getSlideHeaderFooter()`, `getSlideHeaderFooter(int slideIndex)`, `applyHeaderFooter( application.workbooks.workbook.presentations.presentation.slides.SlideHeaderFooter slide, application.workbooks.workbook.presentations.presentation.slides.NoteHeaderFooter note, boolean applyAll)`, `applyNoteHeaderFooter( application.workbooks.workbook.presentations.presentation.slides.NoteHeaderFooter note )`, `SlideHeaderFooter`

### getNoteHeaderFooter

    public NoteHeaderFooter getNoteHeaderFooter()

  获取备注和讲义的页眉页脚信息。

  Returns:
    备注和讲义的页眉页脚信息

    例子:

          SlideHeaderFooter SHF=

         Presentations.getActivePresentation().getSlides().getHeaderFooterManager()
         .getSlideHeaderFooter();

         NoteHeaderFooter NHF=

         Presentations.getActivePresentation().getSlides().getHeaderFooterManager()
         .getNoteHeaderFooter();

         Presentations.getActivePresentation().getSlides().getHeaderFooterManager()
         .applyHeaderFooter(SHF, NHF,true);

  See Also:
    `applyHeaderFooter( application.workbooks.workbook.presentations.presentation.slides.SlideHeaderFooter slide, application.workbooks.workbook.presentations.presentation.slides.NoteHeaderFooter note, boolean applyAll)`, `applyNoteHeaderFooter( application.workbooks.workbook.presentations.presentation.slides.NoteHeaderFooter note )`, `NoteHeaderFooter`

### getSlideHeaderFooter

    public SlideHeaderFooter getSlideHeaderFooter()

  获取当前幻灯片的页眉页脚对象。

  Returns:
    当前幻灯片的页眉页脚对象

    例子:

         SlideHeaderFooter SHF=
         Presentations.getActivePresentation().getSlides().getHeaderFooterManager()
         .getSlideHeaderFooter();

         NoteHeaderFooter NHF=

         Presentations.getActivePresentation().getSlides().getHeaderFooterManager()
         .getNoteHeaderFooter();

         Presentations.getActivePresentation().getSlides().getHeaderFooterManager()
         .applyHeaderFooter(SHF, NHF,true);

  See Also:
    `getSlideHeaderFooter(int slideIndex)`, `applyHeaderFooter( application.workbooks.workbook.presentations.presentation.slides.SlideHeaderFooter slide, application.workbooks.workbook.presentations.presentation.slides.NoteHeaderFooter note, boolean applyAll)`, `applySlideHeaderFooter( application.workbooks.workbook.presentations.presentation.slides.SlideHeaderFooter slide, boolean applyAll)`, `SlideHeaderFooter`

### getSlideHeaderFooter

    public SlideHeaderFooter getSlideHeaderFooter(int slideIndex)

  获取指定幻灯片的页眉页脚对象。

  Parameters:
    `slideIndex` - 幻灯片索引
  Returns:
    指定幻灯片的页眉页脚对象

    例子:

         SlideHeaderFooter SHF=
         Presentations.getActivePresentation().getSlides().getHeaderFooterManager()
         .getSlideHeaderFooter(1);

         NoteHeaderFooter NHF=
         Presentations.getActivePresentation().getSlides().getHeaderFooterManager()
         .getNoteHeaderFooter();

         Presentations.getActivePresentation().getSlides().getHeaderFooterManager()
         .applyHeaderFooter(SHF, NHF,true);

  See Also:
    `getSlideHeaderFooter()`, `applyHeaderFooter( application.workbooks.workbook.presentations.presentation.slides.SlideHeaderFooter slide, application.workbooks.workbook.presentations.presentation.slides.NoteHeaderFooter note, boolean applyAll)`, `applySlideHeaderFooter( application.workbooks.workbook.presentations.presentation.slides.SlideHeaderFooter slide, boolean applyAll)`, `SlideHeaderFooter`

Overview | Package | Class | Tree | Index | Help

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

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