powerpointcontroller

This module is for controlling powerpoint. PPT API documentation: `http://msdn.microsoft.com/en-us/library/aa269321(office.10).aspx`_ 2010: https://msdn.microsoft.com/en-us/library/office/ff743835%28v=office.14%29.aspx 2013: https://msdn.microsoft.com/en-us/library/office/ff743835.aspx

class openlp.plugins.presentations.lib.powerpointcontroller.PowerpointController(plugin)[source]

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

Class to control interactions with PowerPoint 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]

PowerPoint is able to run on this machine.

class openlp.plugins.presentations.lib.powerpointcontroller.PowerpointDocument(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. This is triggered by a new object being added to SlideController or OpenLP being shut down.

create_thumbnails()[source]

Create the thumbnail images for the current presentation.

Note an alternative and quicker method would be do:

self.presentation.Slides[n].Copy()
thumbnail = QApplication.clipboard.image()

However, for the moment, we want a physical file since it makes life easier elsewhere.

create_titles_and_notes()[source]

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_notes(slide_no)[source]

Returns the text on the slide.

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

Returns the current slide number.

get_slide_text(slide_no)[source]

Returns the text on the slide.

Parameters:slide_no – The slide the text is required for, starting at 1
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. Opens the PowerPoint file using the process created 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.

show_error_msg()[source]

Stop presentation and display an error message.

stop_presentation()[source]

Stops the current presentation and hides the output. Used when blanking to desktop.

unblank_screen()[source]

Unblanks (restores) the presentation.