Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
343538e2
Kaydet (Commit)
343538e2
authored
Kas 22, 2012
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use the method from orcus to get the short version of xml namespace name.
Change-Id: I5d64ae380982c09f53dacb1eac721430674e9a31
üst
9d6ed5dd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
23 deletions
+7
-23
orcusxml.hxx
sc/inc/orcusxml.hxx
+0
-2
orcusxml.cxx
sc/source/core/tool/orcusxml.cxx
+0
-8
xmlcontext.cxx
sc/source/filter/orcus/xmlcontext.cxx
+7
-13
No files found.
sc/inc/orcusxml.hxx
Dosyayı görüntüle @
343538e2
...
...
@@ -76,8 +76,6 @@ struct ScOrcusImportXMLParam
std
::
vector
<
size_t
>
maNamespaces
;
CellLinksType
maCellLinks
;
RangeLinksType
maRangeLinks
;
SC_DLLPUBLIC
static
rtl
::
OString
getShortNamespaceName
(
size_t
nIndex
);
};
#endif
...
...
sc/source/core/tool/orcusxml.cxx
Dosyayı görüntüle @
343538e2
...
...
@@ -28,12 +28,4 @@ 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: */
sc/source/filter/orcus/xmlcontext.cxx
Dosyayı görüntüle @
343538e2
...
...
@@ -21,6 +21,8 @@
#include <orcus/orcus_xml.hpp>
#include <orcus/global.hpp>
#include <string>
namespace
{
ScOrcusXMLTreeParam
::
EntryData
&
setUserDataToEntry
(
...
...
@@ -43,17 +45,9 @@ OUString toString(const orcus::xml_structure_tree::entity_name& entity, const or
OUStringBuffer
aBuf
;
if
(
entity
.
ns
)
{
// Namespace exists. Namespaces are displayed as ns0, ns1, ns2, ....
size_t
index
=
walker
.
get_xmlns_index
(
entity
.
ns
);
if
(
index
==
orcus
::
xml_structure_tree
::
walker
::
index_not_found
)
// This namespace doesn't exist in this context. Something has gone wrong.
aBuf
.
append
(
"???"
);
else
{
OString
aName
=
ScOrcusImportXMLParam
::
getShortNamespaceName
(
index
);
aBuf
.
append
(
OUString
(
aName
.
getStr
(),
aName
.
getLength
(),
RTL_TEXTENCODING_UTF8
));
}
// Namespace exists. Use the short version of the xml namespace name for display.
std
::
string
aShortName
=
walker
.
get_xmlns_short_name
(
entity
.
ns
);
aBuf
.
appendAscii
(
aShortName
.
c_str
());
aBuf
.
append
(
':'
);
}
aBuf
.
append
(
OUString
(
entity
.
name
.
get
(),
entity
.
name
.
size
(),
RTL_TEXTENCODING_UTF8
));
...
...
@@ -212,8 +206,8 @@ public:
if
(
nsid
==
orcus
::
XMLNS_UNKNOWN_ID
)
return
;
OString
aAlias
=
ScOrcusImportXMLParam
::
getShortNamespaceN
ame
(
index
);
mrFilter
.
set_namespace_alias
(
a
Alias
.
getS
tr
(),
nsid
);
std
::
string
alias
=
mrNsRepo
.
get_short_n
ame
(
index
);
mrFilter
.
set_namespace_alias
(
a
lias
.
c_s
tr
(),
nsid
);
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment