|
LibreOffice Module lotuswordpro (master) 1
|
VO_TABLELAYOUT object and functions for registering styles and converting tables. More...
#include <lwptablelayout.hxx>
Public Member Functions | |
| LwpTableLayout (LwpObjectHeader const &objHdr, LwpSvStream *pStrm) | |
| virtual LWP_LAYOUT_TYPE | GetLayoutType () override |
| LwpObjectID & | GetColumnLayoutHead () |
| void | RegisterStyle () override |
| register table style, if needed, including frame style More... | |
| LwpTable * | GetTable () |
| Get table pointer. More... | |
| LwpCellLayout * | GetDefaultCellLayout () |
| LwpSuperTableLayout * | GetSuperTableLayout () |
| Get parent super table layout of table layout. More... | |
| LwpObjectID * | SearchCellStoryMap (sal_uInt16 nRow, sal_uInt16 nCol) |
| search the cell map More... | |
| LwpCellLayout * | GetCellByRowCol (sal_uInt16 nRow, sal_uInt16 nCol) |
| Get neighbour cell by specifying ROW+COL. More... | |
| OUString | GetColumnWidth (sal_uInt16 nCol) |
| Get column style name by column ID. More... | |
| void | SetWordProCellMap (sal_uInt16 nRow, sal_uInt16 nCol, LwpCellLayout *pCell) |
| void | XFConvert (XFContentContainer *pCont) override |
| Convert table. More... | |
| void | ConvertTable (rtl::Reference< XFTable > const &pXFTable, sal_uInt16 nStartRow, sal_uInt16 nEndRow, sal_uInt8 nStartCol, sal_uInt8 nEndCol) |
| convert word pro table to SODC table More... | |
| const OUString & | GetDefaultRowStyleName () const |
| void | SetCellsMap (sal_uInt16 nRow1, sal_uInt8 nCol1, sal_uInt16 nRow2, sal_uInt8 nCol2, XFCell *pXFCell) |
| set cell map info More... | |
| XFCell * | GetCellsMap (sal_uInt16 nRow, sal_uInt8 nCol) |
| get cell map info More... | |
| const std::map< sal_uInt16, LwpRowLayout * > & | GetRowsMap () const |
| LwpRowLayout * | GetRowLayout (sal_uInt16 nRow) |
| @descr Get row layout by row id More... | |
Public Member Functions inherited from LwpLayout | |
| LwpLayout (LwpObjectHeader const &objHdr, LwpSvStream *pStrm) | |
| virtual | ~LwpLayout () override |
| XFColumns * | GetXFColumns () |
| @descr: Create and return XFColumns object More... | |
| XFColumnSep * | GetColumnSep () |
| @descr: Create and return XFColumnSep object More... | |
| LwpShadow * | GetShadow () |
| @descr: Get the LwpShadow object according to m_LayShadow id. More... | |
| XFShadow * | GetXFShadow () |
| @descr: create xfshadow More... | |
| LwpUseWhen * | VirtualGetUseWhen () override |
| @descr: Get usewhen pointer More... | |
| virtual sal_uInt16 | GetNumCols () override |
| @descr: Get columns number More... | |
| virtual double | GetColGap (sal_uInt16 nIndex) override |
| @descr: Get gap between columns More... | |
| sal_uInt16 | GetUsePage () |
| @descr: Get use page More... | |
| UseWhenType | GetUseWhenType () |
| @descr: Get use when type More... | |
| virtual bool | IsUseOnAllPages () override |
| @descr: Whether it is use on all pages More... | |
| virtual bool | IsUseOnAllEvenPages () override |
| @descr: Whether it is use on all even pages More... | |
| virtual bool | IsUseOnAllOddPages () override |
| @descr: Whether it is use on all odd pages More... | |
| virtual bool | IsUseOnPage () override |
| @descr: Whether it is use on current page More... | |
| LwpObjectID & | GetPosition () |
| virtual rtl::Reference< LwpVirtualLayout > | GetContainerLayout () override |
| @descr get the layout that containers the current frame layout More... | |
Public Member Functions inherited from LwpMiddleLayout | |
| LwpMiddleLayout (LwpObjectHeader const &objHdr, LwpSvStream *pStrm) | |
| virtual | ~LwpMiddleLayout () override |
| double | GetGeometryHeight () |
| @descr: Get layout height, measured by "cm" More... | |
| double | GetGeometryWidth () |
| @descr: Get layout width, measured by "cm" More... | |
| LwpBorderStuff * | GetBorderStuff () |
| @descr: Get the LwpBorderStuff object according to m_LayBorderStuff id. More... | |
| LwpBackgroundStuff * | GetBackgroundStuff () |
| @descr: Get LwpBackgroundStuff object according to m_LayBackgroundStuff id; More... | |
| LwpLayoutGeometry * | GetGeometry () |
| @descr: Get the geometry of current layout More... | |
| enumXFTextDir | GetTextDirection () |
| @descr: Get text direction settings. More... | |
| std::unique_ptr< XFBorders > | GetXFBorders () |
| @descr: create xfborder. More... | |
| LwpColor * | GetBackColor () |
| @descr: Get background color. More... | |
| virtual bool | IsAutoGrow () override |
| @descr: Whether the height and width of layout is auto grow More... | |
| virtual bool | IsAutoGrowUp () override |
| @descr: Whether the height of layout is auto grow up More... | |
| virtual bool | IsAutoGrowLeft () override |
| @descr: Whether the height of layout is auto grow down More... | |
| virtual bool | IsAutoGrowRight () override |
| @descr: Whether the height of layout is auto grow down More... | |
| virtual sal_uInt8 | GetContentOrientation () override |
| @descr: Get contents orientation More... | |
| virtual bool | HonorProtection () override |
| @descr: Whether it is honoring protection More... | |
| virtual bool | IsProtected () override |
| @descr: Whether it is protected More... | |
| rtl::Reference< LwpVirtualLayout > | GetWaterMarkLayout () |
| @descr: Get watermark layout More... | |
| std::unique_ptr< XFBGImage > | GetXFBGImage () |
| @descr: Create and return xfbgimage object for watermark More... | |
| bool | GetUsePrinterSettings () |
| @descr: Whether the page uses the printer setting More... | |
| LwpLayoutScale * | GetLayoutScale () |
| sal_uInt16 | GetScaleMode () |
| @descr: Layscale for graphic & watermark More... | |
| sal_uInt16 | GetScaleTile () |
| sal_uInt16 | GetScaleCenter () |
| bool | CanSizeRight () |
| virtual double | GetWidth () override |
| @descr: Get layout height More... | |
| sal_Int32 | GetMinimumWidth () |
| bool | IsSizeRightToContent () |
| bool | IsSizeRightToContainer () |
| sal_Int32 | DetermineWidth () |
| virtual double | GetHeight () |
| @descr: Get layout height More... | |
| LwpPoint | GetOrigin () |
| @descr: Get layout origin point More... | |
| bool | IsPatternFill () |
| @descr: Whether the fill is pattern fill or not More... | |
| std::unique_ptr< XFBGImage > | GetFillPattern () |
| @descr: Get the fill pattern style. More... | |
| virtual bool | HasContent () override |
| LwpObjectID & | GetContent () |
| LwpTabOverride * | GetTabOverride () |
| @descr: Add back color settings into xfpagemaster. More... | |
Public Member Functions inherited from LwpVirtualLayout | |
| LwpVirtualLayout (LwpObjectHeader const &objHdr, LwpSvStream *pStrm) | |
| virtual sal_uInt16 | GetNumCols () |
| virtual double | GetColGap (sal_uInt16 nIndex) |
| @descr: Get the gap between columns More... | |
| virtual bool | IsAutoGrow () |
| virtual bool | IsAutoGrowUp () |
| virtual bool | IsAutoGrowLeft () |
| virtual bool | IsAutoGrowRight () |
| bool | IsFitGraphic () |
| @descr: Whether the size of layout is fit the graphic More... | |
| bool | IsAutoGrowWidth () |
| @descr: Whether the width of layout is auto grow More... | |
| bool | IsInlineToMargin () const |
| @descr: Determine whether the layout width is to margin More... | |
| virtual sal_uInt8 | GetContentOrientation () |
| bool | GetHonorProtection () |
| bool | GetMarginsSameAsParent () |
| bool | GetIsProtected () |
| bool | GetIsAutoGrowDown () |
| bool | GetHasProtection () |
| double | GetMarginsValue (sal_uInt8 nWhichSide) |
| double | GetExtMarginsValue (sal_uInt8 nWhichSide) |
| const OUString & | GetStyleName () const |
| bool | IsComplex () const |
| @descr: Whether it is a mirror layout More... | |
| virtual bool | IsAnchorPage () |
| virtual bool | IsAnchorFrame () |
| virtual bool | IsAnchorCell () |
| bool | IsPage () |
| @descr: Whether this layout is page layout or not More... | |
| bool | IsHeader () |
| @descr: Whether this layout is header layout or not More... | |
| bool | IsFooter () |
| @descr: Whether this layout is footer layout or not More... | |
| bool | IsFrame () |
| @descr: Whether this layout is frame layout or not More... | |
| bool | IsCell () |
| @descr: Whether this layout is cell layout or not More... | |
| bool | IsSuperTable () |
| @descr: Whether this layout is supertable layout or not More... | |
| bool | IsGroupHead () |
| @descr: Whether this layout is group layout or not More... | |
| virtual sal_uInt8 | GetRelativeType () |
| @descr: get the relative type More... | |
| bool | IsRelativeAnchored () |
| @descr: whether it is relative anchored layout More... | |
| LwpUseWhen * | GetUseWhen () |
| @descr: Get usewhen pointer More... | |
| virtual LwpUseWhen * | VirtualGetUseWhen () |
| virtual bool | IsUseOnAllPages () |
| virtual bool | IsUseOnAllEvenPages () |
| virtual bool | IsUseOnAllOddPages () |
| virtual bool | IsUseOnPage () |
| virtual sal_Int32 | GetPageNumber (sal_uInt16) |
| bool | IsMinimumHeight () const |
| @descr: whether it is MinimumHeight layout More... | |
| virtual bool | IsForWaterMark () |
| virtual LwpPara * | GetLastParaOfPreviousStory () |
| rtl::Reference< LwpVirtualLayout > | GetParentLayout () |
| @descr: Get parent layout More... | |
| virtual rtl::Reference< LwpVirtualLayout > | GetContainerLayout () |
| void | RegisterChildStyle () |
| @descr: Register child layout style More... | |
| bool | NoContentReference () |
| bool | IsStyleLayout () |
| enumXFAlignType | GetVerticalAlignmentType () const |
| void | SetStyleName (const OUString &str) |
| virtual double | GetWidth () |
| virtual bool | HasContent () |
| virtual LWP_LAYOUT_TYPE | GetLayoutType () |
| LwpVirtualLayout * | FindChildByType (LWP_LAYOUT_TYPE eType) |
| @descr: Find child layout by layout type More... | |
Public Member Functions inherited from LwpDLNFPVList | |
| LwpDLNFPVList (LwpObjectHeader const &objHdr, LwpSvStream *pStrm) | |
| @descr ctor of LwpDLNFPVList from object stream Note that m_bHasProperties is initialized to true More... | |
| virtual | ~LwpDLNFPVList () override |
| @descr release property list More... | |
| LwpPropList * | GetPropList () |
Public Member Functions inherited from LwpDLNFVList | |
| LwpDLNFVList (LwpObjectHeader const &objHdr, LwpSvStream *pStrm) | |
| LwpAtomHolder & | GetName () |
| LwpObjectID & | GetChildHead () |
| LwpObjectID & | GetChildTail () |
| LwpObjectID & | GetParent () |
Public Member Functions inherited from LwpDLVList | |
| LwpDLVList (LwpObjectHeader const &objHdr, LwpSvStream *pStrm) | |
| LwpObjectID & | GetNext () |
| LwpObjectID & | GetPrevious () |
Public Member Functions inherited from LwpObject | |
| LwpObject (LwpObjectHeader objHdr, LwpSvStream *pStrm) | |
| @descr construct lwpobject from stream More... | |
| void | QuickRead () |
| @descr QuickRead template More... | |
| void | DoRegisterStyle () |
| void | DoParse (IXFStream *pOutputStream) |
| void | DoXFConvert (XFContentContainer *pCont) |
| LwpFoundry * | GetFoundry () |
| void | SetFoundry (LwpFoundry *pFoundry) |
| LwpObjectID & | GetObjectID () |
| sal_uInt32 | GetTag () const |
Public Member Functions inherited from salhelper::SimpleReferenceObject | |
| SimpleReferenceObject () | |
| void | acquire () |
| void | release () |
Protected Member Functions | |
| void | Read () override |
| read table layout More... | |
| void | TraverseTable () |
| traverse all table cells More... | |
| void | RegisterColumns () |
| analyze all columns to get whole table width and width of all columns More... | |
| void | RegisterRows () |
| register all row styles More... | |
| void | ParseTable () |
| read table layout More... | |
| void | PostProcessParagraph (XFCell *pCell, sal_uInt16 nRowID, sal_uInt16 nColID) |
| 1. More... | |
| void | Read () override |
| @descr Read name of LwpDLNFVList from object stream More... | |
Protected Member Functions inherited from LwpMiddleLayout | |
| void | Read () override |
| @descr Read name of LwpDLNFVList from object stream More... | |
| virtual bool | MarginsSameAsParent () override |
| @descr: Whether the margins is same as parent layout More... | |
| virtual double | MarginsValue (sal_uInt8 nWhichSide) override |
| @descr: Get margin More... | |
| virtual double | ExtMarginsValue (sal_uInt8 nWhichSide) override |
| @descr: Get extmargin value More... | |
| virtual bool | IsAutoGrowDown () override |
| @descr: Whether the height of layout is auto grow down More... | |
| rtl::Reference< LwpObject > | GetBasedOnStyle () const |
Protected Member Functions inherited from LwpVirtualLayout | |
| void | Read () override |
| @descr Read name of LwpDLNFVList from object stream More... | |
| bool | HasProtection () |
| @descr: Whether it has protection More... | |
| virtual bool | HonorProtection () |
| @descr: Whether it is honoring protection More... | |
| virtual bool | IsProtected () |
| @descr: Whether it is protected More... | |
| virtual bool | IsAutoGrowDown () |
| virtual double | MarginsValue (sal_uInt8) |
| virtual double | ExtMarginsValue (sal_uInt8) |
| virtual bool | MarginsSameAsParent () |
Protected Member Functions inherited from LwpDLNFPVList | |
| void | Read () override |
| @descr Read name of LwpDLNFVList from object stream More... | |
| void | ReadPropertyList (LwpObjectStream *pObjStrm) |
| @descr Read property list More... | |
Protected Member Functions inherited from LwpDLNFVList | |
| virtual | ~LwpDLNFVList () override |
| void | Read () override |
| @descr Read LwpDLNFVList data from object stream More... | |
| void | ReadName (LwpObjectStream *pObjStrm) |
| @descr Read name of LwpDLNFVList from object stream More... | |
Protected Member Functions inherited from LwpDLVList | |
| virtual | ~LwpDLVList () override |
| void | Read () override |
| @descr Read LwpDLVList data from object stream More... | |
Protected Member Functions inherited from LwpObject | |
| virtual | ~LwpObject () override |
| @descr dtor() More... | |
| virtual void | Read () |
| @descr default read function More... | |
| virtual void | RegisterStyle () |
| @descr default register style function More... | |
| virtual void | Parse (IXFStream *pOutputStream) |
| @descr default parse function More... | |
| virtual void | XFConvert (XFContentContainer *pCont) |
| @descr default XFConvert function pCont is the XFContentContainer for the object conversion More... | |
Protected Member Functions inherited from salhelper::SimpleReferenceObject | |
| virtual | ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE |
Private Types | |
| using | rt_type = mdds::rtree< int, XFCellListener > |
Private Member Functions | |
| void | ConvertDefaultRow (rtl::Reference< XFTable > const &pXFTable, sal_uInt8 nStartCol, sal_uInt8 nEndCol, sal_uInt16 nRowID) |
| add default row which are missing in the file More... | |
| void | ConvertColumn (rtl::Reference< XFTable > const &pXFTable, sal_uInt8 nStartCol, sal_uInt8 nEndCol) |
| Parse all cols of table. More... | |
| sal_uInt16 | ConvertHeadingRow (rtl::Reference< XFTable > const &pXFTable, sal_uInt16 nStartHeadRow, sal_uInt16 nEndHeadRow) |
| convert heading row More... | |
| void | SplitRowToCells (XFTable *pTmpTable, rtl::Reference< XFTable > const &pXFTable, sal_uInt8 nFirstColSpann, const sal_uInt8 *pCellMark) |
| void | SplitConflictCells () |
| split conflict merged cells More... | |
| void | PutCellVals (LwpFoundry *pFoundry, LwpObjectID aTableID) |
| apply numeric value and formula to cell More... | |
Static Private Member Functions | |
| static bool | FindSplitColMark (XFTable *pXFTable, std::vector< sal_uInt8 > &rCellMark, sal_uInt8 &nMaxColSpan) |
| find if the heading rows can be split to 2 cells More... | |
Private Attributes | |
| sal_uInt16 | m_nRows |
| sal_uInt16 | m_nCols |
| std::vector< TableConvertAttempt > | m_aConvertingStack |
| LwpObjectID | m_ColumnLayout |
| LwpCellLayout * | m_pDefaultCellLayout |
| OUString | m_DefaultColumnStyleName |
| OUString | m_DefaultRowStyleName |
| std::vector< LwpCellLayout * > | m_WordProCellsMap |
| std::vector< LwpColumnLayout * > | m_aColumns |
| std::map< sal_uInt16, LwpRowLayout * > | m_RowsMap |
| rtl::Reference< XFTable > | m_pXFTable |
| bool | m_bConverted |
| rt_type | m_CellsMap |
VO_TABLELAYOUT object and functions for registering styles and converting tables.
Definition at line 130 of file lwptablelayout.hxx.
|
private |
Definition at line 198 of file lwptablelayout.hxx.
| LwpTableLayout::LwpTableLayout | ( | LwpObjectHeader const & | objHdr, |
| LwpSvStream * | pStrm | ||
| ) |
Definition at line 421 of file lwptablelayout.cxx.
|
private |
Parse all cols of table.
| pXFTable | - pointer to created XFTable |
Definition at line 1299 of file lwptablelayout.cxx.
References LwpColumnLayout::GetColumnID(), GetColumnLayoutHead(), LwpDLVList::GetNext(), LwpVirtualLayout::GetStyleName(), GetTable(), m_DefaultColumnStyleName, and LwpObjectID::obj().
Referenced by ConvertTable(), and SplitRowToCells().
|
private |
add default row which are missing in the file
| pXFTable | - pointer to new created table |
| nStartCol | - starting column |
| nEndCol | - end column |
Definition at line 1387 of file lwptablelayout.cxx.
References LwpCellLayout::DoConvertCell(), LwpObject::GetObjectID(), GetTable(), m_DefaultRowStyleName, and m_pDefaultCellLayout.
Referenced by ConvertTable().
|
private |
convert heading row
| pXFTable | - pointer of table |
| nStartRow | - start heading row ID |
| nEndRow | - end heading row ID |
Definition at line 857 of file lwptablelayout.cxx.
References ConvertTable(), FindSplitColMark(), LwpTable::GetColumn(), GetTable(), m_RowsMap, SAL_WARN, and SplitRowToCells().
Referenced by ParseTable().
| void LwpTableLayout::ConvertTable | ( | rtl::Reference< XFTable > const & | pXFTable, |
| sal_uInt16 | nStartRow, | ||
| sal_uInt16 | nEndRow, | ||
| sal_uInt8 | nStartCol, | ||
| sal_uInt8 | nEndCol | ||
| ) |
convert word pro table to SODC table
| pXFTable | - pointer of table |
| nStartRow | - start row ID |
| nEndRow | - end row ID |
| nStartCol | - start column ID |
| nEndCol | - end column ID |
Definition at line 1090 of file lwptablelayout.cxx.
References ConvertColumn(), LwpRowLayout::ConvertCommonRow(), ConvertDefaultRow(), LwpRowLayout::ConvertRow(), LwpRowLayout::GetCurMaxSpannedRows(), i, m_aConvertingStack, m_RowsMap, and SAL_WARN.
Referenced by ConvertHeadingRow(), LwpRowLayout::ConvertRow(), and ParseTable().
|
staticprivate |
find if the heading rows can be split to 2 cells
| pXFTable | - pointer of tmp XFtable |
| CellMark | - pointer of cell mark array |
Definition at line 1004 of file lwptablelayout.cxx.
References XFRow::GetCell(), XFRow::GetCellCount(), XFCell::GetColSpaned(), XFTable::GetColumnCount(), XFTable::GetRow(), XFTable::GetRowCount(), i, and nCount.
Referenced by ConvertHeadingRow().
| LwpCellLayout * LwpTableLayout::GetCellByRowCol | ( | sal_uInt16 | nRow, |
| sal_uInt16 | nCol | ||
| ) |
Get neighbour cell by specifying ROW+COL.
| nRow | |
| nCol |
Definition at line 436 of file lwptablelayout.cxx.
References m_nCols, m_nRows, and m_WordProCellsMap.
Referenced by LwpCellLayout::GetCellByRowCol(), PostProcessParagraph(), and SearchCellStoryMap().
get cell map info
| nRow | - row id |
| nCol | - column id |
Definition at line 1434 of file lwptablelayout.cxx.
References m_CellsMap.
Referenced by LwpFormulaTools::GetCellAddr(), and PutCellVals().
|
inline |
Definition at line 135 of file lwptablelayout.hxx.
References m_ColumnLayout.
Referenced by ConvertColumn(), LwpSuperTableLayout::GetTableWidth(), and RegisterColumns().
| OUString LwpTableLayout::GetColumnWidth | ( | sal_uInt16 | nCol | ) |
Get column style name by column ID.
| sal_uInt16 | – col id(0 based) |
Definition at line 528 of file lwptablelayout.cxx.
References LwpVirtualLayout::GetStyleName(), m_aColumns, m_DefaultColumnStyleName, and m_nCols.
Referenced by LwpCellLayout::GetActualWidth().
|
inline |
Definition at line 138 of file lwptablelayout.hxx.
References m_pDefaultCellLayout.
Referenced by LwpRowLayout::ConvertCommonRow().
|
inline |
Definition at line 161 of file lwptablelayout.hxx.
References m_DefaultRowStyleName.
Referenced by LwpRowLayout::RegisterCurRowStyle().
|
inlineoverridevirtual |
Reimplemented from LwpVirtualLayout.
Reimplemented in LwpFootnoteLayout, LwpEndnoteLayout, and LwpTableHeadingLayout.
Definition at line 134 of file lwptablelayout.hxx.
References LwpVirtualLayout::LWP_TABLE_LAYOUT.
| LwpRowLayout * LwpTableLayout::GetRowLayout | ( | sal_uInt16 | nRow | ) |
@descr Get row layout by row id
| nRow | - row id |
Definition at line 1446 of file lwptablelayout.cxx.
References LwpDLNFVList::GetChildHead(), LwpDLVList::GetNext(), LwpRowLayout::GetRowID(), and LwpObjectID::obj().
Referenced by LwpFootnote::GetCellLayout().
|
inline |
Definition at line 164 of file lwptablelayout.hxx.
References m_RowsMap.
Referenced by LwpRowLayout::RegisterCurRowStyle().
| LwpSuperTableLayout * LwpTableLayout::GetSuperTableLayout | ( | ) |
Get parent super table layout of table layout.
Definition at line 511 of file lwptablelayout.cxx.
References LwpDLNFVList::GetParent(), and LwpObjectID::obj().
Referenced by ParseTable(), RegisterColumns(), and RegisterStyle().
| LwpTable * LwpTableLayout::GetTable | ( | ) |
Get table pointer.
Definition at line 519 of file lwptablelayout.cxx.
References LwpMiddleLayout::m_Content, and LwpObjectID::obj().
Referenced by ConvertColumn(), LwpRowLayout::ConvertCommonRow(), ConvertDefaultRow(), ConvertHeadingRow(), LwpRowLayout::ConvertRow(), LwpConnectedCellLayout::GetCellBorderType(), LwpCellLayout::GetTable(), LwpSuperTableLayout::GetTableWidth(), RegisterColumns(), RegisterRows(), LwpRowLayout::RegisterStyle(), RegisterStyle(), SplitConflictCells(), and SplitRowToCells().
|
protected |
read table layout
| none |
Definition at line 770 of file lwptablelayout.cxx.
References ConvertHeadingRow(), ConvertTable(), LwpDLNFVList::GetName(), LwpTableHeadingLayout::GetStartEndRow(), GetSuperTableLayout(), LwpSuperTableLayout::GetTableHeadingLayout(), utl::ConfigManager::IsFuzzing(), m_nCols, m_nRows, m_pXFTable, LwpVirtualLayout::m_StyleName, SAL_WARN, and LwpAtomHolder::str().
Referenced by RegisterStyle().
|
protected |
1.
set number right alignment to right if number 2. remove tab added before if number
| pCell | - cell which to be process |
| nRowID | - row number in Word Pro file |
| nColID | - column number in Word Pro file |
Definition at line 1232 of file lwptablelayout.cxx.
References XFStyleManager::AddStyle(), enumXFAlignEnd, enumXFContentPara, XFContentContainer::FindFirstContent(), XFStyleManager::FindParaStyle(), XFStyleManager::FindStyle(), first, GetCellByRowCol(), XFNumberStyle::GetColor(), LwpGlobalMgr::GetInstance(), XFParaStyle::GetNumberRight(), LwpCellLayout::GetNumfmtName(), XFContent::GetStyleName(), IXFStyle::GetStyleName(), LwpGlobalMgr::GetXFStyleManager(), IXFStyleRet::m_pStyle, XFParaStyle::SetAlignType(), and XFContent::SetStyleName().
Referenced by PutCellVals().
|
private |
apply numeric value and formula to cell
| pFoundry | - pointer of foundry |
| aTableID | - table ID |
Definition at line 1140 of file lwptablelayout.cxx.
References LwpCellList::Convert(), LwpTableRange::GetCellRangeID(), GetCellsMap(), LwpRowList::GetChildHeadID(), LwpFolder::GetChildHeadID(), LwpCellList::GetColumnID(), LwpCellRange::GetFolderID(), LwpDLVListHeadHolder::GetHeadID(), LwpTableRange::GetNext(), LwpCellList::GetNextID(), LwpRowList::GetNextID(), LwpFoundry::GetNumberManager(), LwpRowList::GetRowID(), LwpTableRange::GetTableID(), LwpNumberManager::GetTableRangeID(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), LwpObjectID::obj(), PostProcessParagraph(), and SAL_WARN.
Referenced by RegisterStyle().
|
overrideprotectedvirtual |
read table layout
| none |
Reimplemented from LwpLayout.
Reimplemented in LwpTableHeadingLayout, and LwpParallelColumnsLayout.
Definition at line 822 of file lwptablelayout.cxx.
References m_ColumnLayout, LwpFileHeader::m_nFileRevision, LwpObject::m_pObjStrm, LwpLayout::Read(), and LwpObjectID::ReadIndexed().
Referenced by LwpFootnoteLayout::Read(), LwpEndnoteLayout::Read(), LwpTableHeadingLayout::Read(), and LwpParallelColumnsLayout::Read().
|
protected |
analyze all columns to get whole table width and width of all columns
and register all column styles
| none |
Definition at line 549 of file lwptablelayout.cxx.
References XFStyleManager::AddStyle(), LwpColumnLayout::GetColumnID(), GetColumnLayoutHead(), LwpGlobalMgr::GetInstance(), LwpDLVList::GetNext(), IXFStyle::GetStyleName(), GetSuperTableLayout(), GetTable(), LwpSuperTableLayout::GetTableWidth(), LwpTable::GetWidth(), LwpMiddleLayout::GetWidth(), LwpColumnLayout::GetWidth(), LwpGlobalMgr::GetXFStyleManager(), i, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), LwpColumnLayout::IsJustifiable(), m_aColumns, m_DefaultColumnStyleName, m_nCols, LwpObject::m_pFoundry, IXFStyleRet::m_pStyle, and LwpObjectID::obj().
Referenced by RegisterStyle().
|
protected |
register all row styles
| none |
Definition at line 653 of file lwptablelayout.cxx.
References XFStyleManager::AddStyle(), LwpDLNFVList::GetChildHead(), LwpTable::GetHeight(), LwpGlobalMgr::GetInstance(), LwpDLVList::GetNext(), IXFStyle::GetStyleName(), GetTable(), LwpGlobalMgr::GetXFStyleManager(), m_DefaultRowStyleName, LwpVirtualLayout::m_nDirection, LwpObject::m_pFoundry, IXFStyleRet::m_pStyle, LwpObjectID::obj(), LwpRowLayout::RegisterStyle(), and LwpObject::SetFoundry().
Referenced by RegisterStyle().
|
overridevirtual |
register table style, if needed, including frame style
| none |
Reimplemented from LwpObject.
Definition at line 691 of file lwptablelayout.cxx.
References XFStyleManager::AddStyle(), LwpSuperTableLayout::ApplyAlignment(), LwpSuperTableLayout::ApplyBackGround(), LwpSuperTableLayout::ApplyShadow(), LwpSuperTableLayout::ApplyWatermark(), enumXFAlignCenter, LwpTable::GetColumn(), LwpLayout::GetContainerLayout(), LwpTable::GetDefaultCellStyle(), LwpObject::GetFoundry(), LwpGlobalMgr::GetInstance(), LwpObject::GetObjectID(), LwpPlacableLayout::GetRelativeType(), LwpTable::GetRow(), IXFStyle::GetStyleName(), GetSuperTableLayout(), GetTable(), LwpSuperTableLayout::GetTableWidth(), LwpGlobalMgr::GetXFStyleManager(), LwpLayoutRelativityGuts::LAY_INLINE_NEWLINE, m_nCols, m_nRows, m_pDefaultCellLayout, IXFStyleRet::m_pStyle, LwpVirtualLayout::m_StyleName, MAX_NUM_COLS, MAX_NUM_ROWS, nType, LwpObjectID::obj(), ParseTable(), PutCellVals(), RegisterColumns(), LwpSuperTableLayout::RegisterFrameStyle(), RegisterRows(), SAL_WARN, SplitConflictCells(), and TraverseTable().
Referenced by LwpSuperTableLayout::RegisterNewStyle().
| LwpObjectID * LwpTableLayout::SearchCellStoryMap | ( | sal_uInt16 | nRow, |
| sal_uInt16 | nCol | ||
| ) |
search the cell map
| nRow | - row id (0 based) |
| nRow | - row id (0 based) |
Definition at line 485 of file lwptablelayout.cxx.
References GetCellByRowCol(), LwpCellLayout::GetColID(), LwpMiddleLayout::GetContent(), LwpCellLayout::GetRowID(), m_nCols, and m_nRows.
Referenced by LwpCellLayout::GetPreviousCellStory().
| void LwpTableLayout::SetCellsMap | ( | sal_uInt16 | nRow1, |
| sal_uInt8 | nCol1, | ||
| sal_uInt16 | nRow2, | ||
| sal_uInt8 | nCol2, | ||
| XFCell * | pXFCell | ||
| ) |
set cell map info
| pXFCell | - pointer to xfcell |
| nRow | - row id |
| nCol | - column id |
Definition at line 1422 of file lwptablelayout.cxx.
References m_CellsMap.
Referenced by LwpRowLayout::ConvertCommonRow(), and LwpRowLayout::ConvertRow().
|
inline |
Definition at line 143 of file lwptablelayout.hxx.
References m_nCols, m_nRows, and m_WordProCellsMap.
Referenced by LwpCellLayout::SetCellMap(), and LwpConnectedCellLayout::SetCellMap().
|
private |
split conflict merged cells
Definition at line 1332 of file lwptablelayout.cxx.
References LwpTable::GetColumn(), LwpRowLayout::GetCurMaxSpannedRows(), LwpRowLayout::GetMergeCellFlag(), LwpTable::GetRow(), GetTable(), i, m_RowsMap, and LwpRowLayout::SetCellSplit().
Referenced by RegisterStyle().
|
private |
Definition at line 906 of file lwptablelayout.cxx.
References XFStyleManager::AddStyle(), ConvertColumn(), XFStyleManager::FindStyle(), XFRow::GetCell(), XFRow::GetCellCount(), LwpTable::GetColumn(), LwpGlobalMgr::GetInstance(), XFTable::GetRow(), XFTable::GetRowCount(), XFContent::GetStyleName(), GetTable(), LwpGlobalMgr::GetXFStyleManager(), i, LwpVirtualLayout::m_nDirection, XFTable::RemoveRow(), and XFRowStyle::SetMinRowHeight().
Referenced by ConvertHeadingRow().
|
protected |
traverse all table cells
param
Definition at line 450 of file lwptablelayout.cxx.
References LwpRowLayout::CollectMergeInfo(), LwpDLNFVList::GetChildHead(), LwpDLVList::GetNext(), LwpRowLayout::GetRowID(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), m_nCols, m_nRows, m_pDefaultCellLayout, m_RowsMap, m_WordProCellsMap, nCount, LwpObjectID::obj(), and LwpRowLayout::SetRowMap().
Referenced by RegisterStyle().
|
overridevirtual |
Convert table.
return pCont - container which will contain table
Reimplemented from LwpObject.
Definition at line 841 of file lwptablelayout.cxx.
References XFContentContainer::Add(), m_bConverted, and m_pXFTable.
Referenced by LwpSuperTableLayout::XFConvert(), LwpSuperTableLayout::XFConvertFrame(), and LwpTocSuperLayout::XFConvertFrame().
|
private |
Definition at line 194 of file lwptablelayout.hxx.
Referenced by GetColumnWidth(), and RegisterColumns().
|
private |
Definition at line 183 of file lwptablelayout.hxx.
Referenced by ConvertTable().
|
private |
Definition at line 197 of file lwptablelayout.hxx.
Referenced by XFConvert().
|
private |
Definition at line 199 of file lwptablelayout.hxx.
Referenced by GetCellsMap(), and SetCellsMap().
|
private |
Definition at line 186 of file lwptablelayout.hxx.
Referenced by GetColumnLayoutHead(), and Read().
|
private |
Definition at line 188 of file lwptablelayout.hxx.
Referenced by ConvertColumn(), GetColumnWidth(), and RegisterColumns().
|
private |
Definition at line 189 of file lwptablelayout.hxx.
Referenced by ConvertDefaultRow(), GetDefaultRowStyleName(), and RegisterRows().
|
private |
Definition at line 181 of file lwptablelayout.hxx.
Referenced by GetCellByRowCol(), GetColumnWidth(), ParseTable(), RegisterColumns(), RegisterStyle(), SearchCellStoryMap(), SetWordProCellMap(), and TraverseTable().
|
private |
Definition at line 180 of file lwptablelayout.hxx.
Referenced by GetCellByRowCol(), ParseTable(), RegisterStyle(), SearchCellStoryMap(), SetWordProCellMap(), and TraverseTable().
|
private |
Definition at line 187 of file lwptablelayout.hxx.
Referenced by ConvertDefaultRow(), GetDefaultCellLayout(), RegisterStyle(), and TraverseTable().
|
private |
Definition at line 196 of file lwptablelayout.hxx.
Referenced by ParseTable(), and XFConvert().
|
private |
Definition at line 195 of file lwptablelayout.hxx.
Referenced by ConvertHeadingRow(), ConvertTable(), GetRowsMap(), SplitConflictCells(), and TraverseTable().
|
private |
Definition at line 192 of file lwptablelayout.hxx.
Referenced by GetCellByRowCol(), SetWordProCellMap(), and TraverseTable().