forked from openlp/openlp
fixed OpenOffice import being available even if OpenOffice is not installed
This commit is contained in:
parent
2060fecbca
commit
de616b9d1a
@ -39,12 +39,8 @@ if os.name == u'nt':
|
|||||||
PAGE_AFTER = 5
|
PAGE_AFTER = 5
|
||||||
PAGE_BOTH = 6
|
PAGE_BOTH = 6
|
||||||
else:
|
else:
|
||||||
try:
|
import uno
|
||||||
import uno
|
from com.sun.star.style.BreakType import PAGE_BEFORE, PAGE_AFTER, PAGE_BOTH
|
||||||
from com.sun.star.style.BreakType import PAGE_BEFORE, PAGE_AFTER, \
|
|
||||||
PAGE_BOTH
|
|
||||||
except ImportError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
class OooImport(SongImport):
|
class OooImport(SongImport):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user