LibreOffice Module lotuswordpro (master) 1
|
VO_ROWLAYOUT obj. More...
#include <lwprowlayout.hxx>
Public Member Functions | |
LwpRowLayout (LwpObjectHeader const &objHdr, LwpSvStream *pStrm) | |
virtual | ~LwpRowLayout () override |
virtual LWP_LAYOUT_TYPE | GetLayoutType () override |
sal_uInt16 | GetRowID () const |
virtual void | RegisterStyle () override |
register row style More... | |
LwpTableLayout * | GetParentTableLayout () |
void | SetRowMap () |
register row style More... | |
void | ConvertRow (rtl::Reference< XFTable > const &pXFTable, sal_uInt8 nStartCol, sal_uInt8 nEndCol) |
Parse rows with connect cell. More... | |
void | ConvertCommonRow (rtl::Reference< XFTable > const &pXFTable, sal_uInt8 nStartCol, sal_uInt8 nEndCol) |
convert row with rowlayout,but no merge cells More... | |
void | CollectMergeInfo () |
collect merge cell info when register row styles More... | |
void | SetCellSplit (sal_uInt16 nEffectRows) |
split merge cells in this row More... | |
bool | GetMergeCellFlag () const |
check if the row has merge cell More... | |
sal_uInt16 | GetCurMaxSpannedRows (sal_uInt8 nStartCol, sal_uInt8 nEndCol) |
get max spanned row numbers in a given column range More... | |
void | RegisterCurRowStyle (XFRow *pXFRow, sal_uInt16 nRowMark) |
register row style in SODC table 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 |
register row style More... | |
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 | |
enum | { RF_HAS_BORDER = 0x01 , RF_VALID_HAS_BORDER = 0x02 , RF_LEADER_COUNT_VALID = 0x4 } |
Private Member Functions | |
sal_Int32 | FindMarkConnCell (sal_uInt8 nStartCol, sal_uInt8 nEndCol) |
find max merge cell in a given column range More... | |
sal_Int32 | FindNextMarkConnCell (sal_uInt16 nMarkConnCell, sal_uInt8 nEndCol) |
find next merge cell with the same spanned row number with current merge cell More... | |
Private Attributes | |
sal_uInt16 | crowid |
sal_Int32 | cheight |
sal_uInt8 | cLeaderDotCount |
sal_Int32 | cLeaderDotY |
sal_uInt8 | cRowFlags |
std::vector< LwpConnectedCellLayout * > | m_ConnCellList |
VO_ROWLAYOUT obj.
Definition at line 75 of file lwprowlayout.hxx.
|
private |
Enumerator | |
---|---|
RF_HAS_BORDER | |
RF_VALID_HAS_BORDER | |
RF_LEADER_COUNT_VALID |
Definition at line 93 of file lwprowlayout.hxx.
LwpRowLayout::LwpRowLayout | ( | LwpObjectHeader const & | objHdr, |
LwpSvStream * | pStrm | ||
) |
Definition at line 71 of file lwprowlayout.cxx.
References m_ConnCellList.
|
overridevirtual |
Definition at line 82 of file lwprowlayout.cxx.
void LwpRowLayout::CollectMergeInfo | ( | ) |
collect merge cell info when register row styles
Definition at line 444 of file lwprowlayout.cxx.
References LwpDLNFVList::GetChildHead(), LwpCellLayout::GetLayoutType(), LwpDLVList::GetNext(), LwpVirtualLayout::LWP_CONNECTED_CELL_LAYOUT, m_ConnCellList, and LwpObjectID::obj().
Referenced by LwpTableLayout::TraverseTable().
void LwpRowLayout::ConvertCommonRow | ( | rtl::Reference< XFTable > const & | pXFTable, |
sal_uInt8 | nStartCol, | ||
sal_uInt8 | nEndCol | ||
) |
convert row with rowlayout,but no merge cells
pXFTable | - pointer of table |
nStartCol | - start column ID |
nEndCol | - end column ID |
Definition at line 375 of file lwprowlayout.cxx.
References crowid, LwpCellLayout::DoConvertCell(), LwpDLNFVList::GetChildHead(), LwpCellLayout::GetColID(), LwpTableLayout::GetDefaultCellLayout(), LwpCellLayout::GetLayoutType(), LwpDLVList::GetNext(), LwpConnectedCellLayout::GetNumcols(), LwpObject::GetObjectID(), GetParentTableLayout(), LwpTableLayout::GetTable(), i, LwpVirtualLayout::LWP_CONNECTED_CELL_LAYOUT, LwpVirtualLayout::m_StyleName, LwpObjectID::obj(), and LwpTableLayout::SetCellsMap().
Referenced by ConvertRow(), and LwpTableLayout::ConvertTable().
void LwpRowLayout::ConvertRow | ( | rtl::Reference< XFTable > const & | pXFTable, |
sal_uInt8 | nStartCol, | ||
sal_uInt8 | nEndCol | ||
) |
Parse rows with connect cell.
pXFTable | - pointer to created XFTable |
Definition at line 189 of file lwprowlayout.cxx.
References ConvertCommonRow(), LwpTableLayout::ConvertTable(), crowid, FindMarkConnCell(), FindNextMarkConnCell(), GetCurMaxSpannedRows(), LwpObject::GetObjectID(), GetParentTableLayout(), LwpTableLayout::GetTable(), i, m_ConnCellList, RegisterCurRowStyle(), and LwpTableLayout::SetCellsMap().
Referenced by LwpTableLayout::ConvertTable().
find max merge cell in a given column range
nStartCol | - start column ID |
nEndCol | - end column ID |
Definition at line 312 of file lwprowlayout.cxx.
References i, and m_ConnCellList.
Referenced by ConvertRow(), and GetCurMaxSpannedRows().
|
private |
find next merge cell with the same spanned row number with current merge cell
nStartCol | - start column ID |
nEndCol | - end column ID |
Definition at line 341 of file lwprowlayout.cxx.
References i, and m_ConnCellList.
Referenced by ConvertRow().
get max spanned row numbers in a given column range
nStartCol | - start column ID |
nEndCol | - end column ID |
Definition at line 361 of file lwprowlayout.cxx.
References FindMarkConnCell(), and m_ConnCellList.
Referenced by ConvertRow(), LwpTableLayout::ConvertTable(), and LwpTableLayout::SplitConflictCells().
|
inlineoverridevirtual |
Reimplemented from LwpVirtualLayout.
Reimplemented in LwpFnRowLayout, and LwpRowHeadingLayout.
Definition at line 80 of file lwprowlayout.hxx.
References LwpVirtualLayout::LWP_ROW_LAYOUT.
bool LwpRowLayout::GetMergeCellFlag | ( | ) | const |
check if the row has merge cell
Definition at line 482 of file lwprowlayout.cxx.
References m_ConnCellList.
Referenced by LwpTableLayout::SplitConflictCells().
|
inline |
Definition at line 83 of file lwprowlayout.hxx.
References LwpDLNFVList::GetParent(), and LwpObjectID::obj().
Referenced by ConvertCommonRow(), ConvertRow(), LwpCellLayout::GetTableLayout(), RegisterCurRowStyle(), and RegisterStyle().
|
inline |
Definition at line 81 of file lwprowlayout.hxx.
References crowid.
Referenced by LwpTableLayout::GetRowLayout(), and LwpTableLayout::TraverseTable().
|
overrideprotectedvirtual |
register row style
param
return
Reimplemented from LwpVirtualLayout.
Reimplemented in LwpRowHeadingLayout.
Definition at line 163 of file lwprowlayout.cxx.
References cheight, cLeaderDotCount, cLeaderDotY, cRowFlags, crowid, LwpObject::m_pObjStrm, MAXUNIT, LwpObjectStream::QuickReadInt32(), LwpObjectStream::QuickReaduInt16(), LwpVirtualLayout::Read(), LwpAtomHolder::Read(), and LwpObjectStream::SkipExtra().
Referenced by LwpFnRowLayout::Read(), and LwpRowHeadingLayout::Read().
void LwpRowLayout::RegisterCurRowStyle | ( | XFRow * | pXFRow, |
sal_uInt16 | nRowMark | ||
) |
register row style in SODC table
pXFRow | - pointer of row |
nRowMark | - spanned row number |
Definition at line 260 of file lwprowlayout.cxx.
References XFStyleManager::AddStyle(), crowid, XFStyleManager::FindStyle(), LwpTableLayout::GetDefaultRowStyleName(), LwpGlobalMgr::GetInstance(), GetParentTableLayout(), XFRowStyle::GetRowHeight(), LwpTableLayout::GetRowsMap(), IXFStyle::GetStyleName(), LwpGlobalMgr::GetXFStyleManager(), i, LwpVirtualLayout::m_nDirection, IXFStyleRet::m_pStyle, LwpVirtualLayout::m_StyleName, and XFContent::SetStyleName().
Referenced by ConvertRow().
|
overridevirtual |
register row style
param
return
Reimplemented from LwpObject.
Reimplemented in LwpFnRowLayout.
Definition at line 117 of file lwprowlayout.cxx.
References XFStyleManager::AddStyle(), cheight, LwpTools::ConvertFromUnitsToMetric(), LwpDLNFVList::GetChildHead(), LwpGlobalMgr::GetInstance(), LwpDLVList::GetNext(), GetParentTableLayout(), IXFStyle::GetStyleName(), LwpTableLayout::GetTable(), LwpGlobalMgr::GetXFStyleManager(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), LwpVirtualLayout::m_nDirection, LwpObject::m_pFoundry, IXFStyleRet::m_pStyle, LwpVirtualLayout::m_StyleName, LwpObjectID::obj(), LwpCellLayout::RegisterStyle(), and LwpObject::SetFoundry().
Referenced by LwpTableLayout::RegisterRows(), and LwpEndnoteLayout::RegisterStyle().
void LwpRowLayout::SetCellSplit | ( | sal_uInt16 | nEffectRows | ) |
split merge cells in this row
nEffectRows | - max spanned number of previous row |
Definition at line 464 of file lwprowlayout.cxx.
References o3tl::checked_add(), o3tl::checked_sub(), and m_ConnCellList.
Referenced by LwpTableLayout::SplitConflictCells().
void LwpRowLayout::SetRowMap | ( | ) |
register row style
param
return
Definition at line 92 of file lwprowlayout.cxx.
References LwpDLNFVList::GetChildHead(), LwpDLVList::GetNext(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), LwpObjectID::obj(), and LwpCellLayout::SetCellMap().
Referenced by LwpTableLayout::TraverseTable().
|
private |
Definition at line 89 of file lwprowlayout.hxx.
Referenced by Read(), and RegisterStyle().
|
private |
Definition at line 90 of file lwprowlayout.hxx.
Referenced by Read().
|
private |
Definition at line 91 of file lwprowlayout.hxx.
Referenced by Read().
|
private |
Definition at line 92 of file lwprowlayout.hxx.
Referenced by Read().
|
private |
Definition at line 88 of file lwprowlayout.hxx.
Referenced by ConvertCommonRow(), ConvertRow(), GetRowID(), Read(), and RegisterCurRowStyle().
|
private |
Definition at line 99 of file lwprowlayout.hxx.
Referenced by CollectMergeInfo(), ConvertRow(), FindMarkConnCell(), FindNextMarkConnCell(), GetCurMaxSpannedRows(), GetMergeCellFlag(), LwpRowLayout(), and SetCellSplit().