okteta
printtool.cpp
Go to the documentation of this file.
61 mDocument = mByteArrayView ? qobject_cast<ByteArrayDocument*>( mByteArrayView->baseModel() ) : 0;
70 const QString processTitle = i18nc( "@title:window", "Print Byte Array %1", mDocument->title() );
85 QString creator = QString::fromLatin1( "Print Plugin for Okteta " ); // no i18n(), keep space at end as separator
108 footerFrameRenderer->setTexts( i18nc("in the footer of the printed page, e.g. Printed by: Joe User",
116 const int contentHeight = pageRect.height() - footerFrameRenderer->height() - headerFrameRenderer->height();
134 const Okteta::Address firstLineOffset = mByteArrayView->firstLineOffset() + line*noOfBytesPerLine;
162 PrintJob *printJob = new PrintJob( &framesPrinter, 0, byteArrayFrameRenderer->framesCount()-1, &printer );
bool showsNonprinting() const
Definition: bytearrayview.cpp:286
void setFirstLineOffset(Okteta::Address firstLineOffset)
Definition: bytearrayframerenderer.cpp:174
void setTargetModel(AbstractModel *model)
Definition: printtool.cpp:55
void setPaperRect(const QRect &paperRect)
Definition: framestopaperprinter.cpp:36
void setPageRect(const QRect &pageRect)
Definition: framestopaperprinter.cpp:37
void showByteArrayColumns(int CCs)
Definition: bytearrayframerenderer.cpp:503
QString charCodingName() const
Definition: bytearrayview.cpp:255
int noOfBytesPerLine() const
Definition: bytearrayview.cpp:244
void setBinaryGapWidth(Okteta::PixelX binaryGapWidth)
Definition: bytearrayframerenderer.cpp:249
void setBufferSpacing(Okteta::PixelX byteSpacing, int noOfGroupedBytes, Okteta::PixelX groupSpacing)
Definition: bytearrayframerenderer.cpp:195
int byteSpacingWidth() const
Definition: bytearrayview.cpp:378
Okteta::Address firstLineOffset() const
Definition: bytearrayview.cpp:240
void setShowsNonprinting(bool showsNonprinting)
Definition: bytearrayframerenderer.cpp:267
int visibleByteArrayCodings() const
Definition: bytearrayview.cpp:306
virtual int framesCount() const
Definition: bytearrayframerenderer.cpp:131
Okteta::AddressRange selection() const
Definition: bytearrayview.cpp:271
virtual Size size() const =0
void setValueCoding(Okteta::ValueCoding valueCoding)
Definition: bytearrayframerenderer.cpp:273
void setUndefinedChar(QChar undefinedChar)
Definition: bytearrayframerenderer.cpp:262
Okteta::AbstractByteArrayModel * mByteArrayModel
Definition: printtool.h:82
void setSubstituteChar(QChar substituteChar)
Definition: bytearrayframerenderer.cpp:257
int noOfGroupedBytes() const
Definition: bytearrayview.cpp:382
void setByteArrayModel(Okteta::AbstractByteArrayModel *byteArrayModel, Okteta::Address offset=0, Okteta::Size length=-1)
Definition: bytearrayframerenderer.cpp:143
Definition: headerfooterframerenderer.h:37
T findBaseModel() const
returns the first baseModel which is of type T, or null if none is found.
Definition: abstractmodel.h:93
void viewChanged(bool hasView)
int groupSpacingWidth() const
Definition: bytearrayview.cpp:386
QChar substituteChar() const
Definition: bytearrayview.cpp:369
void setStartOffset(Okteta::Address startOffset)
Definition: bytearrayframerenderer.cpp:184
Definition: framestopaperprinter.h:34
Definition: bytearraydocument.h:54
Definition: abstractmodel.h:40
void setHeight(int height)
Definition: bytearrayframerenderer.cpp:163
Okteta::Address startOffset() const
Definition: bytearrayview.cpp:236
Definition: printjob.h:42
void setCharCoding(Okteta::CharCoding charCoding)
Definition: bytearrayframerenderer.cpp:299
Definition: bytearrayview.h:51
Definition: bookmarkable.h:29
void addFrameRenderer(AbstractFrameRenderer *frameRenderer)
Definition: framestopaperprinter.cpp:39
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.