Commit 222f1933 authored by Enrico Ros's avatar Enrico Ros
Browse files

2/2 Preliminar suport for saving images with RMB popup.

svn path=/branches/kpdf_experiments/kdegraphics/kpdf/; revision=356242
parent d07efe68
......@@ -174,15 +174,6 @@ GBool KPDFOutputDev::beginType3Char(GfxState *state, double x, double y, double
return SplashOutputDev::beginType3Char(state, x, y, dx, dy, code, u, uLen);
}
/*void KPDFOutputDev::drawImageMask(GfxState *state, Object *ref, Stream *str,
int width, int height, GBool invert,
GBool inlineImg)
{
double * ctm = state->getCTM();
printf("> %d %d %f %f %f %f %f %f\n", width, height, ctm[0], ctm[1], ctm[2], ctm[3], ctm[4], ctm[5]);
SplashOutputDev::drawImageMask(state, ref, str, width, height, invert, inlineImg);
}
*/
void KPDFOutputDev::drawImage(GfxState *state, Object *ref, Stream *str,
int _width, int _height, GfxImageColorMap *colorMap,
int *maskColors, GBool inlineImg)
......
......@@ -62,9 +62,6 @@ public:
virtual void drawChar(GfxState *state, double x, double y, double dx, double dy, double originX, double originY, CharCode code, Unicode *u, int uLen);
virtual GBool beginType3Char(GfxState *state, double x, double y, double dx, double dy, CharCode code, Unicode *u, int uLen);
//----- image drawing
/* virtual void drawImageMask(GfxState *state, Object *ref, Stream *str,
int width, int height, GBool invert,
GBool inlineImg);*/
virtual void drawImage(GfxState *state, Object *ref, Stream *str,
int width, int height, GfxImageColorMap *colorMap,
int *maskColors, GBool inlineImg);
......
......@@ -270,6 +270,7 @@ void KPDFDocument::requestPixmap( int id, uint page, int width, int height, bool
kp->setSearchPage( d->kpdfOutputDev->takeTextPage() );
if ( genLinks )
kp->setLinks( d->kpdfOutputDev->takeLinks() );
kp->setActiveRects( d->kpdfOutputDev->takeActiveRects() );
d->observers[id]->notifyPixmapChanged( page );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment