friend class el_table;
friend class document;
public:
- typedef std::shared_ptr<litehtml::element> ptr;
- typedef std::weak_ptr<litehtml::element> weak_ptr;
+ typedef std::shared_ptr<litehtml::element> ptr;\r
+ typedef std::shared_ptr<const litehtml::element> const_ptr;\r
+ typedef std::weak_ptr<litehtml::element> weak_ptr;\r
protected:
std::weak_ptr<element> m_parent;
std::weak_ptr<litehtml::document> m_doc;
virtual css_length get_css_height() const;
virtual void set_attr(const tchar_t* name, const tchar_t* val);
- virtual const tchar_t* get_attr(const tchar_t* name, const tchar_t* def = 0);
+ virtual const tchar_t* get_attr(const tchar_t* name, const tchar_t* def = 0) const;\r
virtual void apply_stylesheet(const litehtml::css& stylesheet);
virtual void refresh_styles();
virtual bool is_white_space() const;