forked from openlp/openlp
Minor adjustments
This commit is contained in:
parent
4ca4fa8f23
commit
6421f1d493
@ -23,14 +23,12 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os , subprocess
|
import os, subprocess
|
||||||
import time
|
import time
|
||||||
import sys
|
import sys
|
||||||
|
import win32api
|
||||||
if os.name == u'nt':
|
from ctypes import *
|
||||||
import win32api
|
from ctypes.wintypes import RECT
|
||||||
from ctypes import *
|
|
||||||
from ctypes.wintypes import RECT
|
|
||||||
|
|
||||||
from PyQt4 import QtCore
|
from PyQt4 import QtCore
|
||||||
|
|
||||||
|
@ -31,11 +31,12 @@ from PyQt4 import QtCore, QtGui
|
|||||||
from openlp.core.lib import Plugin, MediaManagerItem
|
from openlp.core.lib import Plugin, MediaManagerItem
|
||||||
from openlp.plugins.presentations.lib import PresentationMediaItem, \
|
from openlp.plugins.presentations.lib import PresentationMediaItem, \
|
||||||
PresentationTab, ImpressController
|
PresentationTab, ImpressController
|
||||||
try:
|
if os.name == u'nt':
|
||||||
|
try:
|
||||||
from openlp.plugins.presentations.lib import PowerpointController
|
from openlp.plugins.presentations.lib import PowerpointController
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
from openlp.plugins.presentations.lib import PptviewController
|
from openlp.plugins.presentations.lib import PptviewController
|
||||||
|
|
||||||
|
|
||||||
class PresentationPlugin(Plugin):
|
class PresentationPlugin(Plugin):
|
||||||
@ -92,6 +93,7 @@ class PresentationPlugin(Plugin):
|
|||||||
self.registerControllers(u'Impress', openoffice)
|
self.registerControllers(u'Impress', openoffice)
|
||||||
except:
|
except:
|
||||||
log.exception(u'Failed to set up plugin for Impress')
|
log.exception(u'Failed to set up plugin for Impress')
|
||||||
|
if os.name == u'nt':
|
||||||
#Lets see if Powerpoint is required (Default is Not wanted)
|
#Lets see if Powerpoint is required (Default is Not wanted)
|
||||||
if int(self.config.get_config(
|
if int(self.config.get_config(
|
||||||
u'Powerpoint', QtCore.Qt.Unchecked)) == QtCore.Qt.Checked:
|
u'Powerpoint', QtCore.Qt.Unchecked)) == QtCore.Qt.Checked:
|
||||||
|
Loading…
Reference in New Issue
Block a user