MD::Text

Search for usage in LXR

MD::Text< Trait > Class Template Reference

#include <doc.h>

Inheritance diagram for MD::Text< Trait >:

Public Member Functions

 Text ()=default
 
 ~Text () override=default
 
void applyText (const Text< Trait > &t)
 
std::shared_ptr< Item< Trait > > clone (Document< Trait > *doc=nullptr) const override
 
void setText (const typename Trait::String &t)
 
const Trait::String & text () const
 
ItemType type () const override
 
- Public Member Functions inherited from MD::ItemWithOpts< Trait >
 ~ItemWithOpts () override=default
 
void applyItemWithOpts (const ItemWithOpts< Trait > &other)
 
StylescloseStyles ()
 
const StylescloseStyles () const
 
StylesopenStyles ()
 
const StylesopenStyles () const
 
int opts () const
 
void setOpts (int o)
 
- 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

- Public Types inherited from MD::ItemWithOpts< Trait >
using Styles = typename Trait::template Vector<StyleDelim>
 
- Protected Member Functions inherited from MD::ItemWithOpts< Trait >
 ItemWithOpts ()=default
 
- Protected Member Functions inherited from MD::Item< Trait >
 Item ()=default
 

Detailed Description

template<typename Trait>
class MD::Text< Trait >

Text item in Paragraph.

Definition at line 512 of file doc.h.

Constructor & Destructor Documentation

◆ Text()

template<typename Trait >
MD::Text< Trait >::Text ( )
default

◆ ~Text()

template<typename Trait >
MD::Text< Trait >::~Text ( )
overridedefault

Member Function Documentation

◆ applyText()

template<typename Trait >
void MD::Text< Trait >::applyText ( const Text< Trait > & t)
inline

Apply other text to this.

Definition at line 519 of file doc.h.

◆ clone()

template<typename Trait >
std::shared_ptr< Item< Trait > > MD::Text< Trait >::clone ( Document< Trait > * doc = nullptr) const
inlineoverridevirtual

Clone this text item.

Implements MD::Item< Trait >.

Definition at line 528 of file doc.h.

◆ setText()

template<typename Trait >
void MD::Text< Trait >::setText ( const typename Trait::String & t)
inline

Set text content.

Definition at line 551 of file doc.h.

◆ text()

template<typename Trait >
const Trait::String & MD::Text< Trait >::text ( ) const
inline
Returns
Text content.

Definition at line 545 of file doc.h.

◆ type()

template<typename Trait >
ItemType MD::Text< Trait >::type ( ) const
inlineoverridevirtual
Returns
Type of the item.

Implements MD::Item< Trait >.

Definition at line 539 of file doc.h.


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 Sat Dec 21 2024 17:04:36 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.