Files
Yajbir Singh f1b860b25c
Some checks failed
check / markdownlint (push) Has been cancelled
check / spellchecker (push) Has been cancelled
updated
2025-12-11 19:03:17 +05:30

36 lines
979 B
C++

#ifndef CTRLCONTAINER_H
#define CTRLCONTAINER_H
#include "CtrlGeneralShape.h"
namespace HWP
{
class CCtrlContainer : public CCtrlGeneralShape
{
short m_shNElement;
VECTOR<HWP_STRING> m_arCtrlIdList;
VECTOR<CCtrlGeneralShape*> m_arShapes;
public:
CCtrlContainer(const HWP_STRING& sCtrlID);
CCtrlContainer(const CCtrlGeneralShape& oShape);
CCtrlContainer(const HWP_STRING& sCtrlID, int nSize, CHWPStream& oBuffer, int nOff, int nVersion);
CCtrlContainer(const HWP_STRING& sCtrlID, CXMLReader& oReader, EHanType eType);
~CCtrlContainer();
EShapeType GetShapeType() const override;
bool Empty() const;
VECTOR<CCtrlGeneralShape*> GetShapes() const;
void AddShape(CCtrlGeneralShape* pShape);
CCtrlGeneralShape* GetLastShape();
static int ParseElement(CCtrlContainer& oObj, int nSize, CHWPStream& oBuffer, int nOff, int nVersion);
static int ParseCtrl(CCtrlContainer& oObj, int nSize, CHWPStream& oBuffer, int nOff, int nVersion);
};
}
#endif // CTRLCONTAINER_H