Fernand Vanrie | 6 Dec 13:07
Picon

How to make changes to a Dialog persistent

When have made some changes to a Dialog (stored in a Librarie) I trye to make this changes persitent for future use.
The secrets are in the methods off the dialog.model
odialog.model.read( ???)
odialog.model.write(???)
found a confusing explaination in the DSK but nullware any examples how to use this read-write mechanism to make the changes persitent

Thanks for any hint !

Fernand
KS@apache.org | 2 Nov 17:23
Picon
Favicon

new Apache OpenOffice.org mail list to replace this list

Please read this note in its entirety. It contains important information related to this mailing list, its migration to the Apache Software Foundation, and the steps you must take to ensure continuous access to the list.

Background

As you may have heard, Oracle contributed the OpenOffice.org (OOo) code to Apache in June. All new projects at Apache start in the "Incubator", a special part of Apache where new projects ("Podlings") and their communities are given special attention by Apache "mentors" as they learn about Apache, ensure that the source code meets Apache's license requirements, and work toward their initial Apache release.

In parallel with the coding efforts needed before we can publish Apache OpenOffice.org 3.4.0, the Apache OpenOffice.org community, working with the Apache Infrastructure team, is migrating the many legacy OOo websites and other online services formerly hosted by Sun/Oracle onto Apache servers. This has been a huge effort and we are showing good progress in many areas. 

You can read more about the current status of the migration effort on this wiki page: 
https://cwiki.apache.org/confluence/display/OOOUSERS/OpenOffice.org+Migration+Status

Additional relevant information is published in our project blog at:  http://blogs.apache.org/OOO/

Resubscribing

Among the services hosted by Oracle on the legacy OOo servers are over 300 mailing lists, including the  mailing list you are reading now.  In order to participate in Apache OpenOffice.org through a relevant mailing list, you will need to resubscribe to a new list address, per the following instructions:


  1. Send an email to ooo-dev-subscribe <at> incubator.apache.org. This should be done from an e-mail account that you want to use to receive messages from the new list.
  2. This will generate a confirmation email which will be sent to your email address. You will need to reply to the confirmation email in order to complete your subscription to the new list.
  3. To send posts to the new list, you will mail them to the following address: ooo-dev <at> incubator.apache.org
  4. And if you ever want to unsubscribe to the new list, you can do so by sending an email to: ooo-dev-unsubscribe <at> incubator.apache.org

We invite and encourage you to follow the above steps and to participate in Apache OpenOffice.org project. If you have any questions, feel free to post as responses to this note, or send a question to ooo-dev <at> incubator.apache.org (you must be subscribed to post a question).

Notes

  1. We recommend that you do not subscribe via a legacy openoffice.org email address. It is uncertain at this point whether these addresses will be supported in the future.
  2. Archives of the legacy mailing lists are available here: http://openoffice.markmail.org/
  3. Archives of the new mailing lists and other relevant information can be found at: Apache OpenOffice.org mail list information.
  4. If you prefer to access the list via Gmane, please post a request on the new list and we will try to accommodate you.

--
The Apache OpenOffice.org (Incubating) Project Management Committee

Gerardo Gómez | 27 Oct 04:17
Picon
Gravatar

executing a dialog without blocking the program

Is it possible to execute a dialog of UNO-AWT without blocking the program. for example:

dialog.execute();                                            // execute the dialog (show the dialog)...
System.out.println("not blocking dialog");         // ...without being blocked, keep to this line while showing the dialog.

Thank you in advance for your answers.

Regards


Rony G. Flatscher | 24 Oct 19:52
Picon

Announcing "BNF4OOo - Managing Backus-Naur-Forms with OpenOffice"

Hi there,

maybe one of the last announcements, before Oracle shuts down these lists:

A student of WU Vienna, Franz Hohenegger, created a nice BNF-editing/transforming package for his Diploma Thesis entitled "BNF4OOo - Managing Backus-Naur-Forms with OpenOffice".

Here is what the author says about his package:
Author's Abstract (English):

"This diploma thesis is about a program named BNF4OOo which enables the user to manage different supported BNF-dialects and make own customized BNF-dialects as well. These dialects can be transferred into character-based syntax diagrams and a XML format closely related to IBM's DITA. OpenOffice is used as a graphical inferface for the transformations. This work describes the supported BNF-dialects with their used syntax structures and their implementation in BNF4OOo. Furthermore it introduces the internal logic and structure of BNF4OOo."


You  can get at this work by pointing your browser to <http://wi.wu.ac.at:8002/rgf/diplomarbeiten/index.htm#dipl_201110>:
  • Clicking on the title gives you the PDF version of his thesis which nicely explains BNF and his work, which optionally allows to use OpenOffice.org writer as a GUI-based editor.
  • Clicking on the zip-link downloads his package.
Future updates will be placed on that project's Sourceforge home: <http://sourceforge.net/projects/bnf4ooo/>.

Some highlights:
  • using OOo as a GUI (including his tools and configuration editor) via the OOo menu-system and a BNF-toolbar,
  • importing (extended) BNF textfiles,
  • rendering eBNFs to various kind of rail-diagrams and syntax definitions (text, but also XML, based on DITA, such that one can use DITA to create even more breath-taking rail-diagrams),
  • exporting raildiagrams as pictures, as HTML, and exporting the eBNF definitions as (individual) text files inclduing XML-DITA.
His package can also be used stand-alone via the commandline (including the ability to define ones own extended BNF dialect)!

If you have any questions, then please come forward.

Regards,

---rony

P.S.: The package also works with LibreOffice, needless to say.

Gerardo Gómez | 15 Oct 00:54
Picon
Gravatar

missing setSelectedItem() method in XComboBox interface

As far as i know, there isn't any setSelectedItem() method in XComboBox interface, i don't know if i need to make a new bug ticket for this one, if you know of an alternative to this please let me know

Gerardo Gómez | 4 Oct 07:11
Picon
Gravatar

XButton, XFixedText, etc (Graphical components)

Hello my name is Gerardo and i want to know if there is a way to enable(disable) Graphical components without having to destroy or construct them each change of state?. I'm currently working in the translation of an OpenOffice extension called Oo2gdocs, changing the java Swing GUI to the UNO AWT GUI.

Jürgen Schmidt | 2 Sep 08:05

INFO: New home and EOL of this mailing list in the near future

Hi,

It's probably not news to you, but in case you haven't heard, the OpenOffice.org project has a new home under the Apache Software Foundation (http://incubator.apache.org/openofficeorg/index.html). And some things are going different under Apache. We will have only one project - Apache Open Office - and the number of mailing lists will be limited to only a few (see http://incubator.apache.org/openofficeorg/mailing-lists.html). There is a common consensus that we will create new mailing lists with specific topics if necessary but at the moment we will move forward with only few lists to concentrate the information flow. From my point of view it's an advantage compared to the former setup with many projects and many project related mailing lists.

As the project lead of the API and Extension project i would like to inform you that this mailing list will go end of life soon (exact date not known yet) and further discussion on API and Extension specific topics should happen on the ooo-dev <at> incubator.apache.org mailing list. I recommend that you join the Apache OpenOffice project and subscribe (mail to ooo-dev-subscribe <at> incubator.apache.org) on the ooo-dev list asap and help to make this new Apache project successful in the same way as before under the old setup. Well it's not really a new project but more the continuation of the former official OpenOffice.org project. New in the sense that it is now under the umbrella of the Apache foundation.

Maybe there will be some mail forwarding mechanisms established to ensure that we won't lose any messages in the future but i hope that you all will subscribe to the ooo-dev <at> incubator.apache.org mailing lists and that we accept the new project under Apache as it is.

The migration of the project infrastructure to Apache is ongoing (source code, website, wiki, forum, ...) and there are still a lot of things to do. Every helping hand is welcome. Some things will change under Apache because of the already existing rules there and we want to be a good and well formed project there. Every change is also the opportunity to make things better (if necessary) in the future. And you can be part of this important move of OOo and can help to move things forward.

The good thing at Apache is that it is independent, well accepted in the open source world and all project members are equal. Important is that the rules of the Apache foundation and the project are accepted and that things are getting done.

I hope to see you all on the new project and the ooo-dev <at> incubator.apache.org mailing list soon. I am looking forward to an interesting and challenging future of OOo under the umbrella of the Apache foundation.

Regards

Juergen

Johnny Rosenberg | 18 Aug 18:02
Picon

Re: Constant values for Function arguments

I just realised that I sent the last message privately, sorry for
that. Here's the same thing (with some additions) but to the list
instead:

2011/8/18 Thomas Krumbein <thomaskrumbein <at> openoffice.org>:
> Hey Johnny,
>
> honestly, a lot of your questions/things are "basics"...

Yes, I know. So that's why nobody replies, I suppose. Maybe I'd be
better off sending them to the users' list instead, then. I'll do that
next time. Thanks for the warning. We guitar players are not too
bright…

> VALUE, STRING, FORMULA and DATETIME are reserved words in Basic and
> cannot be used as constant or variable names. Ever thought about this?

 Well, I know STRING is (it turns blue when I type it).
 But why did it work in my other example? And why did the monitor show
 the right values?

 But I'm sure going to try your suggestion, the one about not using
 those names. Thanks!
 I was originally going to use the original values, like
 ”com.sun.star.sheet.CellFlags.STRING”, but all those long (or broken)
 lines are so hard to read, so I like to keep it short, but not too
 short…

 Yes, I am a beginner (I will probably always be) and yes, I have
 troubles understanding English some times, which makes it even harder
 for me, since almost all information I can find is in English.

 Best regards

 Johnny Rosenberg
 ジョニー・ローゼンバーグ

>
> Try to put a character in Front (i.E. nValue, or myString)  and
> everything works as expected....
>
> Best regards
> Thomas
>
>
> Am 18.08.2011 12:52, schrieb Johnny Rosenberg:
> Here's another delicate problem that's easy to work around, but still
> very strange:
>
> Module 2:
> ———Code starts below———
> REM  *****  BASIC  *****
>>
>> Option Explicit
>>
>> Public Const VALUE=1
>> Public Const STRING=4
>> Public Const FORMULA=16
>> Public Const DATETIME=2
>>
>> Sub HelloWorld
>>       Print "Hello world!"
>> End Sub
>> ———End of code———
>>
>>
>> Module1:
>> ———Code starts below———
>> REM  *****  BASIC  *****
>>
>> Option Explicit
>>
>> Sub Main
>>       Dim A
>>       A=VALUE+STRING+FORMULA
>> End Sub
>> ———End of code———
>> Run Main and you will get an error message at ”A=VALUE+STRING+FORMULA”.
>> If you run step by step (Ctrl+F8 in the BASIC IDE) and stop at that
>> line and then hover your mouse pointer over VALUE or STRING or
>> FORMULA, you can clearly see its values, but obviously this doesn't
>> help. Dimensioning A as Variant, as I did, doesn't help either. If you
>> look at VALUE, STRING or FORMULA in the variable monitor (or whatever
>> it's called in English), the window at the bottom left, you can see
>> that they are Variant/Integer and you can see their correct values.
>>
>> So now, let's move the constant definition to Module1:
>> Module 2:
>> ———Code starts below———
>> REM  *****  BASIC  *****
>>
>> Option Explicit
>>
>> Sub HelloWorld
>>       Print "Hello world!"
>> End Sub
>> ———End of code———
>>
>>
>> Module1:
>> ———Code starts below———
>> REM  *****  BASIC  *****
>>
>> Option Explicit
>>
>> Public Const VALUE=1
>> Public Const STRING=4
>> Public Const FORMULA=16
>> Public Const DATETIME=2
>>
>> Sub Main
>>       Dim A
>>       A=VALUE+STRING+FORMULA
>> End Sub
>> ———End of code———
>>
>> Now Main in Module1 works as expected, but take a look in the monitor
>> again. Those constants appears in exactly the same way this time as
>> before, the only exception is that this works.
>> I would be very grateful for an explanation about this. Is there
>> REALLY a logical reason for it to be this way or should I report this
>> as a bug as soon as possible?
>>
>> Of course I can define those constants in every module, but isn't one
>> of the points by declaring as Public that I can reach them in all my
>> modules? Well, in this case I can; I just can't use them, at least not
>> when adding them to each other.
>> ”A=VALUE” works in both my examples, but obviously not
>> ”A=VALUE+STRING+FORMULA” for some reason I am sure absolutely nobody
>> can explain, so please prove me wrong here…!
>>
>> :D
>>
>>
>> Kind regards
>>
>> Johnny Rosenberg
>> ジョニー・ローゼンバーグ
--

-- 
-----------------------------------------------------------------
To unsubscribe send email to dev-unsubscribe <at> api.openoffice.org
For additional commands send email to sympa <at> api.openoffice.org
with Subject: help

Johnny Rosenberg | 18 Aug 12:52
Picon

Constant values for Function arguments

Here's another delicate problem that's easy to work around, but still
very strange:

Module 2:
———Code starts below———
REM  *****  BASIC  *****

Option Explicit

Public Const VALUE=1
Public Const STRING=4
Public Const FORMULA=16
Public Const DATETIME=2

Sub HelloWorld
	Print "Hello world!"
End Sub
———End of code———

Module1:
———Code starts below———
REM  *****  BASIC  *****

Option Explicit

Sub Main
	Dim A
	A=VALUE+STRING+FORMULA
End Sub
———End of code———
Run Main and you will get an error message at ”A=VALUE+STRING+FORMULA”.
If you run step by step (Ctrl+F8 in the BASIC IDE) and stop at that
line and then hover your mouse pointer over VALUE or STRING or
FORMULA, you can clearly see its values, but obviously this doesn't
help. Dimensioning A as Variant, as I did, doesn't help either. If you
look at VALUE, STRING or FORMULA in the variable monitor (or whatever
it's called in English), the window at the bottom left, you can see
that they are Variant/Integer and you can see their correct values.

So now, let's move the constant definition to Module1:
Module 2:
———Code starts below———
REM  *****  BASIC  *****

Option Explicit

Sub HelloWorld
	Print "Hello world!"
End Sub
———End of code———

Module1:
———Code starts below———
REM  *****  BASIC  *****

Option Explicit

Public Const VALUE=1
Public Const STRING=4
Public Const FORMULA=16
Public Const DATETIME=2

Sub Main
	Dim A
	A=VALUE+STRING+FORMULA
End Sub
———End of code———

Now Main in Module1 works as expected, but take a look in the monitor
again. Those constants appears in exactly the same way this time as
before, the only exception is that this works.
I would be very grateful for an explanation about this. Is there
REALLY a logical reason for it to be this way or should I report this
as a bug as soon as possible?

Of course I can define those constants in every module, but isn't one
of the points by declaring as Public that I can reach them in all my
modules? Well, in this case I can; I just can't use them, at least not
when adding them to each other.
”A=VALUE” works in both my examples, but obviously not
”A=VALUE+STRING+FORMULA” for some reason I am sure absolutely nobody
can explain, so please prove me wrong here…!

:D

Kind regards

Johnny Rosenberg
ジョニー・ローゼンバーグ
--

-- 
-----------------------------------------------------------------
To unsubscribe send email to dev-unsubscribe <at> api.openoffice.org
For additional commands send email to sympa <at> api.openoffice.org
with Subject: help

Johnny Rosenberg | 17 Aug 11:45
Picon

ReDim driving me crazy again…

I edited a lot of code yesterday, one of the rows I did NOT edit was
this one, which occurs at the top of a subroutine:

ReDim NDice(1 To 6) As Integer

It is defined in another module as:
Public NDice(1 To 6) As Integer

The error message I get is (translated from Swedish):
”BASIC syntax error:
The NDice variable is already defined.”

Yes, I know it is, that's one of the points by using ReDim, isn't it?

Before doing some heavy editing there was no complaints on this line
at all, and as I said, this is NOT one of the many lines I changed.

So obviously some of my other edits caused this, but where to start
looking? What can I possible have done to cause this?

I just hate when these things happen, when there is an error message
telling me that I can't do something that I should be able to do. Like
if I got an error message for the line ”If a=b Then”, and the error
message says: ”BASIC syntax error: a and b are already compared”…
--

-- 
-----------------------------------------------------------------
To unsubscribe send email to dev-unsubscribe <at> api.openoffice.org
For additional commands send email to sympa <at> api.openoffice.org
with Subject: help

Johnny Rosenberg | 15 Aug 14:31
Picon

Custom types drives me nuts – this can't be happening… can it?

I was editing some code I have, actually a game with dice and stuff,
but that doesn't matter, I suppose.

So I ran into a problem, and I copied the troubling part of the code
to a separate document for test driving.
However, the test code runs perfectly, but not within the game of mine!

I ran the game on another computer but another version of
OpenOffice.org (actually the first computer runs LibreOffice 3.3.3),
but the results were exactly the same.

Here's the test code. I have a message box after almost every
statement so I can see what happens. I added some extra comments in
the code.

REM  *****  BASIC  *****

Option Explicit
Option Compatible

Type DieStatistics
	Value As Integer
	Count As Integer
End Type

' The variable DiceFreq, declared below this comment, tells us which
two die values that are most frequent. For example, if the six dice
are 133455,
' DiceFreq will contain:
' DiceFreq(0).Value: 5 (the most common value is 5)
' DiceFreq(0).Count: 2 (2 dice have the value 5)
' DiceFreq(1).Value: 3 (the second most common value is 3 – in this
case there are two of both 3 and five, but higher value has priority)
' DiceFreq(1).Count: 2 (2 dice have the value 3)
' This makes it very easy for us to calculate things later,
calculations that are not present in this short example though.
Private DiceFreq(1) As DieStatistics '

Sub Test0
'	NDice tells us how many there are of each die value. In the above
example, NDice(4)=1, since there are 1 die with the value 4.
	Dim NDice(1 To 6) As Integer, i As Integer

'	Here we set the values of NDice for an example where this is known
to fail, that is what NDice would contain if the dice were 112345
'	NDice(1)=2, NDice(2)=1 and so on.
	For i=2 To 5
		NDice(i)=1
	Next i
	NDice(1)=2
	
'	Here's where I calculate the values for DiceFreq by going through
NDice from 6 to 1.
	For i=6 To 1 Step -1
		If NDice(i)>DiceFreq(0).Count Then
			DiceFreq(1).Count=DiceFreq(0).Count
			DiceFreq(1).Value=DiceFreq(0).Value
				MsgBox DiceFreq(0).Value & ": " & DiceFreq(0).Count & " st." & Chr(13) & _
				DiceFreq(1).Value & ": " & DiceFreq(1).Count & " st."
			DiceFreq(0).Count=NDice(i)
			DiceFreq(0).Value=i
				MsgBox DiceFreq(0).Value & ": " & DiceFreq(0).Count & " st." & Chr(13) & _
				DiceFreq(1).Value & ": " & DiceFreq(1).Count & " st."
		ElseIf NDice(i)>DiceFreq(1).Count Then
			DiceFreq(1).Count=NDice(i)
			DiceFreq(1).Value=i
				MsgBox DiceFreq(0).Value & ": " & DiceFreq(0).Count & " st." & Chr(13) & _
				DiceFreq(1).Value & ": " & DiceFreq(1).Count & " st."
		EndIf
	Next i
	MsgBox "Final reults:" & String(2,Chr(13)) & DiceFreq(0).Value & ": "
& DiceFreq(0).Count & _
	 " st." & Chr(13) & DiceFreq(1).Value & ": " & DiceFreq(1).Count & " st."
End Sub

Now, while this works perfectly as a stand-alone subroutine, it
doesn't work in the game. What happens in the game is that everytime I
change the value of DiceFreq(i).Value or DiceFreq(i).Count, BOTH
instances are changed, for example if I set DiceFreq(0).Value to 5,
DiceFreq(1).Value is also set to 5 and I just can't figure out why!

In the game the corresponding subroutine is called from another
module, but I simulated that too in my test, but still it ONLY fails
in the game.

I can upload my game document (the debug version) somewhere if needed.

What on earth could possibly cause this? I'm just out of ideas!

Help…?

Kind regards

Johnny Rosenberg
ジョニー・ローゼンバーグ
--

-- 
-----------------------------------------------------------------
To unsubscribe send email to dev-unsubscribe <at> api.openoffice.org
For additional commands send email to sympa <at> api.openoffice.org
with Subject: help


Gmane