lijian,
no chance to pass it to the DTOR, of course.
We must figure out how to deal with DeleteSection() when not
having a Layout...
I didn't look into the code right now - maybe someone from
Writer team has a suggestion at hand? ;)
Malte.
lijian wrote:
> 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 swsourcecoredocdocredln.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
>
>
------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribe odftoolkit.openoffice.org
For additional commands, e-mail: dev-help odftoolkit.openoffice.org
|