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
{
...
};
[Abstract Class] The information generator.
Definition generator.h:189
Abstract interface for advanced printing control.
Q_INTERFACES(...)
Q_OBJECTQ_OBJECT

and - of course - implementing its methods.

Definition at line 36 of file printinterface.h.

Constructor & Destructor Documentation

◆ PrintInterface()

Okular::PrintInterface::PrintInterface ( )
inline

Definition at line 39 of file printinterface.h.

◆ ~PrintInterface()

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

Destroys the printer interface.

Definition at line 46 of file printinterface.h.

Member Function Documentation

◆ printConfigurationWidget()

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-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:50 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.