Skip to content
  • Michael Weghorn's avatar
    Add option to ignore print margins for non-PDF generators · 8bf1a911
    Michael Weghorn authored and Nate Graham's avatar Nate Graham committed
    Summary:
    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
    apply).
    
    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
    class.
    
    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::setFull...
    8bf1a911