1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * The Contents of this file are made available subject to the terms of
5 * either of the following licenses
7 * - GNU Lesser General Public License Version 2.1
8 * - Sun Industry Standards Source License Version 1.1
10 * Sun Microsystems Inc., October, 2000
12 * GNU Lesser General Public License Version 2.1
13 * =============================================
14 * Copyright 2000 by Sun Microsystems, Inc.
15 * 901 San Antonio Road, Palo Alto, CA 94303, USA
17 * This library is free software; you can redistribute it and/or
18 * modify it under the terms of the GNU Lesser General Public
19 * License version 2.1, as published by the Free Software Foundation.
21 * This library is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24 * Lesser General Public License for more details.
26 * You should have received a copy of the GNU Lesser General Public
27 * License along with this library; if not, write to the Free Software
28 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
32 * Sun Industry Standards Source License Version 1.1
33 * =================================================
34 * The contents of this file are subject to the Sun Industry Standards
35 * Source License Version 1.1 (the "License"); You may not use this file
36 * except in compliance with the License. You may obtain a copy of the
37 * License at http://www.openoffice.org/license.html.
39 * Software provided under this License is provided on an "AS IS" basis,
40 * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
41 * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
42 * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
43 * See the License for the specific provisions governing your rights and
44 * obligations concerning the Software.
46 * The Initial Developer of the Original Code is: IBM Corporation
48 * Copyright: 2008 by IBM Corporation
50 * All Rights Reserved.
52 * Contributor(s): _______________________________________
55 ************************************************************************/
58 * For LWP filter architecture prototype - cell layouts
61 #include "lwpcelllayout.hxx"
62 #include "lwpfoundry.hxx"
63 #include "lwpobjfactory.hxx"
64 #include "lwptblcell.hxx"
65 #include "lwptblformula.hxx"
66 #include "lwpholder.hxx"
67 #include "lwpnumericfmt.hxx"
68 #include "lwptable.hxx"
69 #include "lwpglobalmgr.hxx"
71 #include "xfilter/xfstylemanager.hxx"
72 #include "xfilter/xfcell.hxx"
73 #include "xfilter/xfcellstyle.hxx"
74 #include "xfilter/xfcolstyle.hxx"
76 LwpCellLayout::LwpCellLayout(LwpObjectHeader
&objHdr
, LwpSvStream
* pStrm
)
77 : LwpMiddleLayout(objHdr
, pStrm
)
84 LwpCellLayout::~LwpCellLayout()
88 * @short Get table layout pointer, if default cell layout, return NULL
89 * @param LwpTableLayout *
92 LwpTableLayout
* LwpCellLayout::GetTableLayout()
94 LwpRowLayout
* pRow
= dynamic_cast<LwpRowLayout
*>(GetParent().obj().get());
99 LwpTableLayout
* pTableLayout
= pRow
->GetParentTableLayout();
103 * @short Get table pointer, if default cell layout, return NULL
107 LwpTable
* LwpCellLayout::GetTable()
109 LwpTableLayout
* pTableLayout
= GetTableLayout();
114 LwpTable
*pTable
= pTableLayout
->GetTable();
118 * @short Set current cell layout to cell layout map
122 void LwpCellLayout::SetCellMap()
124 // this function is called from LwpTableLayout, so it can't be NULL
125 GetTableLayout()->SetWordProCellMap(crowid
, ccolid
, this);
128 * @short Get actual width of this cell layout
132 double LwpCellLayout::GetActualWidth()
135 LwpTableLayout
* pTableLayout
= GetTableLayout();
137 if (pTableLayout
== NULL
)
139 return GetGeometryWidth();
142 OUString strColStyle
= pTableLayout
->GetColumnWidth(ccolid
);
144 XFStyleManager
* pXFStyleManager
= LwpGlobalMgr::GetInstance()->GetXFStyleManager();
145 XFColStyle
*pStyle
= static_cast<XFColStyle
*>(pXFStyleManager
->FindStyle(strColStyle
));
148 return pStyle
->GetWidth();
151 return GetGeometryWidth();
155 * @short Apply padding to cell style
156 * @param pCellStyle - pointer of XFCellStyle
159 void LwpCellLayout::ApplyPadding(XFCellStyle
*pCellStyle
)
161 double fLeft
= GetMarginsValue(MARGIN_LEFT
);
162 double fRight
= GetMarginsValue(MARGIN_RIGHT
);
163 double fTop
= GetMarginsValue(MARGIN_TOP
);
164 double fBottom
= GetMarginsValue(MARGIN_BOTTOM
);
165 pCellStyle
->SetPadding((float)fLeft
,(float)fRight
,(float)fTop
,(float)fBottom
);
168 * @short Apply border to cell style according to cell position, default cell layout won't use this function
170 * @return pCellStyle - pointer of XFCellStyle
172 void LwpCellLayout::ApplyBorders(XFCellStyle
*pCellStyle
)
174 // judge cell border type
175 LwpCellBorderType eType
= GetCellBorderType(crowid
, ccolid
, GetTableLayout());
177 // get left cell and judge if neighbour border is different
178 XFBorders
* pBorders
= GetXFBorders();
186 case enumNoBottomBorder
:
187 pBorders
->SetWidth(enumXFBorderBottom
, 0);
189 case enumNoLeftBorder
:
190 pBorders
->SetWidth(enumXFBorderLeft
, 0);
192 case enumNoLeftNoBottomBorder
:
193 pBorders
->SetWidth(enumXFBorderBottom
, 0);
194 pBorders
->SetWidth(enumXFBorderLeft
, 0);
196 case enumWholeBorder
:
201 pCellStyle
->SetBorders(pBorders
);
204 * @short Apply watermark to cell style
205 * @param pCellStyle - pointer of XFCellStyle
208 void LwpCellLayout::ApplyWatermark(XFCellStyle
*pCellStyle
)
210 XFBGImage
* pBGImage
= GetXFBGImage();
213 pCellStyle
->SetBackImage(pBGImage
);
218 * @short Apply pattern fill to cell style
219 * @param pCellStyle - pointer of XFCellStyle
222 void LwpCellLayout::ApplyPatternFill(XFCellStyle
* pCellStyle
)
224 XFBGImage
* pXFBGImage
= this->GetFillPattern();
227 pCellStyle
->SetBackImage(pXFBGImage
);
232 * @short Apply background to cell style
233 * @param pCellStyle - pointer of XFCellStyle
236 void LwpCellLayout::ApplyBackGround(XFCellStyle
* pCellStyle
)
238 if (this->IsPatternFill())
240 ApplyPatternFill(pCellStyle
);
244 ApplyBackColor(pCellStyle
);
248 * @short Apply back color to cell style
249 * @param pCellStyle - pointer of XFCellStyle
252 void LwpCellLayout::ApplyBackColor(XFCellStyle
*pCellStyle
)
254 LwpColor
* pColor
= GetBackColor();
255 if(pColor
&& pColor
->IsValidColor())
257 XFColor
aXFColor(pColor
->To24Color());
258 pCellStyle
->SetBackColor(aXFColor
);
262 * @short register style of cell layout
263 * @param pCellStyle The style of the cell, which would be applied to the cell.
266 void LwpCellLayout::ApplyFmtStyle(XFCellStyle
*pCellStyle
)
268 LwpLayoutNumerics
* pLayoutNumerics
= dynamic_cast<LwpLayoutNumerics
*>(cLayNumerics
.obj().get());
269 if (!pLayoutNumerics
)
271 // if current layout doesn't have format, go to based on layout
272 LwpCellLayout
* pCellLayout
= dynamic_cast<LwpCellLayout
*>(m_BasedOnStyle
.obj().get());
275 pLayoutNumerics
= dynamic_cast<LwpLayoutNumerics
*>(pCellLayout
->GetNumericsObject().obj().get());
279 // apply format style
282 XFStyle
* pStyle
= pLayoutNumerics
->Convert();
285 XFStyleManager
* pXFStyleManager
= LwpGlobalMgr::GetInstance()->GetXFStyleManager();
286 m_NumfmtName
= pXFStyleManager
->AddStyle(pStyle
).m_pStyle
->GetStyleName();
287 pCellStyle
->SetDataStyle(m_NumfmtName
);
294 * @short get style name according to cell position, only table default cells use this function
295 * @param nRow - default cell position row number
296 * @param nCol - default cell position col number
297 * @return OUString - registered cell style name
299 OUString
LwpCellLayout::GetCellStyleName(sal_uInt16 nRow
, sal_uInt16 nCol
, LwpTableLayout
* pTableLayout
)
301 // judge cell border type
302 LwpCellBorderType eType
= GetCellBorderType(nRow
, nCol
, pTableLayout
);
303 return m_CellStyleNames
[eType
];
308 * @param aTableID - ID of the table which this cell belongs to
309 * @param bIsTopRow - whether current cell is top row
310 * @param bIsRightCol - whether current cell is the rightest column
313 XFCell
* LwpCellLayout::ConvertCell(LwpObjectID aTableID
, sal_uInt16 nRow
, sal_uInt16 nCol
)
315 // if cell layout is aTableID's default cell layout
316 // it can't have any content, bypass these code
317 LwpTable
* pTable
= dynamic_cast<LwpTable
*>(aTableID
.obj().get());
323 XFCell
* pXFCell
= new XFCell();
324 OUString aStyleName
= m_StyleName
;
326 // if cell layout is aTableID's default cell layout
327 // we should judt its style by current position
328 if (pTable
->GetDefaultCellStyle() == GetObjectID())
330 aStyleName
= GetCellStyleName(nRow
, nCol
, pTable
->GetTableLayout());
334 LwpStory
* pStory
= dynamic_cast<LwpStory
*>(m_Content
.obj().get());
337 pStory
->XFConvert(pXFCell
);
340 ApplyProtect(pXFCell
, aTableID
);
341 pXFCell
->SetStyleName(aStyleName
);
345 LwpPara
* LwpCellLayout::GetLastParaOfPreviousStory()
347 LwpObjectID
* pPreStoryID
= this->GetPreviousCellStory();
348 if (pPreStoryID
&& !(pPreStoryID
->IsNull()))
350 LwpStory
* pPreStory
= dynamic_cast<LwpStory
*>(pPreStoryID
->obj(VO_STORY
).get());
351 return dynamic_cast<LwpPara
*>(pPreStory
->GetLastPara().obj(VO_PARA
).get());
360 * @short Get previous cell which used for bullet inside cell
362 * @return LwpObjectID * - object ID of cell content story
364 LwpObjectID
* LwpCellLayout::GetPreviousCellStory()
366 LwpTable
*pTable
= GetTable();
372 sal_uInt16 nRow
= crowid
;
373 sal_uInt16 nCol
= ccolid
;
375 // if table is reset paragraph in columns, get cell on the top side of current cell
376 if (pTable
->IsNumberDown())
386 // if not, get cell on the left side of current cell
396 nCol
= pTable
->GetColumn() - 1;
405 // get the object id pointer of previous cell story
406 LwpTableLayout
* pTableLayout
= GetTableLayout();
412 return pTableLayout
->SearchCellStoryMap(nRow
, nCol
);
416 * @short judge border type by cell neighbour
419 * @param pTableLayout
420 * @return LwpCellBorderType
422 LwpCellBorderType
LwpCellLayout::GetCellBorderType(sal_uInt16 nRow
, sal_uInt16 nCol
, LwpTableLayout
* pTableLayout
)
427 return enumWholeBorder
;
430 // get left cell and judge if neighbour border is different
431 XFBorders
* pBorders
= GetXFBorders();
434 return enumWholeBorder
;
436 XFBorder
& rLeftBorder
= pBorders
->GetLeft();
437 XFBorder
& rBottomBorder
= pBorders
->GetBottom();
438 bool bNoLeftBorder
= false;
439 bool bNoBottomBorder
= false;
441 LwpCellLayout
* pLeftNeighbour
= GetCellByRowCol(nRow
, GetLeftColID(nCol
), pTableLayout
);
444 XFBorders
* pNeighbourBorders
= pLeftNeighbour
->GetXFBorders();
445 if (pNeighbourBorders
)
447 XFBorder
& rRightBorder
= pNeighbourBorders
->GetRight();
448 if (rLeftBorder
== rRightBorder
)
450 // for these 2 types cell, left border should be ignored for sake of avoiding duplication border
451 // but if left border is different with right border of left cell
452 // we should not ignored it
453 bNoLeftBorder
= true;
455 delete pNeighbourBorders
;
460 LwpCellLayout
* pBelowNeighbour
= GetCellByRowCol(GetBelowRowID(nRow
), nCol
, pTableLayout
);
461 if (pBelowNeighbour
) //&& (eType == enumRightNotLastCellBorder || eType == enumLeftNotLastCellBorder) )
463 XFBorders
* pBelowBorders
= pBelowNeighbour
->GetXFBorders();
466 XFBorder
& rTopBorder
= pBelowBorders
->GetTop();
467 if (rTopBorder
== rBottomBorder
)
469 // for these 2 types cell, bottom border should be ignored for sake of avoiding duplication border
470 // but if bottom border is different with right border of left cell
471 // we should not ignored it
472 bNoBottomBorder
= true;
474 delete pBelowBorders
;
484 return enumNoLeftNoBottomBorder
;
486 return enumNoBottomBorder
;
490 return enumNoLeftBorder
;
492 return enumWholeBorder
;
496 * @short Get neighbour cell by specifying ROW+COL
499 * @return LwpCellLayout *
501 LwpCellLayout
* LwpCellLayout::GetCellByRowCol(sal_uInt16 nRow
, sal_uInt16 nCol
, LwpTableLayout
* pTableLayout
)
503 return pTableLayout
->GetCellByRowCol(nRow
, nCol
);
506 * @short Register table's default cell layout
510 void LwpCellLayout::RegisterDefaultCell()
512 XFStyleManager
* pXFStyleManager
= LwpGlobalMgr::GetInstance()->GetXFStyleManager();
513 for (sal_uInt16 eLoop
= enumWholeBorder
; eLoop
< enumCellBorderTopLimit
; eLoop
++)
515 // register cell style
516 XFCellStyle
*pCellStyle
= new XFCellStyle();
518 ApplyPadding(pCellStyle
);
519 ApplyBackColor(pCellStyle
);
520 ApplyWatermark(pCellStyle
);
521 ApplyFmtStyle(pCellStyle
);
522 pCellStyle
->SetAlignType(enumXFAlignNone
, GetVerticalAlignmentType());
524 XFBorders
* pBorders
= GetXFBorders();
529 case enumNoBottomBorder
:
533 // remove bottom line
534 pBorders
->SetWidth(enumXFBorderBottom
, 0);
536 case enumNoLeftNoBottomBorder
:
540 // remove left and bottom
541 pBorders
->SetWidth(enumXFBorderLeft
, 0);
542 pBorders
->SetWidth(enumXFBorderBottom
, 0);
544 case enumWholeBorder
:
550 case enumNoLeftBorder
:
555 pBorders
->SetWidth(enumXFBorderLeft
, 0);
560 pCellStyle
->SetBorders(pBorders
);
562 m_CellStyleNames
[eLoop
] = (pXFStyleManager
->AddStyle(pCellStyle
)).m_pStyle
->GetStyleName();
566 * @short Register 4 types of cell style and register content styles
572 void LwpCellLayout::RegisterStyle()
574 LwpVirtualLayout
* pParent
= dynamic_cast<LwpVirtualLayout
*>(GetParent().obj().get());
575 if (!pParent
|| pParent
->GetLayoutType() != LWP_ROW_LAYOUT
)
577 // default cell layout, we must register 4 styles for it
578 RegisterDefaultCell();
582 // register cell style
583 XFCellStyle
*pCellStyle
= new XFCellStyle();
585 ApplyPadding(pCellStyle
);
586 ApplyBackGround(pCellStyle
);
587 ApplyWatermark(pCellStyle
);
588 ApplyFmtStyle(pCellStyle
);
589 ApplyBorders(pCellStyle
);
591 pCellStyle
->SetAlignType(enumXFAlignNone
, GetVerticalAlignmentType());
593 XFStyleManager
* pXFStyleManager
= LwpGlobalMgr::GetInstance()->GetXFStyleManager();
594 m_StyleName
= (pXFStyleManager
->AddStyle(pCellStyle
)).m_pStyle
->GetStyleName();
596 // content object register styles
597 rtl::Reference
<LwpObject
> pObj
= m_Content
.obj();
600 pObj
->SetFoundry(m_pFoundry
);
601 pObj
->RegisterStyle();
604 //register child layout style
605 RegisterChildStyle();
608 * @short Read cell layout
612 void LwpCellLayout::Read()
614 LwpObjectStream
* pStrm
= m_pObjStrm
;
616 LwpMiddleLayout::Read();
618 // before the layout hierarchy rework
619 if (LwpFileHeader::m_nFileRevision
< 0x000b)
625 crowid
= pStrm
->QuickReaduInt16();
626 ccolid
= (sal_uInt8
) pStrm
->QuickReaduInt16(); // written as a lushort
630 type
= pStrm
->QuickReaduInt16();
632 cType
= (LeaderDotType
)type
;
634 cLayNumerics
.ReadIndexed(pStrm
);
635 cLayDiagonalLine
.ReadIndexed(pStrm
);
642 * Apply protect attribute to cell of table
644 * @param aTableID - ID of the table which the cell belongs to
648 void LwpCellLayout::ApplyProtect(XFCell
* pCell
, LwpObjectID aTableID
)
650 bool bProtected
= false;
651 // judge current cell
659 LwpCellLayout
* pBase
= dynamic_cast<LwpCellLayout
*>(m_BasedOnStyle
.obj().get());
660 if (pBase
&& pBase
->IsProtected())
667 LwpTable
* pTable
= dynamic_cast<LwpTable
*>(aTableID
.obj().get());
668 LwpTableLayout
* pTableLayout
= pTable
? static_cast<LwpTableLayout
*>(pTable
->GetTableLayout()) : NULL
;
669 LwpSuperTableLayout
* pSuper
= pTableLayout
? pTableLayout
->GetSuperTableLayout() : NULL
;
670 if (pSuper
&& pSuper
->IsProtected())
677 pCell
->SetProtect(bProtected
);
680 LwpConnectedCellLayout::LwpConnectedCellLayout(LwpObjectHeader
&objHdr
, LwpSvStream
* pStrm
)
681 : LwpCellLayout(objHdr
, pStrm
)
689 LwpConnectedCellLayout::~LwpConnectedCellLayout()
692 * @short Set current connected cell layout to cell layout map
693 * @param pCellLayoutMap - cell layout map reference
696 void LwpConnectedCellLayout::SetCellMap()
698 // this function is called from LwpTableLayout, so it can't be NULL
699 LwpTableLayout
* pTableLayout
= GetTableLayout();
700 sal_uInt16 nRowSpan
= m_nRealrowspan
;
702 for (sal_uInt16 iLoop
= 0; iLoop
< nRowSpan
; iLoop
++)
704 for (sal_uInt16 jLoop
= 0; jLoop
< cnumcols
; jLoop
++)
705 pTableLayout
->SetWordProCellMap(iLoop
+ crowid
, jLoop
+ ccolid
, this);
710 * @short judge border type by cell neighbour
713 * @param pTableLayout
714 * @return LwpCellBorderType
716 LwpCellBorderType
LwpConnectedCellLayout::GetCellBorderType(sal_uInt16 nRow
, sal_uInt16 nCol
, LwpTableLayout
* pTableLayout
)
721 return enumWholeBorder
;
724 sal_uInt16 nRowSpan
= m_nRealrowspan
;
726 // get left cell and judge if neighbour border is different
727 XFBorders
* pBorders
= GetXFBorders();
730 return enumWholeBorder
;
732 XFBorder
& rLeftBorder
= pBorders
->GetLeft();
733 XFBorder
& rBottomBorder
= pBorders
->GetBottom();
734 bool bNoLeftBorder
= true;
735 bool bNoBottomBorder
= true;
739 bNoLeftBorder
= false;
743 for (sal_uInt16 iLoop
=0; iLoop
< nRowSpan
; iLoop
++)
745 LwpCellLayout
* pLeftNeighbour
= GetCellByRowCol(nRow
+iLoop
, GetLeftColID(nCol
), pTableLayout
);
748 boost::scoped_ptr
<XFBorders
> pNeighbourBorders(pLeftNeighbour
->GetXFBorders());
749 if (pNeighbourBorders
)
751 XFBorder
& rRightBorder
= pNeighbourBorders
->GetRight();
752 if (rLeftBorder
!= rRightBorder
)
754 // if left border is different with right border of left cell
755 // we should not ignored it
756 bNoLeftBorder
= false;
764 if ( (nRow
+ nRowSpan
) == pTableLayout
->GetTable()->GetRow() )
766 bNoBottomBorder
= false;
770 for (sal_uInt16 iLoop
= 0; iLoop
< cnumcols
; iLoop
++)
772 LwpCellLayout
* pBelowNeighbour
= GetCellByRowCol(nRow
+ nRowSpan
, nCol
+iLoop
, pTableLayout
);
775 boost::scoped_ptr
<XFBorders
> pBelowBorders(pBelowNeighbour
->GetXFBorders());
778 XFBorder
& rTopBorder
= pBelowBorders
->GetTop();
779 if (rTopBorder
!= rBottomBorder
)
781 // if bottom border is different with right border of left cell
782 // we should not ignored it
783 bNoBottomBorder
= false;
796 return enumNoLeftNoBottomBorder
;
798 return enumNoBottomBorder
;
802 return enumNoLeftBorder
;
804 return enumWholeBorder
;
807 * @short Read connected cell layout
811 void LwpConnectedCellLayout::Read()
813 LwpCellLayout::Read();
816 cnumrows
= m_pObjStrm
->QuickReaduInt16();
817 numcols
= m_pObjStrm
->QuickReaduInt16(); // written as a lushort
818 cnumcols
= (sal_uInt8
)numcols
;
820 m_nRealrowspan
= cnumrows
;
821 m_nRealcolspan
= cnumcols
;
823 m_pObjStrm
->SkipExtra();
825 XFCell
* LwpConnectedCellLayout::ConvertCell(LwpObjectID aTableID
, sal_uInt16 nRow
, sal_uInt16 nCol
)
827 XFCell
* pXFCell
= LwpCellLayout::ConvertCell(aTableID
, nRow
, nCol
);
828 pXFCell
->SetColumnSpaned(cnumcols
);
835 * @short parse connected cell layout
836 * @param pOutputStream - output stream
839 void LwpConnectedCellLayout::Parse(IXFStream
* /*pOutputStream*/)
843 LwpHiddenCellLayout::LwpHiddenCellLayout(LwpObjectHeader
&objHdr
, LwpSvStream
* pStrm
)
844 : LwpCellLayout(objHdr
, pStrm
)
847 LwpHiddenCellLayout::~LwpHiddenCellLayout()
850 * @short Set current hidden cell layout to cell layout map
854 void LwpHiddenCellLayout::SetCellMap()
859 * @short Read hidden cell layout
863 void LwpHiddenCellLayout::Read()
865 LwpCellLayout::Read();
867 cconnectedlayout
.ReadIndexed(m_pObjStrm
);
868 m_pObjStrm
->SkipExtra();
872 * @short Convert hidden cell layout
873 * @param aTableID - Object ID of table
874 * @return XFCell * - pointer to converted cell
877 XFCell
* LwpHiddenCellLayout::ConvertCell(LwpObjectID aTableID
, sal_uInt16 nRow
, sal_uInt16 nCol
)
879 if (!cconnectedlayout
.obj().is())
881 LwpConnectedCellLayout
* pConnCell
= dynamic_cast<LwpConnectedCellLayout
* >(cconnectedlayout
.obj().get());
883 if (!pConnCell
|| nRow
< (pConnCell
->GetNumrows()+pConnCell
->GetRowID()))
885 // if the hidden cell should be displayed for limit of SODC
886 // use the default cell layout
887 XFCell
* pXFCell
= NULL
;
888 LwpTable
*pTable
= dynamic_cast<LwpTable
*>(aTableID
.obj().get());
891 LwpCellLayout
*pDefault
= dynamic_cast<LwpCellLayout
*>(pTable
->GetDefaultCellStyle().obj().get());
894 pXFCell
= pDefault
->ConvertCell(aTableID
, nRow
, nCol
);
898 pXFCell
= pConnCell
->ConvertCell(aTableID
, nRow
, nCol
);
900 pXFCell
->SetColumnSpaned(pConnCell
->GetNumcols());
909 * @short parse hidden cell layout
910 * @param pOutputStream - output stream
913 void LwpHiddenCellLayout::Parse(IXFStream
* /*pOutputStream*/)
917 LwpParallelColumnsBlock::LwpParallelColumnsBlock(LwpObjectHeader
&objHdr
, LwpSvStream
* pStrm
):LwpCellLayout(objHdr
, pStrm
)
920 LwpParallelColumnsBlock::~LwpParallelColumnsBlock()
923 void LwpParallelColumnsBlock::Read()
925 LwpCellLayout::Read();
926 m_pObjStrm
->SkipExtra();
929 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */