#pragma once #include "TableCell.h" namespace AVSDocFileFormat { class TableRow { friend class Table; struct TableCellWithOffset { TableCell tableCell; unsigned int tableCellOffset; TableCellWithOffset(): tableCell(), tableCellOffset(0) { } TableCellWithOffset( const TableCell& _tableCell, unsigned int _tableCellOffset ): tableCell(_tableCell), tableCellOffset(_tableCellOffset) { } }; private: list cells; list properties; unsigned int depth; unsigned int tableCellsOffset; protected: void SetDepth( unsigned int _depth ); unsigned int GetDepth() const; public: TableRow(); explicit TableRow( unsigned int _depth ); ~TableRow(); TableRow( const TableRow& tableRow ); void AddCell( const TableCell& cell ); wstring GetAllText() const; operator wstring() const; vector GetAllParagraphsCopy() const; vector GetAllParagraphs(); void AddProperty( short sprm, void* operand ); void AddProperties( const vector& prls ); void RemoveProperty( short sprm, void* operand ); void RemoveAllProperties(); PapxInFkp GetAllProperties() const; unsigned int GetAllPropertiesCount() const; vector GetAllParagraphsProperties( vector* allParagraphsOffsets ) const; vector GetAllRunProperties( vector* allRunsOffsets ) const; vector GetAllRunsCopy( vector* allRunsOffsets ) const; vector GetAllParagraphItemsCopy( vector* allParagraphItemsOffsets ) const; }; }