From fa2801f2c349811e00c3f2f19f9ce62a68daa4dc Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Fri, 12 Sep 2014 12:09:17 +0300 Subject: Handle LIBO_SHARE_HELP_FOLDER Change-Id: I4f004321c58da1d81a2cc3c80504347db583d86a --- .../registry/data/org/openoffice/Office/Paths.xcu | 2 +- .../schema/org/openoffice/Office/Common.xcs | 4 +- officecfg/util/alllang.xsl | 52 +++++++++++++++++++--- officecfg/util/schema_trim.xsl | 44 ++++++++++++++++-- solenv/gbuild/Configuration.mk | 4 ++ solenv/gbuild/HelpTarget.mk | 2 +- 6 files changed, 95 insertions(+), 13 deletions(-) diff --git a/officecfg/registry/data/org/openoffice/Office/Paths.xcu b/officecfg/registry/data/org/openoffice/Office/Paths.xcu index 7568f4d2fb23..6d739e67d72f 100644 --- a/officecfg/registry/data/org/openoffice/Office/Paths.xcu +++ b/officecfg/registry/data/org/openoffice/Office/Paths.xcu @@ -98,7 +98,7 @@ - + diff --git a/officecfg/registry/schema/org/openoffice/Office/Common.xcs b/officecfg/registry/schema/org/openoffice/Office/Common.xcs index 8ac7f693abec..09a9b1867e54 100644 --- a/officecfg/registry/schema/org/openoffice/Office/Common.xcs +++ b/officecfg/registry/schema/org/openoffice/Office/Common.xcs @@ -1652,7 +1652,7 @@ Specifies the path to the Office help files. - $(instpath)/help + $(instpath)/@LIBO_SHARE_HELP_FOLDER@ @@ -1847,7 +1847,7 @@ Specifies the default directory where Office help files are located. - $(instpath)/help + $(instpath)/@LIBO_SHARE_HELP_FOLDER@ diff --git a/officecfg/util/alllang.xsl b/officecfg/util/alllang.xsl index 31b53bccd853..f5d9ae103fc5 100644 --- a/officecfg/util/alllang.xsl +++ b/officecfg/util/alllang.xsl @@ -35,6 +35,7 @@ en-US + @@ -341,19 +342,23 @@ - + - - + + + + - + - - + + + + @@ -378,4 +383,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/officecfg/util/schema_trim.xsl b/officecfg/util/schema_trim.xsl index 79b3c5c8cb4f..4ebac1c5b733 100644 --- a/officecfg/util/schema_trim.xsl +++ b/officecfg/util/schema_trim.xsl @@ -24,6 +24,7 @@ version="1.0"> + @@ -81,10 +82,12 @@ - + - - + + + + @@ -109,4 +112,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/solenv/gbuild/Configuration.mk b/solenv/gbuild/Configuration.mk index 06aa8a174816..e5b8a9a4e812 100644 --- a/solenv/gbuild/Configuration.mk +++ b/solenv/gbuild/Configuration.mk @@ -85,6 +85,7 @@ $(call gb_Helper_abbreviate_dirs,\ $(gb_Configuration_XSLTCOMMAND) --nonet \ -o $(1) \ --stringparam LIBO_SHARE_FOLDER $(LIBO_SHARE_FOLDER) \ + --stringparam LIBO_SHARE_HELP_FOLDER $(LIBO_SHARE_HELP_FOLDER) \ $(gb_XcsTarget_XSLT_SchemaTrim) \ $(3)) endef @@ -122,6 +123,7 @@ $(call gb_Helper_abbreviate_dirs,\ --stringparam xcs $(call gb_XcsTarget_for_XcuTarget,$(XCUFILE)) \ $(gb_Configuration__stringparam_schemaRoot) \ --stringparam LIBO_SHARE_FOLDER $(LIBO_SHARE_FOLDER) \ + --stringparam LIBO_SHARE_HELP_FOLDER $(LIBO_SHARE_HELP_FOLDER) \ --path $(SRCDIR)/officecfg/registry \ $(gb_XcuTarget_XSLT_AllLang) \ $(3)) @@ -158,6 +160,7 @@ $(call gb_Helper_abbreviate_dirs,\ $(gb_Configuration__stringparam_schemaRoot) \ --stringparam module $(notdir $(subst -,/,$(basename $(notdir $(2))))) \ --stringparam LIBO_SHARE_FOLDER $(LIBO_SHARE_FOLDER) \ + --stringparam LIBO_SHARE_HELP_FOLDER $(LIBO_SHARE_HELP_FOLDER) \ $(gb_XcuTarget_XSLT_AllLang) \ $(3)) endef @@ -255,6 +258,7 @@ $(call gb_Helper_abbreviate_dirs,\ $(gb_Configuration__stringparam_schemaRoot) \ --stringparam locale $(word 2,$(subst /, ,$(2))) \ --stringparam LIBO_SHARE_FOLDER $(LIBO_SHARE_FOLDER) \ + --stringparam LIBO_SHARE_HELP_FOLDER $(LIBO_SHARE_HELP_FOLDER) \ --path $(SRCDIR)/officecfg/registry \ $(gb_XcuTarget_XSLT_AllLang) \ $(3)) diff --git a/solenv/gbuild/HelpTarget.mk b/solenv/gbuild/HelpTarget.mk index 142f00e23593..a541a4776e80 100644 --- a/solenv/gbuild/HelpTarget.mk +++ b/solenv/gbuild/HelpTarget.mk @@ -656,7 +656,7 @@ endef # gb_HelpTarget__add_file target file define gb_HelpTarget__add_file -$(call gb_Package_add_file,$(call gb_HelpTarget_get_packagename,$(1)),help/$(call gb_HelpTarget__get_lang,$(1))/$(2),$(2)) +$(call gb_Package_add_file,$(call gb_HelpTarget_get_packagename,$(1)),$(LIBO_SHARE_HELP_FOLDER)/$(call gb_HelpTarget__get_lang,$(1))/$(2),$(2)) endef -- cgit