forked from openlp/openlp
Presentation fixes
bzr-revno: 918
This commit is contained in:
commit
6fe8ecf0c3
@ -222,7 +222,7 @@ class ImpressDocument(PresentationDocument):
|
||||
return
|
||||
self.presentation = self.document.getPresentation()
|
||||
self.presentation.Display = \
|
||||
self.controller.plugin.render_manager.screens.current_display + 1
|
||||
self.controller.plugin.renderManager.screens.current_display + 1
|
||||
self.control = None
|
||||
self.create_thumbnails()
|
||||
|
||||
|
@ -173,7 +173,7 @@ class PowerpointDocument(PresentationDocument):
|
||||
return True
|
||||
|
||||
|
||||
def isActive(self):
|
||||
def is_active(self):
|
||||
"""
|
||||
Returns true if a presentation is currently active
|
||||
"""
|
||||
@ -206,7 +206,7 @@ class PowerpointDocument(PresentationDocument):
|
||||
"""
|
||||
Returns true if screen is blank
|
||||
"""
|
||||
if self.isActive():
|
||||
if self.is_active():
|
||||
return self.presentation.SlideShowWindow.View.State == 3
|
||||
else:
|
||||
return False
|
||||
@ -233,7 +233,7 @@ class PowerpointDocument(PresentationDocument):
|
||||
dpi = 96
|
||||
self.presentation.SlideShowSettings.Run()
|
||||
self.presentation.SlideShowWindow.View.GotoSlide(1)
|
||||
rendermanager = self.controller.plugin.render_manager
|
||||
rendermanager = self.controller.plugin.renderManager
|
||||
rect = rendermanager.screens.current[u'size']
|
||||
self.presentation.SlideShowWindow.Top = rect.y() * 72 / dpi
|
||||
self.presentation.SlideShowWindow.Height = rect.height() * 72 / dpi
|
||||
|
Loading…
Reference in New Issue
Block a user