libs/kotext

KoText Namespace Reference

Generic namespace of the KOffice Text library for helper methods and data. More...

Classes

struct  Tab
 For paragraphs each tab definition is represented by this struct. More...

Enumerations

enum  Direction {
  AutoDirection, LeftRightTopBottom, RightLeftTopBottom, TopBottomRightLeft,
  PerhapsLeftRightTopBottom, PerhapsRightLeftTopBottom, InheritDirection
}
enum  Options {
  ShowTextFrames = 278622039, ShowSpaces, ShowTabs, ShowEnters,
  ShowSpecialCharacters, CurrentTextDocument = 382490375, CurrentTextPosition = 183523, CurrentTextAnchor = 341899485,
  SelectedTextPosition = 21314576, SelectedTextAnchor = 3344189
}

Functions

KOTEXT_EXPORT Qt::Alignment alignmentFromString (const QString &align)
KOTEXT_EXPORT QString alignmentToString (Qt::Alignment align)
KOTEXT_EXPORT Direction directionFromString (const QString &direction)
KOTEXT_EXPORT QStringList underlineStyleList ()
KOTEXT_EXPORT QStringList underlineTypeList ()

Detailed Description

Generic namespace of the KOffice Text library for helper methods and data.


Enumeration Type Documentation

Text in this object will be positioned according to the direction.

Enumerator:
AutoDirection 

Take the direction from the text.

LeftRightTopBottom 

Text layout for most western languages.

RightLeftTopBottom 

Text layout for langauges like Hebrew.

TopBottomRightLeft 

Vertical text layout.

PerhapsLeftRightTopBottom 

For internal use only.

PerhapsRightLeftTopBottom 

For internal use only.

InheritDirection 

Direction is unspecified and should come from the container.

Definition at line 77 of file KoText.h.

This enum contains values to be used as keys in the KoCanvasResourceProvider.

Enumerator:
ShowTextFrames 

boolean that enables painting of frame outlines

ShowSpaces 

boolean that enables painting of spaces

ShowTabs 

boolean that enables painting of tabs

ShowEnters 

boolean that enables painting of enters (linefeed chars)

ShowSpecialCharacters 

boolean that enables painting of special characters (nbsp etc)

CurrentTextDocument 

set by the text plugin whenever the document is changed

CurrentTextPosition 

used by the text plugin whenever the position is changed

CurrentTextAnchor 

used by the text plugin whenever the anchor-position is changed

SelectedTextPosition 

used by the text plugin whenever the alternative selection is changed

SelectedTextAnchor 

used by the text plugin whenever the alternative selection anchor-position is changed

Definition at line 46 of file KoText.h.


Function Documentation

Qt::Alignment KoText::alignmentFromString ( const QString align  ) 

Definition at line 67 of file KoText.cpp.

QString KoText::alignmentToString ( Qt::Alignment  align  ) 

Definition at line 87 of file KoText.cpp.

KoText::Direction KoText::directionFromString ( const QString direction  ) 

convert the string version of directions (as specified in XSL and ODF) to the Direction enum

Definition at line 105 of file KoText.cpp.

QStringList KoText::underlineStyleList (  ) 

Definition at line 35 of file KoText.cpp.

QStringList KoText::underlineTypeList (  ) 

Definition at line 26 of file KoText.cpp.