]> git.lyx.org Git - features.git/commitdiff
Complete the FontTag typeinfo
authorKornel Benko <kornel@lyx.org>
Mon, 20 Sep 2021 09:52:16 +0000 (11:52 +0200)
committerKornel Benko <kornel@lyx.org>
Mon, 20 Sep 2021 09:52:16 +0000 (11:52 +0200)
src/tests/dummy_functions.cpp
src/tex2lyx/dummy_impl.cpp

index f57061614f0fa367db9a8026fd54091c5657ddac..26983516027332d0bd587f57b1373f2a9710a06f 100644 (file)
@@ -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
index 961eb9ae0d4546882cfd1a10b6907d8cf31419a7..eb445672d6f9d49ff8f7ae5fe8b00173f7959455 100644 (file)
@@ -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