Re: [dev] Renaming #openoffice.org into #dev.openoffice.org?

2007-01-17 Thread Christian Junker

+1

2007/1/17, Pavel Janík [EMAIL PROTECTED]:

Hi,

as you probably know, several people want to do this operation on
freenode.net:

renaming current #openoffice.org channel to #dev.openoffice.org

This should free #openoffice.org (the default guess) channel
afterwards for generic OOo channel, mainly oriented to support our
users.

I'd like to call for vote here to collect some general dev attitude
to this act.

So: do you want to rename the channel? +1 means yes, -1 means no, +0
means What is a channel?




--
Best Regards
Christian Junker

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] OO 2.1 with jre 1.6 - xml validation problem

2006-12-19 Thread Christian Junker

Hi Oliver,

in your previous post, you didn't mention where your Java classes came
from (imports and so on), either you do use the Java API (xml modules)
or the OOo API for processing XML.
Everytime you're dealing with xml, you're encouraged to use the JAXP
standard to be in some case independent of the underlying parser
software. Xerces is one of the popular parsers out there. I believe
you're having troubles, because you don't check which parser is used,
thus one might provide more features than another.
Then Xerces 2.6.2 is an old version; I think it does not work
correctly for JAXP 1.3 which is the specification version from Java
5.0 (1.5) on, it relies on JAXP 1.2 .


2006/12/19, Oliver Brinzing [EMAIL PROTECTED]:

Hi,

now i know whats going wrong:

another extension (which i did not develop)
deploys a xerces-2.6.2.jar.

if i remove the extension (or only the *.jar), from
uno_packages\cache\uno_packages\xx.tmp...\ it works ...

but is this behaviour correct ?
it seems the above mentioned *.jar overwrites the classpath
for all other extensions ...

Oliver


--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Best Regards
Christian Junker

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Contribution

2006-06-29 Thread Christian Junker

Hi Steve,

see api.openoffice.org, especiall the Developer's Guide and the IDL
reference and
udk.openoffice.org if you want to delve more into the details of UNO.
Those two projects also have mailinglists (dev-mailinglist), where you
can get/provide further information.

2006/6/27, Steve High [EMAIL PROTECTED]:

Greetings

I am interested in helping in the continued awesomization of OpenOffice.

My specialty is LAMP environment programming, and I would be interested in
creating some sort of API that would allow the creation/editing of OOo
documents remotely via a web interface.  If this is not feasible, I would
like to help out in any way I can.

Please point me in the right direction, because I have never participated in
an open collaboration before.

Thanks
-steve high

--
--
(42)
--





--
Best Regards
Christian Junker

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Enquriry: Contribution for Development

2006-06-29 Thread Christian Junker

If you want to contribute on source code level, fill out
http://www.openoffice.org/licenses/jca.pdf and send it to Sun Microsystems.
http://contributing.openoffice.org/programming.html should leave no
questions unanswered.

2006/6/25, Fajrian Yunus [EMAIL PROTECTED]:

Dear Sir/Madam,

I have read in Open Office website that Open Office developer team accepts
new programmer to contribute to the project. I am willing to join whwther as
the programmer or just as the assistant programmer etc, but I don't know
where to begin. Here is details of me:

Name:Fajrian Yunus
Programming Lang:  Java
Programming Skill:OOP (GUI is not included) and Data Structures
(algorithm hasn't been taught)
Job:2nd year (this August) Computer Engineering
student
Location:Singapore
Internet Connectivity: Broadband (University LAN)

I am waiting for your reply. Thank you.


Sincerely Yours,

Fajrian Yunus





--
Best Regards
Christian Junker

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Getting started with the code

2006-06-19 Thread Christian Junker

Hi,

every accepted project should have a description text on openoffice.org.
For code exploring the following two might be useful:
http://wiki.services.openoffice.org/wiki/Source_code_directories
http://go-oo.org/lxr/


2006/6/15, [EMAIL PROTECTED] [EMAIL PROTECTED]:

Is there information somewhere showing the layout of the code and the different OO 
projects?  I'm looking for some sort of blueprint so I can find the code for the 
Edit Points features among others.  It looks like there are about 170 
different projects.  A description of each of these would be helpful.
RR
___
Try the New Netscape Mail Today!
Virtually Spam-Free | More Storage | Import Your Contact List
http://mail.netscape.com





--
Best Regards
Christian Junker

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Problems with listeners in text document / SWriter crash

2006-06-07 Thread Christian Junker

I just tested a bit with the SelectionChangeListener, but cannot
confirm a crash upon opening up FilePrintPreview. In your case it is
very likely due to some IO processing you're doing (in wrong manner or
at a wrong time).

So in order to see what is giving you problems, it would be nice to
catch a glimpse at the relevant code portion(s).

2006/6/7, Sascha Jensen [EMAIL PROTECTED]:

hi ,

currently i develope a reporting system. As Template-Editor for my
Report-Templates I use swriter, which is embedded in my application
window. References to items are inserted by dragging items from a tree
onto the document view using an XDropTargetListener which
is installed into some XWindow's. So far everything works fine, but
there are some situations where my installed handler causes trouble.

If I insert a TextFrame into an empty text document (via.
Insert-TextFrame) and in the next step a Table into the TextFrame,
swriter crashes. The last document events i get are OnCopyTo and
OnCopyToDone, which i only get if OOo crashes (maybe this is just for
recovery?). Furthermore i get an com::sun::star::io::IOException. This
only happens if my XDropTargetListener is installed.

It works if there are at least two paragraphs (may be empty) in the
TextFrame and the table is inserted between them.

Another problem occurs if i install an XSelectionChangeListener for the
document. Swriter crashes if i choose File-PrintPreview. Here too i get
an com::sun::star::io::IOException.


Has anybody a hint what may be the cause for this? Or should i remove
those handlers if certain commands are executed?


I am developing with OOo 2.0.2 SDK and C++ in Visual Studio 2003 on
Windows (XP). The integration of OOo into our framework is done in a
seperate Dll.

any help would be appreciated,

Sascha





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Best Regards
Christian Junker

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Writing macros with java

2006-03-10 Thread Christian Junker
Hi Tuomas,

if you mean a macro as a programmable piece to attach to a document,
then this is not possible in pure Java. Macros are usually written in
a scripting language like Starbasic (JavaScript, Python etc. for 2.0
are also available).
However, Java programs for OOo are usually distributed as UNO
packages, please see the Developer's Guide on api.openoffice.org .

2006/3/4, Tuomas Räsänen [EMAIL PROTECTED]:
 Is it possible to write macros with java? And is it possible to
 programmatically disable commands and hide toolbars when
 template-file(macro) is loaded? Thank you.

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




--
Best Regards
Christian Junker

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] PyUNO with different Python

2006-02-22 Thread Christian Junker
First thing I would do is to see in which folder pyuno.dylib lives in,
because it doesn't seem to be in the same as uno.py. Quick hack would
be to copy/move it then to the program folder and test your import
statement once again.

I hope you know that there are several rules to follow when using
system python instead of the OOo python core, for example that your
system python needs to be of version 2.2 (OOo 1.1.x) or 2.3(.4) for
OOo 2.0(.x).
See http://udk.openoffice.org/python/python-bridge.html#replacing for
more information.

2006/2/22, Katja Süss [EMAIL PROTECTED]:
 Hi!
 maybe somebody can give me an hint to my problem setting up PyUNO on my
 Mac to work with my Python not the Python delivered with OpenOffice.
 As said in installation instructions i set
 OPENOFFICE_PATH=/usr/lib/openoffice/program
 export PYTHONPATH=$OPENOFFICE_PATH
 export LD_LIBRARY_PATH=$OPENOFFICE_PATH
 according to my environment.

 importing uno gives me this error:

   import uno
 Traceback (most recent call last):
   File stdin, line 1, in ?
   File /Applications/OpenOffice.org
 2.0.app/Contents/openoffice.org2.0/program/uno.py, line 37, in ?
 import pyuno
 ImportError: No module named pyuno

 which means python finds uno but not pyuno (pyuno.dylib).

 Any hints?
 Regards, Katja

--
Best Regards
Christian Junker

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] OO 2.0 behaves different than OO 1.5

2006-02-22 Thread Christian Junker
I find it very strange that the setVisible method made OOo terminate.
The exception afterwards is nothing special, it's just the logical
consequence (if there is no OOo process anymore the initiated UNO
Runime environment extinguishes as well of course, thus the
DisposedException).

So it seems to me, in the case you can reproduce this behavior, that
this is a bug.

2006/2/22, Bernhard Donaubauer [EMAIL PROTECTED]:
  Can I make OO2 to behave like OO1? Can I make OO invisible by API calls?
  I tried to cast my desktop object to XFrame and called

  ooDesktop.getXFrame().getComponentWindow().setVisible(false);

  but this ended OO instead of making it invisible and my next API call gets
 this exception:

  Exception in thread AWT-EventQueue-0 com.sun.star.lang.DisposedException:
 java_remote_bridge
 [EMAIL PROTECTED] is
 disposed


--
Best Regards
Christian Junker

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Error: no office executable found!

2006-02-08 Thread Christian Junker
Hi Jürgen,

2006/2/7, Jürgen Schmidt [EMAIL PROTECTED]:
  The secure way is that you start your OOo server manually and connect
  to it via TCP/IP and the specified socket. It is recommended to use
  this way if you want to develop something serious.

 sorry but that is wrong, the simple bootstrap mechanism is serious even
 if it has some problems on systems where special scripts are used around
 the normal binaries or default scripts.

we could debate here about what is serious and what not, however I
didn't talk about the SimpleBootstrap mechanism being not serious, I
said it would be better to set things up manually when you're
developing something 'serious' (== more secure, more control etc.).

Besides the problems there could be on some systems, it also has
limitations. For example you cannot hook up to a remote-machine OOo.
Thus if you're dealing with servers and you write code on a client
machine, you can only go by TCP/IP to connect to the Office (named
pipes work only on the same machine).


--
Best Regards
Christian Junker

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Programmatic XTextFrame Control with Java

2006-02-07 Thread Christian Junker
Hi Kent Gibson,

this is a pure API topic, so discussion should rather go on over there
(dev@api.openoffice.org). Thus I am forwarding your message.

2006/2/6, Kent Gibson [EMAIL PROTECTED]:
 Hi-ya,

 I would like to create XTextFrames of a fixed
 arbitrary height and width and place them at arbitrary
 x and y coordinates.

 I can manage to get the frame, but I can't seem to
 size it or place it arbitrarily. I have based my code
 on the TextFrameExample() in TextDocuments.java.

 These properties seem to have no effect:

 XInterface xTextFrameInterface = (XInterface)
 mxDocFactory.createInstance(com.sun.star.text.TextFrame);


 XPropertySet xFramePropSet = (XPropertySet)
 UnoRuntime.queryInterface(XPropertySet.class,
 xTextFrameInterface);
 xFramePropSet.setPropertyValue( FrameHeightAbsolute,
 new Long(5000));
 xFramePropSet.setPropertyValue(
 FrameIsAutomaticHeight, new Boolean(false));
 xFramePropSet.setPropertyValue( SizeType, new
 Short((short)1));

 Also when I use xShape to define height and width, it
 doesn't seem to work either. The textframe is only as
 big as the text inside it.

 XShape xShape = ( XShape ) UnoRuntime.queryInterface(
 XShape.class, xFrame );

 // Access the XPropertySet interface of the TextFrame
 XPropertySet xFrameProps = ( XPropertySet )
 UnoRuntime.queryInterface( XPropertySet.class, xFrame
 );

 // Set the size of the new Text Frame using the
 XShape's 'setSize' method
 Size aSize = new Size();
 // this is probably (1/100 mm)
 aSize.Height = 400;
 aSize.Width = 15000;
 xShape.setSize(aSize);

 If anyone has any pointers that would be grand.



--
Best Regards
Christian Junker

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] How to bring OpenOffice window to front

2006-02-07 Thread Christian Junker
You might wanna look at the source code implementation of the
IsAlwaysOnTop property of the css::presentation::Presentation service
because I think it goes down to using the Win API on Win32. No
guarantees whatsoever about whether it really does, because I have not
taken looks, I just conclude from its behavior I have experienced in
some situations.

But yes as already said, I don't think there is a nice way and
actually in the OOo API there is no way as far as I know. If something
like this would get included, I propose it to be attached to the
css::frame::Desktop service, since that resembles the OOo GUI
environment.

2006/2/2, Matthias Benkmann [EMAIL PROTECTED]:
 I have the problem that when I launch a new OOo window with
 loadComponentFromURL() it doesn't always come to the front. Sometimes
 its button just blinks in the Windows task bar and I have to click it
 manually to bring it to the front. Is there a way to programmatically
 bring the window to the front?
 XTopWindow.toFront() and XWindow.setFocus() don't do the trick as they
 only work relative to other OOo windows not non-OOo windows.


--
Best Regards
Christian Junker

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Communicate with OOo from another application via DDE

2006-01-02 Thread Christian Junker
For long time they used to be undocumented in the Online Help, has
this changed with 2.0? Thus if they are still not documented, it is
probably meant to be that way and I am not surprised that you
encountered problems using them.
- Andreas Bregas is the Starbasic contact person.

In general you should rather use OLE2/COM which is its successor on
the MS Windows platform (see the new oleautomation module
http://api.openoffice.org/docs/common/ref/com/sun/star/bridge/oleautomation/module-ix.html).


2005/12/21, Nils-Odd Solberg [EMAIL PROTECTED]:
 Hi,

 I have found and used these built in OOo BASIC methods

 * DDEExecute(nDDEChannel, command)
 * DDEInitiate(Server, Topic)
 * DDEPoke(nDDEChannel, item, data)
 * DDERequest(nDDEChannel, item)
 * DDETerminateAll()


--
Best Regards
Christian Junker

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Programmierhandbuch für Basic

2005-10-28 Thread Christian Junker
Hey Jürgen,

2005/10/28, Jürgen Schmidt [EMAIL PROTECTED]:
 Aber nichtsdestotrotz danke für den Hinweis. Das scheint ein
 Übersetungsproblem zu sein und wir werden das überprüfen und korrigieren.

gibt es die Möglichkeit das Dokument (engl. + deutsch) umzustellen auf
eine freie Lizenz? Sun könnte ja immer noch den StarOffice 8
Programmer's Guide anbieten auf ihren Servern, aber auf openoffice.org
könnte man doch ein kollaboratives Dokument erstellen und es einfach
OpenOffice.org 2.0 Programmer's Guide nennen, wobei ich mit dem Namen
auch nicht so zufrieden bin weil es schon einen Developer's Guide gibt
und durch die Tatsache, dass UNO nun so viele Sprachen unterstützt,
der Interessent leicht davon ausgehen kann, dass es nicht nur um
Starbasic/OpenOffice.org Basic geht.

 Es gibt aber mittlererweile auch andere Bücher für Basic, eine
 Google-Suche sollte hier weiterhelfen.

Schön und gut, aber es fehlt *die Referenz*.

--
Best Regards
Christian Junker

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] new incubator : Call for Name

2005-10-28 Thread Christian Junker
my vote for extensions, as the other two words confuse newcomers
because of the mentioned reasons (addon is already a certain term in
the API, scripting excludes major languages like C++ and Java).

2005/10/26, Laurent Godard [EMAIL PROTECTED]:
 - addon.openoffice.org (already 1 vote)
 - extensions.openoffice.org (already 3 votes)
 - scripting.openoffice.org (already 0 vote)  -i leave it in case

--
Best Regards
Christian Junker

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Buggy insertDocumentFromURL

2005-10-27 Thread Christian Junker
Hi Christoph,

2005/10/27, Christoph Lutz [EMAIL PROTECTED]:
 Hi,
 // Bug 1:
 // providing a non-empty MediaDescriptor throws an
 // IllegalArgumentException.
 try {
 insertProps = new PropertyValue[] { new PropertyValue() };
 insertProps[0].Name = Author;
 insertProps[0].Value = itsMe;
 xInsert.insertDocumentFromURL(
 file:///W:/aFolder/thisFileDoesNotExist, insertProps);
 } catch (IllegalArgumentException e) {
 e.printStackTrace();

I tested all the small examples on Mac OS X with OOo 2.0 using
Starbasic and I can only reproduce Bug 1 (it's probably not a bug
here).

--
Best Regards
Christian Junker

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] new incubator : Call for Name

2005-10-26 Thread Christian Junker
Hi Laurent,

2005/10/26, Laurent Godard [EMAIL PROTECTED]:
 Hi all

 Following the OOoCon, i will setup the new incubtaor project i proposed
 on my presentation
 http://marketing.openoffice.org/ooocon2005/presentations/friday_c8.sxi

 to sumarize, the purpose is not to compete with api project but to help
 it, puting a bridge from new addons developpers to it.

thanks for sacrificing your time for this and +1 from me :-).

--
Best Regards
Christian Junker

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Getting document data to and from a remote OOo in Java

2005-10-26 Thread Christian Junker
You need to connect to OOo via TCP/IP socket starting the office in
listening mode with host=0. After you have started OOo in listening
mode you connect to it from a Java socket by using XUnoUrlResolver
with the correct Uno-URL.
All of this is explained in the chapter First Steps in the Developer's Guide.

2005/10/25, Ján Halaša [EMAIL PROTECTED]:
 Please can anyone tell me how to make it, post some code or just push me
 to the right direction? I cannot use ftp, webdav or http for file access.
 Thanks,

 Jan

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




--
Best Regards
Christian Junker


Re: [dev] I want to contribute in programming

2005-10-13 Thread Christian Junker
Hi Samuel,

sure it can be useful. With your VB.NET and C# knowledge you could for
example contribute to the OpenOffice.org SDK which in its 680 verions
ships with .NET examples, api is the correct project for this.

2005/10/12, Samuel Johan [EMAIL PROTECTED]:
 I'm a microsoft certified in VB.NET. I'm just wondering if I can contribute 
 something. I knew little bit of Microsoft C# and I have Microsoft Visual 
 studio 2005. I'm just wondering if this can be useful.



--
Best Regards
Christian Junker

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Warning-Free Code

2005-09-02 Thread Christian Junker
Another reason not mentioned is that few compilers complain a lot
about such compact constructs as assignments in if statements, which
leads to another reason why warning-free code is much better (I didn't
see this in the introduction post by Stepahn): What gives warnings on
one Operating System, might *break* on another.

Also I would like to know if Sun Hamburg is interested in warnings
that only come from Mac OS X, or whether community members can work on
that in another cws, etc.?
I ask this because it was said that only Linux, Win32 and Solaris will
be taken care of.

Thanks.

2005/9/2, Nikolai Pretzell [EMAIL PROTECTED]:
 [...]
 So rather I'd write:
 
 fp = fopen( file, r );
 if(fp != NULL) {
 
 to remove the warning.
 And then something similar to
 
 fp = fopen( file, r );
 if(fp != NULL) {
 FileGuard fg(fp); // will close file in destructor
 
 to ensure exception safety.
 
 
 Nikolai


-- 
Best Regards
Christian Junker

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] starbasic variables and type declarations

2005-08-29 Thread Christian Junker
Hi Sven,

you misunderstand some things. For example the Dim foo as new ... is
the prefered syntax for declaring foo to be of a certain struct type,
and *only* of UNO struct types.
The object as identified in the IDL with the name of
com.sun.star.text.TextField is a service, that can only be
constructed during runtime by asking the XMultiServiceFactory of the
document model to create it for you.
example:
code
Sub Main
 Dim otxtfield as Variant
 odoc = thisComponent 'currently active document
 otxtfield = odoc.createInstance(com.sun.star.text.TextField)
End Sub
/code

Note that I declared otxtfield of type Variant, not of type Object
because there are some rare situations where it would fail declaring a
variable of type Object.
As about your question - assigning a known control object to a
variable can easily be done declaring the variable of type Variant
before, or to not declare it at all.
Others reading your code will recognize what type a variable has by
just looking at the variable name (otxtfield is very clear to me).

All of this is documented in the Developer's Guide by the way. So have a look at
http://api.openoffice.org or download the SDK which has new objects -
presented in 2.0 beta - listed and to some extent documented in its
IDL reference.


2005/8/29, Victoria, Sven [EMAIL PROTECTED]:
 Hi,
 
 I would like to declare a control variable (reference) in StarBasic and 
 assign an existing control to it
 from an existing dialog like:
 
 Dim textField  As com.sun.star.text.TextField
 textField = dialog.getControl(txtKlantNr)
 
 Hoewever the error I get here is: unknown data type 
 com.sun.star.text.TextField and the code
 won't run. Declaring with 'as new' like:
 
 Dim textField  As new com.sun.star.text.TextField
 
 generates the following error:
 
 Object not accessible. Invalid object reference. but the code will run 
 anyway although it won't
 run as intended.
 
 Declaring the object as Object will give me no errors but I do not want to 
 declare it
 as an Object since I know for sure it is a com.sun.star.text.TextField. This 
 way it
 will be easier for me and others to know with which interfaces we are dealing 
 with, and
 to look these up in the documentation.
 
 Any suggestions?
 
 Regards,
 Sven
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
Best Regards
Christian Junker

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] starbasic variables and type declarations

2005-08-29 Thread Christian Junker
By the way,

I just noticed you use the main development mailinglist, please use
dev@api.openoffice.org for such topics.

2005/8/29, Victoria, Sven [EMAIL PROTECTED]
[...]

-- 
Best Regards
Christian Junker

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Speeding up generation of Calc document

2005-08-28 Thread Christian Junker
Hi Matthias,

also consider using css::document::XActionLockable to improve performance.
See 
http://api.openoffice.org/docs/common/ref/com/sun/star/document/XActionLockable.html

2005/8/22, Matthias Benkmann [EMAIL PROTECTED]:
 Hi,
 
 I need to create a large Calc document from scratch via UNO. Calling
 setFormula() for all the cells is pretty slow (about 1.5ms per Cell on
 my 2800MHz computer). By introducing un/lockControllers() calls I've
 managed to reduce the time to about 0.5ms, but when generating a large
 document this is still painfully slow.
 
 Does anyone have a suggestion for speeding the code up further?
 
 I've noticed that while lockControllers() disables the synchronous
 screen updates of the table itself, every call to setFormula() results
 in the formula being displayed in the Formula bar. So there still
 seems to be a lot of event processing going on. Is there anything else
 I can do aside from lockControllers() to reduce event processing even
 further? Note that disabling the Formula bar in View/Toolbars does not
 give a very significant speed up.
 
 Matthias
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
Best Regards
Christian Junker

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] inserting names from database in text document

2005-08-28 Thread Christian Junker
Hi Emmanouil,

basically you need to create a UNO component. The most important
information can be found on http://api.openoffice.org and
http://udk.openoffice.org . In order to create and register a UNO
component you need to download the OOo SDK (there are quite some Java
examples, the Developer's Guide also contains a lot of Java code, so
you should get enough information).
Further questions please to dev@api.openoffice.org .

2005/8/26, Emmanouil Batsis [EMAIL PROTECTED]:
 
 I would like to create some kind of add-on that will allow OOo 2.0
 Writer users insert names from a database table (probably MySQL via
 JDBC) in the document they edit (to avoid spelling mistakes etc) but i
 am not sure how i should try to do this between macros, add-ons and a
 huge unknown API. I will probably have to add a menu entry or button
 somewhere that will activate a popuo/dialog, or an inline dropdown
 control (maybe only available in forms?).
 
 I have used datasources while editing documents to copy  paste etc, but
 what is required is something that feels more well integrated and, if
 possible, only activates itself for a specific template (.odt).
 
 The next step could be that these inserted names should be some kind of
 text field that has a reference to the datasource but i can worry about
 that later.
 
 Any pointers on where i should start looking much appreciated,
 especially examples i can learn from... we use Java but i guess we can
 cope with other languages as well.
 
 Thanks,
 
 Manos
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
Best Regards
Christian Junker

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] OpenOffice Writer events

2005-08-20 Thread Christian Junker
If you want to catch all possible events you can integrate a
DispatchInterceptor as a UNO component into the office (good if you
want to control *everything* that happens in the office).
If you are only interested in certain events, take a look at all
interfaces containing the substring handler or listener in the UNO
IDL reference.
The generic events of an object, in this case a textdocument (the
currently active document) can be received like this in SB (similiar
code in Java, you just need to write more lines because of querying
the correct interfaces):
code
Sub PossibleEvents( )
 Dim eventnames() as String
 Dim i as Integer
 
 events = thisComponent.getEvents()
 eventnames = events.getElementNames()
 For i = 0 to UBound(eventnames)
msgbox eventnames(i)
 Next i 
End Sub
/code

For all further things consult the Developer's Guide on
api.openoffice.org or write to the dev@api.openoffice.org mailinglist
as cphennesy suggested.

2005/8/20, Pam Z [EMAIL PROTECTED]:
  Hi,
 I have to develop a java plugin linked to OpenOffice Writer that can monitor
 high level events thrown by the writer, such as Save button clicked, File
 menù clicked (or similar, I don't know the real high level sintax of the
 event) and so on.
 Could you tell me what should I do to make this java component?
 Thanks!
 Pam
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
Best Regards
Christian Junker

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Access to BadicIDE

2005-08-19 Thread Christian Junker
Hi Andrew,
the two modules that build up Starbasic IDE are basic and basctl, the
first one being responsible for the interpreter and the second one for
the visual stuff.
I don't know any documentation, so the source code is probably the
only source of documentation.

2005/8/19, Andrew Jensen [EMAIL PROTECTED]:
 Thanks Thomas,
 
 Thats what I needed to know.
 
 Andrew
 
 Thomas Benisch wrote:
 
  Dear Andrew,
 
  there's no UNO API available for the Basic IDE, neither for accessing
  any Basic IDE components, nor for extending the Basic IDE.
  The Basic IDE can only be extended by modifying the C++ code, which
  can be found in the module basctl. As you've already assumed,
  the only documentation in this case is the source code.
 
  Thomas
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
Best Regards
Christian Junker

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Basic Libraries and security

2005-08-19 Thread Christian Junker
Hi Peter,

you're right, there seems to be no way to call a macro that is not
located in the Standard library, even if that library has been loaded.
I could reproduce this behavior with src680_m121 .
I propose you file a report at Issuezilla, thanks.

2005/8/19, Peter Eberlein [EMAIL PROTECTED]:
 Hi Eike,
 
 Eike Rathke schrieb:
  Hi Peter,
 
  On Wed, Aug 17, 2005 at 14:36:28 +0200, Peter Eberlein wrote:
 
 
 Type a three line function MyFunction() in any module of the Standard
 library.
 Open a calc document and type the function in a cell. You will get as
 result the return of the function.
 Now move the function to another (loaded) library and try again.
 
 You can't specify the function call in the cell like
 =MyLibrary.MyModul.MyFunction()
 
 
  No, but you should still be able to call it as =MyFunction()
 
 No, you will get in German #WERT! as result.
 
 The normal behavior should be:
 1. Search the function in the library of the document /works
 2. Search the function in the standard library /works
 3. Search the function in any other loaded user libraries /doesn't work
 4. Search the function in any other loaded shared libraries /doesn't work
 
 
 And btw, if you use such a document as template, the cells are not
 updated automatically nor with GUI. Doc.CalculateAll() will do it.
 
 
  Why should they be updated? With what? There is no dependency in form of
  a cell reference passed as an argument that tells it to do so.
 
 Because in a network installation a function =MyPhoneNumber() should
 return the phonenumber of the user, who uses the template document, and
 not the phonenumber of the owner of the template.
 So you have to assign a macro to the document-event OnCreate to update
 the data.
 
 Regards
 Peter
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
Best Regards
Christian Junker

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] makecab locks up during installer creation

2005-08-15 Thread Christian Junker
it most certainly is the problem that Volker pointed to.
In order to fix this, you need to download one of the snapshot
cygwin1.dlls on http://cygwin.com/snapshots/ or to downgrade cygwin
which means more work than just copying a single dll.

2005/8/15, Volker Quetschke [EMAIL PROTECTED]:
 Michael Thomsen wrote:
  I've completed building m123 from CVS, but makecab has hung up during
  the installer creation. It's just sitting there and it's been that way
  for around 2 hours. Could someone tell me what's going on?
 
 Unless you tell us which cygwin version you are using I assume
 this is:
 
http://qa.openoffice.org/issues/show_bug.cgi?id=51560
 
 
 --
 If you like my work consider:  http://www.scytek.de/donations.html
 PGP/GPG key  (ID: 0x9F8A785D)  available  from  wwwkeys.de.pgp.net
 key-fingerprint 550D F17E B082 A3E9 F913  9E53 3D35 C9BA 9F8A 785D
 
 


-- 
Best Regards
Christian Junker

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Basic Libraries and security

2005-08-13 Thread Christian Junker
See http://www.oooforum.org/forum/viewtopic.phtml?t=6910 , might be of use.

2005/8/12, Peter Eberlein [EMAIL PROTECTED]:
 Hi,
 
 is there a way to move the standard library from the userprofile to the
 shared folder?
 The reason (please correct me, if I'm wrong):
 I've written some global macros as calc functions, and calc functions
 must be located in the standard library.
 But I want to encrypt the code or make it readonly.
 Is there a way to do so?
 
 Regards
 
 Peter
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
Best Regards
Christian Junker

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Macro Security for Embedded Database Forms

2005-07-26 Thread Christian Junker
I am not very sure, but I think there is some standard out there
restricting macros in office documents to be executed without asking
the user if he gives the permission or not. At least that's what I
heard some time ago.

2005/7/26, Andrew Jensen [EMAIL PROTECTED]:
 When I attach a macro module to an embedded database form there seems to
 be no way to tell the macro security function to allow the form to be
 opened without asking if I should 'enable' or 'disable' the macros.
 Well, there is one way set the macro security option to 'LOW' and this
 is not an acceptable thing to me.
 
 It would seem to me that  the security component should honor the entry
 under Trusted file locations for the database file. But it seems not to
 be doing this.
 
 If this should be entered as an Issue I will do so but would this be a
 defect or an enhancement?
 
 Thanks
 
 Andrew Jensen
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
Best Regards
Christian Junker

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] How to keep users away from Base

2005-07-20 Thread Christian Junker
Hi Matthias,

there are some new API features available in 2.0 and one of them would
certainly be of great benefit to you: programmatic GUI-control,
meaning full control over menu items and toolbars. Recently there were
some talks on [EMAIL PROTECTED] about those new things, as you
can check when searching through the archives.
Currently the api project webpage does not reflect oo 2.0 beta status,
thus you need to get the newest sdk available to read yourself through
provided documentation on that area, I believe the newest sdk is m113
right now.
The ones of interest for you would be
css::ui::XUIConfigurationManagerSupplier and related objects, as well
as css::frame::XLaoutManager .
In principal you could easily disable, hide or delete certain menu
entries or toolbar icons, thus giving the user no way to easily open
up a new database document for example.

And if you don't want to go this way, there is even the chance of
registering your own component integrating a DispatchInterceptor which
actually can receive every single ui dispatch possible, which would
give you even more control about what happens when a user clicks this
or that button (dispatch slot ids can be found on
http://api.openoffice.org).

Let me know if you need some start, I have got some examples of code
in Starbasic.

2005/7/20, Matthias Benkmann [EMAIL PROTECTED]:
 Hallo Frank,
 
  For now, this basically only implies that the New database entries are
  removed from various places, including the ones you mentioned.
  Additionally, the data source browser (F4) is removed,
 
 I've just tested m118 without Base and I like the feature set. I
 especially like the reduced Base dialog that allows the user to edit
 existing databases and to use existing queries but does not allow
 saving to another file, creating new tables or queries etc.
 From the POV of our policy this seems even more useful than having no
 Base UI at all, because that way users can still work with existing
 databases provided by the admin but can not create their own.
 I also like that the Mail Merge wizard still exists and the
 Insert/Fields/Other.../Database tab still works.
 
  and you cannot
  open DB files from the File|Open dialog. See [1] for details.
 
 Well, in m118 you can open them with File/Open, but there's not filter
 for odb files, you have to use All Files.
 
 
  If you only want to remove the menu entries, but not the DSB - Hmm. Not
  sure if this is possible, other people might know more about it.
 
 In m118 the DSB can still be invoked programmtically with the code you
 helped me write recently. So we can provide our own macro and button
 to open it and it's not really a problem that it's gone.
 
  Removing things like the database registration (Tools|Options|Databases)
  is not possible ATM.
 
 That was just an idea. As long as users are more or less prevented
 from creating their own databases, it doesn't hurt if they have UI to
 register them.
 
   And maybe there's a way to disable the Base GUI completely?
 
  None except disabling it in the setup, with exactly the consequences
  described in [1].
 
 As I've said above, I believe that the reduced Base GUI from m118 is
 even better than no GUI.
 
   Any other ideas how I can make life more difficult for users who want
   to use the Base GUI?
 
  One could manually de-register certain UNO services, so that certain
  functionality becomes unavailable.
 
 How do I do that?
 
  This could include at least all
  services which are necessary for the UI. If the above doesn't fit your
  needs, this would be the way to go.
 
 Well it looks like the way implemented in m118 would be enough to
 solve my problem, although I will have to discuss this with my
 superiors before I can be sure. The thing I'm worrying about is how
 stable the m118 feature set is. Reading [1]  gives me the impression
 that it is not stable, that disabling Base at installation time will
 remove more functionality in future.
 
 And if for instance the Mail Merge Wizard disappears completely or
 registering databases via UNO stops working, then installing without
 Base will no longer be an option for us and we'll be in the same fix
 as we're now, only worse, because by that time we'll probably have
 established a policy that mandates disabling Base at install time,
 that would have to be overturned (which is difficult). To make this
 more clear, it won't be a problem for us if there remains a set of
 install options to get back the m118 feature set, but if OO.o 2.0
 Final ships with only the option to enable or disable Base completely
 and disabling removes a crucial feature, then we'll be in big trouble
 if we establish a policy now based on the m118 feature set.
 
 Matthias
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
Best Regards
Christian Junker