forked from openlp/openlp
Add tolltip and impress debugging
This commit is contained in:
parent
37679fc1db
commit
b544e519b1
@ -45,6 +45,7 @@ else:
|
|||||||
try:
|
try:
|
||||||
import uno
|
import uno
|
||||||
from com.sun.star.beans import PropertyValue
|
from com.sun.star.beans import PropertyValue
|
||||||
|
from com.sun.star.task import ErrorCodeIOException
|
||||||
uno_available = True
|
uno_available = True
|
||||||
except ImportError:
|
except ImportError:
|
||||||
uno_available = False
|
uno_available = False
|
||||||
@ -270,7 +271,7 @@ class ImpressDocument(PresentationDocument):
|
|||||||
else:
|
else:
|
||||||
thumbdirurl = uno.systemPathToFileUrl(self.get_temp_folder())
|
thumbdirurl = uno.systemPathToFileUrl(self.get_temp_folder())
|
||||||
props = []
|
props = []
|
||||||
props.append(self.create_property(u'FilterName', u'impress_png_Export'))
|
props.append(self.create_property(u'FilterName', u'impress_jpg_Export'))
|
||||||
props = tuple(props)
|
props = tuple(props)
|
||||||
doc = self.document
|
doc = self.document
|
||||||
pages = doc.getDrawPages()
|
pages = doc.getDrawPages()
|
||||||
@ -286,6 +287,9 @@ class ImpressDocument(PresentationDocument):
|
|||||||
doc.storeToURL(urlpath, props)
|
doc.storeToURL(urlpath, props)
|
||||||
self.convert_thumbnail(path, idx + 1)
|
self.convert_thumbnail(path, idx + 1)
|
||||||
delete_file(path)
|
delete_file(path)
|
||||||
|
except ErrorCodeIOException, exception:
|
||||||
|
log.exception(u'ERROR! ErrorCodeIOException %d' %
|
||||||
|
exception.ErrCode)
|
||||||
except:
|
except:
|
||||||
log.exception(u'%s - Unable to store openoffice preview' % path)
|
log.exception(u'%s - Unable to store openoffice preview' % path)
|
||||||
|
|
||||||
|
@ -90,5 +90,11 @@ class Ui_EditVerseDialog(object):
|
|||||||
VerseType.TranslatedNames[VerseType.Other])
|
VerseType.TranslatedNames[VerseType.Other])
|
||||||
self.splitButton.setText(
|
self.splitButton.setText(
|
||||||
translate('SongsPlugin.EditVerseForm', '&Split'))
|
translate('SongsPlugin.EditVerseForm', '&Split'))
|
||||||
|
self.splitButton.setToolTip(
|
||||||
|
translate('SongsPlugin.EditVerseForm', 'Split a slide into two '
|
||||||
|
'only if it does not fit on the screen as one slide.'))
|
||||||
self.insertButton.setText(
|
self.insertButton.setText(
|
||||||
translate('SongsPlugin.EditVerseForm', '&Insert'))
|
translate('SongsPlugin.EditVerseForm', '&Insert'))
|
||||||
|
self.insertButton.setToolTip(
|
||||||
|
translate('SongsPlugin.EditVerseForm', 'Split a slide into two '
|
||||||
|
'by inserting a verse splitter.'))
|
||||||
|
Loading…
Reference in New Issue
Block a user