Complete the FontTag typeinfo

This commit is contained in:
Kornel Benko 2021-09-20 11:52:16 +02:00
parent 8b6e3d3749
commit 687ccdbb32
2 changed files with 3 additions and 0 deletions

View File

@ -54,6 +54,7 @@ namespace xml {
docstring StartTag::writeTag() const { return docstring(); } docstring StartTag::writeTag() const { return docstring(); }
docstring StartTag::writeEndTag() const { return docstring(); } docstring StartTag::writeEndTag() const { return docstring(); }
bool StartTag::operator==(FontTag const & rhs) const { return rhs == *this; } bool StartTag::operator==(FontTag const & rhs) const { return rhs == *this; }
bool FontTag::operator==(StartTag const & tag) const { FontTag const * const ftag = tag.asFontTag(); if (!ftag) return false; return (font_type_ == ftag->font_type_); }
} }
} // namespace lyx } // namespace lyx

View File

@ -22,6 +22,7 @@
#include "LaTeXFeatures.h" #include "LaTeXFeatures.h"
#include "LyXRC.h" #include "LyXRC.h"
#include "output_xhtml.h" #include "output_xhtml.h"
#include "xml.h"
#include "support/Messages.h" #include "support/Messages.h"
@ -117,6 +118,7 @@ namespace xml {
docstring StartTag::writeTag() const { return docstring(); } docstring StartTag::writeTag() const { return docstring(); }
docstring StartTag::writeEndTag() const { return docstring(); } docstring StartTag::writeEndTag() const { return docstring(); }
bool StartTag::operator==(FontTag const & rhs) const { return rhs == *this; } bool StartTag::operator==(FontTag const & rhs) const { return rhs == *this; }
bool FontTag::operator==(StartTag const & tag) const { FontTag const * const ftag = tag.asFontTag(); if (!ftag) return false; return (font_type_ == ftag->font_type_); }
} }
} // namespace lyx } // namespace lyx