summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeth Chaiklin <sdc.blanco@youmail.dk>2020-10-21 12:34:36 +0200
committerSeth Chaiklin <sdc.blanco@youmail.dk>2020-10-21 13:02:22 +0200
commit4ff9c170c99c88f4af370692cb97a80e01bfa986 (patch)
tree40c1305d1e20a7048002ea2d49779fa146b8d803
parentd5943b6dbf5be06d643adda6a3b8435d2c74ea4b (diff)
tdf#137141 refactor switchinline into switch
need to put same <note> into module switch (because cannot use switchinline to indicate different menu sequences between modules. But have added variable to that text, so should avoid retranslating same text, and just have to translate each menu sequence. Change-Id: I375fc785730d71762a85fb70d97f02c0e6d676db Reviewed-on: https://gerrit.libreoffice.org/c/help/+/104593 Tested-by: Jenkins Reviewed-by: Seth Chaiklin <sdc.blanco@youmail.dk>
-rw-r--r--source/text/shared/01/05230100.xhp10
1 files changed, 9 insertions, 1 deletions
diff --git a/source/text/shared/01/05230100.xhp b/source/text/shared/01/05230100.xhp
index 6dfd7ea71a..02fbdcbe7b 100644
--- a/source/text/shared/01/05230100.xhp
+++ b/source/text/shared/01/05230100.xhp
@@ -138,7 +138,15 @@
<bookmark xml-lang="en-US" branch="hid/cui/ui/possizetabpage/TSB_AUTOGROW_HEIGHT" id="bm_id3154909" localize="false"/>
<h3 id="hd_id3145746" xml-lang="en-US">Fit height to text</h3>
<paragraph role="paragraph" id="par_id31540680" xml-lang="en-US"><ahelp hid="cui/ui/possizetabpage/TSB_AUTOGROW_HEIGHT">Expands the height of the object to the height of the text, if the object is smaller than the text.</ahelp></paragraph>
-<note id="par_id591602522244128">Adapt is only available for Text Boxes. To adapt Shapes to text, use <menuitem>Format</menuitem><switchinline select="appl"><caseinline select="CALC"><menuitem> - Object</menuitem></caseinline></switchinline><menuitem> - Text</menuitem></note>
+ </default>
+</switch>
+<switch select="appl">
+ <case select="WRITER"></case>
+ <case select="CALC"><note id="par_id841603276770477"><variable id="AdaptNote">Adapt is only available for Text Boxes. To adapt Shapes to text, use</variable> <menuitem>Format - Object - Text</menuitem>.</note>
+ </case>
+ <default>
+<note id="par_id591602522244128">
+<embedvar href="text/shared/01/05230100.xhp#AdaptNote"/> <menuitem>Format - Text</menuitem>.</note>
</default>
</switch>
<section id="relatedtopics">