mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-11 06:22:44 +08:00
48 lines
907 B
C++
48 lines
907 B
C++
#ifndef TBLCELL_H
|
|
#define TBLCELL_H
|
|
|
|
#include "CellParagraph.h"
|
|
#include "CtrlCommon.h"
|
|
|
|
namespace HWP
|
|
{
|
|
class CTblCell
|
|
{
|
|
int m_nSize;
|
|
|
|
short m_shColAddr;
|
|
short m_shRowAddr;
|
|
short m_shColSpan;
|
|
short m_shRowSpan;
|
|
int m_nWidth;
|
|
int m_nHeight;
|
|
int m_arMargin[4];
|
|
short m_shBorderFill;
|
|
VECTOR<CCellParagraph*> m_arParas;
|
|
EVertAlign m_eVertAlign;
|
|
|
|
HWP_STRING m_sMergedColName;
|
|
public:
|
|
CTblCell(int nSize, CHWPStream& oBuffer, int nOff, int nVersion);
|
|
CTblCell(CXMLNode& oNode, int nVersion);
|
|
|
|
void SetVertAlign(EVertAlign eVertAlign);
|
|
|
|
void AddParagraph(CCellParagraph* pParagraph);
|
|
|
|
int GetSize();
|
|
|
|
short GetColAddr() const;
|
|
short GetRowAddr() const;
|
|
short GetColSpan() const;
|
|
short GetRowSpan() const;
|
|
VECTOR<CCellParagraph*> GetParagraphs() const;
|
|
int GetWidth() const;
|
|
int GetHeight() const;
|
|
EVertAlign GetVertAlign() const;
|
|
short GetBorderFillID() const;
|
|
};
|
|
}
|
|
|
|
#endif // TBLCELL_H
|