Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qtextodfwriter.cpp File Reference

(b85a9d0ee16e3bdc817eb1e8a8f85026e631b401)

#include <qglobal.h>
#include "qtextodfwriter_p.h"
#include <QImageReader>
#include <QImageWriter>
#include <QTextListFormat>
#include <QTextList>
#include <QBuffer>
#include <QUrl>
#include "qtextdocument_p.h"
#include "qtexttable.h"
#include "qtextcursor.h"
#include "qtextimagehandler_p.h"
#include <QDebug>
#include <QtCore/private/qzipwriter_p.h>
+ Include dependency graph for qtextodfwriter.cpp:

Go to the source code of this file.

Classes

class  QOutputStrategy
 
class  QXmlStreamStrategy
 
class  QZipStreamStrategy
 

Functions

static QString pixelToPoint (qreal pixels)
 Convert pixels to postscript point units.
 
static QStringView bullet_char (QTextListFormat::Style style)
 
static QString bulletChar (QTextListFormat::Style style)
 
static QString borderStyleName (QTextFrameFormat::BorderStyle style)
 
static bool probeImageData (QIODevice *device, QImage *image, QString *mimeType, qreal *width, qreal *height)
 

Function Documentation

◆ borderStyleName()

static QString borderStyleName ( QTextFrameFormat::BorderStyle style)
static

Definition at line 157 of file qtextodfwriter.cpp.

References QTextFrameFormat::BorderStyle_Dashed, QTextFrameFormat::BorderStyle_DotDash, QTextFrameFormat::BorderStyle_DotDotDash, QTextFrameFormat::BorderStyle_Dotted, QTextFrameFormat::BorderStyle_Double, QTextFrameFormat::BorderStyle_Groove, QTextFrameFormat::BorderStyle_Inset, QTextFrameFormat::BorderStyle_None, QTextFrameFormat::BorderStyle_Outset, QTextFrameFormat::BorderStyle_Ridge, QTextFrameFormat::BorderStyle_Solid, and QString::fromLatin1().

Referenced by QTextOdfWriter::tableCellStyleElement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bullet_char()

static QStringView bullet_char ( QTextListFormat::Style style)
static

Definition at line 129 of file qtextodfwriter.cpp.

References QTextListFormat::ListDisc, QTextListFormat::ListUpperRoman, and map.

Referenced by bulletChar().

+ Here is the caller graph for this function:

◆ bulletChar()

static QString bulletChar ( QTextListFormat::Style style)
static

Definition at line 152 of file qtextodfwriter.cpp.

References bullet_char().

Referenced by QTextOdfWriter::writeListFormat().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pixelToPoint()

static QString pixelToPoint ( qreal pixels)
static

Convert pixels to postscript point units.

Definition at line 31 of file qtextodfwriter.cpp.

References QString::number().

Referenced by QTextOdfWriter::tableCellStyleElement(), QTextOdfWriter::writeBlockFormat(), QTextOdfWriter::writeCharacterFormat(), QTextOdfWriter::writeFrameFormat(), and QTextOdfWriter::writeInlineCharacter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ probeImageData()

static bool probeImageData ( QIODevice * device,
QImage * image,
QString * mimeType,
qreal * width,
qreal * height )
static

Definition at line 384 of file qtextodfwriter.cpp.

References device, QImageReader::format(), mimeType, QStringLiteral, QImageReader::read(), QImageReader::size(), QByteArray::toLower(), and QSize::width().

Referenced by QTextOdfWriter::writeInlineCharacter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: