Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi Stephan,

thanks for the explanation- it makes things clear.

Would you happen to know if running an uno server or connecting to it, is
affected by this?

Background:
 Robinson Tyron put up on github recently a python utility to convert xls
sheets to csv using headless option in response to another post
https://github.com/colonelqubit/libreconverter

I ran into issues running libreconverter.py
It works with 4.0.0.3 but fails for 4.2 with error about whitespace in
oovbaapi.rdb
I tried viewing the file and had error, so posted this issue.
I don't have immediate need to see .rdb files

thanks
Neeraj


On Tue, Dec 10, 2013 at 5:59 AM, Stephan Bergmann <sbergman@redhat.com>wrote:

On 12/10/2013 05:18 AM, Neeraj Rai wrote:

I pulled a 4.2 version on Nov 23 and again today. Both seem to show this
behaviour.
The regview doesn't show the rdb file

$./instdir/ure/bin/regview  ./instdir/program/types/oovbaapi.rdb
      open registry "./instdir/program/types/oovbaapi.rdb" failed

I created an rdb file using idlc and regmerge, which has no such issue.
I suspect this is causing some other unexplained issues for me on centos
6.2.
Has anyone else run into this ?
Any advise on how to approach would be appreciated.


Beginning with LO 4.1, we move away from the old .rdb format for UNOIDL
type data and gradually replace it with a new format (that is more compact
and faster to process).

The LO SDK still uses the old format for now.  If you build .rdb files for
external applications or LO extensions, you will do so with the existing
SDK tools (idlc, regmerge, regview) and the generated files are in the old
format.

The .rdb files that are included in LO itself (ure/share/misc/types.rdb,
program/types/offapi.rdb, program/types/oovbaapi.rdb) already use the new
format since LO 4.1.  This should be mostly transparent to SDK users, as
most of the tools that operate on .rdb files (cppumaker, javamaker, etc.)
will accept both the old and the new format as input. (And at runtime, the
URE and LO of course also accept both formats now.)

Only the low-level tools regmerge and regview have not been updated, they
continue to only work with the old format.  However, beginning with LO 4.2,
there is a new tool unoidl-read to convert any .rdb file (both old and new
format) into readable form.  For now, it is only a build-time tool (in
workdir; and if you call it manually you need to extend LD_LIBRARY_PATH so
it finds its libs), and you call it with the rdb file to translate,
preceded by any rdb files necessary to resolve types mentioned in later rdb
files.

That is, to show the content of instdir/program/types/oovbaapi.rdb on
Linux, do

 LD_LIBRARY_PATH=instdir/ure/lib workdir/LinkTarget/Executable/unoidl-read
instdir/ure/share/misc/types.rdb instdir/program/types/offapi.rdb
instdir/program/types/oovbaapi.rdb


(And yes, I really need to write all this down somewhere...)

Stephan




-- 
=====
Intuition - is the inability to figure out the facts on which we based the
decision.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.