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
520bb768
Kaydet (Commit)
520bb768
authored
Ara 14, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
DOC export: write stringTable in SmartTagData
Change-Id: I05eda6067308119a388238eed356531851000691
üst
8f52bb0b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
wrtww8.cxx
sw/source/filter/ww8/wrtww8.cxx
+18
-3
No files found.
sw/source/filter/ww8/wrtww8.cxx
Dosyayı görüntüle @
520bb768
...
...
@@ -319,11 +319,12 @@ class WW8_WrtFactoids: private boost::noncopyable
{
std
::
vector
<
WW8_CP
>
m_aStartCPs
;
std
::
vector
<
WW8_CP
>
m_aEndCPs
;
std
::
vector
<
std
::
map
<
OUString
,
OUString
>
>
m_aStatements
;
public
:
WW8_WrtFactoids
();
~
WW8_WrtFactoids
();
void
Append
(
WW8_CP
nStartCp
,
WW8_CP
nEndCp
);
void
Append
(
WW8_CP
nStartCp
,
WW8_CP
nEndCp
,
const
std
::
map
<
OUString
,
OUString
>&
rStatements
);
void
Write
(
WW8Export
&
rWrt
);
}
;
...
...
@@ -335,10 +336,11 @@ WW8_WrtFactoids::~WW8_WrtFactoids()
{
}
void
WW8_WrtFactoids
::
Append
(
WW8_CP
nStartCp
,
WW8_CP
nEndCp
)
void
WW8_WrtFactoids
::
Append
(
WW8_CP
nStartCp
,
WW8_CP
nEndCp
,
const
std
::
map
<
OUString
,
OUString
>&
rStatements
)
{
m_aStartCPs
.
push_back
(
nStartCp
);
m_aEndCPs
.
push_back
(
nEndCp
);
m_aStatements
.
push_back
(
rStatements
);
}
void
WW8_WrtFactoids
::
Write
(
WW8Export
&
rExport
)
...
...
@@ -404,6 +406,19 @@ void WW8_WrtFactoids::Write(WW8Export& rExport)
aFactoidType
.
m_aTag
=
"RDF"
;
WW8SmartTagData
aSmartTagData
;
aSmartTagData
.
m_aPropBagStore
.
m_aFactoidTypes
.
push_back
(
aFactoidType
);
std
::
set
<
OUString
>
aSet
;
for
(
const
std
::
map
<
OUString
,
OUString
>&
rStatements
:
m_aStatements
)
{
// Statements for a single text node.
for
(
const
std
::
pair
<
OUString
,
OUString
>&
rPair
:
rStatements
)
{
aSet
.
insert
(
rPair
.
first
);
aSet
.
insert
(
rPair
.
second
);
}
}
aSmartTagData
.
m_aPropBagStore
.
m_aStringTable
.
assign
(
aSet
.
begin
(),
aSet
.
end
());
aSmartTagData
.
Write
(
rExport
);
rExport
.
pFib
->
lcbFactoidData
=
rStream
.
Tell
()
-
rExport
.
pFib
->
fcFactoidData
;
}
...
...
@@ -1477,7 +1492,7 @@ void WW8Export::AppendSmartTags(const SwTextNode& rTextNode)
if
(
!
aStatements
.
empty
())
{
WW8_CP
nCP
=
Fc2Cp
(
Strm
().
Tell
());
m_pFactoids
->
Append
(
nCP
,
nCP
);
m_pFactoids
->
Append
(
nCP
,
nCP
,
aStatements
);
}
}
...
...
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