MD::LinkBase

Search for usage in LXR

MD::LinkBase< Trait > Class Template Reference

#include <doc.h>

Inheritance diagram for MD::LinkBase< Trait >:

Public Types

using ParagraphSharedPointer = std::shared_ptr<Paragraph<Trait>>
 
- Public Types inherited from MD::ItemWithOpts< Trait >
using Styles = typename Trait::template Vector<StyleDelim>
 

Public Member Functions

 LinkBase ()
 
 ~LinkBase () override=default
 
void applyLinkBase (const LinkBase< Trait > &other, Document< Trait > *doc=nullptr)
 
bool isEmpty () const
 
ParagraphSharedPointer p () const
 
void setP (ParagraphSharedPointer v)
 
void setText (const typename Trait::String &t)
 
void setTextPos (const WithPosition &pos)
 
void setUrl (const typename Trait::String &u)
 
void setUrlPos (const WithPosition &pos)
 
const Trait::String & text () const
 
const WithPositiontextPos () const
 
const Trait::String & url () const
 
const WithPositionurlPos () const
 
- 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
 
virtual std::shared_ptr< Item< Trait > > clone (Document< Trait > *doc=nullptr) const =0
 
virtual ItemType type () const =0
 
- 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::ItemWithOpts< Trait >
 ItemWithOpts ()=default
 
- Protected Member Functions inherited from MD::Item< Trait >
 Item ()=default
 

Detailed Description

template<class Trait>
class MD::LinkBase< Trait >

Base class for links.

Definition at line 1069 of file doc.h.

Member Typedef Documentation

◆ ParagraphSharedPointer

template<class Trait >
using MD::LinkBase< Trait >::ParagraphSharedPointer = std::shared_ptr<Paragraph<Trait>>

Type of a smart pointer to link's description.

Definition at line 1093 of file doc.h.

Constructor & Destructor Documentation

◆ LinkBase()

template<class Trait >
MD::LinkBase< Trait >::LinkBase ( )
inline

Definition at line 1072 of file doc.h.

◆ ~LinkBase()

template<class Trait >
MD::LinkBase< Trait >::~LinkBase ( )
overridedefault

Member Function Documentation

◆ applyLinkBase()

template<class Trait >
void MD::LinkBase< Trait >::applyLinkBase ( const LinkBase< Trait > & other,
Document< Trait > * doc = nullptr )
inline

Apply other base of link to this.

Definition at line 1080 of file doc.h.

◆ isEmpty()

template<class Trait >
bool MD::LinkBase< Trait >::isEmpty ( ) const
inline
Returns
Is this link empty?

Definition at line 1120 of file doc.h.

◆ p()

template<class Trait >
ParagraphSharedPointer MD::LinkBase< Trait >::p ( ) const
inline
Returns
Pointer to parsed text of link's description.

Definition at line 1126 of file doc.h.

◆ setP()

template<class Trait >
void MD::LinkBase< Trait >::setP ( ParagraphSharedPointer v)
inline

Set pointer to parsed text of link's description.

Definition at line 1132 of file doc.h.

◆ setText()

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

Set not parsed text of link's description.

Definition at line 1114 of file doc.h.

◆ setTextPos()

template<class Trait >
void MD::LinkBase< Trait >::setTextPos ( const WithPosition & pos)
inline

Set position of link's description.

Definition at line 1144 of file doc.h.

◆ setUrl()

template<class Trait >
void MD::LinkBase< Trait >::setUrl ( const typename Trait::String & u)
inline

Set URL of the link.

Definition at line 1102 of file doc.h.

◆ setUrlPos()

template<class Trait >
void MD::LinkBase< Trait >::setUrlPos ( const WithPosition & pos)
inline

Set position of URL.

Definition at line 1156 of file doc.h.

◆ text()

template<class Trait >
const Trait::String & MD::LinkBase< Trait >::text ( ) const
inline

Not parsed text of link's description.

Definition at line 1108 of file doc.h.

◆ textPos()

template<class Trait >
const WithPosition & MD::LinkBase< Trait >::textPos ( ) const
inline
Returns
Position of link's desciption.

Definition at line 1138 of file doc.h.

◆ url()

template<class Trait >
const Trait::String & MD::LinkBase< Trait >::url ( ) const
inline
Returns
URL of the link.

Definition at line 1096 of file doc.h.

◆ urlPos()

template<class Trait >
const WithPosition & MD::LinkBase< Trait >::urlPos ( ) const
inline
Returns
Position of URL.

Definition at line 1150 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 Wed Nov 6 2024 12:12:28 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.