kexi

#include <kexisimpleprintingpagesetup.h>

Public Slots

bool print (const KexiSimplePrintingSettings &settings, const TQString &aTitleText=TQString())
bool print (const TQString &aTitleText=TQString())
bool showPrintPreview (const KexiSimplePrintingSettings &settings, const TQString &aTitleText=TQString(), bool reload=false)

Signals

void showPageSetupRequested (KexiPart::Item *item)

Public Member Functions

 KexiSimplePrintingCommand (KexiMainWindow *mainWin, int objectId, TQObject *parent=0)

Protected Slots

void slotShowPageSetupRequested ()

Protected Attributes

KexiSimplePrintingEngine * m_previewEngine
KexiMainWindow * m_mainWin
int m_objectId
KexiSimplePrintingSettings m_settings
KexiSimplePrintPreviewWindow * m_previewWindow
bool m_printPreviewNeedsReloading: 1

Detailed Description

A command for simple printing and print preview. This class is instantiated in KexiMainWindowImpl so there's:

  • a single print preview window per part item regardless of a way how user invoked the 'print preview' command (using 'File->Print Preview' command or 'Print Preview' button of the 'Page Setup' dialog)
  • a single printing engine per part item regardless of a way how user started (using 'File->Print' command or 'Print' button of the 'Page Setup' dialog)

Definition at line 38 of file kexisimpleprintingpagesetup.h.

Constructor & Destructor Documentation

◆ KexiSimplePrintingCommand()

KexiSimplePrintingCommand::KexiSimplePrintingCommand ( KexiMainWindow * mainWin,
int objectId,
TQObject * parent = 0 )

Definition at line 48 of file kexisimpleprintingpagesetup.cpp.

◆ ~KexiSimplePrintingCommand()

KexiSimplePrintingCommand::~KexiSimplePrintingCommand ( )

Definition at line 61 of file kexisimpleprintingpagesetup.cpp.

Member Function Documentation

◆ print [1/2]

bool KexiSimplePrintingCommand::print ( const KexiSimplePrintingSettings & settings,
const TQString & aTitleText = TQString() )
slot

Definition at line 69 of file kexisimpleprintingpagesetup.cpp.

◆ print [2/2]

bool KexiSimplePrintingCommand::print ( const TQString & aTitleText = TQString())
slot
Todo
item not found
Todo
get printer.pageOrder() (for reversed order requires improved engine)
Todo
msg
Todo
also look at printer.pageSet() option : all/odd/even pages

Definition at line 76 of file kexisimpleprintingpagesetup.cpp.

◆ showPageSetupRequested

void KexiSimplePrintingCommand::showPageSetupRequested ( KexiPart::Item * item)
signal

connected to Kexi Main Window

◆ showPrintPreview

bool KexiSimplePrintingCommand::showPrintPreview ( const KexiSimplePrintingSettings & settings,
const TQString & aTitleText = TQString(),
bool reload = false )
slot
Todo
item not found
Todo
progress bar...

Definition at line 228 of file kexisimpleprintingpagesetup.cpp.

◆ slotShowPageSetupRequested

void KexiSimplePrintingCommand::slotShowPageSetupRequested ( )
protectedslot

Definition at line 286 of file kexisimpleprintingpagesetup.cpp.

Member Data Documentation

◆ m_mainWin

KexiMainWindow* KexiSimplePrintingCommand::m_mainWin
protected

Definition at line 65 of file kexisimpleprintingpagesetup.h.

◆ m_objectId

int KexiSimplePrintingCommand::m_objectId
protected

Definition at line 66 of file kexisimpleprintingpagesetup.h.

◆ m_previewEngine

KexiSimplePrintingEngine* KexiSimplePrintingCommand::m_previewEngine
protected

Definition at line 64 of file kexisimpleprintingpagesetup.h.

◆ m_previewWindow

KexiSimplePrintPreviewWindow* KexiSimplePrintingCommand::m_previewWindow
protected

Definition at line 68 of file kexisimpleprintingpagesetup.h.

◆ m_printPreviewNeedsReloading

bool KexiSimplePrintingCommand::m_printPreviewNeedsReloading
protected

Definition at line 69 of file kexisimpleprintingpagesetup.h.

◆ m_settings

KexiSimplePrintingSettings KexiSimplePrintingCommand::m_settings
protected

Definition at line 67 of file kexisimpleprintingpagesetup.h.


The documentation for this class was generated from the following files: