Index: experimental/PdfViewer/spec2def.py |
=================================================================== |
--- experimental/PdfViewer/spec2def.py (revision 9879) |
+++ experimental/PdfViewer/spec2def.py (working copy) |
@@ -627,11 +627,13 @@ |
fspecPy.write('def addDictionaryTypesTo(knowTypes):\n') |
for e in tableToClassName: |
- fspecPy.write(' knowTypes[\'' + tableToClassName[e][0] + '\'] = [\'SkPdf' + tableToClassName[e][0] + '*\', \'SkPdf' + tableToClassName[e][0] + 'FromDictionary\', datatypes.CppNull(), \'ret->podofo()->GetDataType() == PoDoFo::ePdfDataType_Dictionary\', \'A_DICTIONARY\']\n') |
+ #TODO(edisonn): build this map |
+ |
+ fspecPy.write(' knowTypes[\'' + tableToClassName[e][0] + '\'] = [\'SkPdf' + tableToClassName[e][0] + '*\', \'(SkPdf' + tableToClassName[e][0] + '*)ret\', datatypes.CppNull(), \'ret->isDictionary() && ((SkPdf' + tableToClassName[e][0] + '*)ret)->valid()\', \'A_DICTIONARY\']\n') |
fspecPy.write('\n') |
#print lines |
#fnewspec.close() |
if '__main__' == __name__: |
- sys.exit(generateDef()) |
+ sys.exit(generateDef()) |