LibreOffice Module oox (master) 1
|
Structure representing a tag, including its attributes and content text immediately following it. More...
#include <importutils.hxx>
Public Member Functions | |
Tag (int token=XML_TOKEN_INVALID, const css::uno::Reference< css::xml::sax::XFastAttributeList > &attributes=css::uno::Reference< css::xml::sax::XFastAttributeList >()) | |
Tag (int token, AttributeList attribs) | |
OUString | attribute (int token, const OUString &def=OUString()) const |
This function returns value of the given attribute, or the passed default value if not found. More... | |
bool | attribute (int token, bool def) const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More... | |
sal_Unicode | attribute (int token, sal_Unicode def) const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More... | |
operator bool () const | |
Converts to true if the tag has a valid token, false otherwise. More... | |
Public Attributes | |
int | token |
tag type, or XML_TOKEN_INVALID More... | |
AttributeList | attributes |
OUString | text |
Structure representing a tag, including its attributes and content text immediately following it.
Definition at line 134 of file importutils.hxx.
oox::formulaimport::XmlStream::Tag::Tag | ( | int | token = XML_TOKEN_INVALID , |
const css::uno::Reference< css::xml::sax::XFastAttributeList > & | attributes = css::uno::Reference< css::xml::sax::XFastAttributeList >() |
||
) |
oox::formulaimport::XmlStream::Tag::Tag | ( | int | token, |
AttributeList | attribs | ||
) |
Definition at line 144 of file importutils.cxx.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 241 of file importutils.hxx.
References t.
|
inline |
This function returns value of the given attribute, or the passed default value if not found.
The type of the default value selects the return type (OUString here).
Definition at line 236 of file importutils.hxx.
References oox::formulaimport::XmlStream::AttributeList::attribute(), attributes, and t.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 246 of file importutils.hxx.
References t.
oox::formulaimport::XmlStream::Tag::operator bool | ( | ) | const |
Converts to true if the tag has a valid token, false otherwise.
Allows simple usage in if(), for example 'if( XmlStream::Tag foo = stream.checkOpeningTag( footoken ))'.
Definition at line 150 of file importutils.cxx.
References XML_TOKEN_INVALID.
AttributeList oox::formulaimport::XmlStream::Tag::attributes |
Definition at line 141 of file importutils.hxx.
Referenced by attribute().
OUString oox::formulaimport::XmlStream::Tag::text |
Definition at line 142 of file importutils.hxx.
int oox::formulaimport::XmlStream::Tag::token |
tag type, or XML_TOKEN_INVALID
Definition at line 140 of file importutils.hxx.