libquentier 0.8.0
The library for rich desktop clients of Evernote service
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Friends | List of all members
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:
Inheritance graph
[legend]
Collaboration diagram for quentier::enml::conversion_rules::ISkipRule:
Collaboration graph
[legend]

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
 
QTextStreamprint (QTextStream &strm) const override
 
- Public Member Functions inherited from quentier::Printable
QString toString () const
 

Friends

QUENTIER_EXPORT QTextStreamoperator<< (QTextStream &strm, Target target)
 
QUENTIER_EXPORT QDebugoperator<< (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
pure virtual

Case sensitivity for target name/value check

◆ includeContents()

virtual bool quentier::enml::conversion_rules::ISkipRule::includeContents ( ) const
pure 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
pure virtual

Match mode for name or value of the target

◆ print()

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

Implements quentier::Printable.

◆ target()

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

Target to be affected by the skip rule

◆ value()

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

Name or value of the target