diff -r bdeb503d2b7f -r 0ee4ccd96d0c exports.cpp --- a/exports.cpp Tue Mar 14 14:27:04 2006 +0000 +++ b/exports.cpp Mon Apr 10 11:21:35 2006 +0000 @@ -131,30 +131,27 @@ bo=mapCenter->first(); while (bo) { - if (!bo->hideInExport()) + // Make indentstring + for (i=0;igetDepth();i++) actIndent+= indentPerDepth; + + if (bo->getDepth()==0) { - // Make indentstring - for (i=0;igetDepth();i++) actIndent+= indentPerDepth; - - if (bo->getDepth()==0) - { - ts << (bo->getHeading()+ "\n"); - for (j=0;jgetHeading().length();j++) ts<<"="; - ts << "\n"; - } else if (bo->getDepth()==1) - ts << ("\n"+getSectionString(bo) + bo->getHeading()+ "\n"); - else if (bo->getDepth()==2) - ts << (actIndent + " o " + bo->getHeading()+ "\n"); - else - ts << (actIndent + " - " + bo->getHeading()+ "\n"); - - // If necessary, write note - if (!bo->getNote().isEmpty()) - { - s =bo->getNoteASCII(); - s=s.replace ("\n","\n"+actIndent); - ts << (s+"\n\n"); - } + ts << (bo->getHeading()+ "\n"); + for (j=0;jgetHeading().length();j++) ts<<"="; + ts << "\n"; + } else if (bo->getDepth()==1) + ts << ("\n"+getSectionString(bo) + bo->getHeading()+ "\n"); + else if (bo->getDepth()==2) + ts << (actIndent + " o " + bo->getHeading()+ "\n"); + else + ts << (actIndent + " - " + bo->getHeading()+ "\n"); + + // If necessary, write note + if (!bo->getNote().isEmpty()) + { + s =bo->getNoteASCII(); + s=s.replace ("\n","\n"+actIndent); + ts << (s+"\n\n"); } bo=bo->next(); actIndent=""; @@ -226,31 +223,28 @@ BranchObj *bo; bo=mapCenter->first(); while (bo) { - if (!bo->hideInExport()) - { - if (bo->getDepth()==0); - else if (bo->getDepth()==1) { - ts << ("\\chapter{" + bo->getHeading()+ "}\n"); - } - else if (bo->getDepth()==2) { - ts << ("\\section{" + bo->getHeading()+ "}\n"); - } - else if (bo->getDepth()==3) { - ts << ("\\subsection{" + bo->getHeading()+ "}\n"); - } - else if (bo->getDepth()==4) { - ts << ("\\subsubsection{" + bo->getHeading()+ "}\n"); - } - else { - ts << ("\\paragraph*{" + bo->getHeading()+ "}\n"); - } - - // If necessary, write note - if (!bo->getNote().isEmpty()) { - ts << (bo->getNoteASCII()); - ts << ("\n"); - } - } + if (bo->getDepth()==0); + else if (bo->getDepth()==1) { + ts << ("\\chapter{" + bo->getHeading()+ "}\n"); + } + else if (bo->getDepth()==2) { + ts << ("\\section{" + bo->getHeading()+ "}\n"); + } + else if (bo->getDepth()==3) { + ts << ("\\subsection{" + bo->getHeading()+ "}\n"); + } + else if (bo->getDepth()==4) { + ts << ("\\subsubsection{" + bo->getHeading()+ "}\n"); + } + else { + ts << ("\\paragraph*{" + bo->getHeading()+ "}\n"); + } + + // If necessary, write note + if (!bo->getNote().isEmpty()) { + ts << (bo->getNoteASCII()); + ts << ("\n"); + } bo=bo->next(); } file.close(); @@ -279,17 +273,14 @@ r+="\n"; while (bo) { - if (!bo->hideInExport()) - { - r+=""; - r+=quotemeta(bo->getHeading()); - // If necessary, write note - if (!bo->getNote().isEmpty()) - r+=bo->getNoteOpenDoc(); - r+=""; - r+=buildList (bo); // recursivly add deeper branches - r+="\n"; - } + r+=""; + r+=quotemeta(bo->getHeading()); + // If necessary, write note + if (!bo->getNote().isEmpty()) + r+=bo->getNoteOpenDoc(); + r+=""; + r+=buildList (bo); // recursivly add deeper branches + r+="\n"; i++; bo=current->getBranchNum(i); } @@ -337,14 +328,11 @@ while (pagesBO) { // Add page with list of items - if (!pagesBO->hideInExport()) - { - onePage=pageTemplate; - onePage.replace ("", quotemeta (pagesBO->getHeading() ) ); - list=buildList (pagesBO); - onePage.replace ("", list); - allPages+=onePage; - } + onePage=pageTemplate; + onePage.replace ("", quotemeta (pagesBO->getHeading() ) ); + list=buildList (pagesBO); + onePage.replace ("", list); + allPages+=onePage; j++; pagesBO=sectionBO->getBranchNum(j); }