]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetIPAMacro.cpp
DocBook: merge code duplicates for HTML and CALS tables.
[features.git] / src / insets / InsetIPAMacro.cpp
index 82f6c48e84deff326b6deebaabab094ef6d320de..a529d04b08ddfbf92078592dfec1bdf09f71ab87 100644 (file)
 #include "BufferParams.h"
 #include "Dimension.h"
 #include "Encoding.h"
-#include "Font.h"
+#include "FontInfo.h"
 #include "FuncRequest.h"
 #include "FuncStatus.h"
+#include "InsetLayout.h"
 #include "LaTeXFeatures.h"
 #include "Lexer.h"
 #include "MetricsInfo.h"
@@ -286,7 +287,7 @@ int InsetIPADeco::plaintext(odocstringstream & os,
                            OutputParams const & runparams, size_t max_length) const
 {
        odocstringstream ods;
-       int h = (int)(InsetCollapsible::plaintext(ods, runparams, max_length) / 2);
+       int h = InsetCollapsible::plaintext(ods, runparams, max_length) / 2;
        docstring result = ods.str();
        docstring const before = result.substr(0, h);
        docstring const after = result.substr(h, result.size());
@@ -310,7 +311,7 @@ void InsetIPADeco::docbook(XMLStream & xs, OutputParams const & runparams) const
        // The special combining character must be put in the middle, between the two other characters.
        // It will not work if there is anything else than two pure characters, so going back to plaintext.
        odocstringstream ods;
-       int h = (int)(InsetText::plaintext(ods, runparams) / 2);
+       int h = InsetText::plaintext(ods, runparams) / 2;
        docstring result = ods.str();
        docstring const before = result.substr(0, h);
        docstring const after = result.substr(h, result.size());