[KLF Backend][KLF Tools][KLF Home]
KLatexFormula Project
Classes | Public Types | Public Member Functions | List of all members
KLFLatexParenSpecs Class Reference

#include <klflatexedit.h>

Classes

struct  ParenModifierSpec
 
struct  ParenSpec
 

Public Types

enum  { IdentifyFlagOpen = 0x01, IdentifyFlagClose = 0x02, IdentifyFlagOpenClose = IdentifyFlagOpen|IdentifyFlagClose }
 

Public Member Functions

 KLFLatexParenSpecs ()
 
 KLFLatexParenSpecs (const QList< ParenSpec > &parens, const QList< ParenModifierSpec > &modifiers)
 
 KLFLatexParenSpecs (const KLFLatexParenSpecs &other)
 
virtual ~KLFLatexParenSpecs ()
 
QList< ParenSpecparenSpecList () const
 
QList< ParenModifierSpecparenModifierSpecList () const
 
QStringList openParenList () const
 
QStringList closeParenList () const
 
QStringList openParenModifiers () const
 
QStringList closeParenModifiers () const
 
int identifyParen (const QString &parenstr, uint identflags)
 
int identifyModifier (const QString &modstr, uint identflags)
 

Detailed Description

Definition at line 129 of file klflatexedit.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
IdentifyFlagOpen 

Identify the paren as opening only.

IdentifyFlagClose 

Identify the paren as closing only.

IdentifyFlagOpenClose 

Identify the paren as opening or closing.

Definition at line 161 of file klflatexedit.h.

Constructor & Destructor Documentation

◆ KLFLatexParenSpecs() [1/3]

KLFLatexParenSpecs::KLFLatexParenSpecs ( )

Definition at line 99 of file klflatexedit.cpp.

References KLF_INIT_PRIVATE.

◆ KLFLatexParenSpecs() [2/3]

KLFLatexParenSpecs::KLFLatexParenSpecs ( const QList< ParenSpec > &  parens,
const QList< ParenModifierSpec > &  modifiers 
)

Definition at line 105 of file klflatexedit.cpp.

References KLF_INIT_PRIVATE.

◆ KLFLatexParenSpecs() [3/3]

KLFLatexParenSpecs::KLFLatexParenSpecs ( const KLFLatexParenSpecs other)

Definition at line 111 of file klflatexedit.cpp.

References KLF_INIT_PRIVATE.

◆ ~KLFLatexParenSpecs()

KLFLatexParenSpecs::~KLFLatexParenSpecs ( )
virtual

Definition at line 116 of file klflatexedit.cpp.

References KLF_DELETE_PRIVATE.

Member Function Documentation

◆ closeParenList()

QStringList KLFLatexParenSpecs::closeParenList ( ) const

Definition at line 135 of file klflatexedit.cpp.

◆ closeParenModifiers()

QStringList KLFLatexParenSpecs::closeParenModifiers ( ) const

Definition at line 143 of file klflatexedit.cpp.

◆ identifyModifier()

int KLFLatexParenSpecs::identifyModifier ( const QString modstr,
uint  identflags 
)

Returns an index in the parenModifierSpecList() of the given modstr interpreted as an opening paren modifier, a closing paren modifier, or either, depending on the identflags.

Returns -1 if not found.

Definition at line 164 of file klflatexedit.cpp.

References KLFLatexParenSpecs::ParenModifierSpec::closemod, KLF_DEBUG_BLOCK, KLF_EXPORT, KLF_FUNC_NAME, klfDbg, klfWarning, KLFLatexParenSpecs::ParenModifierSpec::openmod, and KLFLatexSyntaxHighlighter::ParsedBlock::parenSpecs.

◆ identifyParen()

int KLFLatexParenSpecs::identifyParen ( const QString parenstr,
uint  identflags 
)

Returns an index in the parenSpecList() of the given parenstr interpreted as an opening paren, a closing paren, or either, depending on the identflags.

Returns -1 if not found.

Definition at line 148 of file klflatexedit.cpp.

References KLFLatexParenSpecs::ParenSpec::close, KLF_DEBUG_BLOCK, KLF_FUNC_NAME, klfDbg, klfWarning, and KLFLatexParenSpecs::ParenSpec::open.

Referenced by KLFLatexSyntaxHighlighter::refreshAll().

◆ openParenList()

QStringList KLFLatexParenSpecs::openParenList ( ) const

Definition at line 131 of file klflatexedit.cpp.

◆ openParenModifiers()

QStringList KLFLatexParenSpecs::openParenModifiers ( ) const

Definition at line 139 of file klflatexedit.cpp.

◆ parenModifierSpecList()

QList< KLFLatexParenSpecs::ParenModifierSpec > KLFLatexParenSpecs::parenModifierSpecList ( ) const

Definition at line 126 of file klflatexedit.cpp.

◆ parenSpecList()

QList< KLFLatexParenSpecs::ParenSpec > KLFLatexParenSpecs::parenSpecList ( ) const

Definition at line 122 of file klflatexedit.cpp.

Referenced by KLFLatexSyntaxHighlighter::refreshAll().


The documentation for this class was generated from the following files:

Generated by doxygen 1.8.13