diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-07-23 16:59:13 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-07-23 17:18:36 +0200 |
commit | 4a62512086fe71d98f3de95706ab1350625a7616 (patch) | |
tree | dde8d38055316471e466eab209d0ddabfb9e0be9 /oox/source/mathml | |
parent | b8b792babfa63ce2f59104117c961e96d8e265a7 (diff) |
oox::formulaimport::XmlStream: allow avoiding XFastAttributeList
Change-Id: Iba0ad5ae72920f27e8a443a043c5891b102aee98
Diffstat (limited to 'oox/source/mathml')
-rw-r--r-- | oox/source/mathml/importutils.cxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/oox/source/mathml/importutils.cxx b/oox/source/mathml/importutils.cxx index 41a254d7d296..01c2ba7cee3a 100644 --- a/oox/source/mathml/importutils.cxx +++ b/oox/source/mathml/importutils.cxx @@ -114,6 +114,11 @@ static OUString tokenToString( int token ) } // namespace +OUString& XmlStream::AttributeList::operator[] (int token) +{ + return attrs[token]; +} + rtl::OUString XmlStream::AttributeList::attribute( int token, const rtl::OUString& def ) const { std::map< int, rtl::OUString >::const_iterator find = attrs.find( token ); @@ -165,6 +170,12 @@ XmlStream::Tag::Tag( int t, const uno::Reference< xml::sax::XFastAttributeList > { } +XmlStream::Tag::Tag( int t, const AttributeList& a ) +: token( t ) +, attributes( a ) +{ +} + XmlStream::Tag::operator bool() const { @@ -337,6 +348,11 @@ void XmlStreamBuilder::appendOpeningTag( int token, const uno::Reference< xml::s tags.push_back( Tag( OPENING( token ), attrs )); } +void XmlStreamBuilder::appendOpeningTag( int token, const AttributeList& attrs ) +{ + tags.push_back( Tag( OPENING( token ), attrs )); +} + void XmlStreamBuilder::appendClosingTag( int token ) { tags.push_back( Tag( CLOSING( token ))); |