1. 03 Apr, 2019 1 commit
    • Michael Weghorn's avatar
      Add option to ignore print margins for non-PDF generators · 8bf1a911
      Michael Weghorn authored
      This adds a combobox in the print dialog of the non-PDF
      generators to allow selecting whether or not to take
      print margins into account.
      For the PDF case and rasterized printing, new print otions have
      been implemented in commit 2e97d587
      already, which adds an additional option to do no scaling at all.
      For consistency reasons, the same terms also used for the PDF
      case are used in the combobox (i.e. the two of the three that
      This adds a new abstract class 'PrintOptionsWidget' with a
      'ignorePrintMargins()' method to indicate whether print margins
      should be ignored or not, and a default implementation.
      The existing widget for the PDF generator now derives from this
      In order to avoid an ABI breakage, the return value of
      'Document::printConfigurationWidget' is left as a 'QWidget *'
      and a dynamic_cast is done on use.
      FilePrinter is adapted to take into account the value set by
      'QPrinter::setFullPage()' and the margin options
      are now passed accordingly (either the values set in the dialog or '0').
      A big thanks to Albert Astals Cid <aacid@kde.org> for showing how
      to extend the initial implementation to cover more generators.
      Test Plan:
      1) Open a PostScript file in Okular (using a document size that matches
        a paper size available on the printer used later makes it easier
        to see things behave as expected)
      2) open print dialog, go to "Print options" and notice that there is a new
        "Scale mode" combobox whose value is set to "Fit to printable area"
         by default.
      3) don't change any options, print to a printer that has hardware margins
      Expected result: the document is scaled to the printable area (e.g.
      scaled down so that the printer's hardware margins remain empty) as it
      has been without this change.
      4) Set the value of the "Print Options" -> "Scale mode" combobox to
         "Fit to full page" and print again
      Expected result: The document is scaled to the full page size, i.e. ignoring
      the printer's hardware margins.
      5) Try steps 1-4 with other document formats supported by Okular and
         observe that they behave the same (except for the PDF case, where
         there's a combobox with three options that has been implemented
         independent of this change).
      Reviewers: #okular, ngraham
      Reviewed By: ngraham
      Subscribers: fvogt, rkflx, arthurpeters, ltoscano, okular-devel, aacid, ngraham
      Tags: #okular
      Differential Revision: https://phabricator.kde.org/D10974
  2. 31 Aug, 2018 1 commit
  3. 16 Mar, 2016 1 commit
  4. 29 Oct, 2015 1 commit
  5. 15 Apr, 2015 1 commit
  6. 13 Apr, 2015 1 commit
  7. 27 Oct, 2014 1 commit
  8. 08 Feb, 2014 1 commit
  9. 17 May, 2012 1 commit
  10. 08 Jan, 2012 2 commits
  11. 11 Dec, 2011 1 commit
  12. 08 Nov, 2011 1 commit
  13. 05 Nov, 2011 2 commits
  14. 23 Oct, 2011 1 commit
  15. 22 Oct, 2011 1 commit
  16. 17 Oct, 2011 1 commit
  17. 10 Sep, 2011 2 commits
  18. 01 Jun, 2011 1 commit
  19. 19 Oct, 2009 1 commit
  20. 11 Mar, 2008 1 commit
    • Pino Toscano's avatar
      Add the possibility to save a copy of the document with the changes to it... · c9089f31
      Pino Toscano authored
      Add the possibility to save a copy of the document with the changes to it (only for form fields at the moment).
      On the Document/Generator side, introduce a proper interface for the purpouse.
      On the GUI side, add a new "Save As" function that save the changed document to a location.
      The action is enabled only if the current backend can provide the functionality.
      svn path=/trunk/KDE/kdegraphics/okular/; revision=784661
  21. 15 Oct, 2007 1 commit
    • John Layt's avatar
      Port from KPrinter to QPrinter, remove dependency on KDE4_KDEPRINT_LIBS. · 070285e0
      John Layt authored
      *** Note this is not a complete port, most of the generators use the 
      printFiles method which Qt 4.3 does not support, these have simply
      been commented out until we find a solution.  At least it removes
      the dependency so we can remove from kdelibs.
      svn path=/trunk/KDE/kdegraphics/okular/; revision=725660
  22. 28 Aug, 2007 1 commit
    • Pino Toscano's avatar
      Cleanup a bit the GuiInterface, and making it work. · a8d74774
      Pino Toscano authored
      Instead of manually requestion actions and other stuff, we just make the interface as gui client, requesting and integrating it in the part gui.
      Also, rename the Generator's componentData() to ownComponentData() to avoid clashing with KXMLGUIClient.
      svn path=/trunk/KDE/kdegraphics/okular/; revision=705933
  23. 12 Jul, 2007 1 commit
  24. 22 Apr, 2007 1 commit
  25. 12 Jan, 2007 1 commit
  26. 03 Jan, 2007 1 commit