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.

check_available()[source]

Impress is able to run on this machine.

get_com_desktop()[source]

On Windows platforms, use COM. Return the desktop object which will be used to manage Impress.

get_com_servicemanager()[source]

Return the OOo service manager for windows.

get_uno_desktop()[source]

On non-Windows platforms, use Uno. Get the OpenOffice desktop which will be used to manage impress.

kill()[source]

Called at system exit to clean up any running presentations.

start_process()[source]

Loads a running version of OpenOffice in the background. It is not displayed to the user but is available to the UNO interface when required.

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.

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 shutdown.

create_property(name, value)[source]

Create an OOo style property object which are passed into some Uno methods.

create_thumbnails()[source]

Create thumbnail images for presentation.

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]

Return the total number of slides.

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

Return the current slide number on the screen, from 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
is_active()[source]

Returns true if a presentation is active and running.

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 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.

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]

Start the presentation from the beginning.

stop_presentation()[source]

Stop the presentation, remove from screen.

unblank_screen()[source]

Unblanks the screen.