exports.cpp
changeset 753 25a77484ec72
parent 750 ff3b01ce0960
child 773 340bc29da9a0
     1.1 --- a/exports.cpp	Thu Apr 02 09:57:47 2009 +0000
     1.2 +++ b/exports.cpp	Tue Apr 07 16:15:53 2009 +0000
     1.3 @@ -149,7 +149,7 @@
     1.4  	BranchItem *prev=NULL;
     1.5  	int d;
     1.6  
     1.7 -	BranchObj *bo;
     1.8 +	BranchObj *bo;	//FIXME-3 still needed?
     1.9  	cur=model->next (cur,prev,d);
    1.10  	while (cur) 
    1.11  	{
    1.12 @@ -162,7 +162,7 @@
    1.13  			curIndent="";
    1.14  			for (i=0;i<cur->depth()-1;i++) curIndent+= indentPerDepth;
    1.15  
    1.16 -			if (!bo->hasHiddenExportParent() )
    1.17 +			if (!cur->hasHiddenExportParent() )
    1.18  			{
    1.19  				switch (cur->depth())
    1.20  				{
    1.21 @@ -230,7 +230,7 @@
    1.22  	QString s;
    1.23  	QString curIndent("");
    1.24  	int i;
    1.25 -	BranchObj *bo;
    1.26 +	BranchObj *bo;  //FIXME-3 still needed?
    1.27  	BranchItem *cur=NULL;
    1.28  	BranchItem *prev=NULL;
    1.29  	int d;
    1.30 @@ -239,7 +239,7 @@
    1.31  	{
    1.32  		bo=(BranchObj*)(cur->getLMO());
    1.33  
    1.34 -		if (!bo->hasHiddenExportParent() )
    1.35 +		if (!cur->hasHiddenExportParent() )
    1.36  		{
    1.37  			// If necessary, write note
    1.38  			if (!cur->getNoteObj().isEmpty())
    1.39 @@ -393,31 +393,31 @@
    1.40    BranchObj *bo;
    1.41    BranchItem *cur=NULL;
    1.42    BranchItem *prev=NULL;
    1.43 -  int d;
    1.44 +  int d;  //FIXME-3 still needed?
    1.45    model->next(cur,prev,d);
    1.46    while (cur) 
    1.47    {
    1.48  	bo=(BranchObj*)(cur->getLMO());
    1.49  
    1.50 -	if (!bo->hasHiddenExportParent() )
    1.51 +	if (!cur->hasHiddenExportParent() )
    1.52  	{
    1.53  		switch (cur->depth() ) 
    1.54  		{
    1.55  			case 0: break;
    1.56  			case 1: 
    1.57 -			  ts << ("\\chapter{" + bo->getHeading()+ "}\n");
    1.58 +			  ts << ("\\chapter{" + cur->getHeading()+ "}\n");
    1.59  			  break;
    1.60  			case 2: 
    1.61 -			  ts << ("\\section{" + bo->getHeading()+ "}\n");
    1.62 +			  ts << ("\\section{" + cur->getHeading()+ "}\n");
    1.63  			  break;
    1.64  			case 3: 
    1.65 -			  ts << ("\\subsection{" + bo->getHeading()+ "}\n");
    1.66 +			  ts << ("\\subsection{" + cur->getHeading()+ "}\n");
    1.67  			  break;
    1.68  			case 4: 
    1.69 -			  ts << ("\\subsubsection{" + bo->getHeading()+ "}\n");
    1.70 +			  ts << ("\\subsubsection{" + cur->getHeading()+ "}\n");
    1.71  			  break;
    1.72  			default:
    1.73 -			  ts << ("\\paragraph*{" + bo->getHeading()+ "}\n");
    1.74 +			  ts << ("\\paragraph*{" + cur->getHeading()+ "}\n");
    1.75  			
    1.76  		}
    1.77  		// If necessary, write note