Description: Writer's Groupedbar. Wrong name of item Print preview in drop-down menu File. It is "Close preview" in 6.1 beta 2 Steps to Reproduce: 0. Make sure that you activated experimental features 1. Open Writer 2. Select menu View->User interface->Groupedbar 3. Open drop-down menu File and look at item "Close preview" Actual Results: Item has wrong name "Close preview" Expected Results: Item has correctly name "Print preview" Reproducible: Always User Profile Reset: No Additional Info:
On pc Debian x86-64 with master sources updated today, I could reproduce this.
GenericCommands.xcu <node oor:name=".uno:PrintPreview" oor:op="replace"> <prop oor:name="Label" oor:type="xs:string"> <value xml:lang="en-US">Print Pr~eview</value> </prop> <prop oor:name="TooltipLabel" oor:type="xs:string"> <value xml:lang="en-US">Toggle Print Preview</value> </prop> <prop oor:name="PopupLabel" oor:type="xs:string"> <value xml:lang="en-US">Close Preview</value> </prop> <prop oor:name="Properties" oor:type="xs:int"> <value>9</value> </prop> </node> it look like NB use PopupLabel how can I change the behavior that NB use the default name?
(In reply to andreas_k from comment #2) > it look like NB use PopupLabel how can I change the behavior that NB use the > default name? You can try this (didn't test, but it should work): 1) Extract the "Close Preview" string to a new command like this: <node oor:name=".uno:ClosePrintPreview" oor:op="replace"> <prop oor:name="Label" oor:type="xs:string"> <value xml:lang="en-US">Close Preview</value> </prop> <prop oor:name="TargetURL" oor:type="xs:string"> <value>.uno:PrintPreview</value> </prop> <prop oor:name="Properties" oor:type="xs:int"> <value>1</value> </prop> </node> 2) Link the menu icon of .uno:ClosePrintPreview to .uno:PrintPreview in various links.txt files. 3) Change the various sw/uiconfig/*/popupmenu/preview.xml to use .uno:ClosePrintPreview instead of .uno:PrintPreview. (and test it to make sure it still works). 4) Remove the PopupLabel of .uno:PrintPreview.
I don't know how to fix it, sorry. Should be fixed
*** Bug 118737 has been marked as a duplicate of this bug. ***
*** Bug 118763 has been marked as a duplicate of this bug. ***
(In reply to Maxim Monastirsky from comment #3) > (In reply to andreas_k from comment #2) > > it look like NB use PopupLabel how can I change the behavior that NB use the > > default name? > > You can try this (didn't test, but it should work): > Hi Maxim, Any chance you could provide a fix for this issue?
*** Bug 124811 has been marked as a duplicate of this bug. ***
*** Bug 128097 has been marked as a duplicate of this bug. ***
*** Bug 139459 has been marked as a duplicate of this bug. ***
*** Bug 142140 has been marked as a duplicate of this bug. ***
Justin Luth committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/506db23af4da2c5c8775fb0fd6fb9b8668e2fe86 tdf#118335 notebookbar: set visible false for PrintPreview in MenuFile It will be available in 24.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
This bug report is not fixed, just mitigated. Leaving it open.
Strange. Already in 2004 there was .uno:ClosePreview, so not sure why that wasn't recommended for the preview.xml. SC uses that, so do the same for SW. That seems to be the only place where PopupLabel is desired AFAICS, so after that it should be safe to remove PopupLabel from PrintPreview (except I imagine for customized extensions or stuff saved in LO profiles).
Justin Luth committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/736cf835b9edb7a18fa52a12b03c252a9b63ff7c tdf#118335 use .uno:ClosePreview instead of PrintPreview It will be available in 24.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Justin Luth committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/cc836756d35df4ab8f54a24bd495dd1b8e1c6be9 tdf#118335 remove "Close Preview" PopupLabel from uno:PrintPreview It will be available in 24.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Justin Luth committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/3f35fd1a37b22ac0d501ae2aa1d39e12969c7628 Revert "tdf#118335 notebookbar: set visible false for PrintPreview in MenuFile" It will be available in 24.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.