MultiLinesHighlightBlock Class Reference

class providing Multiple Lines Highlight block (Highlighting block which can span over multiple lines) More...

#include <HighlightBlock.h>

Inheritance diagram for MultiLinesHighlightBlock:

HighlightBlock

List of all members.

Public Member Functions

QRegExp getStartingExp () const
 Creates Regular Expression from startingPattern used for caching purposes.
QRegExp getEndingExp () const
 Creates Regular Expression from endingPattern used for caching purposes.
void setStartingPattern (QString _pattern)
void setEndingPattern (QString _pattern)
HighlighType type ()
QString getStartingPattern () const
QString getEndingPattern () const

Private Attributes

QString startingPattern
 Pattern to match beginning of block.
QString endingPattern
 Pattern to match ending of block.


Detailed Description

class providing Multiple Lines Highlight block (Highlighting block which can span over multiple lines)

Definition at line 202 of file HighlightBlock.h.


Member Function Documentation

QRegExp MultiLinesHighlightBlock::getEndingExp (  )  const [inline]

Creates Regular Expression from endingPattern used for caching purposes.

Returns:
newly created RegularExpresion

Definition at line 223 of file HighlightBlock.h.

References endingPattern.

Referenced by HSyntaxHighlighterSettings::getMultiLinesRules().

QString MultiLinesHighlightBlock::getEndingPattern (  )  const [inline]

Text ending pattern getter used for configuration purposes

Returns:
current end text pattern

Definition at line 268 of file HighlightBlock.h.

References endingPattern.

Referenced by HBmlPatternsPanel::HBmlPatternsPanel(), and HSyntaxHighlighterSettings::saveConfig().

QRegExp MultiLinesHighlightBlock::getStartingExp (  )  const [inline]

Creates Regular Expression from startingPattern used for caching purposes.

Returns:
newly created RegularExpresion

Definition at line 213 of file HighlightBlock.h.

References startingPattern.

Referenced by HSyntaxHighlighterSettings::getMultiLinesRules().

QString MultiLinesHighlightBlock::getStartingPattern (  )  const [inline]

Text starting pattern getter used for configuration purposes

Returns:
current start text pattern

Definition at line 258 of file HighlightBlock.h.

References startingPattern.

Referenced by HBmlPatternsPanel::HBmlPatternsPanel(), and HSyntaxHighlighterSettings::saveConfig().

void MultiLinesHighlightBlock::setEndingPattern ( QString  _pattern  )  [inline]

Text ending pattern setter used for configuration purposes

Parameters:
_pattern new end pattern to be used

Definition at line 243 of file HighlightBlock.h.

References endingPattern.

Referenced by HSyntaxHighlighterSettings::loadConfig(), and HBmlPatternsPanel::patternEditChanged().

void MultiLinesHighlightBlock::setStartingPattern ( QString  _pattern  )  [inline]

Text starting pattern setter used for configuration purposes

Parameters:
_pattern new start pattern to be used

Definition at line 233 of file HighlightBlock.h.

References startingPattern.

Referenced by HSyntaxHighlighterSettings::loadConfig(), and HBmlPatternsPanel::patternEditChanged().

HighlighType MultiLinesHighlightBlock::type (  )  [inline, virtual]

Function for indicating a sub-type of HighlighBlock

Returns:
Indicator from enum HighlighType

Implements HighlightBlock.

Definition at line 248 of file HighlightBlock.h.

References multiLines.


Member Data Documentation

Pattern to match ending of block.

Definition at line 206 of file HighlightBlock.h.

Referenced by getEndingExp(), getEndingPattern(), and setEndingPattern().

Pattern to match beginning of block.

Definition at line 205 of file HighlightBlock.h.

Referenced by getStartingExp(), getStartingPattern(), and setStartingPattern().


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

Generated on Fri Jan 9 00:51:00 2009 for HSyntaxHighlighter by  doxygen 1.5.8