mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Get some good debug output for function codes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26502 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
4a74c5f965
commit
31e5a15695
@ -3126,5 +3126,11 @@ LyXAction::const_func_iterator LyXAction::func_end() const
|
||||
return lyx_func_map.end();
|
||||
}
|
||||
|
||||
LyXErr & operator<<(LyXErr & l, FuncCode code)
|
||||
{
|
||||
if (l.enabled())
|
||||
l.stream() << lyxaction.getActionName(code);
|
||||
return l;
|
||||
}
|
||||
|
||||
} // namespace lyx
|
||||
|
@ -22,6 +22,7 @@
|
||||
namespace lyx {
|
||||
|
||||
class FuncRequest;
|
||||
class LyXErr;
|
||||
|
||||
/**
|
||||
* This class is a container for LyX actions. It associates a name to
|
||||
@ -117,6 +118,8 @@ private:
|
||||
info_map lyx_info_map;
|
||||
};
|
||||
|
||||
LyXErr & operator<<(LyXErr &, FuncCode);
|
||||
|
||||
/// singleton instance
|
||||
extern LyXAction lyxaction;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user