Scribus Developer Documentation - API
logo-pen

Scribus Developer Documentation - API

ListLevel Class Reference

#include <stylereader.h>

List of all members.

Public Member Functions

 ListLevel (uint level, BulletType btype, const QString &prefix, const QString &suffix, const QString &bullet, uint displayLevels=1, uint startValue=0)
 ~ListLevel ()
QString bulletString ()
QString bullet ()
QString prefix ()
QString suffix ()
void advance ()
void reset ()
uint level ()
uint displayLevels ()

Private Member Functions

QString lowerRoman (uint n)
QString upperRoman (uint n)
QString lowerAlpha (uint n)
QString upperAlpha (uint n)

Private Attributes

uint m_level
BulletType m_btype
QString m_prefix
QString m_suffix
QString m_bullet
uint m_displayLevels
uint m_next

Static Private Attributes

static const QString lowerUnits [10] = {"", "i", "ii", "iii", "iv", "v", "vi", "vii", "viii", "ix"}
static const QString lowerTens [10] = {"", "x", "xx", "xxx", "xl", "l", "lx", "lxx", "lxxx", "xc"}
static const QString lowerHundreds [10] = {"", "c", "cc", "ccc", "cd", "d", "dc", "dcc", "dccc", "cm"}
static const QString lowerThousands [4] = {"", "m", "mm", "mmm"}
static const QString upperUnits [10] = {"", "I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX"}
static const QString upperTens [10] = {"", "X", "XX", "XXX", "XL", "L", "LX", "LXX", "LXXX", "XC"}
static const QString upperHundreds [10] = {"", "C", "CC", "CCC", "CD", "D", "DC", "DCC", "DCC", "CM"}
static const QString upperThousands [4] = {"", "M", "MM", "MMM"}
static const QString lowerAlphabets [27]
static const QString upperAlphabets [27]


Detailed Description

Definition at line 53 of file odtim/stylereader.h.


Constructor & Destructor Documentation

ListLevel::ListLevel ( uint  level,
BulletType  btype,
const QString &  prefix,
const QString &  suffix,
const QString &  bullet,
uint  displayLevels = 1,
uint  startValue = 0 
)

Definition at line 905 of file odtim/stylereader.cpp.

ListLevel::~ListLevel (  ) 

Definition at line 1026 of file odtim/stylereader.cpp.


Member Function Documentation

QString ListLevel::bulletString (  ) 

QString ListLevel::bullet (  ) 

Definition at line 954 of file odtim/stylereader.cpp.

References bulletString(), m_prefix, and m_suffix.

QString ListLevel::prefix (  ) 

Definition at line 960 of file odtim/stylereader.cpp.

References m_prefix.

Referenced by ListStyle::bullet().

QString ListLevel::suffix (  ) 

Definition at line 965 of file odtim/stylereader.cpp.

References m_suffix.

Referenced by ListStyle::bullet().

void ListLevel::advance (  ) 

Definition at line 970 of file odtim/stylereader.cpp.

References m_next.

Referenced by ListStyle::advance().

void ListLevel::reset (  ) 

Definition at line 985 of file odtim/stylereader.cpp.

References m_next.

Referenced by ListStyle::resetLevel().

uint ListLevel::level (  ) 

Definition at line 975 of file odtim/stylereader.cpp.

References m_level.

uint ListLevel::displayLevels (  ) 

Definition at line 980 of file odtim/stylereader.cpp.

References m_displayLevels.

Referenced by ListStyle::bullet().

QString ListLevel::lowerRoman ( uint  n  )  [private]

Definition at line 990 of file odtim/stylereader.cpp.

References lowerHundreds, lowerTens, lowerThousands, and lowerUnits.

Referenced by bulletString().

QString ListLevel::upperRoman ( uint  n  )  [private]

Definition at line 998 of file odtim/stylereader.cpp.

References upperHundreds, upperTens, upperThousands, and upperUnits.

Referenced by bulletString().

QString ListLevel::lowerAlpha ( uint  n  )  [private]

Definition at line 1006 of file odtim/stylereader.cpp.

References lowerAlphabets.

Referenced by bulletString().

QString ListLevel::upperAlpha ( uint  n  )  [private]

Definition at line 1016 of file odtim/stylereader.cpp.

References upperAlphabets.

Referenced by bulletString().


Member Data Documentation

uint ListLevel::m_level [private]

Definition at line 73 of file odtim/stylereader.h.

Referenced by level().

Definition at line 74 of file odtim/stylereader.h.

Referenced by bulletString().

QString ListLevel::m_prefix [private]

Definition at line 75 of file odtim/stylereader.h.

Referenced by bullet(), and prefix().

QString ListLevel::m_suffix [private]

Definition at line 76 of file odtim/stylereader.h.

Referenced by bullet(), and suffix().

QString ListLevel::m_bullet [private]

Definition at line 77 of file odtim/stylereader.h.

Referenced by bulletString().

Definition at line 78 of file odtim/stylereader.h.

Referenced by displayLevels().

uint ListLevel::m_next [private]

Definition at line 79 of file odtim/stylereader.h.

Referenced by advance(), bulletString(), and reset().

const QString ListLevel::lowerUnits = {"", "i", "ii", "iii", "iv", "v", "vi", "vii", "viii", "ix"} [static, private]

Definition at line 80 of file odtim/stylereader.h.

Referenced by lowerRoman().

const QString ListLevel::lowerTens = {"", "x", "xx", "xxx", "xl", "l", "lx", "lxx", "lxxx", "xc"} [static, private]

Definition at line 81 of file odtim/stylereader.h.

Referenced by lowerRoman().

const QString ListLevel::lowerHundreds = {"", "c", "cc", "ccc", "cd", "d", "dc", "dcc", "dccc", "cm"} [static, private]

Definition at line 82 of file odtim/stylereader.h.

Referenced by lowerRoman().

const QString ListLevel::lowerThousands = {"", "m", "mm", "mmm"} [static, private]

Definition at line 83 of file odtim/stylereader.h.

Referenced by lowerRoman().

const QString ListLevel::upperUnits = {"", "I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX"} [static, private]

Definition at line 84 of file odtim/stylereader.h.

Referenced by upperRoman().

const QString ListLevel::upperTens = {"", "X", "XX", "XXX", "XL", "L", "LX", "LXX", "LXXX", "XC"} [static, private]

Definition at line 85 of file odtim/stylereader.h.

Referenced by upperRoman().

const QString ListLevel::upperHundreds = {"", "C", "CC", "CCC", "CD", "D", "DC", "DCC", "DCC", "CM"} [static, private]

Definition at line 86 of file odtim/stylereader.h.

Referenced by upperRoman().

const QString ListLevel::upperThousands = {"", "M", "MM", "MMM"} [static, private]

Definition at line 87 of file odtim/stylereader.h.

Referenced by upperRoman().

const QString ListLevel::lowerAlphabets [static, private]

Initial value:

 {"", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m",
                                    "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"}

Definition at line 88 of file odtim/stylereader.h.

Referenced by lowerAlpha().

const QString ListLevel::upperAlphabets [static, private]

Initial value:

 {"", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M",
                                    "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"}

Definition at line 89 of file odtim/stylereader.h.

Referenced by upperAlpha().


The documentation for this class was generated from the following files:
Created with personalized Doxygen. This is documentation for GPL software Scribus - Open Source Desktop Publishing.