forked from openlp/openlp
sofimport error trap if ooo not installed
This commit is contained in:
parent
c9ead81fd3
commit
d4b70b34e7
@ -42,9 +42,14 @@ if os.name == u'nt':
|
|||||||
PAGE_AFTER = 5
|
PAGE_AFTER = 5
|
||||||
PAGE_BOTH = 6
|
PAGE_BOTH = 6
|
||||||
else:
|
else:
|
||||||
from com.sun.star.awt.FontWeight import BOLD
|
try:
|
||||||
from com.sun.star.awt.FontSlant import ITALIC
|
from com.sun.star.awt.FontWeight import BOLD
|
||||||
from com.sun.star.style.BreakType import PAGE_BEFORE, PAGE_AFTER, PAGE_BOTH
|
from com.sun.star.awt.FontSlant import ITALIC
|
||||||
|
from com.sun.star.style.BreakType import PAGE_BEFORE, PAGE_AFTER, \
|
||||||
|
PAGE_BOTH
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
class SofImport(OooImport):
|
class SofImport(OooImport):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user