lib

KoListStyleStack Class Reference

#include <KoListStyleStack.h>

Public Member Functions

void pop ()
void push (const TQDomElement &style)
bool hasListStyle () const
TQDomElement currentListStyle () const
TQDomElement currentListStyleProperties () const
TQDomElement currentListStyleTextProperties () const
void setInitialLevel (int initialLevel)
int initialLevel () const
int level () const

Detailed Description

This class implements the list styles currently active at a given point.

Unlike KoStyleStack, this is NOT an inheritance stack. The list-style stack contains one item per list level at any given point. For instance inside <ul><li><ul><li> (in html terms), it will have 2 items.

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

Definition at line 34 of file KoListStyleStack.h.

Constructor & Destructor Documentation

◆ KoListStyleStack()

KoListStyleStack::KoListStyleStack ( )

Definition at line 5 of file KoListStyleStack.cpp.

◆ ~KoListStyleStack()

KoListStyleStack::~KoListStyleStack ( )

Definition at line 10 of file KoListStyleStack.cpp.

Member Function Documentation

◆ currentListStyle()

TQDomElement KoListStyleStack::currentListStyle ( ) const
Returns
currenty applicable list style, i.e. the one on top of the stack Most list-level properties are the attributes of that element.

Definition at line 30 of file KoListStyleStack.cpp.

◆ currentListStyleProperties()

TQDomElement KoListStyleStack::currentListStyleProperties ( ) const
Returns
the style:list-level-properties for the currenty applicable list style. The list-level properties that are only "style" information, like text:min-label-width, text:space-before, and style:font-name are the attributes of that element.

Definition at line 36 of file KoListStyleStack.cpp.

◆ currentListStyleTextProperties()

TQDomElement KoListStyleStack::currentListStyleTextProperties ( ) const
Returns
the style:text-properties for the currenty applicable list style.

Definition at line 42 of file KoListStyleStack.cpp.

◆ hasListStyle()

bool KoListStyleStack::hasListStyle ( ) const
inline
Returns
true if we're inside a list (i.e. the stack isn't empty)

Definition at line 51 of file KoListStyleStack.h.

◆ initialLevel()

int KoListStyleStack::initialLevel ( ) const
inline
Returns
initial level

Definition at line 78 of file KoListStyleStack.h.

◆ level()

int KoListStyleStack::level ( ) const
inline
Returns
current list level

Definition at line 81 of file KoListStyleStack.h.

◆ pop()

void KoListStyleStack::pop ( )

Removes the style on top of the stack.

Definition at line 14 of file KoListStyleStack.cpp.

◆ push()

void KoListStyleStack::push ( const TQDomElement & style)

Pushes the new list-style onto the stack.

Definition at line 19 of file KoListStyleStack.cpp.

◆ setInitialLevel()

void KoListStyleStack::setInitialLevel ( int initialLevel)

Set the initial level of the list, i.e.

of item at the bottom of the stack. This is used when a level is explicitely specified in the [un]ordered-list tag (OASIS extension)

Definition at line 24 of file KoListStyleStack.cpp.


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