mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
055690844a
commit
5fd415ea2d
@ -249,6 +249,7 @@ class Widget(QWidget):
|
|||||||
|
|
||||||
|
|
||||||
def set_value_handler(self, g, val):
|
def set_value_handler(self, g, val):
|
||||||
|
'Return True iff you handle setting the value for g'
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def post_set_value(self, g, val):
|
def post_set_value(self, g, val):
|
||||||
|
@ -760,7 +760,10 @@ class ODF2XHTML(handler.ContentHandler):
|
|||||||
def s_draw_object_ole(self, tag, attrs):
|
def s_draw_object_ole(self, tag, attrs):
|
||||||
""" A <draw:object-ole> is embedded OLE object in the document (e.g. MS Graph).
|
""" A <draw:object-ole> is embedded OLE object in the document (e.g. MS Graph).
|
||||||
"""
|
"""
|
||||||
|
try:
|
||||||
class_id = attrs[(DRAWNS,"class-id")]
|
class_id = attrs[(DRAWNS,"class-id")]
|
||||||
|
except KeyError: # Added by Kovid to ignore <draw> without the right
|
||||||
|
return # attributes
|
||||||
if class_id and class_id.lower() == "00020803-0000-0000-c000-000000000046": ## Microsoft Graph 97 Chart
|
if class_id and class_id.lower() == "00020803-0000-0000-c000-000000000046": ## Microsoft Graph 97 Chart
|
||||||
tagattrs = { 'name':'object_ole_graph', 'class':'ole-graph' }
|
tagattrs = { 'name':'object_ole_graph', 'class':'ole-graph' }
|
||||||
self.opentag('a', tagattrs)
|
self.opentag('a', tagattrs)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user