libquentier  0.4.0
The library for rich desktop clients of Evernote service
Public Types | Public Member Functions | Public Attributes | List of all members
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:
Inheritance graph
[legend]
Collaboration diagram for quentier::ENMLConverter::SkipHtmlElementRule:
Collaboration graph
[legend]

Public Types

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

Public Member Functions

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

Public Attributes

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

Additional Inherited Members

- Protected Member Functions inherited from quentier::Printable
 Printable (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.