Issue 73459 - insert new autotext section - /../share/autotext/../ is selected by default but read-only
Summary: insert new autotext section - /../share/autotext/../ is selected by default b...
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: ui (show other issues)
Version: OOo 2.1
Hardware: All All
: P4 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-14 14:16 UTC by Oliver Brinzing
Modified: 2017-05-20 10:45 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Oliver Brinzing 2007-01-14 14:16:05 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
Comment 1 kpalagin 2007-01-14 17:34:10 UTC
Confirming with OO 2.1 on WinXP.
Comment 2 michael.ruess 2007-01-15 07:06:56 UTC
Reassigned to SBA.
Comment 3 stefan.baltzer 2007-01-30 12:18:15 UTC
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.
Comment 4 Oliver Brinzing 2009-05-19 11:40:20 UTC
verified in oo 3.1 - basis/share/autotext is still shown as first entry
Comment 5 Oliver Brinzing 2010-10-22 06:33:40 UTC
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
Comment 6 Marcus 2017-05-20 10:45:33 UTC
Reset the assignee to the default "issues@openoffice.apache.org".