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
9f03ad24
Kaydet (Commit)
9f03ad24
authored
Ock 19, 2012
tarafından
Luboš Luňák
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
a feeble attempt at at least some docs for writerfilter
üst
58de34f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
model.xml
writerfilter/documentation/ooxml/model.xml
+41
-0
No files found.
writerfilter/documentation/ooxml/model.xml
0 → 100644
Dosyayı görüntüle @
9f03ad24
These are various notes about ooxml/model.xml and related stuff. They have been
mostly found out by trial and error, because existing documentation is poor
or nonexistent, so I don't actually understand writerfilter that much (and
think nothing nice about it) and don't think it (both writerfilter and my
understanding/liking of it) could be noticeably improved. In an ideal world
it should be nuked from orbit and started again from scratch with a saner design.
-
CT_xxx (Complex Type) - it seems to be used for XML elements
ST_xxx (Simple Type) - it seems to be used for XML attributes
- SPRM - no idea what that actually means, but in the context of OOXML it seems
to pretty much mean "XML element"
-
Format of the
<resource>
tag (shortened CT_Font example):
<resource
name=
"CT_Font"
resource=
"Properties"
tag=
"font"
>
<element
name=
"charset"
tokenid=
"ooxml:CT_Font_charset"
/>
<attribute
name=
"name"
tokenid=
"ooxml:CT_Font_name"
/>
</resource>
CT_Font is the type that is defined how it will be handled.
resource="XXX" means it will be handled by OOXMLFastContextHandlerXXX class
no idea what tag="font" means or if it matters
<element>
defines the
<w:charset>
subelement will be handled in sprm() function
as NS_ooxml::LN_CT_Font_charset case
<attribute>
defines the
<w:name>
attribute of the element will be handled
in attribute() function as NS_ooxml::LN_CT_Font_name case
in both cases sprm()/attribute() may mean actually any of the various strange
naming ideas like lcl_sprm()
-
If an element (and its subelements) are not processed but the element itself
does not require any special handling, make sure something like the below is present.
Otherwise null context will be created and the element and all its subelements
will be ignored.
<resource
name=
"CT_OMathPara"
resource=
"Stream"
tag=
"math"
/>
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