diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2007-02-13 15:32:24 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@src.gnome.org> | 2007-02-13 15:32:24 (GMT) |
commit | 2d1cbc42b4fb22539659e4f621d2d8545d907adb (patch) | |
tree | 33919af82a98a414a3b605e93991b4907b165c90 /backend/ps/ps-interpreter.h | |
parent | 2f05c3cfce8ff02eb9ddb107102b1e61196ad0f4 (diff) |
Add support for thumbnails in ps backend. Fixes bug #164755.
2007-02-13 Carlos Garcia Campos <carlosgc@gnome.org>
* backend/ps/Makefile.am:
* backend/ps/ps-document.[ch]: (ps_document_init), (ps_document_dispose),
(document_load), (ps_document_load), (save_document),
(save_page_list), (ps_document_get_n_pages),
(ps_document_get_page_size), (ps_document_get_info),
(ps_interpreter_page_rendered), (ps_async_renderer_render_pixbuf),
(ps_interpreter_thumbnail_rendered), (ps_document_render_thumbnail),
(ps_document_thumbnails_get_thumbnail),
(ps_document_thumbnails_get_dimensions),
(ps_document_document_thumbnails_iface_init):
* backend/ps/ps.[ch]: (psgetpagebox):
* backend/ps/ps-interpreter.[ch]:
Add support for thumbnails in ps backend. Fixes bug #164755.
svn path=/trunk/; revision=2323
Diffstat (limited to 'backend/ps/ps-interpreter.h')
-rw-r--r-- | backend/ps/ps-interpreter.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/backend/ps/ps-interpreter.h b/backend/ps/ps-interpreter.h new file mode 100644 index 0000000..150bfec --- /dev/null +++ b/backend/ps/ps-interpreter.h @@ -0,0 +1,49 @@ +/* this file is part of evince, a gnome document viewer + * + * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org> + * + * Evince is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * Evince is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + */ + +#ifndef __PS_INTERPRETER_H__ +#define __PS_INTERPRETER_H__ + +#include <glib-object.h> + +#include "ps.h" + +G_BEGIN_DECLS + +typedef struct _PSInterpreter PSInterpreter; +typedef struct _PSInterpreterClass PSInterpreterClass; + +#define PS_TYPE_INTERPRETER (ps_interpreter_get_type()) +#define PS_INTERPRETER(object) (G_TYPE_CHECK_INSTANCE_CAST((object), PS_TYPE_INTERPRETER, PSInterpreter)) +#define PS_INTERPRETER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PS_TYPE_INTERPRETER, PSInterpreterClass)) +#define PS_IS_INTERPRETER(object) (G_TYPE_CHECK_INSTANCE_TYPE((object), PS_TYPE_INTERPRETER)) +#define PS_IS_INTERPRETER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PS_TYPE_INTERPRETER)) +#define PS_INTERPRETER_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS((object), PS_TYPE_INTERPRETER, PSInterpreterClass)) + +GType ps_interpreter_get_type (void) G_GNUC_CONST; +PSInterpreter *ps_interpreter_new (const gchar *filename, + const struct document *doc); +void ps_interpreter_render_page (PSInterpreter *gs, + gint page, + gdouble scale, + gint rotation); + +G_END_DECLS + +#endif /* __PS_INTERPRETER_H__ */ |