X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=pdf%2Fxpdf%2FObject.h;h=fa4f740b5ef45b85dbfe2d11df4eb57eafd8f6a1;hb=7aac8dc8533347e21311b15186e0af82f1b22fd6;hp=cb7a4180263837e6b6fae740325cb3e376c63333;hpb=bf3b381529f5388bd1bda8ed8fafb247a7b8a9fc;p=evince.git diff --git a/pdf/xpdf/Object.h b/pdf/xpdf/Object.h index cb7a4180..fa4f740b 100644 --- a/pdf/xpdf/Object.h +++ b/pdf/xpdf/Object.h @@ -115,6 +115,7 @@ public: void free(); // Type checking. + ObjType getType() { return type; } GBool isBool() { return type == objBool; } GBool isInt() { return type == objInt; } GBool isReal() { return type == objReal; } @@ -172,12 +173,12 @@ public: // Stream accessors. GBool streamIs(char *dictType); void streamReset(); + void streamClose(); int streamGetChar(); int streamLookChar(); char *streamGetLine(char *buf, int size); int streamGetPos(); void streamSetPos(int pos); -/* BaseFile streamGetFile();*/ Dict *streamGetDict(); // Output. @@ -275,6 +276,9 @@ inline GBool Object::isStream(char *dictType) inline void Object::streamReset() { stream->reset(); } +inline void Object::streamClose() + { stream->close(); } + inline int Object::streamGetChar() { return stream->getChar(); } @@ -290,9 +294,6 @@ inline int Object::streamGetPos() inline void Object::streamSetPos(int pos) { stream->setPos(pos); } -/*inline BaseFile Object::streamGetFile() - { return stream->getFile(); }*/ - inline Dict *Object::streamGetDict() { return stream->getDict(); }