Hello all,
When I'm defining simple custom inset (in Local Layout):
InsetLayout Flex:BoxInset
LyxType custom
LabelString Box
LatexType Paragraph
Decoration Classic
End
I'm getting this error:
insets/InsetLayout.cpp (283): Unknown LaTeXType `Paragraph'.
But according to Customization manual this is valid value for LaTeXType!
Looking into the sources (InsetLayout.cpp), the translation function
processes only 3 values, not 6 values as described in manual:
InsetLaTeXType translateLaTeXType(std::string const & str)
{
if (compare_ascii_no_case(str, "command") == 0)
return InsetLaTeXType::COMMAND;
if (compare_ascii_no_case(str, "environment") == 0)
return InsetLaTeXType::ENVIRONMENT;
if (compare_ascii_no_case(str, "none") == 0)
return InsetLaTeXType::NOLATEXTYPE;
return InsetLaTeXType::ILT_ERROR;
}
So the question is: should InsetLaTeXType enum (from InsetLayout.h) be
aligned with LatexType enum (from LayoutEnums.h)? Or even keep only one
of them?
enum class InsetLaTeXType : int {
NOLATEXTYPE,
COMMAND,
ENVIRONMENT,
ILT_ERROR
};
enum LatexType {
///
LATEX_PARAGRAPH = 1,
///
LATEX_COMMAND,
///
LATEX_ENVIRONMENT,
///
LATEX_ITEM_ENVIRONMENT,
///
LATEX_BIB_ENVIRONMENT,
///
LATEX_LIST_ENVIRONMENT
};
Best Regards,
Yuriy
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel