Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. /*
  2.  * Copyright 2008 Adam Blokus <adamblokus@gmail.com>
  3.  *
  4.  * This file is part of NetSurf, http://www.netsurf-browser.org/
  5.  *
  6.  * NetSurf is free software; you can redistribute it and/or modify
  7.  * it under the terms of the GNU General Public License as published by
  8.  * the Free Software Foundation; version 2 of the License.
  9.  *
  10.  * NetSurf is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  * GNU General Public License for more details.
  14.  *
  15.  * You should have received a copy of the GNU General Public License
  16.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  17.  */
  18.  
  19. /** \file
  20.  *      Printer interface - contains plotter to use, functions for
  21.  * initialization, handling pages and cleaning up.
  22. */
  23.  
  24. #ifndef NETSURF_DESKTOP_PRINTER_H
  25. #define NETSURF_DESKTOP_PRINTER_H
  26.  
  27. #include "desktop/plotters.h"
  28. #include "desktop/print.h"
  29.  
  30. /** Printer interface */
  31. struct printer{
  32.         const struct plotter_table *plotter;
  33.  
  34.         bool (*print_begin) (struct print_settings*);
  35.  
  36.         bool (*print_next_page)(void);
  37.  
  38.         void (*print_end)(void);
  39. };
  40.  
  41. #endif
  42.