Commit a88fadf0 authored by Carlos Garcia Campos's avatar Carlos Garcia Campos

2007-05-25 Carlos Garcia Campos <carlosgc@gnome.org>

	* glib/poppler-page.cc:
	* glib/poppler-page.h:
	* glib/poppler.h:
	Add selection style parameter to render_selection in order to allow
	requesting selections of words and paragraphs.
parent bf195b48
2007-05-25 Carlos Garcia Campos <carlosgc@gnome.org>
* glib/poppler-page.cc:
* glib/poppler-page.h:
* glib/poppler.h:
Add selection style parameter to render_selection in order to allow
requesting selections of words and paragraphs.
2007-05-23 Pino Toscano <pino@kde.org>
* qt4/src/poppler-document.cc:
......
......@@ -643,12 +643,13 @@ poppler_page_set_selection_alpha (PopplerPage *page,
* only render the changed part of the selection.
**/
void
poppler_page_render_selection (PopplerPage *page,
cairo_t *cairo,
PopplerRectangle *selection,
PopplerRectangle *old_selection,
GdkColor *glyph_color,
GdkColor *background_color)
poppler_page_render_selection (PopplerPage *page,
cairo_t *cairo,
PopplerRectangle *selection,
PopplerRectangle *old_selection,
PopplerSelectionStyle style,
GdkColor *glyph_color,
GdkColor *background_color)
{
TextOutputDev *text_dev;
CairoOutputDev *output_dev;
......@@ -711,14 +712,15 @@ poppler_page_render_selection (PopplerPage *page,
* only render the changed part of the selection.
**/
void
poppler_page_render_selection_to_pixbuf (PopplerPage *page,
gdouble scale,
int rotation,
GdkPixbuf *pixbuf,
PopplerRectangle *selection,
PopplerRectangle *old_selection,
GdkColor *glyph_color,
GdkColor *background_color)
poppler_page_render_selection_to_pixbuf (PopplerPage *page,
gdouble scale,
int rotation,
GdkPixbuf *pixbuf,
PopplerRectangle *selection,
PopplerRectangle *old_selection,
PopplerSelectionStyle style,
GdkColor *glyph_color,
GdkColor *background_color)
{
TextOutputDev *text_dev;
OutputDev *output_dev;
......
......@@ -81,8 +81,9 @@ void poppler_page_render_selection (PopplerPage *pa
cairo_t *cairo,
PopplerRectangle *selection,
PopplerRectangle *old_selection,
GdkColor *glyph_color,
GdkColor *background_color);
PopplerSelectionStyle style,
GdkColor *glyph_color,
GdkColor *background_color);
#endif
void poppler_page_render_selection_to_pixbuf (
PopplerPage *page,
......@@ -91,6 +92,7 @@ void poppler_page_render_selection_to_pixbuf (
GdkPixbuf *pixbuf,
PopplerRectangle *selection,
PopplerRectangle *old_selection,
PopplerSelectionStyle style,
GdkColor *glyph_color,
GdkColor *background_color);
GList *poppler_page_get_form_fields (PopplerPage *page);
......
......@@ -70,6 +70,13 @@ typedef enum
POPPLER_PAGE_TRANSITION_OUTWARD
} PopplerPageTransitionDirection;
typedef enum
{
POPPLER_SELECTION_NORMAL,
POPPLER_SELECTION_WORD,
POPPLER_SELECTION_PARAGRAPH
} PopplerSelectionStyle;
/* MUST be the same than poppler/Form.h fieldType */
typedef enum
{
......
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