X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCmdDef.h;h=5fb6e366b6d3d9347ea2c923060339462eee2de0;hb=abc145f250142e01016f486f2c585d84b343ed8c;hp=2b15f5565b9f5f37ba1f4a9bdfb187a9b87d683f;hpb=1a77c867a23f6f904f24b4968bdeb41e4244ccec;p=lyx.git diff --git a/src/CmdDef.h b/src/CmdDef.h index 2b15f5565b..5fb6e366b6 100644 --- a/src/CmdDef.h +++ b/src/CmdDef.h @@ -14,32 +14,20 @@ #include "FuncRequest.h" -#include "support/docstream.h" - -#include - -#include -#include +#include "support/strfwd.h" +#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 @@ -71,11 +59,13 @@ private: * Add a new command definition. * @param name internal recursion level */ - newCmdDefResult newCmdDef(std::string const & name, - std::string const & def); + newCmdDefResult newCmdDef(std::string const & name, + std::string const & def); /// CmdDefMap cmdDefMap; + /// + LockSet lockSet; }; /// Implementation is in LyX.cpp