[Libreoffice] LO Custom properties

Caolán McNamara caolanm at redhat.com
Fri Jul 22 03:17:05 PDT 2011


On Thu, 2011-07-21 at 11:13 +0100, Michael Meeks wrote:
> Hi there,
> 
> On Thu, 2011-07-21 at 09:15 +0530, swagat sharma wrote:
> > Thanks for your valuable time. I'll explain the problem in more
> > details.
> 
> 	Great - that is most helpful :-)
> 
> > I create a new Document (.odt file). I add some custom properties, Say
> > a text and a number, by going into File->Properties->Custom
> > Properties.
> > I save the file (as .odt) and close it. When I open the file, I go to
> > custom properties and they are there.
> 
> 	Right - so the custom properties are saved in a separate stream either:
> \05SummaryInformation and/or \05DocumentSummaryInformation - and are in
> some magic MS/OLE file format.

See SaveOlePropertySet and LoadOlePropertySet in
sfx2/source/doc/docinf.cxx, we have the infrastructure in theory to save
and load the custom properties to the DocumentSummaryInformation stream.
So it may be simply a matter of seeing why the custom properties aren't
being sent to disk or why they're not in the propertyset (or excluded
from it by some rule) or why that method isn't called.

C.



More information about the LibreOffice mailing list