MD::Link

Search for usage in LXR

MD::Link< Trait > Class Template Referencefinal

#include <doc.h>

Inheritance diagram for MD::Link< Trait >:

Public Types

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

Public Member Functions

 Link ()
 
 ~Link () override=default
 
std::shared_ptr< Item< Trait > > clone (Document< Trait > *doc=nullptr) const override
 
ImageSharedPointer img () const
 
void setImg (ImageSharedPointer i)
 
ItemType type () const override
 
- Public Member Functions inherited from MD::LinkBase< Trait >
 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
 
- 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::Link< Trait >

Link.

Definition at line 1213 of file doc.h.

Member Typedef Documentation

◆ ImageSharedPointer

template<class Trait >
using MD::Link< Trait >::ImageSharedPointer = std::shared_ptr<Image<Trait>>

Type of a smart pointer to image.

Definition at line 1241 of file doc.h.

Constructor & Destructor Documentation

◆ Link()

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

Definition at line 1216 of file doc.h.

◆ ~Link()

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

Member Function Documentation

◆ clone()

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

Clone this link.

Implements MD::Item< Trait >.

Definition at line 1223 of file doc.h.

◆ img()

template<class Trait >
ImageSharedPointer MD::Link< Trait >::img ( ) const
inline
Returns
Image of the link.

Definition at line 1244 of file doc.h.

◆ setImg()

template<class Trait >
void MD::Link< Trait >::setImg ( ImageSharedPointer i)
inline

Set image of the link.

Definition at line 1250 of file doc.h.

◆ type()

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

Implements MD::Item< Trait >.

Definition at line 1235 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 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.