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.
-
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.
-
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_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_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
-
load_presentation
()[source]¶ Called when a presentation is added to the SlideController. Opens the PowerPoint file using the process created earlier.
-