From f1ab3282b39d58551cd0cda034a2a49e82b95ba7 Mon Sep 17 00:00:00 2001 From: guy Date: Thu, 2 Oct 2008 16:10:08 +0000 Subject: [PATCH] Patch level : 10.0 Files correlati : tutti Ricompilazione Demo : [ ] Commento : 0000919: Esportazione excel Aprire subito il foglio di excel senza richiedere il salvataggio. 0000920: Pulsante per far partire le ricerche Sarebbe opportuno che invece di far partire le ricerche di mettere un pulsante con l'immagine (ad esempio) di una lentina e lasciare quello attuale solo per le combo list. git-svn-id: svn://10.65.10.50/trunk@17345 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- include/sheet.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/include/sheet.cpp b/include/sheet.cpp index 30da62809..879f2c4b3 100755 --- a/include/sheet.cpp +++ b/include/sheet.cpp @@ -1336,13 +1336,19 @@ bool TSheet::export_handler(TMask_field& f, KEY k) if (k == K_SPACE) { TSheet& s = (TSheet&)f.mask(); - FILE_SPEC fs; + TString cap; s.get_caption(cap); TFilename name; - s.get_caption(name); name.ext("xls"); + name.tempdir(); + name.add(cap); + name.ext("xls"); + /* Non vogliono pedere tempo a Milano! + FILE_SPEC fs; xvt_fsys_convert_str_to_fspec(name, &fs); if (xvt_dm_post_file_save(&fs, TR("Selezionare il file di destinazione")) == FL_OK) { xvt_fsys_convert_fspec_to_str(&fs, name.get_buffer(), name.size()); + */ + { ofstream xls(name); const char sep = '\t'; TToken_string tab(128, sep);