impresscontroller¶
-
class
openlp.plugins.presentations.lib.impresscontroller.
ImpressController
(plugin)[source]¶ Bases:
openlp.plugins.presentations.lib.presentationcontroller.PresentationController
Class to control interactions with Impress presentations. It creates the runtime environment, loads and closes the presentation as well as triggering the correct activities based on the users input.
-
get_com_desktop
()[source]¶ On Windows platforms, use COM. Return the desktop object which will be used to manage Impress.
-
-
class
openlp.plugins.presentations.lib.impresscontroller.
ImpressDocument
(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. Triggered by new object being added to SlideController or OpenLP being shutdown.
-
create_property
(name, value)[source]¶ Create an OOo style property object which are passed into some Uno methods.
-
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 in the slide notes.
Parameters: slide_no – The slide the notes are 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]¶ Go to a specific slide (from 1).
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. It builds the environment, starts communcations with the background OpenOffice task started earlier. If OpenOffice is not present is is started. Once the environment is available the presentation is loaded and started.
-