Presentation fixes

bzr-revno: 918
This commit is contained in:
Jonathan Corwin 2010-07-06 07:41:05 +01:00
commit 6fe8ecf0c3
2 changed files with 4 additions and 4 deletions

View File

@ -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()

View File

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