forked from openlp/openlp
Automate Presentation filters
This commit is contained in:
parent
dc6be31d1f
commit
04d7a9227e
@ -62,6 +62,7 @@ class ImpressController(PresentationController):
|
||||
"""
|
||||
log.debug(u'Initialising')
|
||||
PresentationController.__init__(self, plugin, u'Impress')
|
||||
self.supports= [u'.odp', u'.ppt', u'.pps']
|
||||
self.process = None
|
||||
self.document = None
|
||||
self.presentation = None
|
||||
|
@ -63,7 +63,13 @@ class PresentationMediaItem(MediaManagerItem):
|
||||
|
||||
def retranslateUi(self):
|
||||
self.OnNewPrompt = self.trUtf8('Select Presentation(s)')
|
||||
self.OnNewFileMasks = self.trUtf8('Presentations (*.ppt *.pps *.odp)')
|
||||
fileType = u''
|
||||
for controller in self.controllers:
|
||||
if self.controllers[controller].enabled:
|
||||
for type in self.controllers[controller].supports:
|
||||
if fileType.find(type) == -1:
|
||||
fileType += type + u' '
|
||||
self.OnNewFileMasks = self.trUtf8('Presentations (%s)' % fileType)
|
||||
|
||||
def requiredIcons(self):
|
||||
MediaManagerItem.requiredIcons(self)
|
||||
|
@ -52,6 +52,7 @@ class PowerpointController(PresentationController):
|
||||
"""
|
||||
log.debug(u'Initialising')
|
||||
PresentationController.__init__(self, plugin, u'Powerpoint')
|
||||
self.supports= [u'.ppt', u'.pps']
|
||||
self.process = None
|
||||
self.presentation = None
|
||||
|
||||
|
@ -49,6 +49,7 @@ class PptviewController(PresentationController):
|
||||
log.debug(u'Initialising')
|
||||
self.process = None
|
||||
PresentationController.__init__(self, plugin, u'Powerpoint Viewer')
|
||||
self.supports= [u'.ppt', u'.pps']
|
||||
self.pptid = None
|
||||
|
||||
def check_available(self):
|
||||
|
@ -136,6 +136,7 @@ class PresentationController(object):
|
||||
``name``
|
||||
Name of the application, to appear in the application
|
||||
"""
|
||||
self.supports = []
|
||||
self.plugin = plugin
|
||||
self.name = name
|
||||
self.available = self.check_available()
|
||||
|
Loading…
Reference in New Issue
Block a user