summaryrefslogtreecommitdiff
path: root/oox/inc
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2012-07-23 16:59:13 +0200
committerMiklos Vajna <vmiklos@suse.cz>2012-07-23 17:18:36 +0200
commit4a62512086fe71d98f3de95706ab1350625a7616 (patch)
treedde8d38055316471e466eab209d0ddabfb9e0be9 /oox/inc
parentb8b792babfa63ce2f59104117c961e96d8e265a7 (diff)
oox::formulaimport::XmlStream: allow avoiding XFastAttributeList
Change-Id: Iba0ad5ae72920f27e8a443a043c5891b102aee98
Diffstat (limited to 'oox/inc')
-rw-r--r--oox/inc/oox/mathml/importutils.hxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/oox/inc/oox/mathml/importutils.hxx b/oox/inc/oox/mathml/importutils.hxx
index fc0e276495ac..771851562996 100644
--- a/oox/inc/oox/mathml/importutils.hxx
+++ b/oox/inc/oox/mathml/importutils.hxx
@@ -133,6 +133,7 @@ public:
struct OOX_DLLPUBLIC AttributeList
{
bool hasAttribute( int token ) const;
+ OUString& operator[] (int token);
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;
@@ -148,6 +149,8 @@ public:
Tag( int token = XML_TOKEN_INVALID,
const com::sun::star::uno::Reference< com::sun::star::xml::sax::XFastAttributeList >& attributes = com::sun::star::uno::Reference< com::sun::star::xml::sax::XFastAttributeList >(),
const rtl::OUString& text = rtl::OUString());
+ Tag( int token,
+ const AttributeList& attribs);
int token; ///< tag type, or XML_TOKEN_INVALID
AttributeList attributes;
rtl::OUString text;
@@ -236,7 +239,9 @@ class OOX_DLLPUBLIC XmlStreamBuilder
{
public:
void appendOpeningTag( int token,
- const com::sun::star::uno::Reference< com::sun::star::xml::sax::XFastAttributeList >& attributes );
+ const com::sun::star::uno::Reference< com::sun::star::xml::sax::XFastAttributeList >& attributes = com::sun::star::uno::Reference< com::sun::star::xml::sax::XFastAttributeList >());
+ void appendOpeningTag( int token,
+ const AttributeList& attribs );
void appendClosingTag( int token );
// appends the characters after the last appended token
void appendCharacters( const rtl::OUString& characters );