libquentier 0.8.0
The library for rich desktop clients of Evernote service
Loading...
Searching...
No Matches
quentier::enml::conversion_rules::ISkipRule Class Referenceabstract

The ISkipRule interface describes a conversion rule with regards to which some ENML/HTML element/attribute should be skipped during the conversion. More...

#include <ISkipRule.h>

Inheritance diagram for quentier::enml::conversion_rules::ISkipRule:
Collaboration diagram for quentier::enml::conversion_rules::ISkipRule:

Public Types

enum class  Target { Element , AttibuteName , AttributeValue }

Public Member Functions

virtual Target target () const =0
virtual QString value () const =0
virtual MatchMode matchMode () const =0
virtual bool includeContents () const =0
virtual Qt::CaseSensitivity caseSensitivity () const =0
QTextStream & print (QTextStream &strm) const override
Public Member Functions inherited from quentier::utility::Printable
QString toString () const

Friends

QUENTIER_EXPORT QTextStream & operator<< (QTextStream &strm, Target target)
QUENTIER_EXPORT QDebug & operator<< (QDebug &dbg, Target target)

Detailed Description

The ISkipRule interface describes a conversion rule with regards to which some ENML/HTML element/attribute should be skipped during the conversion.

ENML format prohibits the use of certain HTML tags and attributes. This interface facilitates skipping these tags and attributes in the process of conversion from HTML to ENML

Member Enumeration Documentation

◆ Target

Target to be affected by the skip rule

Enumerator
Element 

HTML element

AttibuteName 

HTML attribute with specified name

AttributeValue 

HTML attribute with specified value

Member Function Documentation

◆ caseSensitivity()

virtual Qt::CaseSensitivity quentier::enml::conversion_rules::ISkipRule::caseSensitivity ( ) const
nodiscardpure virtual

Case sensitivity for target name/value check

◆ includeContents()

virtual bool quentier::enml::conversion_rules::ISkipRule::includeContents ( ) const
nodiscardpure virtual

Specifies whether the element contents should be included without the element itself if it needs to be skipped or not

◆ matchMode()

virtual MatchMode quentier::enml::conversion_rules::ISkipRule::matchMode ( ) const
nodiscardpure virtual

Match mode for name or value of the target

◆ print()

QTextStream & quentier::enml::conversion_rules::ISkipRule::print ( QTextStream & strm) const
overridevirtual

◆ target()

virtual Target quentier::enml::conversion_rules::ISkipRule::target ( ) const
nodiscardpure virtual

Target to be affected by the skip rule

◆ value()

virtual QString quentier::enml::conversion_rules::ISkipRule::value ( ) const
nodiscardpure virtual

Name or value of the target