1.1 --- a/mapcenterobj.cpp Thu May 07 08:48:53 2009 +0000
1.2 +++ b/mapcenterobj.cpp Wed May 13 08:26:27 2009 +0000
1.3 @@ -108,103 +108,3 @@
1.4 if (repositionRequest) reposition();
1.5 }
1.6
1.7 -QString MapCenterObj::saveToDir (const QString &tmpdir,const QString &prefix, int verbose, const QPointF &offset)
1.8 -{
1.9 - QString s,a;
1.10 -
1.11 -/*
1.12 - // save area, if not scrolled
1.13 - QString areaAttr=
1.14 - attribut("x1",QString().setNum(absPos.x()-offset.x())) +
1.15 - attribut("y1",QString().setNum(absPos.y()-offset.y())) +
1.16 - attribut("x2",QString().setNum(absPos.x()+width()-offset.x())) +
1.17 - attribut("y2",QString().setNum(absPos.y()+height()-offset.y()));
1.18 -
1.19 - // Providing an ID for a branch makes export to XHTML easier
1.20 - // FIXME-3
1.21 - QString idAttr;
1.22 - if (treeItem->xlinkCount()>0)
1.23 - idAttr=attribut ("id",mapEditor->getModel()->getSelectString(this)); //TODO directly access model
1.24 -
1.25 - else
1.26 - idAttr="";
1.27 -
1.28 -
1.29 - QString linkAttr=getLinkAttr();
1.30 -
1.31 - s=beginElement ("mapcenter"
1.32 - +getOrnXMLAttr()
1.33 - +areaAttr
1.34 -// +idAttr
1.35 - +getIncludeImageAttr() );
1.36 - incIndent();
1.37 - if (heading->getColor()!=QColor("black"))
1.38 - a=attribut ("textColor",QColor(heading->getColor()).name() );
1.39 - else
1.40 - a="";
1.41 -
1.42 - // Save flags. If verbose is set (export to xml dir), also write
1.43 - // the flags as picture
1.44 - s+=standardFlags->saveToDir(tmpdir+"/flags", "/standardFlag-", verbose);
1.45 -
1.46 - // Save heading
1.47 - s+=valueElement("heading", treeItem->getHeading(),a);
1.48 -
1.49 - // Save frame
1.50 - s+=frame->saveToDir ();
1.51 -
1.52 - // Update of note is usually done while unselecting a branch
1.53 - //if (isNoteInEditor) getNoteFromTextEditor(); FIXME-3
1.54 -
1.55 - // save note
1.56 - if (!treeItem->getNoteObj().isEmpty() )
1.57 - s+=treeItem->getNoteObj().saveToDir();
1.58 -
1.59 - // Save branches
1.60 - for (int i=0; i<treeItem->branchCount(); ++i)
1.61 - s+=treeItem->getBranchObjNum(i)->saveToDir(tmpdir,prefix, offset);
1.62 -
1.63 - // Save FloatImages
1.64 - for (int i=0; i<floatimage.size(); ++i)
1.65 - s+=floatimage.at(i)->saveToDir (tmpdir,prefix);
1.66 -
1.67 - // Save XLinks
1.68 - for (int i=0;i<xlink.size(); ++i)
1.69 - s+=xlink.at(i)->saveToDir();
1.70 -
1.71 - decIndent();
1.72 - s+=endElement ("mapcenter");
1.73 - */
1.74 - return s;
1.75 -}
1.76 -
1.77 -void MapCenterObj::setVersion (const QString &s)
1.78 -{
1.79 - version=s;
1.80 -}
1.81 -
1.82 -void MapCenterObj::setAuthor (const QString &s)
1.83 -{
1.84 - author=s;
1.85 -}
1.86 -
1.87 -QString MapCenterObj::getAuthor()
1.88 -{
1.89 - return author;
1.90 -}
1.91 -
1.92 -void MapCenterObj::setComment (const QString &s)
1.93 -{
1.94 - comment=s;
1.95 -}
1.96 -
1.97 -QString MapCenterObj::getComment ()
1.98 -{
1.99 - return comment;
1.100 -}
1.101 -
1.102 -QString MapCenterObj::getDate ()
1.103 -{
1.104 - return QDate::currentDate().toString ("yyyy-MM-dd");
1.105 -}
1.106 -