https://bugs.documentfoundation.org/show_bug.cgi?id=170904

            Bug ID: 170904
           Summary: Custom AutoFormat is written to installation folder,
                    but user might have no writing rights
           Product: LibreOffice
           Version: 26.8.0.0 alpha0+ master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 205648
  --> https://bugs.documentfoundation.org/attachment.cgi?id=205648&action=edit
Material for defining custom Autoformat for table

Open attached document and select its only database range "myData". Go to
Format > AutoFormat > New Style.

In that dialog set e.g.
Name: to "CustomStyle"
Select Property: Element: 'First Row'. Set its 'Cell Color' to e.g. 'Purple'
and its 'Text Color' to 'White'.
Select Property: Element: "Last Row". Set its 'Border Layout' to top-bottom
pair, its 'Border Width' to Medium and its 'Border Color' to 'Purple'.
OK

Save document.

Open the folder 'share' in the installation folder. Therein is a folder 'calc'.
It contains a file 'tablestyles.xml', in the case you have writing rights in
that folder. This file contains the markup for the table template
"CustomStyle".

In an enterprise environment, this behavior is problematic. Users have usually
no writing right in the installation folder. But the current implementation
does not inform the user, that writing is not possible. To test it, you can set
the 'share' folder temporarily to read only.

This does not mean, that there should not be such tablestyles.xml file. Such is
needed to have common styles for all users. But the user should be able to save
his table template into its own profile for the case he has no writing rights
in the 'share' folder. LibreOffice should then provide both locations for
selecting an table template to be applied.

I suggest to make the writing-path configurable, same as the paths for AutoText
and Templates, for example, in Tools > Options > LibreOffice > Paths.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to