X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCmdDef.h;h=fa24fe76152121925f4490e15a23a6824053d9d8;hb=db0ba3a3c68d2243722822e1c53535ff44d523bf;hp=d7fe72e7d2d80036b8529233e156295453f0646a;hpb=a8cd9a4b8fd325b00c75f601c66c6d618ba276db;p=lyx.git diff --git a/src/CmdDef.h b/src/CmdDef.h index d7fe72e7d2..fa24fe7615 100644 --- a/src/CmdDef.h +++ b/src/CmdDef.h @@ -16,30 +16,18 @@ #include "support/strfwd.h" -#include - #include -#include - +#include namespace lyx { /// Creates command definitions class CmdDef { private: - /// information for a definition - struct CmdDefInfo { - CmdDefInfo(FuncRequest const & f): func(f), locked(false) {} - /// the expanded FuncRequest - FuncRequest func; - /// to avoid recursive calls - bool locked; - }; - - /// type for map between a macro name and its info - typedef std::map > CmdDefMap; - + typedef std::map CmdDefMap; + /// type for a set containing all locked definitions + typedef std::set LockSet; public: /// Parse a def file @@ -72,10 +60,12 @@ private: * @param name internal recursion level */ newCmdDefResult newCmdDef(std::string const & name, - std::string const & def); + std::string const & def); /// CmdDefMap cmdDefMap; + /// + LockSet lockSet; }; /// Implementation is in LyX.cpp