Index: experimental/PdfViewer/datatypes.py |
=================================================================== |
--- experimental/PdfViewer/datatypes.py (revision 0) |
+++ experimental/PdfViewer/datatypes.py (revision 0) |
@@ -0,0 +1,48 @@ |
+ |
+class PdfName: |
+ def __init__(self, name, abr=''): |
+ self.fName = name |
+ self.fAbr = abr |
+ |
+ def toCpp(self): |
+ return '\"' + self.fName + '\"' |
+ |
+class PdfString: |
+ def __init__(self, value): |
+ self.fValue = value |
+ |
+ def toCpp(self): |
+ return '\"' + self.fValue + '\"' |
+ |
+class PdfInteger: |
+ def __init__(self, value): |
+ self.fValue = value |
+ |
+ def toCpp(self): |
+ return str(self.fValue) |
+ |
+class PdfNumber: |
+ def __init__(self, value): |
+ self.fValue = value |
+ |
+ def toCpp(self): |
+ return str(self.fValue) |
+ |
+class PdfString: |
+ def __init__(self, value): |
+ self.fValue = value |
+ |
+ def toCpp(self): |
+ return self.fValue |
+ |
+class PdfBoolean: |
+ def __init__(self, value): |
+ self.fValue = value |
+ |
+ def toCpp(self): |
+ return self.fValue |
+ |
+class CppNull: |
+ def toCpp(self): |
+ return 'NULL' |
+ |