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

          Priority: medium
            Bug ID: 60700
          Assignee: [email protected]
           Summary: de-cruftify ODF files ...
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: [email protected]
          Hardware: Other
            Status: NEW
           Version: 4.0.0.3 release
         Component: Libreoffice
           Product: LibreOffice

LibreOffice likes to produce a certain amount of bogosity in it's files.

If you create a blank writer document and save it you see:

unzip -l /tmp/empty.odt
Archive:  /tmp/empty.odt
  Length      Date    Time    Name
---------  ---------- -----   ----
       39  2013-02-11 21:48   mimetype
      906  2013-02-11 21:48   meta.xml
     9863  2013-02-11 21:48   settings.xml
     3241  2013-02-11 21:48   content.xml
      728  2013-02-11 21:48   Thumbnails/thumbnail.png
      899  2013-02-11 21:48   manifest.rdf
        0  2013-02-11 21:48   Configurations2/images/Bitmaps/
        0  2013-02-11 21:48   Configurations2/popupmenu/
        0  2013-02-11 21:48   Configurations2/toolpanel/
        0  2013-02-11 21:48   Configurations2/statusbar/
        0  2013-02-11 21:48   Configurations2/progressbar/
        0  2013-02-11 21:48   Configurations2/toolbar/
        0  2013-02-11 21:48   Configurations2/menubar/
        0  2013-02-11 21:48   Configurations2/accelerator/current.xml
        0  2013-02-11 21:48   Configurations2/floater/
    11252  2013-02-11 21:48   styles.xml
     1086  2013-02-11 21:48   META-INF/manifest.xml
---------                     -------
    28014                     17 files

Having a load of empty 'Configurations2/' directories - that - might (but
don't) hold something useful is a bit sad / pointless.

It would be nice to remove (or not create) those directories unless they are
needed. This probably has something twisted to do with the framework/ code
hereabouts:

framework/inc/uiconfiguration/moduleuiconfigurationmanager.hxx:    class
ModuleUIConfigurationManager

with this sort of thing:

framework/inc/uielement/uielementtypenames.hxx:#define
UIELEMENTTYPE_FLOATINGWINDOW_NAME   "floater"

One gotcha to bear in mind is that the package2 (etc.) APIs we use to create
and store streams are -horribly- awful; and creating sub-directories is really
deeply unpleasant in packages. The lifecycle / 'commit' calling etc. on the
interfaces is really poor - which perhaps is the reason why it is as bad as it
is. Nevertheless if we can detect and avoid creating at least the
sub-directories of Configurations2 we're winning I feel :-)

Thanks !

-- 
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