find() | |
|
PPresenter Manual function
find in:
|
Portable Presenter is a package designed to give
presentations.
Presentations are written in options to style-elements grouped into
styles. Well, sometimes you like to
find style-elements in the large number of list kept around.
The following searches are available:
my $o = $object->find('objtype', name);
my $o = $object->find(objtype => name);
my $o = $object->find('objtype');
my $o = $object->find(objtype => 'SELECTED');
my @o = $object->find(objtype => 'ALL');
Where the name is:
SELECTED.
A strange case is with Find on a ShowHandled by show itself:my $style = $show->find(style => 'default'); my $viewport = $show->find(viewport => 'control'); my $slide = $show->find(slide => 'FIRST');All other finds on a show are passed to the selected style. The following two lines are equivalent:
$show->find(formatter => 'plain');
$show->find('style')->find(formatter => 'plain');
Finds on a StyleA style is a combination of lists of style-elements. You can search in those lists with find.A few ways you can use this select function:
$show->addStyle(...options...)
->find(formatter => 'plain');
my $style = $show->find(style => 'slidenotes')
->find(formatter => 'simple');
$style->find(formatter => 'markup');
$style->find('decoration');
Selections on a ViewportA viewport has a selected style, which determines how a slide for that viewport should be displayed. A find on a viewport will result in a find on the selected style.
$show->find(viewport => 'control')
->find(style => 'slidenotes');
$show->addViewport(...options...)
->find(dynamic => 'default');
$show->find(viewport)
->find(template => 'tm');
|
|
Portable Presenter is written and maintained by Mark Overmeer. There is no relation between this software product and his employer. Copyright (C) 1999, Free Software Foundation Inc. |