MD::ItemWithOpts

Search for usage in LXR

MD::ItemWithOpts< Trait > Class Template Reference

#include <doc.h>

Inheritance diagram for MD::ItemWithOpts< Trait >:

Public Types

using Styles = typename Trait::template Vector<StyleDelim>
 

Public Member Functions

 ~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
 

Protected Member Functions

 ItemWithOpts ()=default
 
- Protected Member Functions inherited from MD::Item< Trait >
 Item ()=default
 

Detailed Description

template<class Trait>
class MD::ItemWithOpts< Trait >

Base class for items that can have style options.

These are all items in Paragraph.

Definition at line 258 of file doc.h.

Member Typedef Documentation

◆ Styles

template<class Trait >
using MD::ItemWithOpts< Trait >::Styles = typename Trait::template Vector<StyleDelim>

Type of list of emphasis.

Definition at line 278 of file doc.h.

Constructor & Destructor Documentation

◆ ItemWithOpts()

template<class Trait >
MD::ItemWithOpts< Trait >::ItemWithOpts ( )
protecteddefault

◆ ~ItemWithOpts()

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

Member Function Documentation

◆ applyItemWithOpts()

template<class Trait >
void MD::ItemWithOpts< Trait >::applyItemWithOpts ( const ItemWithOpts< Trait > & other)
inline

Apply other item with options to this.

Definition at line 267 of file doc.h.

◆ closeStyles() [1/2]

template<class Trait >
Styles & MD::ItemWithOpts< Trait >::closeStyles ( )
inline
Returns
List of all closing emphasises.

Definition at line 311 of file doc.h.

◆ closeStyles() [2/2]

template<class Trait >
const Styles & MD::ItemWithOpts< Trait >::closeStyles ( ) const
inline
Returns
List of all closing emphasises.

Definition at line 305 of file doc.h.

◆ openStyles() [1/2]

template<class Trait >
Styles & MD::ItemWithOpts< Trait >::openStyles ( )
inline
Returns
List of all opening emphasises.

Definition at line 299 of file doc.h.

◆ openStyles() [2/2]

template<class Trait >
const Styles & MD::ItemWithOpts< Trait >::openStyles ( ) const
inline
Returns
List of all opening emphasises.

Definition at line 293 of file doc.h.

◆ opts()

template<class Trait >
int MD::ItemWithOpts< Trait >::opts ( ) const
inline
Returns
Style options.

Definition at line 281 of file doc.h.

◆ setOpts()

template<class Trait >
void MD::ItemWithOpts< Trait >::setOpts ( int o)
inline

Set style options.

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