+/**
+ * \brief Restore in the Header the DocEntry specified by (group,element).
+ * The archive entry is destroyed.
+ * @param group Group number of the Entry to restore
+ * @param elem Element number of the Entry to restore
+ * @return FALSE when the key isn't in the archive,
+ * TRUE otherwise
+ */
+bool DocEntryArchive::Restore(uint16_t group, uint16_t elem)
+{
+ TagKey key=DictEntry::TranslateToKey(group, elem);
+
+ TagDocEntryHT::iterator restoreIt=Archive.find(key);
+ if ( restoreIt!=Archive.end() )
+ {
+ // Delete the new value
+ DocEntry *rem = ArchFile->GetDocEntry(group, elem);
+ if ( rem )
+ {
+ ArchFile->RemoveEntry(rem);
+ }
+
+ // Restore the old value
+ if ( restoreIt->second )
+ {
+ ArchFile->AddEntry(restoreIt->second);
+ restoreIt->second->Unregister();
+ }