// ---------------------------------------------------------------------------
// - XhtmlTbody.hpp                                                          -
// - afnix:wax module - xhtml tbody node class definition                    -
// ---------------------------------------------------------------------------
// - This program is free software;  you can redistribute it  and/or  modify -
// - it provided that this copyright notice is kept intact.                  -
// -                                                                         -
// - This program  is  distributed in  the hope  that it will be useful, but -
// - without  any  warranty;  without  even   the   implied    warranty   of -
// - merchantability or fitness for a particular purpose.  In no event shall -
// - the copyright holder be liable for any  direct, indirect, incidental or -
// - special damages arising in any way out of the use of this software.     -
// ---------------------------------------------------------------------------
// - copyright (c) 1999-2009 amaury darsch                                   -
// ---------------------------------------------------------------------------

#ifndef  AFNIX_XHTMLTBODY_HPP
#define  AFNIX_XHTMLTBODY_HPP

#ifndef  AFNIX_XHTMLTELEM_HPP
#include "XhtmlTelem.hpp"
#endif

namespace afnix {

  /// The XhtmlTbody class is a xhtml tbody node. The tbody node is
  /// designed to accumulate table rows nodes. The class acts almost like
  /// the xhtml table class.
  /// @author amaury darsch

  class XhtmlTbody : public XhtmlTelem {
  public:
    /// create an empty tbody node
    XhtmlTbody (void);

    /// create a xhtml tbody node with a class
    /// @param cls the node class
    XhtmlTbody (const String& cls);

    /// create a xhtml tbody node with a class and a default tr class
    /// @param cls the node class
    /// @param trc the default tr class
    XhtmlTbody (const String& cls, const String& trc);

    /// create a xhtml tbody node with a class, a default tr and tx class
    /// @param cls the node class
    /// @param trc the default tr class
    /// @param txc the default tx class
    XhtmlTbody (const String& cls, const String& trc, const String& txc);

    /// @return the class name
    String repr (void) const;
    
  private:
    // make the copy constructor private
    XhtmlTbody (const XhtmlTbody&);
    // make the assignment operator private
    XhtmlTbody& operator = (const XhtmlTbody&);

  public:
    /// create a new object in a generic object
    /// @param argv the argument vector
    static Object* mknew (Vector* argv);
  };
}

#endif
