Some uno constants missing on some systems

This commit is contained in:
Jonathan Corwin 2011-06-23 23:26:36 +01:00
parent fd1f4265ed
commit 212103ce7b

View File

@ -37,14 +37,16 @@ log = logging.getLogger(__name__)
if os.name == u'nt': if os.name == u'nt':
from win32com.client import Dispatch from win32com.client import Dispatch
PAGE_BEFORE = 4
PAGE_AFTER = 5
PAGE_BOTH = 6
NoConnectException = Exception NoConnectException = Exception
else: else:
import uno import uno
from com.sun.star.connection import NoConnectException from com.sun.star.connection import NoConnectException
try:
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:
PAGE_BEFORE = 4
PAGE_AFTER = 5
PAGE_BOTH = 6
class OooImport(SongImport): class OooImport(SongImport):
""" """