Enhancement - Hooks

- Implemented pre-debug, post-debug.
- Implemented pre-header, post-header.
- Implemented pre-output, post-output.
- Implemented pre-footnote, post-footnote.
- Implemented pre-gc, post-gc.
- Implemented pre-undo, post-undo.
- Implemented pre-add-command, post-add-command.
This commit is contained in:
Paul Beckingham 2010-01-19 23:01:52 -05:00
parent 8540cab0a6
commit 1cd6d4c7e7
4 changed files with 26 additions and 3 deletions

View file

@ -127,9 +127,16 @@ bool Hooks::trigger (const std::string& event)
////////////////////////////////////////////////////////////////////////////////
bool Hooks::eventType (const std::string& event, std::string& type)
{
if (event == "post-start" ||
event == "pre-exit" ||
event == "pre-dispatch" || event == "post-dispatch")
if (event == "post-start" ||
event == "pre-exit" ||
event == "pre-debug" || event == "post-debug" ||
event == "pre-header" || event == "post-header" ||
event == "pre-footnote" || event == "post-footnote" ||
event == "pre-output" || event == "post-output" ||
event == "pre-dispatch" || event == "post-dispatch" ||
event == "pre-gc" || event == "post-gc" ||
event == "pre-undo" || event == "post-undo" ||
event == "pre-add-command" || event == "post-add-command")
{
type = "program";
return true;