X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=pdf%2Fxpdf%2FXPDFCore.h;h=64357362375111392720c9d21611b2642d626b14;hb=884f739665dc56e66f51e104350f2affd33f2dd8;hp=348486f0ff9c786bfe8f994a98c40b6d638f8bb5;hpb=6112dfe4b45b0305c7a6f61bd8a847f69f892cbb;p=evince.git diff --git a/pdf/xpdf/XPDFCore.h b/pdf/xpdf/XPDFCore.h index 348486f0..64357362 100644 --- a/pdf/xpdf/XPDFCore.h +++ b/pdf/xpdf/XPDFCore.h @@ -2,7 +2,7 @@ // // XPDFCore.h // -// Copyright 2002 Glyph & Cog, LLC +// Copyright 2002-2003 Glyph & Cog, LLC // //======================================================================== @@ -24,6 +24,7 @@ class GString; class GList; +class BaseStream; class PDFDoc; class LinkAction; class LinkDest; @@ -59,6 +60,7 @@ struct XPDFRegion { double xMin, yMin, xMax, yMax; Gulong color; Gulong selectColor; + GBool selectable; }; //------------------------------------------------------------------------ @@ -97,6 +99,11 @@ public: int loadFile(GString *fileName, GString *ownerPassword = NULL, GString *userPassword = NULL); + // Load a new file, via a Stream instead of a file name. Returns + // pdfOk or error code. + int loadFile(BaseStream *stream, GString *ownerPassword = NULL, + GString *userPassword = NULL); + // Resize the window to fit page of the current document. void resizeToPage(int pg); @@ -169,6 +176,7 @@ public: int getDrawAreaWidth() { return drawAreaWidth; } int getDrawAreaHeight() { return drawAreaHeight; } void setBusyCursor(GBool busy); + Cursor getBusyCursor() { return busyCursor; } void takeFocus(); void enableHyperlinks(GBool on) { hyperlinksEnabled = on; } void enableSelect(GBool on) { selectEnabled = on; } @@ -252,6 +260,7 @@ private: GBool lastDragTop; // last dragged selection edge was top/bottom static GString *currentSelection; // selected text static XPDFCore *currentSelectionOwner; + static Atom targetsAtom; GBool panning; int panMX, panMY;