diff options
author | Laurent BP <laurent.balland-poirier@laposte.net> | 2018-08-09 17:33:16 +0200 |
---|---|---|
committer | Heiko Tietze <tietze.heiko@gmail.com> | 2018-08-19 11:52:41 +0200 |
commit | 0378fa5f8c523e3d3b738b344ce6dc529760e9c5 (patch) | |
tree | 7299c509c35d01de15a494823ad40777843e6c31 /extras/README | |
parent | f61af646c5c3fe7e50aea01ede6a9d7ea53380f2 (diff) |
Writer templates: built from XML code
Maintaining XML code is easier if we need to change a font
(name or size). See tdf#114749
Change-Id: I1c1e5951c24863be717aef3dd22d533f5fd23a4f
Reviewed-on: https://gerrit.libreoffice.org/58787
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <tietze.heiko@gmail.com>
Tested-by: Heiko Tietze <tietze.heiko@gmail.com>
Diffstat (limited to 'extras/README')
-rw-r--r-- | extras/README | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/extras/README b/extras/README index 52c6d67cf1b8..2be6bcf28f16 100644 --- a/extras/README +++ b/extras/README @@ -36,3 +36,25 @@ How-to add a new Impress template + add files names contained in Foo.otp (except mimetype) in extras_PRESENTATIONS_XMLFILES + if Foo.otp contains files with other extension than .xml, .svm, .svg, .png and .jpg + add a CPY call at the end of file + +How-to add a new Writer template + + clean-up template file as much as possible, and choose a template category <Category> + + unzip Foo.ott in extras/source/templates/<Category>/Foo (no space allowed in any file names) + + add Foo.ott in Package_<tplCategory>.mk + + in CustomTarget_<tplCategory>.mk: + + add Foo / in extras_TEMPLATES_<CATEGORY> + + add files names contained in Foo.otp (except mimetype) in extras_<CATEGORY>_XMLFILES + + if Foo.ott contains files with other extension than .xml, rdf, .svm, .svg, .png and .jpg + + add a CPY call at the end of file + +How-to add a new template category + + create a directory extras/source/templates/foo/ + + unzip your foo0.ott template files in extras/source/templates/foo/foo0 + + add Package_tplfoo and CustomTarget_tplfoo in Module_extras.mk + + use other category Package_tplcategory.mk to create Package_tplfoo.mk + + use other category CustomTarget_tplcategory.mk to create CustomTarget_tplfoo.mk + + replace all category by foo and CATEGORY by FOO + + add all files contained in foo0.ott (except mimetype) in extras_FOO_XMLFILES + + if foo0.ott contains files with other extension than .xml, .rdf, .svm, .svg, .png and .jpg + + add a CPY call at the end of the file + + optionaly, replace extension ott (4 places) |