public bool Add_penSet(cls_penSet n_penSet)
 {
     n_penSet.setParent(this);
     n_penSet.setOwner(__owner);
     m_penSet.Add(n_penSet.M_id, n_penSet);
     return(true);
 }
        public override cls_DTTPresentation_part startElement(int elementid, Dictionary <string, string> atts, string nsuri, string elementname)
        {
            switch (elementid)
            {
            case DTTPresentation_parser.ID_slide:
                cls_slide tmp_slide = new cls_slide(this);
                tmp_slide.parseAttributes(atts);
                m_page.Add(tmp_slide);
                return(tmp_slide);

            //break;
            case DTTPresentation_parser.ID_application:
                cls_application tmp_application = new cls_application(this);
                tmp_application.parseAttributes(atts);
                m_page.Add(tmp_application);
                return(tmp_application);

            //break;
            case DTTPresentation_parser.ID_board:
                cls_board tmp_board = new cls_board(this);
                tmp_board.parseAttributes(atts);
                m_page.Add(tmp_board);
                return(tmp_board);

            //break;
            case DTTPresentation_parser.ID_web:
                cls_web tmp_web = new cls_web(this);
                tmp_web.parseAttributes(atts);
                m_page.Add(tmp_web);
                return(tmp_web);

            //break;
            case DTTPresentation_parser.ID_penSet:
                cls_penSet tmp_penSet = new cls_penSet(this);
                tmp_penSet.parseAttributes(atts);
                m_penSet.Add(tmp_penSet.M_id, tmp_penSet);
                return(tmp_penSet);

            //break;
            case DTTPresentation_parser.ID_underlayDefinition:
                cls_underlayDefinition tmp_underlayDefinition = new cls_underlayDefinition(this);
                tmp_underlayDefinition.parseAttributes(atts);
                m_underlayDefinition.Add(tmp_underlayDefinition.M_id, tmp_underlayDefinition);
                return(tmp_underlayDefinition);

            //break;
            default:
                throw new Exception("Unexpected element " + elementname + " in DTTPresentation");
                //break;
            }
            //return this;
        }