libquentier 0.5.0
The library for rich desktop clients of Evernote service
Loading...
Searching...
No Matches
quentier::ENMLConverter::SkipHtmlElementRule Class Reference

The SkipHtmlElementRule class describes the set of rules for HTML -> ENML conversion about the HTML elements that should not be actually converted to ENML due to their nature of being "helper" elements for the display or functioning of something within the note editor's page. The HTML -> ENML conversion would ignore tags and attributes forbidden by ENML even without these rules conditionally preserving or skipping the contents and nested elements of skipped elements. More...

#include <ENMLConverter.h>

Inheritance diagram for quentier::ENMLConverter::SkipHtmlElementRule:
Collaboration diagram for quentier::ENMLConverter::SkipHtmlElementRule:

Public Types

enum class  ComparisonRule { Equals = 0 , StartsWith , EndsWith , Contains }

Public Member Functions

virtual QTextStream & print (QTextStream &strm) const override
Public Member Functions inherited from quentier::Printable
virtual const QString toString () const

Public Attributes

QString m_elementNameToSkip
ComparisonRule m_elementNameComparisonRule = ComparisonRule::Equals
Qt::CaseSensitivity m_elementNameCaseSensitivity = Qt::CaseSensitive
QString m_attributeNameToSkip
ComparisonRule m_attributeNameComparisonRule = ComparisonRule::Equals
Qt::CaseSensitivity m_attributeNameCaseSensitivity = Qt::CaseSensitive
QString m_attributeValueToSkip
ComparisonRule m_attributeValueComparisonRule = ComparisonRule::Equals
Qt::CaseSensitivity m_attributeValueCaseSensitivity = Qt::CaseSensitive
bool m_includeElementContents = false

Friends

QUENTIER_EXPORT QTextStream & operator<< (QTextStream &strm, const ComparisonRule rule)

Additional Inherited Members

Protected Member Functions inherited from quentier::Printable
 Printable (const Printable &other)
Printableoperator= (const Printable &other)

Detailed Description

The SkipHtmlElementRule class describes the set of rules for HTML -> ENML conversion about the HTML elements that should not be actually converted to ENML due to their nature of being "helper" elements for the display or functioning of something within the note editor's page. The HTML -> ENML conversion would ignore tags and attributes forbidden by ENML even without these rules conditionally preserving or skipping the contents and nested elements of skipped elements.

Member Function Documentation

◆ print()

virtual QTextStream & quentier::ENMLConverter::SkipHtmlElementRule::print ( QTextStream & strm) const
overridevirtual

Implements quentier::Printable.