Re: Writer Table Columns Access via Java API

2019-05-06 Thread Thomas Krumbein

Hey Andy,

is is not a bug... the use of writer tables is a little bit different.

the width of a column is not an absolute value, but will be calculated 
in realitionship to the width of the table itself. And the width of the 
table depends on width of your page, textarea and right/left margins.


so... to change the width of a table-column you need to know a lot of 
values and then you can calulate the width of your table istself (a 
texttable will be always expand over the hole width of the textarea 
minus left and right margin (if set).


Column-width will be specified in the struct 
com.sun.star.text.TableColumnSeperator - the array will define all 
tableseperators as value based on the total width of the table itself.


For example:

your textarea may have a width of 14 cm. Your table should have a width 
of 10 cm. So you define a magin left and right of 2 cm.


Now your table will have two colums --- first column should be 3 cm, 
second column is now 7 cm.


Your array TableColumnSeperator needs one element - starting from 
beginning of table the entry will have the value  3/10*1 = 3000.


so, always starting from beginning of the table, the width of the Table 
is always 1 (abstarct number, means maybe 100%).


The total width is 10 cm (calculate before), you need 3 cm --so you 
get:  3/10  * 1  - position of your column-seperator.


it is a little bit complicated and I do not have an code-example in java 
or ruby, only a german-based basic example. But I hope, you get some 
hints so you can search for more informations.


Best regards

Thomas



Am 06.05.2019 um 11:00 schrieb fxruby:

Hello,

I'm currently writing a program using the libreoffice java api.
It's a programm controlling the Writer component. I can insert tables,
place images inside the table and also change the height of table rows.
Now I want to change the width of a table column. But when I try to get
a column, I always get an empty object.

Here's what I do (it's JRuby code, but very similar to java):
[...]

Is this a bug or what am I doing wrong?

kind regards,

Andy
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: How to check Uno objects types with Basic macro ?

2017-12-22 Thread Thomas Krumbein

Hey Patrick,

to check, if a basic object is a document section, you can check, if the 
object supports the according service.. for example:


if oObj.supportsService("com.sun.star.text.TextSection") then   ' is a 
text section


a little bit different is this, if you have a cursor-object and want to 
know, if this is a test section. in this case you have to check, if the 
object (textSection) is not empty.


regarding some literature:

try Andrew Pitonyak´s "Makro explainen" document - > find it here: 
http://www.pitonyak.org/oo.php


the best free paper :)

In Germany you can use my book: "Makro Grundlagen 
LibreOffice/OpenOffice" see www.tintal.de


Best regards

Thomas




Am 21.12.2017 um 08:19 schrieb Patrick Gelin:

Hi,

I'm using basic macros with LibreOffice 5.4.2.2. I would like to check that
a basic Object is a document Section. I find out  XTypeProvider interface

, but no exemples hjow to use it. I've never use UNO interface, so could
anybody send me a OOo Basic snippet code to show how to do ?

By the way, do you know a good book/PDF to download about UNO interface
and/or IDL language ?

Thank you !
Patrick



--
Sent from: http://nabble.documentfoundation.org/Dev-f1639786.html
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Ask for help - disable OpenCL via config-file (*.xcu) or registry-key

2016-10-15 Thread Thomas Krumbein

Thanks Regina, Miklos,

I have put your answers in ask.libreoffice.org assign to the questioner. 
Hope, it wioll help him.


@Miklos: to try to extract a xcu file from dif in 
registrationmodification.xcu is normally not really sufficient. I did 
not have luck with my tries;)



Thanks for your help, best regards

Thomas



Am 14.10.2016 um 11:31 schrieb Regina Henschel:

Hi Thomas,

Thomas Krumbein schrieb:

Hey all,

there is a technical question in german ask.libreoffice.org system I
cannot answer.

Maybe someone can help? I will pass the answer.

#  original message:

"Hallo,

wir nutzen LibreOffice in unseren Schule für ca. 3500 Accounts. Jetzt
haben wir festgestellt, dass bei Impress im einer Fehler "fatal error"
auftritt. Wir haben rausgefunden, dass dies mit der
Hardwarebeschleunigung, Kantenglättung und OpenGL zusammenhängt.

Kann mir bitte jemand die Registry-Keys zum Deaktiveren der
Hardwarebeschleunigung und der Kantenglättung verraten? Zum deaktiveren
von OpenGL habe ich schon ein Admx-Template gefunden.

Vielen Dank"

##

free translation:

it is a school and the are using 3500 seats with LibreOffice. They do
have a problem in Impress "fatal error" (crash) - this is a problem with
OpenGL, edge smoothing and
hardware acceleration options. Now they want to disable this options via
Windows registry-Key.

##

It would help if we have a caonfiguration file (*.xcu) - I can translate
this to an registry key;)


A registry fragment to disable OpenGL is attached to 
https://bugs.documentfoundation.org/show_bug.cgi?id=93546


Kind regards
Regina

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Ask for help - disable OpenCL via config-file (*.xcu) or registry-key

2016-10-13 Thread Thomas Krumbein

Hey all,

there is a technical question in german ask.libreoffice.org system I 
cannot answer.


Maybe someone can help? I will pass the answer.

#  original message:

"Hallo,

wir nutzen LibreOffice in unseren Schule für ca. 3500 Accounts. Jetzt 
haben wir festgestellt, dass bei Impress im einer Fehler "fatal error" 
auftritt. Wir haben rausgefunden, dass dies mit der 
Hardwarebeschleunigung, Kantenglättung und OpenGL zusammenhängt.


Kann mir bitte jemand die Registry-Keys zum Deaktiveren der 
Hardwarebeschleunigung und der Kantenglättung verraten? Zum deaktiveren 
von OpenGL habe ich schon ein Admx-Template gefunden.


Vielen Dank"

##

free translation:

it is a school and the are using 3500 seats with LibreOffice. They do 
have a problem in Impress "fatal error" (crash) - this is a problem with 
OpenGL, edge smoothing and
hardware acceleration options. Now they want to disable this options via 
Windows registry-Key.


##

It would help if we have a caonfiguration file (*.xcu) - I can translate 
this to an registry key;)


Best regards

Thomas

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: suggested method to create LibreOffice Extensions

2015-11-16 Thread Thomas Krumbein
Hey Andrea,

hmm, I will do an workshop tomorrow with a very equal questinary and
becouse I have used everytime BAB, I try to give you some more information:

Yes, BAB was and is a very usefull tool, unfortunatly Paolo do not
maintain it any more.
Because of an codechange in AOO for extensions, there is no way to
create the extension with this tool in both lines (AOO and LibO).
Jörg Schmidt did some work on the BAB and created two versions - one for
AOO and one for LibO with should work.

Additional we are planing at the moment, to rework the BAB, bt this
needs a little bit of money and we think about a crowdfounding network.

So, I will send you with seperat mail the version, I will use tomorrow
and I guess, this will work with LibO 5.x too (not really sure...).

Nevertheless LibreOffice need a tool like BAB - maybe with some
additional features - so I would appreciate your support for a new version.

Best regards
Thomas


Am 16.11.2015 09:52, schrieb Andrea Castellani:
> Hello everyone,
> almost three years ago I received help from this mailing list to create 
> an extension for LibreOffice, which became "FirmaconDike" (thanks!):
> http://extensions.libreoffice.org/extension-center/firmacondike-1
> 
> Today I have to re-examine this issue in a LibreOffice lesson, in witch 
> I would like to explain how to create an extension "from scratch".
> 
> I thought to write a simple macro with students, such as "Hello world", 
> and explain step by step how to generate the oxt file.
> 
> Seeking documentation, I saw a lot of confusion on the subject and the 
> argument (as you know) is only present on the site of AOO.
> 
> I tried to use BAB Paolo Mantovani, both in the new version that in the 
> previous one, and it seemed a very good macro to create extensions.
> 
> The Extension oxt who created BAB does not work, then I fear that BAB is 
> incompatible with LibreOffice (I have the 5.0.2.2). Opening it, it gives 
> me an error:
> (Com.sun.star.deployment.DeploymentException) {{Message = "You \ X00e8 
> an error occurred while enabling: HelloWorld" Context = 
> (com.sun.star.uno.XInterface) @ 7f2fec3ef8b0}, Cause = ( any) 
> {(com.sun.star.lang.IllegalArgumentException) {{{Message = "" Context = 
> (com.sun.star.uno.XInterface) @ 0}}, ArgumentPosition = (short) 0}}}
> 
> Here you can find the extension generated by BAB:
> http://www.libreitalia.it/cloud/public.php?service=files=77d91958fb91ecab19ec2b0b62844d63
> 
> I have not tried a "reverse engineering" of oxt file to understand what 
> it changes from another oxt  (such as "FirmaconDike"), looking for 
> suggestions from you, who are much more experienced than me.
> 
> Does anyone have experience with BAB and LibreOffice?
> What is the official method (or recommended one) to create extensions 
> for LibreOffice?
> 
> I apologize if you have already solved this problem in another thread
> 
> Thank you,
> 
> Andrea Castellani
> www.libreitalia.it
> ___
> LibreOffice mailing list
> LibreOffice@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libreoffice


-- 
## Unterstützung der freien Office Suite
## http://de.libreOffice.org  - www.LibreOffice.org
## Vorstand Freies Office Deutschland e.V.
## Mitglieder willkommen: www.FroDeV.org
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Question presets upcomming version 5

2015-05-07 Thread Thomas Krumbein
Hey all,

Is there a desicion made what will be the icon-preset in Version 5?

Background: I try to publish new documentation on LibO 5 near to date of
release LibO 5.

Ducumentation must start now - and I want to take screenshots fitting to
the preset Icon sets.
My personal favorit is the Breeze icon set, but actual still Tango
is standard.

So is or when will you (ESC) made a decision?

Thank you for a short answer:)

Best regards
Thomas



-- 
## Unterstützung der freien Office Suite
## http://de.libreOffice.org  - www.LibreOffice.org
## Vorstand Freies Office Deutschland e.V.
## Mitglieder willkommen: www.FroDeV.org
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


How to hide configuration page BasicIDE?

2015-04-02 Thread Thomas Krumbein
Hello everybody,

I am playing around with configuration-files (*.xcd) and registry-datas.
I found the following example to hide an option page and it works fine.


?xml version=1.0 encoding=UTF-8?
oor:data xmlns:xs=http://www.w3.org/2001/XMLSchema;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xmlns:oor=http://openoffice.org/2001/registry;
dependency file=main /
!-- Hide Tools - Options - LibreOffice - Advanced --
oor:component-data
xmlns:install=http://openoffice.org/2004/installation;
oor:name=OptionsDialog
oor:package=org.openoffice.Office
node oor:name=OptionsDialogGroups
node oor:name=ProductName oor:op=fuse
node oor:name=Pages
node oor:name=Java oor:op=fuse
prop oor:name=Hide
valuetrue/value
/prop
/node
/node
/node
/node
/oor:component-data
/oor:data


Now I tried to hide the following entry too - so the page which is
called in german Optionen für die Basic IDE.
I searched inside the main.xcd to find the page-name and - similar to
the above example - it should be BasicIDE?.
So I removed in the examplefile the pagename Java with BasicIDE -
but nothing happend.
I tried different names (f.e. Print - which hides the Printer entry
and Page) but I do not have success with these advanced Basic IDE Page.
What I am doing wrong? Is there a differnt place to find the correct
pagenames?

Thanks for your advice.

Best regards
Thomas
-- 
## Unterstützung der freien Office Suite
## http://de.libreOffice.org  - www.LibreOffice.org
## Vorstand Freies Office Deutschland e.V.

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: How to hide configuration page BasicIDE?

2015-04-02 Thread Thomas Krumbein
Am 02.04.2015 18:31, schrieb Andras Timar:
[..]
 It is BasicIDEOptions. See
 http://opengrok.libreoffice.org/xref/core/cui/source/options/treeopt.cxx#346
 
 Best regards,
 Andras

Thank you, Andras :)) That answers my second question:))

Best regards
Thomas


-- 
## Unterstützung der freien Office Suite
## http://de.libreOffice.org  - www.LibreOffice.org
## Vorstand Freies Office Deutschland e.V.
## Mitglieder willkommen: www.FroDeV.org
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: How to hide configuration page BasicIDE?

2015-04-02 Thread Thomas Krumbein
Hey,

I found the right page: BasicIDEOptions

It works like it should :))

Nevertheless - where are those names dokumented? Searching the main.xcd
you will not have a result looking for BasicIDEOptions?


Best regards
Thomas


Am 02.04.2015 08:28, schrieb Thomas Krumbein:
 Hello everybody,
 
 I am playing around with configuration-files (*.xcd) and registry-datas.
 I found the following example to hide an option page and it works fine.
 
 
 ?xml version=1.0 encoding=UTF-8?
 oor:data xmlns:xs=http://www.w3.org/2001/XMLSchema;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xmlns:oor=http://openoffice.org/2001/registry;
 dependency file=main /
 !-- Hide Tools - Options - LibreOffice - Advanced --
 oor:component-data
 xmlns:install=http://openoffice.org/2004/installation;
 oor:name=OptionsDialog
 oor:package=org.openoffice.Office
 node oor:name=OptionsDialogGroups
 node oor:name=ProductName oor:op=fuse
 node oor:name=Pages
 node oor:name=Java oor:op=fuse
 prop oor:name=Hide
 valuetrue/value
 /prop
 /node
 /node
 /node
 /node
 /oor:component-data
 /oor:data
 
 
 Now I tried to hide the following entry too - so the page which is
 called in german Optionen für die Basic IDE.
 I searched inside the main.xcd to find the page-name and - similar to
 the above example - it should be BasicIDE?.
 So I removed in the examplefile the pagename Java with BasicIDE -
 but nothing happend.
 I tried different names (f.e. Print - which hides the Printer entry
 and Page) but I do not have success with these advanced Basic IDE Page.
 What I am doing wrong? Is there a differnt place to find the correct
 pagenames?
 
 Thanks for your advice.
 
 Best regards
 Thomas


-- 
M.I.C. Consulting
Riederbergstr. 92
65195 Wiesbaden
Tel. 0611 - 188 53 39
Fax: 0611 - 188 53 40
http://www.mic-consulting.de
e-Mail: i...@mic-consulting.de
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Question about version

2014-03-02 Thread Thomas Krumbein
Hey all,

for the upcoming event CeBIT 2014 I am now preparing the demo-maschines.

Actual I can find the Version 4.2.1 - is this the last and newest
version for the next two weeks?

Or is there a plan to release a 4.2.2 Version next week?

Thanks and regards
Thomas


-- 
## Unterstützung der freien Office Suite
## http://de.libreOffice.org  - www.LibreOffice.org
## Vorstand Freies Office Deutschland e.V.
## Mitglieder willkommen: www.FroDeV.org
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Some information about LibO on actual hardware

2014-02-18 Thread Thomas Krumbein
Hey all,

in actual business cases more and more people are using tablets and
small and light computers (convertibals, ultrabooks). And because we
will be on CeBIT and CeBIT is a business exhibition, I want to be sure,
that LibO will work with actual hardware.

So I bought a Lenovo Yoga2 13 Ideapad and give LibO a chance ;)
Actual Hardware, Intel I5, Windows 8.1, SSD, 8 GB RAM,
Display: 3200*1800px

Here are my first impressions:

First of all the good news: LibO (I used version 4.2.1) can be installed
without any problems :)

The first start works ok and the new Startcenter looks good and fits to
the display resolution. Icons and fonts are big enough and easy to read.

Then I start a first applicatin (Text-Document). It opens, but was
nearly unusable - really small fonts, Icons looks like a fly-dirt and
you need a strong magnifying-glass to know, what it is...

So I change the options, select 120% Font, big Icons - and try again.

Now it is a little bit better, Fonts, Menus etc are readable, size is
small, but ok. Only all the Icons are still very, very small and do not
fit to fonts and text. So the surface does not look homogeneous.

But I could work with libreOffice.

Then I turn on the side-bar. Fonts are here stronger then expected and
looks a little bit to fat. Icons are still to small.
Because some information were hide on the right side of the sidebar, I
tried to expand the sidebar a little bit to the left - this was the dead
of LibO.
Just saw a flattern of the left border of the sidebar stepping
forward/backwards in milliseconds - nothing reacts any more and only the
taskmanager could kill the process.
OK, I am not sure, if ths is a special problem of the version 4.2.1 or
if it is problem of the high resulution desktop - but it is a failure!

I tried all moduls and (without using the sidebar) I did not find
differences to typical desktops, so I guess, it will work on those hardware.

I have done some screenshots - but using normal displays they all looks
very big and ok - so you cannot get a feeling in real ;)

We will have this maschine on CeBIT and all who visit us can have an own
look - that might be more helpful.

That´s what I want to share with you

best regards
Thomas


-- 
## Unterstützung der freien Office Suite
## http://de.libreOffice.org  - www.LibreOffice.org
## Vorstand Freies Office Deutschland e.V.
## Mitglieder willkommen: www.FroDeV.org
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Some information about LibO on actual hardware

2014-02-18 Thread Thomas Krumbein
Hey Keith,

well, I have loaded the version 4.2.1 ;)

But nevertheless - yes, I will test and give you all the feedback I can
give :)

I will update the version during the first march week - so before CeBIT.

Best regards
Thomas

Am 18.02.2014 22:58, schrieb Keith Curtis:
 I have the same hardware, but running Linux. There are a number of fixes in
 the master branch, and hope to get them into 4.2.1. It should just work on
 8.1, but I am very curious to find out find out what happens as no one yet
 has tried. You are the first person with a Windows HiDPI machine around, so
 I hope you can try out another pre-release of 4.2.1 and give feedback? I
 checked and Cebit is March 10th so that gives time to have something better
 to show.
 
 As for the hang, I saw it on Linux when trying to widen the sidebar past its
 maximum width when the window had already been set wider than it should by
 another part of the code which didn't respect the max value. I increased the
 maximum width allowed for the Sidebar which should make the problem usually
 go away ;-) You might be seeing another problem of course, your testing
 would be helpful.
 
 -Keith
 
  
 
 
 
 --
 View this message in context: 
 http://nabble.documentfoundation.org/Some-information-about-LibO-on-actual-hardware-tp4097784p4097819.html
 Sent from the Dev mailing list archive at Nabble.com.
 ___
 LibreOffice mailing list
 LibreOffice@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/libreoffice
 


-- 
## Unterstützung der freien Office Suite
## http://de.libreOffice.org  - www.LibreOffice.org
## Vorstand Freies Office Deutschland e.V.
## Mitglieder willkommen: www.FroDeV.org
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: modification of print dialog

2014-01-30 Thread Thomas Krumbein
Hey Alex,

yes, that's easy :)

Just write a small macro to check if the actual document has a URL and
if, check the flag isModified().
If this flag is true or the Document do not have an url you do have
unsaved changes - so you can act with a own dialog.

Otherwise call uno:print - that is the same as using the print-button or
the menu: file - print.

Then - create an extension out of your code, create an addon.xcu file
which replace the existing commands (file - print and print-Button) with
your marco. Define the moduls were it should work (i.E. Writer, Calc).
Install your extension - ready :)

Now - when the user klick on the print-button, your macro will check the
document and react as you want.

Best regards
Thomas


Am 30.01.2014 15:05, schrieb Кораблёв Алексей Анатольевич:
 Hello ! I faced with the following problem: I need to launch an
 additional dialog box while user pushing the Print button: I would
 like to check if he has saved the document that he's trying to print
 in order to prevent the printing of the unsaved documents.  Are there
 any methods of the solution of this task without modification of a
 source code?
 
 Yours truly, Alex.
 
 
 
 
 ___ LibreOffice mailing
 list LibreOffice@lists.freedesktop.org 
 http://lists.freedesktop.org/mailman/listinfo/libreoffice


-- 
## Unterstützung der freien Office Suite
## http://de.libreOffice.org  - www.LibreOffice.org
## Vorstand Freies Office Deutschland e.V.
## Mitglieder willkommen: www.FroDeV.org
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: LibO 4.2.0.0 - Configuration page

2013-12-16 Thread Thomas Krumbein
Hi Niklas,

Am 16.12.2013 18:44, schrieb Niklas Johansson:
 Hi Thomas
 
 Did you find any good way to disable the Expert Config page?

Yes, I found a way :) It is the way you discribe below, just to remove
the whole option-page. That will work in most cases.

Aditional - the information that Kendy has added a config item, is very
helpful :)

I guess, this will solve the problems.

So - at the moment I am collecting all those infos and bring them to an
Tiddy-Wiki - which I will then published on our Wiki-sides.

First step will be in German - second in english :)

Thanks for your help and best regards

Thomas

 Searching the code I found this:
 http://opengrok.libreoffice.org/xref/core/configmgr/source/winreg.cxx
[..]


-- 
## Unterstützung der freien Office Suite
## http://de.libreOffice.org  - www.LibreOffice.org
## Vorstand Freies Office Deutschland e.V.
## Mitglieder willkommen: www.FroDeV.org
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


LibO 4.2.0.0 - Configuration page

2013-12-04 Thread Thomas Krumbein
Hey there,

I just play a little with the upcomming Version 4.2.0.0.

Nice feature - this configuration window :)

But - please - make this activation button under tools - options - Libo
- Advanced -  Expert Config page configurable with config-files
(*.xcd files, stored in programm-installation - share/registry).

configurable means, that it must be possible to hide or to disable
this button and that feature!

Reason: This is a killing feature for using LibreOffice in bigger
organisations. Those Organisations do have own policies and there is no
interest, that every user can change features and options by himself.
For example: update, securitity, pathes and so on.

Best regards
Thomas


-- 
## Unterstützung der freien Office Suite
## http://de.libreOffice.org  - www.LibreOffice.org
## Vorstand Freies Office Deutschland e.V.
## Mitglieder willkommen: www.FroDeV.org
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Vendors Name via UNO API / Basic Macros

2013-11-15 Thread Thomas Krumbein
Hey all,

I am looking for an easy way to find out, which product (LibO or AOO) is
installed and currently activ via Basic Macros.

Because in LO 4.1 we have some API-changes, macros should now have a
version-switch.
There are different methods to get the internal version-number - that is
not a problem.

But: The version number itself is not suffcient because AOO 4.1.0 will
start soon and this version-number is identical to LO 4.1.0.

So macros must have additional a vendor-switch.

Do somebody have an easy access hint to vendor-name?

There should be a possibility in configuration-data, but I do not know
where?

Thanks for your answers

Thomas



-- 
## Unterstützung der freien Office Suite
## http://de.libreOffice.org  - www.LibreOffice.org
## Vorstand Freies Office Deutschland e.V.
## Mitglieder willkommen: www.FroDeV.org
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Vendors Name via UNO API / Basic Macros

2013-11-15 Thread Thomas Krumbein
Hey Michael,

Am 15.11.2013 12:53, schrieb Michael Stahl:
 On 14/11/13 09:21, Thomas Krumbein wrote:
 Hey all,

 I am looking for an easy way to find out, which product (LibO or AOO) is
 installed and currently activ via Basic Macros.

 Because in LO 4.1 we have some API-changes, macros should now have a
 version-switch.
 
 i hope the API changes are small enough in scope so that you don't have
 to re-write everything?  we try to do API changes only after a careful
 discussion of the alternatives; please give us feedback in case you
 think that you spend too much time and effort on this kind of thing :)

Well, this change was a small technical thing - but with a very big
influence on typical market applications. Every custom macro application
with dialogs or forms for user interfaces is influenced if dialogs/forms
using Date/time fields. And typicly most of them (in my applications
about 70%) used those fields.
So all applications will crash using LO 4.1.1.2 or upper. So in my
opinion nobody who make this decision has a closer market view.

 Do somebody have an easy access hint to vendor-name?

 There should be a possibility in configuration-data, but I do not know
 where?
 
 searching for PRODUCTNAME finds this:
 
 http://opengrok.libreoffice.org/xref/core/officecfg/registry/data/org/openoffice/Setup.xcu#22
 
 org.openoffice.Setup.Product.ooName

Thanks for this - I know the xcu files. But this is not an easy access
for (Basic-) macros. The way to do is: Search for this file, parse this
file and extract the vendor name... for basic marcos a very long way.
I can find a solution - but I think about all those macro-programmers
out in the market: Do you really think, this is a real solution?

Thank you an d best regards

Thomas


-- 
## Unterstützung der freien Office Suite
## http://de.libreOffice.org  - www.LibreOffice.org
## Vorstand Freies Office Deutschland e.V.
## Mitglieder willkommen: www.FroDeV.org
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Vendors Name via UNO API / Basic Macros

2013-11-15 Thread Thomas Krumbein
Hey Kendy,

Am 15.11.2013 15:35, schrieb Jan Holesovsky:
 Hi Thomas,
 
 Thomas Krumbein píše v Pá 15. 11. 2013 v 13:43 +0100:
 
 Well, this change was a small technical thing - but with a very big
 influence on typical market applications. Every custom macro application
 with dialogs or forms for user interfaces is influenced if dialogs/forms
 using Date/time fields.
 
 Have you filed a bugreport, please?  A minimal example of the macro that
 fails would be most appreciated.

Well - it´s not a bug, because you mentioned the change in release-notes
of version 4.1.

What´s happend, you can read my article on my homepage. It is in german
language but I am sure, you get the context ;)

http://www.mic-consulting.de/index.php/opersource/api-makros-libo-aoo/10-datumsfelder-geaendert-in-lo-4-1-1

Best regards
Thomas


-- 
## Unterstützung der freien Office Suite
## http://de.libreOffice.org  - www.LibreOffice.org
## Vorstand Freies Office Deutschland e.V.
## Mitglieder willkommen: www.FroDeV.org
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Vendors Name via UNO API / Basic Macros

2013-11-15 Thread Thomas Krumbein
Hi Miklos,

yes, thanks, that might be a practible way at this time.

Nevertheless - it is not a solution for the future.

I guess, there should be an implementation of the original product name,
version-number (major and minor) and actuall product name.

This should be easy accessible even for unexpierienced macro developers.

I will do a feature request or this :)


best regards
Thomas



Am 15.11.2013 14:11, schrieb Miklos Vajna:
 Hi,
 
 On Fri, Nov 15, 2013 at 01:43:38PM +0100, Thomas Krumbein 
 thomas.krumb...@documentfoundation.org wrote:
 Thanks for this - I know the xcu files. But this is not an easy access
 for (Basic-) macros. The way to do is: Search for this file, parse this
 file and extract the vendor name... for basic marcos a very long way.
 
 Why not use the css::configuration::ConfigurationProvider API instead?
 
 I mean something like:
 
 oProvider = 
 createUnoService(com.sun.star.configuration.ConfigurationProvider)
 Dim aParams(0) As new com.sun.star.beans.PropertyValue
 aParams(0).Name = nodepath
 aParams(0).Value = /org.openoffice.Setup/Product
 oSettings = 
 oProvider.createInstanceWithArguments(com.sun.star.configuration.ConfigurationAccess,
  aParams)
 xray oSettings.getByName(ooName)
 
 HTH,
 
 Miklos


-- 
## Unterstützung der freien Office Suite
## http://de.libreOffice.org  - www.LibreOffice.org
## Vorstand Freies Office Deutschland e.V.
## Mitglieder willkommen: www.FroDeV.org
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Pre-Configuration LibO

2013-10-01 Thread Thomas Krumbein
Hey all,

I tried to build an xcd-file to change some presettings in LibO.
Unfortunatly it doesn´t work. Maybe someone can give me some hints?

1. I wont to enable the experimental sidebar per default. All xcd-files
are UTF8 and LF coded, places in share/registry

My first approch:

?xml version=1.0 encoding=UTF-8?
oor:data xmlns:xs=http://www.w3.org/2001/XMLSchema;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:oor=http://openoffice.org/2001/registry;
dependency file=main/
oor:component-data oor:name=Setup oor:package=org.openoffice
  node oor:name=Office
node oor:name=Common
  node oor:name=Misc oor:op=fuse
prop oor:name=ExperimentalSidebar oor:op=fuse
valuetrue/value
/prop
  /node
/node
  /node
/oor:component-data
/oor:data

Doesn´t work.

Next approch:

?xml version=1.0 encoding=UTF-8?
oor:data xmlns:xs=http://www.w3.org/2001/XMLSchema;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:oor=http://openoffice.org/2001/registry;
dependency file=main/
oor:component-data oor:name=Setup oor:package=org.openoffice
  node oor:name=Office
node oor:name=Common
  node oor:name=Misc oor:op=fuse
prop oor:name=AlwaysAllowSave oor:op=fuse
valuefalse/value
/prop
prop oor:name=DisableUICustomization oor:op=fuse
valuefalse/value
/prop
prop oor:name=ExperimentalMode oor:op=fuse
valuefalse/value
/prop
prop oor:name=ExperimentalSidebar oor:op=fuse
valuetrue/value
/prop
prop oor:name=FirstRun oor:op=fuse
valuefalse/value
/prop
prop oor:name=MacroRecorderMode oor:op=fuse
valuefalse/value
/prop
prop oor:name=PluginsEnabled oor:op=fuse
valuefalse/value
/prop
prop oor:name=ShowLinkWarningDialog oor:op=fuse
valuetrue/value
/prop
prop oor:name=SymbolSet oor:op=fuse
value2/value
/prop
prop oor:name=SymbolStyle oor:op=fuse
valueauto/value
/prop
prop oor:name=ToolboxStyle oor:op=fuse
value1/value
/prop
prop oor:name=UseSystemFileDialog oor:op=fuse
valuetrue/value
/prop
prop oor:name=UseSystemPrintDialog oor:op=fuse
valuefalse/value
/prop
  /node
/node
  /node
/oor:component-data
/oor:data

(thats all the datas, which will be changes in the
registrymodification.xcu, if I do the change manually)

Doesn´t work.

2. Later I tried to change the CLT-Mode and activating support for asian
language - unfortunatly same result.

3. When I change the default font the following code works:

?xml version=1.0 encoding=UTF-8?
oor:data xmlns:xs=http://www.w3.org/2001/XMLSchema;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:oor=http://openoffice.org/2001/registry;
dependency file=main/
oor:component-data oor:name=Writer oor:package=org.openoffice.Office
node oor:name=DefaultFont oor:op=fuse
prop oor:name=Standard oor:op=fuse
valueArial/value
/prop
/node
/oor:component-data
/oor:data

So, what is going wrong in Nr. 1 and 2? Any hints?

Best regards
Thomas


-- 
## Unterstützung der freien Office Suite
## http://de.libreOffice.org  - www.LibreOffice.org
## Vorstand Freies Office Deutschland e.V.
## Mitglieder willkommen: www.FroDeV.org
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Pre-Configuration LibO

2013-10-01 Thread Thomas Krumbein
Hey Niklas,

Yes, your file works fine :-)  Thank you for your help.

So, I think, my path was wrong. I tried to extract the path out of this
line:

item oor:path=/org.openoffice.Office.Common/Miscprop
oor:name=ExperimentalSidebar
oor:op=fusevaluetrue/value/prop/item

(Part of the registrymodification.xcu)

so I belief, I did some mistake.

Thanks again.
Thomas

Am 01.10.2013 13:13, schrieb Niklas Johansson:
 Are you sure you got the registry paths correct.
 Given that I want to enable the Sidebar in LibreOffice 4.1.X, this xcd 
 works for me:
 
 ?xml version=1.0 encoding=UTF-8?
 oor:data xmlns:xs=http://www.w3.org/2001/XMLSchema;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xmlns:oor=http://openoffice.org/2001/registry;
 dependency file=main/
 oor:component-data oor:name=Common oor:package=org.openoffice.Office
node oor:name=Misc oor:op=fuse
  prop oor:name=ExperimentalSidebar oor:op=replace
valuetrue/value
  /prop
/node
 /oor:component-data
 /oor:data

-- 
## Unterstützung der freien Office Suite
## http://de.libreOffice.org  - www.LibreOffice.org
## Vorstand Freies Office Deutschland e.V.
## Mitglieder willkommen: www.FroDeV.org
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Question to code-insider: maximum numbers

2013-09-30 Thread Thomas Krumbein
Hey all,

I do have a customer, who like to know some special borders for an
evuluation study. Unfortunatly I cannot give him an exact answer.

So - maybe someone can help me?

Question Calc (spreadsheet):

How many datapoints can be access for charts?
Means: How many lines can be maximum used for one chart? Is there a
physical border (maximum number?). As I remember, Excel 2003 or 2007 has
a maximum number of 3200 datapoints.

Question Impress (presentation):

What is the maximum number of presentation-pages? Don't worry about
file-size, but is there a physical maximum number?

Thank you for your answers.

Best regards
Thomas


-- 
## Unterstützung der freien Office Suite
## http://de.libreOffice.org  - www.LibreOffice.org
## Vorstand Freies Office Deutschland e.V.
## Mitglieder willkommen: www.FroDeV.org
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice