Hi,
Niranjan MAISNAM wrote:
Hi,
Can any one tell me whether my understanding of upper and lower in
writer frames is correct or not?
My understanding goes like this : whenever you add a frame say a
SwLayoutFrm on top of SwFrm ,the upper in this case is the former and
the later is the lower.So when you add a SwColFrm on top of SwLayoutFrm
the col frame is the upper --right or wrong ? Ditto with the tabfrm and
the cellfrm .Same as that of stacks .
the upper frame contains its lower frame. It's like a parent/children or
tree concept:
A SwLayoutFrm has a pointer (pLower) to the first of a list of SwFrms.
Every SwFrm of this list has a pointer to the previous and a pointer to
following SwFrm (pPrev and pNext) except the first and the last of the
list, of course. Every SwFrm of this list has a pointer to the
SwLayoutFrm (pUpper).
As example: A 2x2 table
The pLower of the SwTableFrm points to the first SwRowFrm.
The pUpper of this SwRowFrm points to the SwTableFrm,
the pPrev is empty,
the pNext points to the second SwRowFrm.
The pUpper of the second SwRowFrm points to the same SwTableFrm,
the pNext is empty,
the pPrev points to the first SwRowFrm.
The SwRowFrm is a SwLayoutFrm and has a pLower pointer to its first
SwCellFrm etc...
SwTableFrm --pLower--> SwRowFrm --pLower--> SwCellFrm...
|
pNext
|
V
SwRowFrm --pLower--> SwCellFrm
Regards
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]