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
741077bf
Kaydet (Commit)
741077bf
authored
Haz 09, 2016
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sc: eeek, a boost::ptr_vector! take it off! take it off!
Change-Id: I3fffecd295577cc8eaa521e819b3c922f8c3f56e
üst
1193443b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
orcusxml.hxx
sc/inc/orcusxml.hxx
+3
-3
xmlcontext.cxx
sc/source/filter/orcus/xmlcontext.cxx
+7
-6
No files found.
sc/inc/orcusxml.hxx
Dosyayı görüntüle @
741077bf
...
...
@@ -15,7 +15,7 @@
#include <vcl/image.hxx>
#include <vector>
#include <
boost/ptr_container/ptr_vector.hpp
>
#include <
memory
>
class
SvTreeListEntry
;
...
...
@@ -38,7 +38,7 @@ struct ScOrcusXMLTreeParam
SC_DLLPUBLIC
EntryData
(
EntryType
eType
);
};
typedef
boost
::
ptr_vector
<
EntryData
>
UserDataStoreType
;
typedef
std
::
vector
<
std
::
unique_ptr
<
EntryData
>
>
UserDataStoreType
;
Image
maImgElementDefault
;
Image
maImgElementRepeat
;
...
...
@@ -48,7 +48,7 @@ struct ScOrcusXMLTreeParam
* Store all custom data instances since the tree control doesn't manage
* the life cycle of user datas.
*/
UserDataStoreType
m
a
UserDataStore
;
UserDataStoreType
m
_
UserDataStore
;
static
SC_DLLPUBLIC
EntryData
*
getUserData
(
SvTreeListEntry
&
rEntry
);
static
SC_DLLPUBLIC
const
EntryData
*
getUserData
(
const
SvTreeListEntry
&
rEntry
);
...
...
sc/source/filter/orcus/xmlcontext.cxx
Dosyayı görüntüle @
741077bf
...
...
@@ -15,6 +15,7 @@
#include <svtools/treelistbox.hxx>
#include <svtools/treelistentry.hxx>
#include <ucbhelper/content.hxx>
#include <o3tl/make_unique.hxx>
#include <orcus/spreadsheet/import_interface.hpp>
#include <orcus/xml_structure_tree.hpp>
...
...
@@ -36,9 +37,9 @@ namespace {
ScOrcusXMLTreeParam
::
EntryData
&
setUserDataToEntry
(
SvTreeListEntry
&
rEntry
,
ScOrcusXMLTreeParam
::
UserDataStoreType
&
rStore
,
ScOrcusXMLTreeParam
::
EntryType
eType
)
{
rStore
.
push_back
(
new
ScOrcusXMLTreeParam
::
EntryData
(
eType
));
rEntry
.
SetUserData
(
&
rStore
.
back
());
return
rStore
.
back
();
rStore
.
push_back
(
o3tl
::
make_unique
<
ScOrcusXMLTreeParam
::
EntryData
>
(
eType
));
rEntry
.
SetUserData
(
rStore
.
back
().
get
());
return
*
rStore
.
back
();
}
void
setEntityNameToUserData
(
...
...
@@ -73,7 +74,7 @@ void populateTree(
return
;
ScOrcusXMLTreeParam
::
EntryData
&
rEntryData
=
setUserDataToEntry
(
*
pEntry
,
rParam
.
m
a
UserDataStore
,
*
pEntry
,
rParam
.
m
_
UserDataStore
,
bRepeat
?
ScOrcusXMLTreeParam
::
ElementRepeat
:
ScOrcusXMLTreeParam
::
ElementDefault
);
setEntityNameToUserData
(
rEntryData
,
rElemName
,
rWalker
);
...
...
@@ -103,7 +104,7 @@ void populateTree(
continue
;
ScOrcusXMLTreeParam
::
EntryData
&
rAttrData
=
setUserDataToEntry
(
*
pAttr
,
rParam
.
m
a
UserDataStore
,
ScOrcusXMLTreeParam
::
Attribute
);
setUserDataToEntry
(
*
pAttr
,
rParam
.
m
_
UserDataStore
,
ScOrcusXMLTreeParam
::
Attribute
);
setEntityNameToUserData
(
rAttrData
,
rAttrName
,
rWalker
);
rTreeCtrl
.
SetExpandedEntryBmp
(
pAttr
,
rParam
.
maImgAttribute
);
...
...
@@ -180,7 +181,7 @@ ScOrcusXMLContextImpl::~ScOrcusXMLContextImpl() {}
void
ScOrcusXMLContextImpl
::
loadXMLStructure
(
SvTreeListBox
&
rTreeCtrl
,
ScOrcusXMLTreeParam
&
rParam
)
{
rParam
.
m
a
UserDataStore
.
clear
();
rParam
.
m
_
UserDataStore
.
clear
();
std
::
string
aStrm
;
loadContentFromURL
(
maPath
,
aStrm
);
...
...
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