diff -r 657078664946 -r 30c4a6c7ff10 exports.cpp --- a/exports.cpp Wed Feb 15 12:54:55 2006 +0000 +++ b/exports.cpp Wed Feb 15 12:54:55 2006 +0000 @@ -4,7 +4,6 @@ #include "file.h" #include "linkablemapobj.h" #include "misc.h" -#include "texteditor.h" #include "mainwindow.h" extern Main *mainWindow; @@ -31,6 +30,7 @@ QString ExportBase::getSectionString(BranchObj *bostart) { + // Make prefix like "2.5.3" for "bo:2,bo:5,bo:3" QString r; BranchObj *bo=bostart; int depth=bo->getDepth(); @@ -69,8 +69,6 @@ // Make indentstring for (i=0;igetDepth();i++) actIndent+= indentPerDepth; - // Write heading - // write (actIndent + getSectionString(bo) + bo->getHeading()+ "\n"); if (bo->getDepth()==0) { ts << (bo->getHeading()+ "\n"); @@ -106,8 +104,8 @@ // that makes a full LaTex document. QFile file (outputFile); if ( !file.open( IO_WriteOnly ) ) { - // FIXME - cout << "Export::exportMap couldn't open "<statusMessage(QString(QObject::tr("Export failed."))); return; } QTextStream ts( &file ); // use LANG decoding here... @@ -247,7 +245,8 @@ QFile f (contentFile); if ( !f.open( IO_WriteOnly ) ) { - mainWindow->statusMessage(QString(QObject::tr("Could not write to %1")).arg(contentFile)); + QMessageBox::critical (0,QObject::tr("Critical Export Error"),QObject::tr("Could not write %1").arg(contentFile)); + mainWindow->statusMessage(QString(QObject::tr("Export failed."))); return; }