websettings.hh 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // Copyright 2010 wkhtmltopdf authors
  2. //
  3. // This file is part of wkhtmltopdf.
  4. //
  5. // wkhtmltopdf is free software: you can redistribute it and/or modify
  6. // it under the terms of the GNU General Public License as published by
  7. // the Free Software Foundation, either version 3 of the License, or
  8. // (at your option) any later version.
  9. //
  10. // wkhtmltopdf 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 wkhtmltopdf. If not, see <http://www.gnu.org/licenses/>.
  17. #ifndef __WEBSETTINGS_HH__
  18. #define __WEBSETTINGS_HH__
  19. #include <QNetworkProxy>
  20. #include <QString>
  21. #include <wkhtmltox/dllbegin.inc>
  22. namespace wkhtmltopdf {
  23. namespace settings {
  24. struct DLL_PUBLIC Web {
  25. Web();
  26. //! Should we print background images
  27. bool background;
  28. //! Should we load images
  29. bool loadImages;
  30. //! Should we enable Javascript
  31. bool enableJavascript;
  32. //! Should the horrible intelligent shrinking feature be enabled?
  33. bool enableIntelligentShrinking;
  34. //! Minimum font size
  35. int minimumFontSize;
  36. //! Should we use the print or the screen media type
  37. bool printMediaType;
  38. //! Encoding used to enterpit a document with do supplied encoding
  39. QString defaultEncoding;
  40. //! Stylesheet supplied by the user
  41. QString userStyleSheet;
  42. //! Should plugins be allowed
  43. bool enablePlugins;
  44. };
  45. }
  46. }
  47. #include <wkhtmltox/dllend.inc>
  48. #endif //__WEBSETTINGS_HH__