1.1 --- a/exports.cpp Tue Mar 07 11:32:02 2006 +0000
1.2 +++ b/exports.cpp Wed Mar 08 12:59:07 2006 +0000
1.3 @@ -231,6 +231,7 @@
1.4 ExportOO::ExportOO()
1.5 {
1.6 useSections=false;
1.7 + skipPageFlag="cross-red";
1.8 }
1.9
1.10 ExportOO::~ExportOO()
1.11 @@ -247,17 +248,20 @@
1.12 if (bo)
1.13 {
1.14 // Start list
1.15 - r+="<text:list text:style-name=\"L4\">\n";
1.16 + r+="<text:list text:style-name=\"vym-list\">\n";
1.17 while (bo)
1.18 {
1.19 - r+="<text:list-item><text:p >";
1.20 - r+=quotemeta(bo->getHeading());
1.21 - // If necessary, write note
1.22 - if (!bo->getNote().isEmpty())
1.23 - r+=bo->getNoteOpenDoc();
1.24 - r+="</text:p>";
1.25 - r+=buildList (bo); // recursivly add deeper branches
1.26 - r+="</text:list-item>\n";
1.27 + if (!bo->isActiveFlag (skipPageFlag))
1.28 + {
1.29 + r+="<text:list-item><text:p >";
1.30 + r+=quotemeta(bo->getHeading());
1.31 + // If necessary, write note
1.32 + if (!bo->getNote().isEmpty())
1.33 + r+=bo->getNoteOpenDoc();
1.34 + r+="</text:p>";
1.35 + r+=buildList (bo); // recursivly add deeper branches
1.36 + r+="</text:list-item>\n";
1.37 + }
1.38 i++;
1.39 bo=current->getBranchNum(i);
1.40 }
1.41 @@ -305,11 +309,14 @@
1.42 while (pagesBO)
1.43 {
1.44 // Add page with list of items
1.45 - onePage=pageTemplate;
1.46 - onePage.replace ("<!-- INSERT PAGE HEADING -->", quotemeta (pagesBO->getHeading() ) );
1.47 - list=buildList (pagesBO);
1.48 - onePage.replace ("<!-- INSERT LIST -->", list);
1.49 - allPages+=onePage;
1.50 + if (!pagesBO->isActiveFlag (skipPageFlag))
1.51 + {
1.52 + onePage=pageTemplate;
1.53 + onePage.replace ("<!-- INSERT PAGE HEADING -->", quotemeta (pagesBO->getHeading() ) );
1.54 + list=buildList (pagesBO);
1.55 + onePage.replace ("<!-- INSERT LIST -->", list);
1.56 + allPages+=onePage;
1.57 + }
1.58 j++;
1.59 pagesBO=sectionBO->getBranchNum(j);
1.60 }