File Export: Added a "plain text" option.
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 14 Dec 2014 00:51:44 +0000 (01:51 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 14 Dec 2014 00:52:34 +0000 (01:52 +0100)
In the File|Export menu of the output window, enabled unicode box characters for
the "Text" output, and added a "Text (plain)" menuitem without this feature.

src/ui/gui/psppire-output-window.c

index 3c889808a32004551c08f45ec49b865a45d69c30..695aa77eec81589a6e60319b29fff7fbe9135e47 100644 (file)
@@ -233,6 +233,7 @@ enum
     FT_HTML,
     FT_ODT,
     FT_TXT,
+    FT_ASCII,
     FT_PS,
     FT_CSV,
     n_FT
@@ -246,6 +247,7 @@ struct file_types ft[n_FT] = {
   {N_("HTML (*.html)"),                   ".html"},
   {N_("OpenDocument (*.odt)"),            ".odt"},
   {N_("Text (*.txt)"),                    ".txt"},
+  {N_("Text [plain] (*.txt)"),            ".txt"},
   {N_("PostScript (*.ps)"),               ".ps"},
   {N_("Comma-Separated Values (*.csv)"),  ".csv"}
 };
@@ -444,6 +446,10 @@ psppire_output_window_export (PsppireOutputWindow *window)
          break;
 
        case FT_TXT:
+          string_map_insert (&options, "box", "unicode");
+         /* Fall through */
+
+       case FT_ASCII:
           string_map_insert (&options, "headers", "false");
           string_map_insert (&options, "paginate", "false");
           string_map_insert (&options, "squeeze", "true");