https://bugs.freedesktop.org/show_bug.cgi?id=61065

Petr Mladek <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #2 from Petr Mladek <[email protected]> ---
I think that we need to split it into two parts.

First, there are the the files sgXXX.sdg, sgXXX.sdv, and sgXXX.thm. I am not
entirely sure about the content. I think that they include things like the
gallery name, list of the referenced files, and thumbnails.

If you put these files into ~/.config/libreoffice/3/user/gallery, they are
migrated. It is defined in officecfg/registry/data/org/openoffice/Setup.xcu:

--- cut ---
<prop oor:name="IncludedFiles">
              <value>
                <it>.*/autotext/.*</it>
                <it>.*/autocorr/.*</it>
[...]
                <it>.*/gallery/.*</it>
                <it>.*/template/.*</it>
              </value>
            </prop>         
--- cut ---

See also
http://cgit.freedesktop.org/libreoffice/core/tree/officecfg/registry/data/org/openoffice/Setup.xcu?h=libreoffice-4-0#n834

I see this working with 4.0.4.2.


Second, the above index files point to the real pictures. There is not a
standard path where to store them. The index files just need to include the
path to them.

If you store these files in ~/.config/libreoffice/3/user/gallery, they will be
migrated as well. You might even use subdirectories. It seems that everything
in ~/.config/libreoffice/3/user/gallery is migrated.

So, the last open question is the path in the sdXXX.YYY idex files. You need to
use relative path to the gallery directory. It is possible. The default
galleries bundled with LO are relocatable.


Summary: The solution already exists. You need to put all files under
~/.config/libreoffice/3/user/gallery and use relative paths in the sdXXX.YYY
index files.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to