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
59a68fe4
Kaydet (Commit)
59a68fe4
authored
Agu 14, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add rng schema for model.xml
Change-Id: I1b75c5c42a131c7994868ea3261120c6a5b7650e
üst
a7d21497
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
42 deletions
+0
-42
model.rng
writerfilter/documentation/ooxml/model.rng
+0
-0
model.xml
writerfilter/documentation/ooxml/model.xml
+0
-42
No files found.
writerfilter/documentation/ooxml/model.rng
0 → 100644
Dosyayı görüntüle @
59a68fe4
This diff is collapsed.
Click to expand it.
writerfilter/documentation/ooxml/model.xml
deleted
100644 → 0
Dosyayı görüntüle @
a7d21497
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 (the Sprm structure specified a modification to a property of a
character, paragraph, table, or section in the binary .doc format) - 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