lib

KoTextFormatter Class Reference

#include <KoTextFormatter.h>

Public Member Functions

virtual bool format (KoTextDocument *doc, KoTextParag *parag, int start, const TQMap< int, KoTextParagLineStart * > &oldLineStarts, int &y, int &widthUsed)
virtual void postFormat (KoTextParag *parag)
KoHyphenator * hyphenator ()

Detailed Description

We implement our own text formatter to implement WYSIWYG: It is heavily based on KoTextFormatterBaseBreakWords, but stores the x position of characters (and their width) in pixels, whereas all the rest is in L.U.

It also implements hyphenation.

Author
David Faure faure.nosp@m.@kde.nosp@m..org

Definition at line 34 of file KoTextFormatter.h.

Constructor & Destructor Documentation

◆ KoTextFormatter()

KoTextFormatter::KoTextFormatter ( )

Definition at line 45 of file KoTextFormatter.cpp.

◆ ~KoTextFormatter()

KoTextFormatter::~KoTextFormatter ( )
virtual

Definition at line 55 of file KoTextFormatter.cpp.

Member Function Documentation

◆ format()

bool KoTextFormatter::format ( KoTextDocument * doc,
KoTextParag * parag,
int start,
const TQMap< int, KoTextParagLineStart * > & oldLineStarts,
int & y,
int & widthUsed )
virtual

Definition at line 68 of file KoTextFormatter.cpp.

◆ hyphenator()

KoHyphenator * KoTextFormatter::hyphenator ( )
inline

Definition at line 45 of file KoTextFormatter.h.

◆ postFormat()

void KoTextFormatter::postFormat ( KoTextParag * parag)
virtual

Definition at line 1066 of file KoTextFormatter.cpp.


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