Apache OpenOffice (AOO) Bugzilla – Issue 120300
PreventHelpTips is not documented in com.sun.star.text.ViewSettings
Last modified: 2017-05-20 09:32:02 UTC
Property "PreventHelpTips" is not documented in com.sun.star.text.ViewSettings Sub Main Dim oDoc as Object Dim oController as Object oDoc = ThisComponent oController = oDoc.getCurrentController() Dim oViewSettings as Object oViewSettings = oController.getViewSettings() Dim oPropInfo as Object oPropInfo = oViewSettings.getPropertySetInfo() If oPropInfo.hasPropertyByName("PreventHelpTips") Then 'Toggle it Dim bPropVal as Boolean bPropVal = oViewSettings.getPropertyValue("PreventHelpTips") oViewSettings.setPropertyValue("PreventHelpTips", NOT bPropVal) End If End Sub
While we are at it, it seems it would be better to rename it to "PreventContentTips". When true, this property prevents Writer from displaying a help balloon when the mouse if over a text content on the edit window, see void SwEditWin::RequestHelp(const HelpEvent &rEvt) main/sw/source/ui/docvw/edtwin2.cxx
(In reply to comment #1) > While we are at it, it seems it would be better to rename it to > "PreventContentTips". > > When true, this property prevents Writer from displaying a help balloon when > the mouse if over a text content on the edit window, see > > void SwEditWin::RequestHelp(const HelpEvent &rEvt) > main/sw/source/ui/docvw/edtwin2.cxx In order to be consistent with the other ViewSettings, it is better to rename it to "ShowContentTips". This is change is rather safe because: a) it is hardly used in the source code (only one time) b) this property is undocumented, so it's likely that there is no client code using it
Created attachment 78673 [details] Patch to add ShowContentTips property to Writer's ViewSettings The patch - renames PreventTips to ShowContentTips in officecfg/registry/schema/org/openoffice/Office/Writer.xcs - documents the property in the IDL definition offapi/com/sun/star/text/ViewSettings.idl - changes functions names, enums and constants to be consistent with the new naming (binfilter, sw) - adapts the code that uses PreventTips (sfx2)
"arielch" committed SVN revision 1363583 into trunk: #i120300# - Add new property "ShowContentTips" in com.sun.star.text.ViewSettings
Fixed in trunk