- Created legacy checking function to determine whether deprecated or obsolete
  attributes are being used.
This commit is contained in:
Paul Beckingham 2011-09-12 22:45:58 -04:00
parent fa22b98dc4
commit 02047a6e99
3 changed files with 62 additions and 42 deletions

View file

@ -25,11 +25,21 @@
//
////////////////////////////////////////////////////////////////////////////////
#define L10N // Localization complete.
#include <Context.h>
#include <text.h>
#include <i18n.h>
extern Context context;
////////////////////////////////////////////////////////////////////////////////
void legacyAttributeCheck (const std::string& name)
{
// Legacy checks.
if (name == "fg" || name == "bg")
context.footnote (format (STRING_LEGACY_FEATURE, name));
}
////////////////////////////////////////////////////////////////////////////////