Okular::PrintInterface

Search for usage in LXR

Okular::PrintInterface Class Referenceabstract

#include <printinterface.h>

Public Member Functions

 PrintInterface (const PrintInterface &)=delete
 
virtual ~PrintInterface ()
 
PrintInterfaceoperator= (const PrintInterface &)=delete
 
virtual QWidgetprintConfigurationWidget () const =0
 

Detailed Description

Abstract interface for advanced printing control.

This interface defines an advanced way of interfacing with the print process.

How to use it in a custom Generator:

class MyGenerator : public Okular::Generator, public Okular::PrintInterface
{
Q_OBJECT
Q_INTERFACES( Okular::PrintInterface )
...
};

and - of course - implementing its methods.

Definition at line 36 of file printinterface.h.

Constructor & Destructor Documentation

virtual Okular::PrintInterface::~PrintInterface ( )
inlinevirtual

Destroys the printer interface.

Definition at line 46 of file printinterface.h.

Member Function Documentation

virtual QWidget* Okular::PrintInterface::printConfigurationWidget ( ) const
pure virtual

Builds and returns a new printing configuration widget.

Note
don't keep a pointer to the new constructed widget, as it will be handled elsewhere (in the Okular KPart)
The returned object should be of a PrintOptionsWidget subclass (which is not officially enforced by the signature for binary compatibility reasons).

The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Oct 26 2021 22:36:46 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.