pptviewcontroller

class openlp.plugins.presentations.lib.pptviewcontroller.PptviewController(plugin)[source]

Bases: openlp.plugins.presentations.lib.presentationcontroller.PresentationController

Class to control interactions with PowerPoint Viewer Presentations. It creates the runtime Environment , Loads the and Closes the Presentation. As well as triggering the correct activities based on the users input

check_available()[source]

PPT Viewer is able to run on this machine.

class openlp.plugins.presentations.lib.pptviewcontroller.PptviewDocument(controller, presentation)[source]

Bases: openlp.plugins.presentations.lib.presentationcontroller.PresentationDocument

Class which holds information and controls a single presentation.

blank_screen()[source]

Blanks the screen.

close_presentation()[source]

Close presentation and clean up objects. Triggered by new object being added to SlideController or OpenLP being shut down.

create_thumbnails()[source]

PPTviewLib creates large BMP’s, but we want small PNG’s for consistency. Convert them here.

create_titles_and_notes()[source]

Extracts the titles and notes from the zipped file and writes the list of titles (one per slide) to ‘titles.txt’ and the notes to ‘slideNotes[x].txt’ in the thumbnails directory

get_slide_count()[source]

Returns total number of slides.

get_slide_number()[source]

Returns the current slide number.

goto_slide(slide_no)[source]

Moves to a specific slide in the presentation.

Parameters:slide_no – The slide the text is required for, starting at 1
is_active()[source]

Returns true if a presentation is currently active.

is_blank()[source]

Returns true if screen is blank.

is_loaded()[source]

Returns true if a presentation is loaded.

load_presentation()[source]

Called when a presentation is added to the SlideController. It builds the environment, starts communication with the background PptView task started earlier.

next_step()[source]

Triggers the next effect of slide on the running presentation.

previous_step()[source]

Triggers the previous slide on the running presentation.

start_presentation()[source]

Starts a presentation from the beginning.

stop_presentation()[source]

Stops the current presentation and hides the output.

unblank_screen()[source]

Unblanks (restores) the presentation.