office-gobmx/extras
Caolán McNamara 55baaa526c for --without-templates still generate the template/common/presnt dir
but leave it empty

Change-Id: Ie7f95f6d01c669598305e24472c357c1b92ad1f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177353
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Rashesh Padia <rashesh.padia@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit e393a739fa890aeb77f189b62de4356043211490)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177392
Tested-by: Jenkins
2024-11-27 12:33:43 +01:00
..
source tdf#87605: Add new words to technical dictionary. 2024-10-20 07:09:19 +02:00
util
AllLangPackage_autotextshare.mk makefile simplification: replace $(call gb_CustomTarget_get_workdir,foo) 2024-05-03 16:06:14 +02:00
CustomTarget_autocorr.mk makefile simplification: replace $(call gb_CustomTarget_get_workdir,foo) 2024-05-03 16:06:14 +02:00
CustomTarget_autotextshare.mk makefile simplification: replace $(call gb_CustomTarget_get_workdir,foo) 2024-05-03 16:06:14 +02:00
CustomTarget_autotextuser.mk makefile simplification: replace $(call gb_CustomTarget_get_workdir,foo) 2024-05-03 16:06:14 +02:00
CustomTarget_gallsystem.mk makefile simplification: replace $(call gb_CustomTarget_get_workdir,foo) 2024-05-03 16:06:14 +02:00
CustomTarget_glade.mk makefile simplification: replace $(call gb_CustomTarget_get_workdir,foo) 2024-05-03 16:06:14 +02:00
CustomTarget_opensymbol.mk makefile simplification: replace $(call gb_CustomTarget_get_workdir,foo) 2024-05-03 16:06:14 +02:00
CustomTarget_templates.mk tdf#161930 Copy only once mimetype 2024-11-24 16:33:47 +01:00
Gallery_backgrounds.mk Area fill bitmap presets invoice paper language fix 2020-05-12 20:38:46 +02:00
Gallery_sound.mk Further work on the "Mac-like app structure" option 2013-08-18 21:11:16 +03:00
Makefile gbuildize extras 2012-08-24 13:22:05 +02:00
Module_extras.mk for --without-templates still generate the template/common/presnt dir 2024-11-27 12:33:43 +01:00
Package_autocorr.mk makefile simplification: replace $(call gb_CustomTarget_get_workdir,foo) 2024-05-03 16:06:14 +02:00
Package_autotextuser.mk makefile simplification: replace $(call gb_CustomTarget_get_workdir,foo) 2024-05-03 16:06:14 +02:00
Package_cfgsrvnolang.mk tdf#99967 Drop Web Wizard 2017-02-17 22:21:57 +00:00
Package_cfgusr.mk gbuild: set Package default target to INSTDIR 2013-10-28 20:17:26 +01:00
Package_database.mk gbuild: set Package default target to INSTDIR 2013-10-28 20:17:26 +01:00
Package_databasebiblio.mk gbuild: set Package default target to INSTDIR 2013-10-28 20:17:26 +01:00
Package_fonts.mk makefile simplification: replace $(call gb_CustomTarget_get_workdir,foo) 2024-05-03 16:06:14 +02:00
Package_gallbullets.mk Revert "tdf#139076 update Bullet icons with sexy .svg icons" 2021-01-20 12:32:17 +01:00
Package_gallmytheme.mk Resolves tdf#132904 and tdf#133788 - Gallery clean-up 2020-06-17 12:35:56 +02:00
Package_gallroot.mk gbuild: set Package default target to INSTDIR 2013-10-28 20:17:26 +01:00
Package_gallsystem.mk tdf#133788 Missing pieces for Gallery localization 2020-07-15 09:41:59 +02:00
Package_gallsystemstr.mk makefile simplification: replace $(call gb_CustomTarget_get_workdir,foo) 2024-05-03 16:06:14 +02:00
Package_glade.mk makefile simplification: replace $(call gb_CustomTarget_get_workdir,foo) 2024-05-03 16:06:14 +02:00
Package_labels.mk gbuild: set Package default target to INSTDIR 2013-10-28 20:17:26 +01:00
Package_newfiles.mk gbuild: set Package default target to INSTDIR 2013-10-28 20:17:26 +01:00
Package_palettes.mk Rename mso-highlight color palette to customizatio 2020-04-03 10:03:27 +02:00
Package_resource_fonts.mk makefile simplification: replace $(call gb_CustomTarget_get_workdir,foo) 2024-05-03 16:06:14 +02:00
Package_templates.mk makefile simplification: replace $(call gb_CustomTarget_get_workdir,foo) 2024-05-03 16:06:14 +02:00
Package_tplpresnt.mk for --without-templates still generate the template/common/presnt dir 2024-11-27 12:33:43 +01:00
Package_tplwizard.mk makefile simplification: replace $(call gb_CustomTarget_get_workdir,foo) 2024-05-03 16:06:14 +02:00
Package_tplwizbitmap.mk tdf#40966: convert last used BMPs to PNG; cleanup unused 2019-03-13 12:31:35 +01:00
Package_tplwizdesktop.mk tdf#161173 Replace HTML template and idxexample 2024-06-12 10:42:19 +02:00
Package_wordbook.mk tdf#95024 Add user dictionary for hu dict package 2018-01-05 01:58:33 +01:00
Personas.mk Fix typos 2018-10-28 04:00:32 +01:00
README.md makefile simplification: cleanup template packaging mess 2024-06-28 12:56:49 +02:00
template_files.mk Blueprint Plans Impress template SVG background 2024-09-15 17:17:26 +02:00

Extra Modules

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. xx must exactly fit with an UI lang code.
    • unzip your foo.bau autotext file in this directory (excluding an empty mimetype file)
    • add xx/foo.bau in extras/AllLangPackage_autotextshare.mk
    • in extras/CustomTarget_autotextshare.mk:
      • add all files contained in foo.bau (except mimetype) in extras_AUTOTEXTSHARE_XMLFILES
  • 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
  • How-to add a new template category

    • add long category name in TEMPLATE_LONG_NAMES_ARY in sfx2/inc/doctempl.hrc
    • add short category name in TEMPLATE_SHORT_NAMES_ARY in sfx2/source/doc/doctemplates.cxx
  • How-to add a new template to an existing category

    • clean-up template file as indicated on wiki https://wiki.documentfoundation.org/Documentation/HowTo/Impress/Make_template_language_independent
    • recommendation for settings.xml are given on wiki https://wiki.documentfoundation.org/Documentation/CompatibilityFlags#Settings_to_include_in_a_new_template
    • add <dc:title>Foo</dc:title> in meta.xml to make presentation name translatable
    • choose a template category <Category>
    • unzip Foo.ot? (? = p, t, s or g) in extras/source/templates/<Category>/Foo (no space allowed in any file names)
    • add <Category>/Foo.ot? / in Package_templates.mk (or Package_tplpresnt.mk if it's a presentation)
    • in template_files.mk:
      • add e.g. <Category>/Foo/settings.xml (and all other files which are not automatically added) to extra_files_COMMON (or extra_files_PRESENTATIONS in case of a presentation template)
    • for translation of template name
      • define a new STR_TEMPLATE_NAMExx in include/sfx2/strings.hrc
      • define a new STR_TEMPLATE_NAMExx_DEF in sfx2/inc/strings.hxx
      • in sfx2/source/doc/doctempl.cxx
        • add STR_TEMPLATE_NAMExx_DEF to aTemplateNames
        • add STR_TEMPLATE_NAMExx to STR_TEMPLATE_NAME