error trap if no ooo

This commit is contained in:
Jonathan Corwin 2010-04-13 08:33:58 +01:00
parent 14bb4c2edb
commit c7c4def38e
1 changed files with 5 additions and 3 deletions

View File

@ -33,9 +33,11 @@ if os.name == u'nt':
PAGE_AFTER = 5
PAGE_BOTH = 6
else:
import uno
from com.sun.star.style.BreakType import PAGE_BEFORE, PAGE_AFTER, PAGE_BOTH
try:
import uno
from com.sun.star.style.BreakType import PAGE_BEFORE, PAGE_AFTER, PAGE_BOTH
except:
pass
class OooImport(object):
"""
Import songs from Impress/Powerpoint docs using Impress