Sha256: 63389d3cbfbf53fdf23b35110a2ded488f009ee58c9d92dd9c5c6f072bed47c0
Contents?: true
Size: 1.19 KB
Versions: 2
Compression:
Stored size: 1.19 KB
Contents
#ifndef _HTML_LINKS #define _HTML_LINKS #include "GVector.h" #include "GString.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #ifndef _WIN32 #include <sys/unistd.h> #endif class XmlLink{ private: double Xmin; double Ymin; double Xmax; double Ymax; GString* dest; public: XmlLink(){dest=NULL;} XmlLink(const XmlLink& x); XmlLink& operator=(const XmlLink& x); XmlLink(double xmin,double ymin,double xmax,double ymax,GString *_dest); ~XmlLink(); //GBool XmlLink::isEqualDest(const XmlLink& x) const; // this kills gcc 4.* GBool isEqualDest(const XmlLink& x) const; GString *getDest(){return new GString(dest);} double getX1() const {return Xmin;} double getX2() const {return Xmax;} double getY1() const {return Ymin;} double getY2() const {return Ymax;} GBool inLink(double xmin,double ymin,double xmax,double ymax) const ; //GString *Link(GString *content); GString* getLinkStart(); }; class XmlLinks{ private: GVector<XmlLink> *accu; public: XmlLinks(); ~XmlLinks(); void AddLink(const XmlLink& x) {accu->push_back(x);} GBool inLink(double xmin,double ymin,double xmax,double ymax,int& p) const; XmlLink* getLink(int i) const; }; #endif
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pdf2json-0.2.0 | pdf2json-0.52-source/src/XmlLinks.h |
pdf2json-0.1.0 | pdf2json-0.52-source/src/XmlLinks.h |