/* $Id: pdfviewer.h,v 1.5 2012/08/31 20:26:39 khorben Exp $ */ /* Copyright (c) 2010 Sébastien Bocahu */ /* Copyright (c) 2012 Pierre Pronchery */ /* This program 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, version 3 of the License. * * This program 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, see . */ #ifndef PDFVIEWER_PDFVIEWER_H # define PDFVIEWER_PDFVIEWER_H # include # include /* PDFviewer */ /* types */ typedef struct _PDFviewer PDFviewer; /* functions */ PDFviewer * pdfviewer_new(void); void pdfviewer_delete(PDFviewer * pdfviewer); /* accessors */ void pdfviewer_set_fullscreen(PDFviewer * pdfviewer, gboolean fullscreen); /* useful */ int pdf_open(PDFviewer * pdfviewer, const char * filename); void pdf_open_dialog(PDFviewer * pdfviewer); void pdf_close(PDFviewer * pdfviewer); void pdf_update_scale(PDFviewer * pdfviewer, const char op, double n); void pdf_load_page(PDFviewer * pdfviewer); void pdf_update_current(PDFviewer * pdfviewer, const char op, int n); void set_prevnext_sensitivity(PDFviewer * pdfviewer); void pdfviewer_about(PDFviewer * pdfviewer); int pdfviewer_error(PDFviewer * pdfviewer, char const * message, int ret); gboolean pdfviewer_close(PDFviewer * pdfviewer); int pdfviewer_open(PDFviewer * pdfviewer, char const * filename); int pdfviewer_open_dialog(PDFviewer * pdfviewer); void pdfviewer_properties(PDFviewer * pdfviewer); void pdfviewer_fullscreen_toggle(PDFviewer * pdfviewer); /* FIXME not implemented */ void pdfviewer_find(PDFviewer * pdfviewer, char const * text); #endif /* !PDFVIEWER_PDFVIEWER_H */