Hello all,

I am absorbed in modularization of ODFToolkit project about 2 months.
For the modularization, I need to move the member "SwRootFrm  *pLayout" from 
class "SwDoc" to class "ViewShell". Then we should pass a parameter "SwRootFrm& 
rLayout"
at where "pLayout" was used originally. So, I should modify many functions by 
passing a reference 
paremeter "rLayout".
But now I face a question as follows:

in file sw\source\core\doc\docredln.cxx
the destructor :
SwRedline::~SwRedline()
{
......
if( !GetDoc()->IsInDtor() )
   GetDoc()->DeleteSection( &pCntntSect->GetNode(),rLayout );
......
}

The parameter "rLayout" in function DeleteSection is added by me and this 
parameter is passed from the view class "ViewShell".
That means the destructor don't know this patameter.but the modularization work 
require me to add this parameter.
Then I wonder how to deal with it and make the destructor can dispose this 
function.

Looking forward to hearing from you!
Best wishes,



lijian
2007-07-24

Reply via email to