Kenichi Ishigaki > Win32-IE-SlideShow > Win32::IE::SlideShow

Download:
Win32-IE-SlideShow-0.03.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.03   Source  

NAME ^

Win32::IE::SlideShow - show and manipulate your slides on IE

SYNOPSIS ^

    use Win32::IE::SlideShow;

    my $show = Win32::IE::SlideShow->new;
    $show->set( @slides );
    while ( $show->has_next ) {
      $show->next;
      sleep 1;
    }

DESCRIPTION ^

How do you present your slides? PowerPoint isn't so bad, but creating PowerPoint slides is a bit tedious. A bunch of HTML pages (which, of course, can be created by various perl scripts) with a JavaScript controller may be nice if you don't care writing JavaScript, but, as we're perl mongers, why not use perl to control slides, too? Generally speaking, Mech-ing is the best and portable but today I'm going to use Win32::OLE and Internet Explorer to get a bit more complete control.

METHODS ^

new

creates an object and invokes IE if necessary. You can pass several options to fine tune the appearance of IE:

FullScreen, TheaterMode

Both can be used to hide other windows but TheaterMode shows some controller(s).

Top, Left, Height, Width

adjust size/position of the IE window.

TopMost

If set this to true, IE stays on top.

set

takes an array of complete HTML pages to show, or an array of formatted texts if you provide an on-the-fly converter with set_callback (see below).

set_callback

If you prefer, you can provide a code reference to convert a formatted text into an HTML page on the fly.

total

returns the number of slides, which may be used to iterate the slides, or to provide some progress indicator.

start

moves an internal pointer to the first slide, and shows it, though you usually don't need to use this.

next

shows the slide which the pointer currently points, and moves the pointer to the next slide and returns a current "page" number, which you may want to pass to a progress indicator, or use as a base to move to another page with "goto" method.

has_next

returns true while the object has slide(s) to show yet.

back

shows the previous slide.

page

returns the current page number (which starts from 1).

goto

moves the internal pointer to an appropriate slide and shows it.

quit

closes the IE window (if necessary).

SEE ALSO ^

HTML::Display::Win32::IE

AUTHOR ^

Kenichi Ishigaki, <ishigaki@cpan.org>

COPYRIGHT AND LICENSE ^

Copyright (C) 2008 by Kenichi Ishigaki.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: