Re: [dev] A question about the destructor

2007-08-14 Thread Mathias Bauer
Andreas Martens wrote: I see, SwDoc::GetEditShell(..) is the problem. Sometimes the Writer model (SwDoc) needs to broadcast an event to all controllers (ViewShell), e.g. if a part of the model is deleted. The controller could have cursor pointing into this deleted area and these cursors

Re: [dev] A question about the destructor

2007-08-14 Thread liutao
Andreas Martens Malte will discuss it, after the discuss Andreas Malte will tell me how to solve it. Malte told me to go on my work just to assure which files should be modified. Best Regards, LiuTao Andreas Martens wrote: I see, SwDoc::GetEditShell(..) is the problem. Sometimes the Writer

Re: [dev] A question about the destructor

2007-07-27 Thread Andreas Martens
Hi, liutao wrote: Hi Malte,Andreas Andreas Martens wrote: That's what I meant. My question was: why do we need this parameter in SwDoc::DeleteSection(..)? because the function GetEditShell() need this parameter and it is called by the function PaMCorrAbs() then CorrAbs()

Re: [dev] A question about the destructor

2007-07-25 Thread Andreas Martens
Hi Malte, Malte Timmermann wrote: IMHO there should be some notification, so the Layouts are simply listeners and we don't need the parameter. That's what I meant. My question was: why do we need this parameter in SwDoc::DeleteSection(..)? But I am not sure - you are the expert ;) So if a

Re: [dev] A question about the destructor

2007-07-25 Thread Malte Timmermann
Andreas... Andreas Martens wrote: Hi Malte, Malte Timmermann wrote: IMHO there should be some notification, so the Layouts are simply listeners and we don't need the parameter. That's what I meant. My question was: why do we need this parameter in SwDoc::DeleteSection(..)? But I am not

Re: [dev] A question about the destructor

2007-07-25 Thread Andreas Martens
Hi Malte, Malte Timmermann wrote: Andreas... Andreas Martens wrote: Hi Malte, Malte Timmermann wrote: IMHO there should be some notification, so the Layouts are simply listeners and we don't need the parameter. That's what I meant. My question was: why do we need this parameter in

Re: [dev] A question about the destructor

2007-07-24 Thread Malte Timmermann
IMHO there should be some notification, so the Layouts are simply listeners and we don't need the parameter. But I am not sure - you are the expert ;) So if a broadcast is used, no Layout access is needed. But if the layouts have to be notified directly, you are right and we might need a list

[dev] A question about the destructor

2007-07-23 Thread liutao
Hello all, I am absorbed in modularization of ODFToolkit project about 2 months. But now I face a question as follows: SwRedline::~SwRedline() { .. if( !GetDoc()-IsInDtor() ) GetDoc()-DeleteSection( pCntntSect-GetNode(),rLayout ); .. } The parameter rLayout in function DeleteSection

Re: [dev] A question about the destructor

2007-07-23 Thread Andreas Martens
Hi LiuTao, liutao wrote: Hello all, I am absorbed in modularization of ODFToolkit project about 2 months. But now I face a question as follows: SwRedline::~SwRedline() { .. if( !GetDoc()-IsInDtor() ) GetDoc()-DeleteSection( pCntntSect-GetNode(),rLayout ); .. } The parameter