From: Kornel Benko Date: Mon, 20 Sep 2021 09:52:16 +0000 (+0200) Subject: Complete the FontTag typeinfo X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=687ccdbb3241f26a0875dcf9906d7609a8b56ddc;p=features.git Complete the FontTag typeinfo --- diff --git a/src/tests/dummy_functions.cpp b/src/tests/dummy_functions.cpp index f57061614f..2698351602 100644 --- a/src/tests/dummy_functions.cpp +++ b/src/tests/dummy_functions.cpp @@ -54,6 +54,7 @@ namespace xml { docstring StartTag::writeTag() const { return docstring(); } docstring StartTag::writeEndTag() const { return docstring(); } 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 diff --git a/src/tex2lyx/dummy_impl.cpp b/src/tex2lyx/dummy_impl.cpp index 961eb9ae0d..eb445672d6 100644 --- a/src/tex2lyx/dummy_impl.cpp +++ b/src/tex2lyx/dummy_impl.cpp @@ -22,6 +22,7 @@ #include "LaTeXFeatures.h" #include "LyXRC.h" #include "output_xhtml.h" +#include "xml.h" #include "support/Messages.h" @@ -117,6 +118,7 @@ namespace xml { docstring StartTag::writeTag() const { return docstring(); } docstring StartTag::writeEndTag() const { return docstring(); } 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