[poppler] poppler/poppler: TextOutputDev.cc, 1.9,
1.10 TextOutputDev.h, 1.5, 1.6
Kristian Hogsberg
krh at freedesktop.org
Wed Aug 24 11:57:48 PDT 2005
Update of /cvs/poppler/poppler/poppler
In directory gabe:/tmp/cvs-serv14238/poppler
Modified Files:
TextOutputDev.cc TextOutputDev.h
Log Message:
2005-08-24 Kristian Høgsberg <krh at redhat.com>
* poppler/TextOutputDev.cc: Push rotation argument down to
GfxState constructor. This is still not completely functional yet.
* glib/poppler-page.cc (poppler_page_render_selection): Add
rotation argument so API is useful. Not yet implemented.
(poppler_page_prepare_output_dev): Patch from Marco to fix
rotation using the cairo backend.
Index: TextOutputDev.cc
===================================================================
RCS file: /cvs/poppler/poppler/poppler/TextOutputDev.cc,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- TextOutputDev.cc 5 Aug 2005 22:30:20 -0000 1.9
+++ TextOutputDev.cc 24 Aug 2005 18:57:46 -0000 1.10
@@ -3193,6 +3193,7 @@
public:
TextSelectionPainter(TextPage *page,
double scale,
+ int rotation,
OutputDev *out,
GfxColor *box_color,
GfxColor *glyph_color);
@@ -3219,6 +3220,7 @@
TextSelectionPainter::TextSelectionPainter(TextPage *page,
double scale,
+ int rotation,
OutputDev *out,
GfxColor *box_color,
GfxColor *glyph_color)
@@ -3229,7 +3231,7 @@
{
PDFRectangle box(0, 0, page->pageWidth, page->pageHeight);
- state = new GfxState(72 * scale, 72 * scale, &box, 0, gFalse);
+ state = new GfxState(72 * scale, 72 * scale, &box, rotation, gFalse);
out->startPage (0, state);
@@ -3523,10 +3525,12 @@
void TextPage::drawSelection(OutputDev *out,
double scale,
+ int rotation,
PDFRectangle *selection,
GfxColor *glyph_color, GfxColor *box_color)
{
- TextSelectionPainter painter(this, scale, out, box_color, glyph_color);
+ TextSelectionPainter painter(this, scale, rotation,
+ out, box_color, glyph_color);
visitSelection(&painter, selection);
}
@@ -4094,9 +4098,10 @@
void TextOutputDev::drawSelection(OutputDev *out,
double scale,
+ int rotation,
PDFRectangle *selection,
GfxColor *glyph_color, GfxColor *box_color) {
- text->drawSelection(out, scale, selection, glyph_color, box_color);
+ text->drawSelection(out, scale, rotation, selection, glyph_color, box_color);
}
GooList *TextOutputDev::getSelectionRegion(PDFRectangle *selection,
Index: TextOutputDev.h
===================================================================
RCS file: /cvs/poppler/poppler/poppler/TextOutputDev.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- TextOutputDev.h 5 Aug 2005 19:04:36 -0000 1.5
+++ TextOutputDev.h 24 Aug 2005 18:57:46 -0000 1.6
@@ -425,6 +425,7 @@
void drawSelection(OutputDev *out,
double scale,
+ int rotation,
PDFRectangle *selection,
GfxColor *glyph_color, GfxColor *box_color);
@@ -586,7 +587,8 @@
double *xMin, double *yMin,
double *xMax, double *yMax);
- void drawSelection(OutputDev *out, double scale, PDFRectangle *selection,
+ void drawSelection(OutputDev *out, double scale, int rotation,
+ PDFRectangle *selection,
GfxColor *glyph_color, GfxColor *box_color);
GooList *getSelectionRegion(PDFRectangle *selection, double scale);
More information about the poppler
mailing list