forked from openlp/openlp
SOF UNO constants too
This commit is contained in:
parent
e1dc332be4
commit
d58682ad6b
@ -41,20 +41,23 @@ from oooimport import OooImport
|
|||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
if os.name == u'nt':
|
if os.name == u'nt':
|
||||||
BOLD = 150.0
|
|
||||||
ITALIC = 2
|
|
||||||
from oooimport import PAGE_BEFORE, PAGE_AFTER, PAGE_BOTH
|
from oooimport import PAGE_BEFORE, PAGE_AFTER, PAGE_BOTH
|
||||||
RuntimeException = Exception
|
RuntimeException = Exception
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
from com.sun.star.awt.FontWeight import BOLD
|
|
||||||
from com.sun.star.awt.FontSlant import ITALIC
|
|
||||||
from com.sun.star.style.BreakType import PAGE_BEFORE, PAGE_AFTER, \
|
from com.sun.star.style.BreakType import PAGE_BEFORE, PAGE_AFTER, \
|
||||||
PAGE_BOTH
|
PAGE_BOTH
|
||||||
from com.sun.star.uno import RuntimeException
|
from com.sun.star.uno import RuntimeException
|
||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
pass
|
||||||
|
try:
|
||||||
|
from com.sun.star.awt.FontWeight import BOLD
|
||||||
|
except ImportError:
|
||||||
|
BOLD = 150.0
|
||||||
|
try:
|
||||||
|
from com.sun.star.awt.FontSlant import ITALIC
|
||||||
|
except ImportError:
|
||||||
|
ITALIC = 2
|
||||||
|
|
||||||
class SofImport(OooImport):
|
class SofImport(OooImport):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user