X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fdebug.C;h=b629f57a0d0646c51a0edf880c4fdeb51deb6cc1;hb=c7db12d1acf83fb5191fab908e0153fa752f4530;hp=d2232904cd79f74af6d5b22c5f5ccc68961f7a75;hpb=08b1fdacad52474c2aceb6e5ff354e8e870ddc47;p=lyx.git diff --git a/src/debug.C b/src/debug.C index d2232904cd..b629f57a0d 100644 --- a/src/debug.C +++ b/src/debug.C @@ -1,8 +1,8 @@ /* This file is part of -* ====================================================== -* +* ====================================================== +* * LyX, The Document Processor -* +* * Copyright 1999-2001 The LyX Team. * * ====================================================== */ @@ -54,7 +54,8 @@ error_item errorTags[] = { { Debug::INSETS, "insets", N_("LyX Insets")}, { Debug::FILES, "files", N_("Files used by LyX")}, { Debug::WORKAREA, "workarea", N_("Workarea events")}, - { Debug::INSETTEXT, "insettext", N_("Insettext/tabular messanges")}, + { Debug::INSETTEXT, "insettext", N_("Insettext/tabular messages")}, + { Debug::GRAPHICS, "graphics", N_("Graphics conversion and loading")}, { Debug::ANY, "any", N_("All debugging messages")} }; @@ -63,16 +64,17 @@ int const numErrorTags = sizeof(errorTags)/sizeof(error_item); } // namespace anon - + Debug::type const Debug::ANY = Debug::type( Debug::INFO | Debug::INIT | Debug::KEY | Debug::GUI | Debug::PARSER | Debug::LYXRC | Debug::KBMAP | Debug::LATEX | Debug::MATHED | Debug::FONT | Debug::TCLASS | Debug::LYXVC | Debug::LYXSERVER | Debug::ROFF | Debug::ACTION | Debug::LYXLEX | - Debug::DEPEND | Debug::INSETS | Debug::FILES | Debug::WORKAREA); + Debug::DEPEND | Debug::INSETS | Debug::FILES | Debug::WORKAREA | + Debug::INSETTEXT | Debug::GRAPHICS); -Debug::type Debug::value(string const & val) +Debug::type Debug::value(string const & val) { type l = Debug::NONE; string v(val); @@ -82,11 +84,11 @@ Debug::type Debug::value(string const & val) if (tmp.empty()) break; // Is it a number? - if (isStrInt(tmp)) + if (isStrInt(tmp)) l |= static_cast(strToInt(tmp)); else // Search for an explicit name - for (int i = 0 ; i < numErrorTags ; ++i) + for (int i = 0 ; i < numErrorTags ; ++i) if (tmp == errorTags[i].name) { l |= errorTags[i].level; break; @@ -110,7 +112,7 @@ void Debug::showLevel(ostream & o, Debug::type level) } -void Debug::showTags(ostream & os) +void Debug::showTags(ostream & os) { for (int i = 0 ; i < numErrorTags ; ++i) os << setw(7) << errorTags[i].level