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

#include <klflatexedit.h>

List of all members.

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
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

Definition at line 99 of file klflatexedit.cpp.

References KLF_INIT_PRIVATE.

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

Definition at line 105 of file klflatexedit.cpp.

References KLF_INIT_PRIVATE.

Definition at line 111 of file klflatexedit.cpp.

References KLF_INIT_PRIVATE.

Definition at line 116 of file klflatexedit.cpp.

References KLF_DELETE_PRIVATE.


Member Function Documentation

Definition at line 135 of file klflatexedit.cpp.

Definition at line 143 of file klflatexedit.cpp.

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, IdentifyFlagClose, IdentifyFlagOpen, KLF_DEBUG_BLOCK, KLF_FUNC_NAME, klfDbg, klfWarning, and KLFLatexParenSpecs::ParenModifierSpec::openmod.

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, IdentifyFlagClose, IdentifyFlagOpen, KLF_DEBUG_BLOCK, KLF_FUNC_NAME, klfDbg, klfWarning, and KLFLatexParenSpecs::ParenSpec::open.

Definition at line 131 of file klflatexedit.cpp.

Definition at line 139 of file klflatexedit.cpp.

Definition at line 126 of file klflatexedit.cpp.


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

Generated by doxygen 1.7.6.1. The KLatexFormula website is hosted on sourceforge.net