Apache OpenOffice (AOO) Bugzilla – Issue 73459
insert new autotext section - /../share/autotext/../ is selected by default but read-only
Last modified: 2017-05-20 10:45:33 UTC
Hi, if one inserts a new autotext section via gui, the "WritePath" is not the first (default) entry in the listbox where you can select the path... the first entry points to the "office/share" folder, followed by the "UserPaths" and "WritePath" from path.xcu ... this will cause big problems - most users try to create new sections inside the "office/shared" folder ... instead of using the "WritePath" I remember, this is different from oo 1.5 ... Is it useful to add the "office/shared" folder ? Example path.xcu: <node oor:name="AutoText"> <prop oor:name="UserPaths" oor:type="oor:string-list"> <value>file:///D:/XXX/atcontainer1 file:///D:/XXX/atcontainer2</value> </prop> <prop oor:name="WritePath" oor:type="xs:string"> <value>file:///E:/user/atcontainer</value> </prop> </node> Listbox file:///D:/Programs/office/shared/... file:///D:/XXX/atcontainer1 file:///D:/XXX/atcontainer2 file:///E:/user/atcontainer regards Oliver
Confirming with OO 2.1 on WinXP.
Reassigned to SBA.
SBA: Scenario in Writer: - [have Text selected] - Edit-AutoText - Click "Categories" -> The default path /.../share/.../ is read-only (Unless on a Windows machine where the user has all rights to destroy the system etc. :-)) -> Beside the "normal hurdle" that a name must be given before "NEW" gets enabled, the user has to "figure out" that the default path is read-only and must be changed first. This is a trap hindering to intuitively use this feature. This is not a P3 Defect because no functionality is broken. Change Prio to P4. Adjusted summary. to reflect the findings Reassigned to OS.
verified in oo 3.1 - basis/share/autotext is still shown as first entry
a possible solution for this problem could look like: - get index for writeable AutotextContainer - preselect listbox entry btw: have a look at the misspelled property: "AutoText_writable" REM ***** BASIC ***** OPTION EXPLICIT Sub Main Dim oATContainer as Object oATContainer = CreateUnoService("com.sun.star.text.AutoTextContainer") oATContainer.insertNewByName("xxx" & GetWritableAutotextContainer()) End Sub Function GetWritableAutotextContainer() as String On Local Error Goto ErrorHandler Dim oSettings as Object Dim oPathSettings as Object Dim mPaths() as String Dim i as Integer oSettings = createUnoService("com.sun.star.util.PathSettings") mPaths() = Split(oSettings.AutoText, ";") For i = 0 To uBound(mPaths()) If mPaths(i) = oSettings.AutoText_writable Then GetWritableAutotextContainer = "*" & i Exit Function EndIf Next i ErrorHandler: GetWritableAutotextContainer = "" End Function
Reset the assignee to the default "issues@openoffice.apache.org".