#include <liststylestack.h>
Public Member Functions | |
| void | pop () |
| void | push (const TQDomElement &style) |
| bool | hasListStyle () const |
| TQDomElement | currentListStyle () const |
| TQDomElement | 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 StyleStack, 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.
Definition at line 32 of file liststylestack.h.
Constructor & Destructor Documentation
◆ ListStyleStack()
| ListStyleStack::ListStyleStack | ( | ) |
Definition at line 25 of file liststylestack.cpp.
◆ ~ListStyleStack()
| ListStyleStack::~ListStyleStack | ( | ) |
Definition at line 30 of file liststylestack.cpp.
Member Function Documentation
◆ currentListStyle()
| TQDomElement ListStyleStack::currentListStyle | ( | ) | const |
- Returns
- currently 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 50 of file liststylestack.cpp.
◆ currentListStyleProperties()
| TQDomElement ListStyleStack::currentListStyleProperties | ( | ) | const |
- Returns
- the style:properties for the currently 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 56 of file liststylestack.cpp.
◆ hasListStyle()
|
inline |
- Returns
- true if we're inside a list (i.e. the stack isn't empty)
Definition at line 49 of file liststylestack.h.
◆ initialLevel()
|
inline |
- Returns
- initial level
Definition at line 71 of file liststylestack.h.
◆ level()
|
inline |
- Returns
- current list level
Definition at line 74 of file liststylestack.h.
◆ pop()
| void ListStyleStack::pop | ( | ) |
Removes the style on top of the stack.
Definition at line 34 of file liststylestack.cpp.
◆ push()
| void ListStyleStack::push | ( | const TQDomElement & | style | ) |
Pushes the new list-style onto the stack.
Definition at line 39 of file liststylestack.cpp.
◆ setInitialLevel()
| void ListStyleStack::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 explicitly specified in the [un]ordered-list tag (OASIS extension)
Definition at line 44 of file liststylestack.cpp.
The documentation for this class was generated from the following files:
