summaryrefslogtreecommitdiff
path: root/sc/source/core/tool/orcusxml.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-11-21 15:21:41 -0500
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-11-28 13:28:32 -0500
commit9d6ed5dd8ba3824ba0f1a9d179cfd9b2f8ba75b3 (patch)
treedd23779631b40ffca0f8becdda3223b484e9ee29 /sc/source/core/tool/orcusxml.cxx
parent3db55f9da3577653911c683091c72722288bc456 (diff)
Correctly handle xml namespaces when importing xml content.
But it's still not working. I need to dig some more. Change-Id: I06d4d70e1a4234b031741a496f2651d016c35ecc
Diffstat (limited to 'sc/source/core/tool/orcusxml.cxx')
-rw-r--r--sc/source/core/tool/orcusxml.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/sc/source/core/tool/orcusxml.cxx b/sc/source/core/tool/orcusxml.cxx
index 3f3c93c159e2..cef0333440d1 100644
--- a/sc/source/core/tool/orcusxml.cxx
+++ b/sc/source/core/tool/orcusxml.cxx
@@ -10,6 +10,7 @@
#include "orcusxml.hxx"
#include "svtools/treelistbox.hxx"
+#include "rtl/strbuf.hxx"
ScOrcusXMLTreeParam::EntryData::EntryData(EntryType eType) :
meType(eType), maLinkedPos(ScAddress::INITIALIZE_INVALID), mbRangeParent(false), mbLeafNode(true) {}
@@ -27,4 +28,12 @@ const ScOrcusXMLTreeParam::EntryData* ScOrcusXMLTreeParam::getUserData(const SvT
ScOrcusImportXMLParam::CellLink::CellLink(const ScAddress& rPos, const OString& rPath) :
maPos(rPos), maPath(rPath) {}
+OString ScOrcusImportXMLParam::getShortNamespaceName(size_t nIndex)
+{
+ OStringBuffer aBuf;
+ aBuf.append("ns");
+ aBuf.append(static_cast<sal_Int32>(nIndex));
+ return aBuf.makeStringAndClear();
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */