diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2011-11-29 16:19:53 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2011-11-29 21:20:25 +0100 |
commit | 7bdccfdc1d3dc070a19a604c4c76b28428cc5a0e (patch) | |
tree | 376dc3d04c2ffa89161080967c95f6968b2ebbd5 /oox/inc | |
parent | e9ed9d4d4548751b50d45b7082f776d6e69204e3 (diff) |
implement import of docx mathml m:d
Diffstat (limited to 'oox/inc')
-rw-r--r-- | oox/inc/oox/mathml/importutils.hxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/oox/inc/oox/mathml/importutils.hxx b/oox/inc/oox/mathml/importutils.hxx index ca212aad8029..1bf7157d80aa 100644 --- a/oox/inc/oox/mathml/importutils.hxx +++ b/oox/inc/oox/mathml/importutils.hxx @@ -76,6 +76,8 @@ public: bool hasAttribute( int token ) const; rtl::OUString attribute( int token, const rtl::OUString& def = rtl::OUString()) const; bool attribute( int token, bool def ) const; + sal_Unicode attribute( int token, sal_Unicode def ) const; + // when adding more attribute() overloads, add also to XmlStream itself protected: std::map< int, rtl::OUString > attrs; }; @@ -100,6 +102,11 @@ public: */ bool attribute( int token, bool def ) const; /** + @overload + */ + sal_Unicode attribute( int token, sal_Unicode def ) const; + // when adding more attribute() overloads, add also to XmlStream::AttributeList and inline below + /** 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 ))'. */ @@ -190,6 +197,12 @@ bool XmlStream::Tag::attribute( int t, bool def ) const return attributes.attribute( t, def ); } +inline +sal_Unicode XmlStream::Tag::attribute( int t, sal_Unicode def ) const +{ + return attributes.attribute( t, def ); +} + } // namespace } // namespace |