659acfbb7d
Mainting XML code is easier if we need to change a font name or font size for asian and complex. See tdf#114749 or tdf#114746 For Classy_red.otp, Object 1 was renamed Object1, as no space are allowed in file names. Change-Id: I6ed0b4df20943396640a9d9b749b77d5ba16ed2d Update: as suggested by Mark, add indentation with xmllint --format Reviewed-on: https://gerrit.libreoffice.org/47221 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mark Hung <marklh9@gmail.com> Reviewed-by: Heiko Tietze <tietze.heiko@gmail.com>
38 lines
2.2 KiB
Text
38 lines
2.2 KiB
Text
Contains templates, clipart galleries, palettes, symbol font, autocorrections, autotexts etc.
|
|
|
|
How-to add a new gallery:
|
|
+ create a directory extras/source/gallery/foo/
|
|
+ create a .str file extras/source/gallery/foo/foo.str
|
|
+ add a [foo] section to extras/source/gallery/share/gallery_names.ulf
|
|
+ add a Gallery_foo.mk at the top-level (and mention in Module_extra.mk)
|
|
+ add a new GALLERY_FILELIST statement in scp2/
|
|
|
|
How-to add a new autotext category
|
|
+ create a directory extras/source/autotext/lang/xx/foo/ where xx is your lang code
|
|
+ unzip your foo.bau autotext file in this directory (including an empty mimetype file)
|
|
+ add xx/foo.bau in extras/AllLangPackage_autotextshare.mk
|
|
+ in extras/CustomTarget_autotextshare.mk:
|
|
+ add xx/foo in extras_AUTOTEXTSHARE_AUTOTEXTS
|
|
+ add all files contained in foo.bau (except mimetype) in extras_AUTOTEXTSHARE_XMLFILES
|
|
+ if foo.bau contains files with other extension than .xml, .rdf, .svm and .png
|
|
+ add a CPY call at the end of the file
|
|
|
|
How-to add a new autotext to an existing category
|
|
+ create a directory extras/source/autotext/lang/xx/standard/FOO/ to add it in category standard of lang xx
|
|
+ add files of the autotext (at least FOO.xml for an unformatted autotext)
|
|
+ add autotext name in extras/source/autotext/lang/xx/standard/BlockList.xml
|
|
+ add all files of autotext in extras/source/autotext/lang/xx/standard/META-INF/manifest.xml
|
|
+ in extras/CustomTarget_autotextshare.mk:
|
|
+ add all files of autotext in extras_AUTOTEXTSHARE_XMLFILES
|
|
+ if some files have different extension from .xml, .rdf, .svm and .png
|
|
+ add a CPY call at the end of the file
|
|
|
|
How-to add a new Impress template
|
|
+ clean-up template file as indicated on wiki https://wiki.documentfoundation.org/Documentation/HowTo/Impress/Make_template_language_independent
|
|
+ unzip Foo.otp in extras/source/templates/presnt/Foo (no space allowed in any file names)
|
|
+ add Foo.otp in Package_tplpresnt.mk
|
|
+ in CustomTarget_tplpresnt.mk:
|
|
+ add Foo / in extras_TEMPLATES_PRESENTATIONS
|
|
+ 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
|