fixed OpenOffice import being available even if OpenOffice is not installed

This commit is contained in:
Andreas Preikschat 2011-04-11 16:17:43 +02:00
parent 2060fecbca
commit de616b9d1a

View File

@ -39,12 +39,8 @@ if os.name == u'nt':
PAGE_AFTER = 5
PAGE_BOTH = 6
else:
try:
import uno
from com.sun.star.style.BreakType import PAGE_BEFORE, PAGE_AFTER, \
PAGE_BOTH
except ImportError:
pass
from com.sun.star.style.BreakType import PAGE_BEFORE, PAGE_AFTER, PAGE_BOTH
class OooImport(SongImport):
"""