MD::ListItem
MD::ListItem< Trait > Class Template Referencefinal
#include <doc.h>
Inheritance diagram for MD::ListItem< Trait >:
Public Types | |
enum | ListType { Ordered , Unordered } |
enum | OrderedListPreState { Start , Continue } |
Public Types inherited from MD::Block< Trait > | |
using | Items = typename Trait::template Vector<ItemSharedPointer> |
using | ItemSharedPointer = std::shared_ptr<Item<Trait>> |
Public Member Functions | |
ListItem ()=default | |
~ListItem () override=default | |
std::shared_ptr< Item< Trait > > | clone (Document< Trait > *doc=nullptr) const override |
const WithPosition & | delim () const |
bool | isChecked () const |
bool | isTaskList () const |
ListType | listType () const |
OrderedListPreState | orderedListPreState () const |
void | setChecked (bool on=true) |
void | setDelim (const WithPosition &d) |
void | setListType (ListType t) |
void | setOrderedListPreState (OrderedListPreState s) |
void | setStartNumber (int n) |
void | setTaskDelim (const WithPosition &d) |
void | setTaskList (bool on=true) |
int | startNumber () const |
const WithPosition & | taskDelim () const |
ItemType | type () const override |
Public Member Functions inherited from MD::Block< Trait > | |
~Block () override=default | |
void | appendItem (ItemSharedPointer i) |
void | applyBlock (const Block< Trait > &other, Document< Trait > *doc=nullptr) |
ItemSharedPointer | getItemAt (long long int idx) const |
void | insertItem (long long int idx, ItemSharedPointer i) |
bool | isEmpty () const |
const Items & | items () const |
void | removeItemAt (long long int idx) |
Public Member Functions inherited from MD::Item< Trait > | |
~Item () override=default | |
Public Member Functions inherited from MD::WithPosition | |
WithPosition ()=default | |
WithPosition (long long int startColumn, long long int startLine, long long int endColumn, long long int endLine) | |
virtual | ~WithPosition ()=default |
void | applyPositions (const WithPosition &other) |
long long int | endColumn () const |
long long int | endLine () const |
void | setEndColumn (long long int c) |
void | setEndLine (long long int l) |
void | setStartColumn (long long int c) |
void | setStartLine (long long int l) |
long long int | startColumn () const |
long long int | startLine () const |
Additional Inherited Members | |
Protected Member Functions inherited from MD::Block< Trait > | |
Block ()=default | |
Protected Member Functions inherited from MD::Item< Trait > | |
Item ()=default | |
Detailed Description
template<class Trait>
class MD::ListItem< Trait >
class MD::ListItem< Trait >
List item in a list.
Member Enumeration Documentation
◆ ListType
template<class Trait >
enum MD::ListItem::ListType |
◆ OrderedListPreState
template<class Trait >
enum MD::ListItem::OrderedListPreState |
Constructor & Destructor Documentation
◆ ListItem()
template<class Trait >
|
default |
◆ ~ListItem()
template<class Trait >
|
overridedefault |
Member Function Documentation
◆ clone()
template<class Trait >
|
inlineoverridevirtual |
◆ delim()
template<class Trait >
|
inline |
◆ isChecked()
template<class Trait >
|
inline |
◆ isTaskList()
template<class Trait >
|
inline |
◆ listType()
template<class Trait >
|
inline |
◆ orderedListPreState()
template<class Trait >
|
inline |
◆ setChecked()
template<class Trait >
|
inline |
◆ setDelim()
template<class Trait >
|
inline |
◆ setListType()
template<class Trait >
|
inline |
◆ setOrderedListPreState()
template<class Trait >
|
inline |
◆ setStartNumber()
template<class Trait >
|
inline |
◆ setTaskDelim()
template<class Trait >
|
inline |
◆ setTaskList()
template<class Trait >
|
inline |
◆ startNumber()
template<class Trait >
|
inline |
◆ taskDelim()
template<class Trait >
|
inline |
◆ type()
template<class Trait >
|
inlineoverridevirtual |
The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:15 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:15 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.