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() then DeleteSection()
There are also some ways to know the parameter is needed by the function
DeleteSection.
Regards,
LiuTao
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 needs to be adjusted. At the moment SwDoc gets the
controllers from the layout. If you remove the layout from the SwDoc,
you need a new possibility to notify all ViewShells. I meant you should
not add a parameter "Layout" to the method SwDoc::GetEditShell(..), we
need a new mechanism to get the ViewShells from SwDoc _without_ using
the layout. For the moment you should remove this parameter "Layout"
from GetEditShell(..).
Regards
Andreas
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 "rLayout" in function DeleteSection is added by me
and this parameter is passed from a view class(ViewShell).
--
Andreas Martens (ama) - OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]