Getting the latest libgsf-1-dev lib for Ubuntu 16.04

2019-05-09 Thread Sagi Lowenhardt via gnumeric-list
Hi I'm trying to get the latest libgsf-1-dev libs on Ubuntu 16.04 but it looks like the latest available package for this distro is 1.14.36 https://packages.ubuntu.com/search?suite=all=names=libgsf Should I be able to compile the source code in 16.04? Is there a compiled lib for 16.04 anywhere

File corruption if stream contains vector properties

2018-12-10 Thread Sagi Lowenhardt via gnumeric-list
Hi I’m opening an existing stream with existing Vector properties. Then I try to remove and insert some properties. As I commit (‘gsf_doc_meta_data_write_to_msole’) the file structure gets corrupted. Is this a known issue? Here is the relevant cpde: for (const auto& key : keysToRemove) {

Re: How to use GsfTimestamp for windows timestamp (relative to 1.1.1601)

2018-11-25 Thread Sagi Lowenhardt via gnumeric-list
Hi Is there any example for using GDateTime in a property? (type should still be VT_FILETIME) On Mon, Nov 19, 2018, 20:11 Sagi Lowenhardt wrote: > Hi > Microsoft Office holds EditTime in minutes starting from 1.1.1601 00:00. > So in case someone worked 4 minutes on a document, the time should

Re: How to use GsfTimestamp for windows timestamp (relative to 1.1.1601)

2018-11-19 Thread Sagi Lowenhardt via gnumeric-list
Hi Microsoft Office holds EditTime in minutes starting from 1.1.1601 00:00. So in case someone worked 4 minutes on a document, the time should show 1.1.1601 00:04. But I guess I'll have to find another way to represent this. On Mon, Nov 19, 2018 at 5:52 PM Morten Welinder wrote: > > As far as

Re: How to use GsfTimestamp for windows timestamp (relative to 1.1.1601)

2018-11-19 Thread Sagi Lowenhardt via gnumeric-list
Thank you Morten. As far as my calculation goes, the difference is -11644473600 which doesn't fit in 32-bit variable, am I wrong? Regarding GDateTime, any suggestions on how should I use so the property type will be VT_FILETIME? On Mon, Nov 19, 2018 at 3:34 PM Morten Welinder wrote: >

How to use GsfTimestamp for windows timestamp (relative to 1.1.1601)

2018-11-18 Thread Sagi Lowenhardt via gnumeric-list
Hi I need to write a timestamp which is relative to 1.1.1601 (windows filetime) I thought about using gsf_timestamp_set_time() with the different between 1.1.1970 to the previous but my app arc is 32-bit and the different doesn't fit in a 32-bit variable (-11644473600)