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