#include "libpspp/string-map.h"
#include "libpspp/string-set.h"
#include "libpspp/str.h"
+#include "output/message-item.h"
#include "output/output-item.h"
#include "output/text-item.h"
next = llx_next (llx);
- if (is_text_item (item)
- && text_item_get_type (to_text_item (item)) == TEXT_ITEM_SYNTAX)
+ if (is_message_item (item))
+ {
+ const struct msg *m = message_item_get_msg (to_message_item (item));
+ if (m->severity == MSG_S_NOTE)
+ type = SETTINGS_OUTPUT_NOTE;
+ else
+ type = SETTINGS_OUTPUT_ERROR;
+ }
+ else if (is_text_item (item)
+ && text_item_get_type (to_text_item (item)) == TEXT_ITEM_SYNTAX)
type = SETTINGS_OUTPUT_SYNTAX;
else
type = SETTINGS_OUTPUT_RESULT;
extern const struct output_driver_factory txt_driver_factory;
extern const struct output_driver_factory list_driver_factory;
extern const struct output_driver_factory html_driver_factory;
-extern const struct output_driver_factory odt_driver_factory;
extern const struct output_driver_factory csv_driver_factory;
+#ifdef ODT_SUPPORT
+extern const struct output_driver_factory odt_driver_factory;
+#endif
#ifdef HAVE_CAIRO
extern const struct output_driver_factory pdf_driver_factory;
extern const struct output_driver_factory ps_driver_factory;
&txt_driver_factory,
&list_driver_factory,
&html_driver_factory,
- &odt_driver_factory,
&csv_driver_factory,
+#ifdef ODT_SUPPORT
+ &odt_driver_factory,
+#endif
#ifdef HAVE_CAIRO
&pdf_driver_factory,
&ps_driver_factory,
device_type = SETTINGS_DEVICE_LISTING;
else
{
+ /* TRANSLATORS: Don't translate the words `terminal' or `listing'. */
error (0, 0, _("%s is not a valid device type (the choices are "
- "\"terminal\" and \"listing\")"), device_string);
+ "`terminal' and `listing')"), device_string);
device_type = default_device_type (file_name);
}
const char *key;
STRING_MAP_FOR_EACH_KEY (key, node, options)
- error (0, 0, _("%s: unknown option \"%s\""), file_name, key);
+ error (0, 0, _("%s: unknown option `%s'"), file_name, key);
}
string_map_clear (options);