Files
core/ASCOfficeDocFile/DocxDocConverter/Table.h
Alexey.Musinov 9ea51f5678 выпиливание boost'a
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@52920 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-20 22:33:45 +03:00

50 lines
1.5 KiB
C++

#pragma once
#include "TableRow.h"
namespace ASCDocFileFormat
{
class Table: public ITextItem
{
struct TableRowWithOffset
{
TableRow tableRow;
unsigned int tableRowOffset;
TableRowWithOffset():
tableRow(), tableRowOffset(0)
{
}
TableRowWithOffset( const TableRow& _tableRow, unsigned int _tableRowOffset ):
tableRow(_tableRow), tableRowOffset(_tableRowOffset)
{
}
};
private:
list<TableRowWithOffset> rows;
unsigned int depth;
unsigned int tableRowsOffset;
protected:
void SetDepth( unsigned int _depth );
unsigned int GetDepth() const;
public:
Table();
Table( const Table& table );
void AddRow( const TableRow& row );
virtual ~Table();
virtual wstring GetAllText() const;
virtual operator wstring() const;
virtual vector<TextItemPtr> GetAllParagraphsCopy() const;
virtual vector<ITextItem*> GetAllParagraphs();
virtual vector<IParagraphItemPtr> GetAllRunsCopy( vector<unsigned int>* allRunsOffsets ) const;
virtual vector<IParagraphItemPtr> GetAllParagraphItemsCopy( vector<unsigned int>* allParagraphItemsOffsets ) const;
virtual vector<PapxInFkp> GetAllParagraphsProperties( vector<unsigned int>* allParagraphsOffsets ) const;
virtual vector<Chpx> GetAllRunProperties( vector<unsigned int>* allRunsOffsets ) const;
virtual IVirtualConstructor* New() const;
virtual IVirtualConstructor* Clone() const;
};
}