presentation fixes

bzr-revno: 548
This commit is contained in:
Tim Bentley 2009-09-18 11:22:37 +01:00
commit dcc52fd8f7
4 changed files with 8 additions and 9 deletions

View File

@ -63,7 +63,7 @@ class RenderManager(object):
else:
self.current_display = screen_number
self.renderer = Renderer()
#self.calculate_default(self.screen_list[self.current_display][u'size'])
self.calculate_default(self.screen_list[self.current_display][u'size'])
self.theme = u''
self.service_theme = u''
self.global_style = u''

View File

@ -254,7 +254,7 @@ class SlideController(QtGui.QWidget):
self.enableToolBar(item)
if item.service_item_type == ServiceType.Command:
Receiver().send_message(u'%s_start'%item.name.lower(), \
u'%s:%s:%s' % (item.shortname, item.service_item_path, item.service_frames[0][u'title']))
[item.shortname, item.service_item_path, item.service_frames[0][u'title']])
else:
self.displayServiceManagerItems(item, 0)
@ -272,7 +272,7 @@ class SlideController(QtGui.QWidget):
self.enableToolBar(item)
if item.service_item_type == ServiceType.Command:
Receiver().send_message(u'%s_start'%item.name.lower(), \
u'%s:%s:%s' % (item.shortname, item.service_item_path, item.service_frames[0][u'title']))
[item.shortname, item.service_item_path, item.service_frames[0][u'title']])
else:
self.displayServiceManagerItems(item, slideno)

View File

@ -89,12 +89,12 @@ class ImpressController(object):
log.debug(u'LoadPresentation')
if os.name == u'nt':
desktop = self.getCOMDesktop()
url = u'file:///' + presentation.replace(u'\\', u'/').replace(u':', u'|').replace(u' ', u'%20')
url = u'file:///' + presentation.replace(u'\\', u'/').replace(u':', u'|').replace(u' ', u'%20')
else:
desktop = self.getUNODesktop()
url = uno.systemPathToFileUrl(presentation)
if(desktop==None):
return
if desktop==None:
return
try:
properties = []
properties = tuple(properties)

View File

@ -83,6 +83,5 @@ class MessageListener(object):
``message``
Message containing Presentaion handler name and file to be presented.
"""
bits = message.split(u':')
file = os.path.join(bits[1], bits[2])
return bits[0], file
file = os.path.join(message[1], message[2])
return message[0], file