Qt 4.8
Macros | Functions
qprintengine_qws.cpp File Reference
#include <private/qprintengine_qws_p.h>
#include <private/qpaintengine_raster_p.h>
#include <qimage.h>
#include <qfile.h>
#include <qdebug.h>
#include <QCopChannel>

Go to the source code of this file.

Macros

#define IN(n)   int(n * 72)
 
#define MM(n)   int((n * 720 + 127) / 254)
 
#define TIFF_FAX_WIDTH   1728
 
#define TIFF_IFD_BITS_PER_SAMPLE   258
 
#define TIFF_IFD_CLEAN_FAX_DATA   327
 
#define TIFF_IFD_COMPRESSION   259
 
#define TIFF_IFD_FILL_ORDER   266
 
#define TIFF_IFD_IMAGE_LENGTH   257
 
#define TIFF_IFD_IMAGE_WIDTH   256
 
#define TIFF_IFD_NEW_SUB_FILE_TYPE   254
 
#define TIFF_IFD_ORIENTATION   274
 
#define TIFF_IFD_PAGE_NUMBER   297
 
#define TIFF_IFD_PHOTOMETRIC_INTERP   262
 
#define TIFF_IFD_PLANAR_CONFIG   284
 
#define TIFF_IFD_RESOLUTION_UNIT   296
 
#define TIFF_IFD_ROWS_PER_STRIP   278
 
#define TIFF_IFD_SAMPLES_PER_PIXEL   277
 
#define TIFF_IFD_STRIP_BYTE_COUNTS   279
 
#define TIFF_IFD_STRIP_OFFSETS   273
 
#define TIFF_IFD_T4_OPTIONS   292
 
#define TIFF_IFD_X_RESOLUTION   282
 
#define TIFF_IFD_Y_RESOLUTION   283
 
#define TIFF_SHORT_PAIR(a, b)   (((a) & 0xFFFF) | ((b) << 16))
 
#define TIFF_TYPE_LONG   4
 
#define TIFF_TYPE_RATIONAL   5
 
#define TIFF_TYPE_SHORT   3
 

Functions

QSizeF qt_paperSizeToQSizeF (QPrinter::PaperSize size)
 

Macro Definition Documentation

◆ IN

#define IN (   n)    int(n * 72)

Definition at line 55 of file qprintengine_qws.cpp.

◆ MM

#define MM (   n)    int((n * 720 + 127) / 254)

Definition at line 54 of file qprintengine_qws.cpp.

Referenced by QtopiaPrintEngine::paperRect().

◆ TIFF_FAX_WIDTH

#define TIFF_FAX_WIDTH   1728

Definition at line 441 of file qprintengine_qws.cpp.

Referenced by QtopiaPrintEnginePrivate::writeG3FaxPage().

◆ TIFF_IFD_BITS_PER_SAMPLE

#define TIFF_IFD_BITS_PER_SAMPLE   258

Definition at line 413 of file qprintengine_qws.cpp.

Referenced by QtopiaPrintEnginePrivate::writeG3FaxPage().

◆ TIFF_IFD_CLEAN_FAX_DATA

#define TIFF_IFD_CLEAN_FAX_DATA   327

Definition at line 428 of file qprintengine_qws.cpp.

Referenced by QtopiaPrintEnginePrivate::writeG3FaxPage().

◆ TIFF_IFD_COMPRESSION

#define TIFF_IFD_COMPRESSION   259

Definition at line 414 of file qprintengine_qws.cpp.

Referenced by QtopiaPrintEnginePrivate::writeG3FaxPage().

◆ TIFF_IFD_FILL_ORDER

#define TIFF_IFD_FILL_ORDER   266

Definition at line 416 of file qprintengine_qws.cpp.

Referenced by QtopiaPrintEnginePrivate::writeG3FaxPage().

◆ TIFF_IFD_IMAGE_LENGTH

#define TIFF_IFD_IMAGE_LENGTH   257

Definition at line 412 of file qprintengine_qws.cpp.

Referenced by QtopiaPrintEnginePrivate::writeG3FaxPage().

◆ TIFF_IFD_IMAGE_WIDTH

#define TIFF_IFD_IMAGE_WIDTH   256

Definition at line 411 of file qprintengine_qws.cpp.

Referenced by QtopiaPrintEnginePrivate::writeG3FaxPage().

◆ TIFF_IFD_NEW_SUB_FILE_TYPE

#define TIFF_IFD_NEW_SUB_FILE_TYPE   254

Definition at line 410 of file qprintengine_qws.cpp.

Referenced by QtopiaPrintEnginePrivate::writeG3FaxPage().

◆ TIFF_IFD_ORIENTATION

#define TIFF_IFD_ORIENTATION   274

Definition at line 418 of file qprintengine_qws.cpp.

Referenced by QtopiaPrintEnginePrivate::writeG3FaxPage().

◆ TIFF_IFD_PAGE_NUMBER

#define TIFF_IFD_PAGE_NUMBER   297

Definition at line 427 of file qprintengine_qws.cpp.

Referenced by QtopiaPrintEnginePrivate::writeG3FaxPage().

◆ TIFF_IFD_PHOTOMETRIC_INTERP

#define TIFF_IFD_PHOTOMETRIC_INTERP   262

Definition at line 415 of file qprintengine_qws.cpp.

Referenced by QtopiaPrintEnginePrivate::writeG3FaxPage().

◆ TIFF_IFD_PLANAR_CONFIG

#define TIFF_IFD_PLANAR_CONFIG   284

Definition at line 424 of file qprintengine_qws.cpp.

Referenced by QtopiaPrintEnginePrivate::writeG3FaxPage().

◆ TIFF_IFD_RESOLUTION_UNIT

#define TIFF_IFD_RESOLUTION_UNIT   296

Definition at line 426 of file qprintengine_qws.cpp.

Referenced by QtopiaPrintEnginePrivate::writeG3FaxPage().

◆ TIFF_IFD_ROWS_PER_STRIP

#define TIFF_IFD_ROWS_PER_STRIP   278

Definition at line 420 of file qprintengine_qws.cpp.

Referenced by QtopiaPrintEnginePrivate::writeG3FaxPage().

◆ TIFF_IFD_SAMPLES_PER_PIXEL

#define TIFF_IFD_SAMPLES_PER_PIXEL   277

Definition at line 419 of file qprintengine_qws.cpp.

Referenced by QtopiaPrintEnginePrivate::writeG3FaxPage().

◆ TIFF_IFD_STRIP_BYTE_COUNTS

#define TIFF_IFD_STRIP_BYTE_COUNTS   279

Definition at line 421 of file qprintengine_qws.cpp.

Referenced by QtopiaPrintEnginePrivate::writeG3FaxPage().

◆ TIFF_IFD_STRIP_OFFSETS

#define TIFF_IFD_STRIP_OFFSETS   273

Definition at line 417 of file qprintengine_qws.cpp.

Referenced by QtopiaPrintEnginePrivate::writeG3FaxPage().

◆ TIFF_IFD_T4_OPTIONS

#define TIFF_IFD_T4_OPTIONS   292

Definition at line 425 of file qprintengine_qws.cpp.

Referenced by QtopiaPrintEnginePrivate::writeG3FaxPage().

◆ TIFF_IFD_X_RESOLUTION

#define TIFF_IFD_X_RESOLUTION   282

Definition at line 422 of file qprintengine_qws.cpp.

Referenced by QtopiaPrintEnginePrivate::writeG3FaxPage().

◆ TIFF_IFD_Y_RESOLUTION

#define TIFF_IFD_Y_RESOLUTION   283

Definition at line 423 of file qprintengine_qws.cpp.

Referenced by QtopiaPrintEnginePrivate::writeG3FaxPage().

◆ TIFF_SHORT_PAIR

#define TIFF_SHORT_PAIR (   a,
 
)    (((a) & 0xFFFF) | ((b) << 16))

Definition at line 436 of file qprintengine_qws.cpp.

Referenced by QtopiaPrintEnginePrivate::writeG3FaxPage().

◆ TIFF_TYPE_LONG

#define TIFF_TYPE_LONG   4

Definition at line 432 of file qprintengine_qws.cpp.

Referenced by QtopiaPrintEnginePrivate::writeG3FaxPage().

◆ TIFF_TYPE_RATIONAL

#define TIFF_TYPE_RATIONAL   5

Definition at line 433 of file qprintengine_qws.cpp.

Referenced by QtopiaPrintEnginePrivate::writeG3FaxPage().

◆ TIFF_TYPE_SHORT

#define TIFF_TYPE_SHORT   3

Definition at line 431 of file qprintengine_qws.cpp.

Referenced by QtopiaPrintEnginePrivate::writeG3FaxPage().

Function Documentation

◆ qt_paperSizeToQSizeF()

QSizeF qt_paperSizeToQSizeF ( QPrinter::PaperSize  size)

Definition at line 2615 of file qprinter.cpp.

Referenced by QtopiaPrintEngine::paperRect().

2616 {
2617  if (size == QPrinter::Custom) return QSizeF(0, 0);
2618  return QSizeF(qt_paperSizes[size][0], qt_paperSizes[size][1]);
2619 }
The QSizeF class defines the size of a two-dimensional object using floating point precision...
Definition: qsize.h:202
static const float qt_paperSizes[][2]
Definition: qprinter.cpp:89