/**
@class wxHtmlTag
- @headerfile htmltag.h wx/html/htmltag.h
This class represents a single HTML tag.
It is used by @ref overview_handlers "tag handlers".
@library{wxhtml}
- @category{FIXME}
+ @category{html}
*/
class wxHtmlTag
{
-public:
+protected:
/**
Constructor. You will probably never have to construct a wxHtmlTag object
yourself. Feel free to ignore the constructor parameters.
Have a look at src/html/htmlpars.cpp if you're interested in creating it.
*/
- wxHtmlTag(wxHtmlTag* parent, const wxString& source, int pos,
- int end_pos, wxHtmlTagsCache* cache,
- wxHtmlEntitiesParser* entParser);
+ wxHtmlTag(wxHtmlTag* parent, const wxString* source,
+ const const_iterator& pos, const const_iterator& end_pos,
+ wxHtmlTagsCache* cache, wxHtmlEntitiesParser* entParser);
+public:
/**
Returns a string containing all parameters.
Example : tag contains @c FONT SIZE=+2 COLOR="#000000". Call to
Returns beginning position of the text @e between this tag and paired
ending tag.
See explanation (returned position is marked with '|'):
+ @deprecated @todo provide deprecation description
*/
int GetBeginPos() const;
Returns ending position of the text @e between this tag and paired
ending tag.
See explanation (returned position is marked with '|'):
+ @deprecated @todo provide deprecation description
*/
int GetEndPos1() const;
Returns ending position 2 of the text @e between this tag and paired
ending tag.
See explanation (returned position is marked with '|'):
+ @deprecated @todo provide deprecation description
*/
int GetEndPos2() const;
/**
Returns the value of the parameter. You should check whether the
parameter exists or not (use wxHtmlTag::HasParam) first.
-
+
@param par
The parameter's name.
@param with_quotes
/**
Returns @true if this tag is paired with ending tag, @false otherwise.
See the example of HTML document:
-
+
In this example tags HTML and BODY have ending tags, first P and BR
doesn't have ending tag while the second P has. The third P tag (which
is ending itself) of course doesn't have ending tag.
/**
Returns @true if the tag has a parameter of the given name.
- Example : @c FONT SIZE=+2 COLOR="#FF00FF" has two parameters named
+ Example : @c FONT SIZE=+2 COLOR="\#FF00FF" has two parameters named
"SIZE" and "COLOR".
-
+
@param par
the parameter you're looking for.
*/
argument
and you can only retrieve one value (i.e. you can use only one "%" element
in @e format).
-
+
@param par
The name of the tag you want to query
@param format