lib Library API Documentation

KoListStyleStack Class Reference

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

#include <koliststylestack.h>

Collaboration diagram for KoListStyleStack:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void pop ()
void push (const QDomElement &style)
bool hasListStyle () const
QDomElement currentListStyle () const
QDomElement currentListStyleProperties () 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@kde.org>

Definition at line 34 of file koliststylestack.h.


Member Function Documentation

void KoListStyleStack::pop  ) 
 

Removes the style on top of the stack.

Definition at line 14 of file koliststylestack.cc.

void KoListStyleStack::push const QDomElement style  ) 
 

Pushes the new list-style onto the stack.

Definition at line 19 of file koliststylestack.cc.

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.

QDomElement 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.cc.

Referenced by currentListStyleProperties().

QDomElement 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.cc.

References currentListStyle(), and KoDom::namedItemNS().

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.cc.

int KoListStyleStack::initialLevel  )  const [inline]
 

Returns:
initial level

Definition at line 73 of file koliststylestack.h.

int KoListStyleStack::level  )  const [inline]
 

Returns:
current list level

Definition at line 76 of file koliststylestack.h.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for lib Library Version 1.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Feb 13 09:41:03 2006 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003