LibreOffice Module lotuswordpro (master) 1
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
LwpRowLayout Class Reference

VO_ROWLAYOUT obj. More...

#include <lwprowlayout.hxx>

Inheritance diagram for LwpRowLayout:
[legend]
Collaboration diagram for LwpRowLayout:
[legend]

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...
 
LwpTableLayoutGetParentTableLayout ()
 
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...
 
LwpUseWhenGetUseWhen ()
 @descr: Get usewhen pointer More...
 
virtual LwpUseWhenVirtualGetUseWhen ()
 
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 LwpParaGetLastParaOfPreviousStory ()
 
rtl::Reference< LwpVirtualLayoutGetParentLayout ()
 @descr: Get parent layout More...
 
virtual rtl::Reference< LwpVirtualLayoutGetContainerLayout ()
 
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 ()
 
LwpVirtualLayoutFindChildByType (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...
 
LwpPropListGetPropList ()
 
- Public Member Functions inherited from LwpDLNFVList
 LwpDLNFVList (LwpObjectHeader const &objHdr, LwpSvStream *pStrm)
 
LwpAtomHolderGetName ()
 
LwpObjectIDGetChildHead ()
 
LwpObjectIDGetChildTail ()
 
LwpObjectIDGetParent ()
 
- Public Member Functions inherited from LwpDLVList
 LwpDLVList (LwpObjectHeader const &objHdr, LwpSvStream *pStrm)
 
LwpObjectIDGetNext ()
 
LwpObjectIDGetPrevious ()
 
- 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)
 
LwpFoundryGetFoundry ()
 
void SetFoundry (LwpFoundry *pFoundry)
 
LwpObjectIDGetObjectID ()
 
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
 

Additional Inherited Members

- Static Public Member Functions inherited from salhelper::SimpleReferenceObject
static void * operator new (std::size_t nSize)
 
static void * operator new (std::size_t nSize, std::nothrow_t const &rNothrow)
 
static void operator delete (void *pPtr)
 
static void operator delete (void *pPtr, std::nothrow_t const &rNothrow)
 
- Protected Types inherited from LwpVirtualLayout
enum  LWP_LAYOUT_TYPE {
  LWP_VIRTUAL_LAYOUT ,
  LWP_HEAD_LAYOUT ,
  LWP_PAGE_LAYOUT ,
  LWP_HEADER_LAYOUT ,
  LWP_FOOTER_LAYOUT ,
  LWP_FRAME_LAYOUT ,
  LWP_SUPERTABLE_LAYOUT ,
  LWP_TABLE_LAYOUT ,
  LWP_ROW_LAYOUT ,
  LWP_COLUMN_LAYOUT ,
  LWP_CELL_LAYOUT ,
  LWP_CONNECTED_CELL_LAYOUT ,
  LWP_HIDDEN_CELL_LAYOUT ,
  LWP_TABLE_HEADING_LAYOUT ,
  LWP_ROW_HEADING_LAYOUT ,
  LWP_DROPCAP_LAYOUT ,
  LWP_GROUP_LAYOUT ,
  LWP_TOC_SUPERTABLE_LAYOUT ,
  LWP_FOOTNOTE_LAYOUT ,
  LWP_FOOTNOTE_ROW_LAYOUT ,
  LWP_FOOTNOTE_CELL_LAYOUT ,
  LWP_ENDNOTE_LAYOUT ,
  LWP_ENDNOTE_SUPERTABLE_LAYOUT ,
  LWP_FOOTNOTE_SUPERTABLE_LAYOUT ,
  LWP_NOTE_LAYOUT ,
  LWP_NOTEHEADER_LAYOUT ,
  LWP_NOTETEXT_LAYOUT ,
  LWP_VIEWPORT_LAYOUT
}
 
enum  LayoutDirection {
  LAY_USEDIRECTION = 0x01 ,
  LAY_AUTOGROW = 0x02 ,
  LAY_AUTOSIZE = 0x04 ,
  LAY_TOCONTAINER = 0x08 ,
  LAY_DIRALLBITS = 0x0f
}
 
enum  {
  SHIFT_UP = 0 ,
  SHIFT_DOWN = 4 ,
  SHIFT_LEFT = 8 ,
  SHIFT_RIGHT =12
}
 
- Protected Attributes inherited from LwpVirtualLayout
bool m_bGettingHonorProtection
 
bool m_bGettingMarginsSameAsParent
 
bool m_bGettingHasProtection
 
bool m_bGettingIsProtected
 
bool m_bGettingIsAutoGrowDown
 
bool m_bGettingMarginsValue
 
bool m_bGettingExtMarginsValue
 
bool m_bGettingUsePrinterSettings
 
bool m_bGettingScaleCenter
 
bool m_bGettingBorderStuff
 
bool m_bGettingUseWhen
 
bool m_bGettingStyleLayout
 
bool m_bGettingAutoGrowUp
 
sal_uInt32 m_nAttributes
 
sal_uInt32 m_nAttributes2
 
sal_uInt32 m_nAttributes3
 
sal_uInt32 m_nOverrideFlag
 
sal_uInt16 m_nDirection
 
sal_uInt16 m_nEditorID
 
LwpObjectID m_NextEnumerated
 
LwpObjectID m_PreviousEnumerated
 
OUString m_StyleName
 
- Protected Attributes inherited from LwpDLNFVList
LwpObjectID m_ChildHead
 
LwpObjectID m_ChildTail
 
LwpObjectID m_Parent
 
LwpAtomHolder m_Name
 
- Protected Attributes inherited from LwpObject
LwpObjectHeader m_ObjHdr
 
std::unique_ptr< LwpObjectStreamm_pObjStrm
 
LwpFoundrym_pFoundry
 
LwpSvStreamm_pStrm
 
bool m_bRegisteringStyle
 
bool m_bParsingStyle
 
bool m_bConvertingContent
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

VO_ROWLAYOUT obj.

Definition at line 75 of file lwprowlayout.hxx.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
RF_HAS_BORDER 
RF_VALID_HAS_BORDER 
RF_LEADER_COUNT_VALID 

Definition at line 93 of file lwprowlayout.hxx.

Constructor & Destructor Documentation

◆ LwpRowLayout()

LwpRowLayout::LwpRowLayout ( LwpObjectHeader const &  objHdr,
LwpSvStream pStrm 
)

Definition at line 71 of file lwprowlayout.cxx.

References m_ConnCellList.

◆ ~LwpRowLayout()

LwpRowLayout::~LwpRowLayout ( )
overridevirtual

Definition at line 82 of file lwprowlayout.cxx.

Member Function Documentation

◆ CollectMergeInfo()

void LwpRowLayout::CollectMergeInfo ( )

◆ ConvertCommonRow()

void LwpRowLayout::ConvertCommonRow ( rtl::Reference< XFTable > const &  pXFTable,
sal_uInt8  nStartCol,
sal_uInt8  nEndCol 
)

◆ ConvertRow()

void LwpRowLayout::ConvertRow ( rtl::Reference< XFTable > const &  pXFTable,
sal_uInt8  nStartCol,
sal_uInt8  nEndCol 
)

◆ FindMarkConnCell()

sal_Int32 LwpRowLayout::FindMarkConnCell ( sal_uInt8  nStartCol,
sal_uInt8  nEndCol 
)
private

find max merge cell in a given column range

Parameters
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().

◆ FindNextMarkConnCell()

sal_Int32 LwpRowLayout::FindNextMarkConnCell ( sal_uInt16  nMarkConnCell,
sal_uInt8  nEndCol 
)
private

find next merge cell with the same spanned row number with current merge cell

Parameters
nStartCol- start column ID
nEndCol- end column ID

Definition at line 341 of file lwprowlayout.cxx.

References i, and m_ConnCellList.

Referenced by ConvertRow().

◆ GetCurMaxSpannedRows()

sal_uInt16 LwpRowLayout::GetCurMaxSpannedRows ( sal_uInt8  nStartCol,
sal_uInt8  nEndCol 
)

get max spanned row numbers in a given column range

Parameters
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().

◆ GetLayoutType()

virtual LWP_LAYOUT_TYPE LwpRowLayout::GetLayoutType ( )
inlineoverridevirtual

Reimplemented from LwpVirtualLayout.

Reimplemented in LwpFnRowLayout, and LwpRowHeadingLayout.

Definition at line 80 of file lwprowlayout.hxx.

References LwpVirtualLayout::LWP_ROW_LAYOUT.

◆ GetMergeCellFlag()

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().

◆ GetParentTableLayout()

LwpTableLayout * LwpRowLayout::GetParentTableLayout ( )
inline

◆ GetRowID()

sal_uInt16 LwpRowLayout::GetRowID ( ) const
inline

Definition at line 81 of file lwprowlayout.hxx.

References crowid.

Referenced by LwpTableLayout::GetRowLayout(), and LwpTableLayout::TraverseTable().

◆ Read()

void LwpRowLayout::Read ( )
overrideprotectedvirtual

◆ RegisterCurRowStyle()

void LwpRowLayout::RegisterCurRowStyle ( XFRow pXFRow,
sal_uInt16  nRowMark 
)

◆ RegisterStyle()

void LwpRowLayout::RegisterStyle ( )
overridevirtual

◆ SetCellSplit()

void LwpRowLayout::SetCellSplit ( sal_uInt16  nEffectRows)

split merge cells in this row

Parameters
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().

◆ SetRowMap()

void LwpRowLayout::SetRowMap ( )

Member Data Documentation

◆ cheight

sal_Int32 LwpRowLayout::cheight
private

Definition at line 89 of file lwprowlayout.hxx.

Referenced by Read(), and RegisterStyle().

◆ cLeaderDotCount

sal_uInt8 LwpRowLayout::cLeaderDotCount
private

Definition at line 90 of file lwprowlayout.hxx.

Referenced by Read().

◆ cLeaderDotY

sal_Int32 LwpRowLayout::cLeaderDotY
private

Definition at line 91 of file lwprowlayout.hxx.

Referenced by Read().

◆ cRowFlags

sal_uInt8 LwpRowLayout::cRowFlags
private

Definition at line 92 of file lwprowlayout.hxx.

Referenced by Read().

◆ crowid

sal_uInt16 LwpRowLayout::crowid
private

Definition at line 88 of file lwprowlayout.hxx.

Referenced by ConvertCommonRow(), ConvertRow(), GetRowID(), Read(), and RegisterCurRowStyle().

◆ m_ConnCellList

std::vector<LwpConnectedCellLayout*> LwpRowLayout::m_ConnCellList
private

The documentation for this class was generated from the following files: