summaryrefslogtreecommitdiff
path: root/sc/source/filter/xml/celltextparacontext.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-02-11 14:08:01 -0500
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-02-11 22:33:35 -0500
commit9e9f863727d12ef1a397bfd9f3b13259ed8d71b1 (patch)
tree65f7cf5e5783fdd217b41f2a988fbe9566ee77b0 /sc/source/filter/xml/celltextparacontext.hxx
parentcbf0cad82100308d6094eabf2440e53961b3329e (diff)
Import URL fields as well. Now I'm done.
Also fix Tokem to Token typos. Change-Id: If22b673f6833f3fd485472b17ec508e616e0d59d
Diffstat (limited to 'sc/source/filter/xml/celltextparacontext.hxx')
-rw-r--r--sc/source/filter/xml/celltextparacontext.hxx22
1 files changed, 19 insertions, 3 deletions
diff --git a/sc/source/filter/xml/celltextparacontext.hxx b/sc/source/filter/xml/celltextparacontext.hxx
index e9d11aa3ad30..9390a3eec275 100644
--- a/sc/source/filter/xml/celltextparacontext.hxx
+++ b/sc/source/filter/xml/celltextparacontext.hxx
@@ -35,6 +35,7 @@ public:
void PushFieldSheetName();
void PushFieldDate();
void PushFieldTitle();
+ void PushFieldURL(const OUString& rURL, const OUString& rRep);
};
/**
@@ -57,7 +58,6 @@ public:
/**
* This context handles <text:sheet-name> element inside <text:p>.
- *
*/
class ScXMLCellFieldSheetNameContext : public ScXMLImportContext
{
@@ -74,7 +74,6 @@ public:
/**
* This context handles <text:date> element inside <text:p>.
- *
*/
class ScXMLCellFieldDateContext : public ScXMLImportContext
{
@@ -91,7 +90,6 @@ public:
/**
* This context handles <text:title> element inside <text:p>.
- *
*/
class ScXMLCellFieldTitleContext : public ScXMLImportContext
{
@@ -106,6 +104,24 @@ public:
sal_uInt16 nPrefix, const OUString& rLocalName, const com::sun::star::uno::Reference<com::sun::star::xml::sax::XAttributeList>& xAttrList);
};
+/**
+ * This context handles <text:a> element inside <text:p>.
+ */
+class ScXMLCellFieldURLContext : public ScXMLImportContext
+{
+ ScXMLCellTextParaContext& mrParentCxt;
+ OUString maURL;
+ OUString maRep;
+public:
+ ScXMLCellFieldURLContext(ScXMLImport& rImport, sal_uInt16 nPrefix, const OUString& rLName, ScXMLCellTextParaContext& rParent);
+
+ virtual void StartElement(const com::sun::star::uno::Reference<com::sun::star::xml::sax::XAttributeList>& xAttrList);
+ virtual void EndElement();
+ virtual void Characters(const OUString& rChars);
+ virtual SvXMLImportContext* CreateChildContext(
+ sal_uInt16 nPrefix, const OUString& rLocalName, const com::sun::star::uno::Reference<com::sun::star::xml::sax::XAttributeList>& xAttrList);
+};
+
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ \ No newline at end of file