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
63c8904a
Kaydet (Commit)
63c8904a
authored
Ock 08, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw document model xml dump: include annotation marks
Change-Id: Iea687761a137650965ed48340063d20b6489b531
üst
6cdf269a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
nodedump.cxx
sw/source/core/docnode/nodedump.cxx
+18
-0
No files found.
sw/source/core/docnode/nodedump.cxx
Dosyayı görüntüle @
63c8904a
...
...
@@ -142,6 +142,21 @@ void MarkManager::dumpAsXml( xmlTextWriterPtr w )
writer
.
endElement
();
}
writer
.
endElement
();
writer
.
startElement
(
"annotationmarks"
);
for
(
const_iterator_t
it
=
m_vAnnotationMarks
.
begin
();
it
!=
m_vAnnotationMarks
.
end
();
++
it
)
{
pMark_t
pMark
=
*
it
;
writer
.
startElement
(
"annotationmark"
);
writer
.
writeFormatAttribute
(
"startNode"
,
TMP_FORMAT
,
pMark
->
GetMarkStart
().
nNode
.
GetIndex
());
writer
.
writeFormatAttribute
(
"startOffset"
,
TMP_FORMAT_I32
,
pMark
->
GetMarkStart
().
nContent
.
GetIndex
());
writer
.
writeFormatAttribute
(
"endNode"
,
TMP_FORMAT
,
pMark
->
GetMarkEnd
().
nNode
.
GetIndex
());
writer
.
writeFormatAttribute
(
"endOffset"
,
TMP_FORMAT_I32
,
pMark
->
GetMarkEnd
().
nContent
.
GetIndex
());
OString
txt8
=
OUStringToOString
(
pMark
->
GetName
(),
RTL_TEXTENCODING_UTF8
);
writer
.
writeFormatAttribute
(
"name"
,
"%s"
,
BAD_CAST
(
txt8
.
getStr
()));
writer
.
endElement
();
}
writer
.
endElement
();
writer
.
endElement
();
}
}
// namespace mark
...
...
@@ -422,6 +437,9 @@ void SwTxtNode::dumpAsXml( xmlTextWriterPtr w )
case
RES_TXTATR_AUTOFMT
:
pWhich
=
"autofmt"
;
break
;
case
RES_TXTATR_ANNOTATION
:
pWhich
=
"annotation"
;
break
;
default
:
break
;
}
...
...
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