Re: [dev] CLI - how to deploy, hoe does it works ?

2007-11-26 Thread Joachim Lingner

Marten Feldtmann wrote:
I've integrated OO 2.3 in our C# application to create complete 
documentation from our applications - and the whole stuff works pretty 
well on my development machine - BUT it does not work at all, when I 
transfer my programs to another machine 


Could you provide detailed error descriptions? For example, the complete 
 output of the console.



My development system:

 Source: Vista OO 2.3
   - works without problems

 Target: XP and OO 2.2
   - crashes at once  either it gets a binding problem on the other
 machines, which can be solved, if I add the program directory of
 OpenOffice to the PATH environment or I get a getContext error.
To locate an office installation you should set UNO_PATH. The bootstrap 
code uses the the registry to locate the office installation. You can 
override it using UNO_PATH. First

HKEY_CURRENT_USER/Software/OpenOffice.org/UNO/InstallPath
is used. If this key is not provided then
HKEY_LOCALE_MACHINE/Software/OpenOffice.org/UNO/InstallPath
is used.

Joachim



 I also had XP OO 2.3 and it did not work under Server 2.3 with OO 2.3

Therefore a very simple question ! How should deployment be done ? What
do I have to deliver ? How does it work at all ? Spreading around the 
internet I've seen, that there are other developers, who haave also

seen this problem ...

 http://www.oooforum.org/forum/viewtopic.phtml?p=229623#229623
 http://www.oooforum.org/forum/viewtopic.phtml?p=142565#142565
 http://www.oooforum.org/forum/viewtopic.phtml?t=57838

What is going on here ?


Marten


-
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]



Re: [dev] Sticking a tag to a visible object

2007-11-26 Thread Mathias Bauer
Hi Gerhard,

Gerhard Schuster wrote:

 Hi there,
 
 
 I want to attach metainformation to visible objects.

Then perhaps ODF1.2 meta data is the right choice for you? Currently we
hope to get meta data support in OOo3.0. Besides that you only can use
alien attributes but I'm not sure if OOo always preserves them.

Ciao,
Mathias

-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to [EMAIL PROTECTED].
I use it for the OOo lists and only rarely read other mails sent to it.

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



Re: [dev] Invalid export type

2007-11-26 Thread Rich

On 2007.11.20. 03:35, Nathan Jarus wrote:

Hi all,

   Ok, this is a stupid request, but I was looking at the available 
export types in Windows OO2.3 and I noticed the type 
- which I proceeded to try to export my 
document as.  It closed the dialog, and after a moment notified me that 
I had exported it with an invalid parameter.So what exactly is the 
purpose of type --?  And couldn't we just take it 
out, to make it easier for users?


hmm. is that final 2.3.0 version of oo.org ? i guess that's simply a 
separator, and i could not select it using m235 on linux.


if you can reproduce it with latest snapshots and can't find a report in 
issuezilla, it's probably worth filing one.



Thanks,
Nathan

--
 Rich

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



Re: [dev] how to choose java jre in oo 2.3 m235 ?

2007-11-26 Thread Oliver Brinzing
Hi Joachim,

 Just checked a m237 on Windows and Linux and the java options dialog 
 works fine. Can you select manually in the options dialog the JRE?

no, that is not possible too ...
I changed back to m233 and will wait for the next developer release ...

maybe something went wrong during the install process

thanks

Oliver

-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail

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



Re: [dev] Context menu interception

2007-11-26 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Andreas,

 As an optional feature you can provide an
 additional interface named XInterceptorInfo. There you can return a list
 of URL pattern (including wildcards) so the dispatch queue will call
 your interceptor only for those URLs ... and not for all.

i tried to configure my DispatchInterceptor:

private String[] interceptedURLs = { macro:///* };

public XDispatch queryDispatch(URL aURL, String sTarget, int nSearchFlags) {
[...]   
}

public String[] getInterceptedURLs() {
return interceptedURLs;
}

to listen only for macro:/// dispatches, but this seems not to work,
my queryDispatches method is called for .uno: dispatches too

Is there a broken chain ?

i found an explanation i the 
docs/common/ref/com/sun/star/frame/XInterceptorInfo.html

 makes it possible to get information about a registered interceptor and is 
 used by frame
 interceptor mechanism to perform interception.
 Frame can call right interceptor directly without calling all of registered 
 ones.
 Use it as an additional interface to XDispatchProviderInterceptor .
 If any interceptor in list doesn't support this interface - these mechanism 
 will be broken
 and normal list of master-slave interceptor objects will be used from top to 
 the bottom.

Oliver

- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHSwvjTiyrQM/QSkURAuk8AKCmYcuPPsCeO33yOJFGYmT/2IAIZgCfULRR
z58TiGImG+NYztnlvBFZExE=
=hJZI
-END PGP SIGNATURE-

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



[dev] How to extend a controller?

2007-11-26 Thread Schuster Gerhard
Hi dev,

how do I extend a controller?
Are there any public entry points where I can add my code?

For example, if I want to change the text document controller, so that
he only shows text of a special format, e.g. head lines, how would I
do that?

-- 
Liebe Grüße / Best regards
Schuster Gerhard
mailto:[EMAIL PROTECTED]

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



Re: [dev] CLI - how to deploy, hoe does it works ?

2007-11-26 Thread Marten Feldtmann

Ok,

I try to give some more information. On my development machine I have
.NET 1.1, .NET 2.0 and .NET 3.0 installed. On this machine I use 
OO 2.3 and all development is done using OO 2.3. I use OO to create 
documents on demand and on my machine everything is working as expected.


Original on the target machine was only .NET 2.0 but I also installed 
.NET 1.1 on that machine. Installed was also OO 2.2. I've several 
machines like this in our network ... and all have the same behaviour.


If I deploy my application I've learned, that I have to deliver my
versions of (based on OO 2.3) the following four libraries:

* cli_basetypes.dll (1.0.7.0), 
* cli_cppuhelper.dll (1.0.10.0), 
* cli_types.dll (1.1.10.0), 
* cli_ure.dll (1.0.10.0)


I have a very simple deployment - I put all my files into a single
directory and add these four libraries to this directory.


If I do NOT add these libraries, the .NET (e.g.) gets a request to bind 
version 1.1.10.0 of cli_types.dll and it fails, because it has only
version 1.1.7.0 (the version from from OO 2.2) and there are no rebinding 
instructions to rebind all the stuff to version x (based on OO 2.3). The 
result is a simple error message on the target machine:


System.IO.FileNotFoundException: Die Datei oder Assembly cli_types, 
Version=1.1.10.0, Culture=neutral, PublicKeyToken=ce2cb7e279207b9e oder eine 
Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei 
nicht finden.
Dateiname: cli_types, Version=1.1.10.0, Culture=neutral, 
PublicKeyToken=ce2cb7e279207b9e
  bei OpenOffice.TextDocHelper..ctor(Boolean hiddenFlag)

=

If I add these libraries the .NET framework searches in the executing
directory and find my deployed versions of these dll's and seems to 
bind them but errors come later on the target machine:


System.Runtime.InteropServices.SEHException: Eine externe Komponente hat eine 
Ausnahme ausgelöst.
  bei cppu.bootstrap(Referencecom::sun::star::uno::XComponentContext* )
  bei uno.util.Bootstrap.bootstrap()
  bei OpenOffice.GeneralDocHelper.connect(String[] args) in 
D:\programmierung\ES2005-1\OpenOfficeConnection\OpenOfficeConnection\GeneralDocHelper.cs:Zeile
 55.
  bei OpenOffice.GeneralDocHelper..ctor(Boolean hiddenFlag) in 
D:\programmierung\ES2005-1\OpenOfficeConnection\OpenOfficeConnection\GeneralDocHelper.cs:Zeile
 35.
  bei OpenOffice.TextDocHelper..ctor(Boolean hiddenFlag) in 
D:\programmierung\ES2005-1\OpenOfficeConnection\OpenOfficeConnection\TextDocHelper.cs:Zeile
 25.

(does not matter if admin or normal user)
=
If I add the OpenOffice 2.2 installation path (...\program) to PATH I get a 
different error on the target machine:


unoidl.com.sun.star.uno.RuntimeException: 
[map_to_uno():[]com.sun.star.beans.PropertyValue] conversion failed
[map_to_uno():unoidl.com.sun.star.beans.PropertyValue.Value [map_to_uno():any] 
could not convert type!

Server stack trace: 

Exception rethrown at [0]: 
  bei System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

  bei System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData 
msgData, Int32 type)
  bei unoidl.com.sun.star.frame.XComponentLoader.loadComponentFromURL(String 
URL, String TargetFrameName, Int32 SearchFlags, PropertyValue[] Arguments)
  bei OpenOffice.TextDocHelper.initDocument(Boolean hiddenFlag) in 
D:\programmierung\ES2005-1\OpenOfficeConnection\OpenOfficeConnection\TextDocHelper.cs:Zeile
 93.
  bei OpenOffice.TextDocHelper..ctor(Boolean hiddenFlag) in 
D:\programmierung\ES2005-1\OpenOfficeConnection\OpenOfficeConnection\TextDocHelper.cs:Zeile
 28.

=
Then I installed OO 2.3 on the target machine (changed the PATH variable to the
original content - this means: NO OO 2.3 in the path) and get the same 
XComponentContext exception as mentioned above.

=

Then I change the PATH variable to point to the OO 2.3 directory (..\program\)
all is working.

=

Following my experience on some other machines here I have to make sure, that
ALL machines have OO 2.3 and PATH must include the OO2.3 program directory
and then the stuff may work. Another problem here is, that it is not possible
to retrieve the installation path of OO 2.3 when working as a normal user -
the security issues with that simple deployment do not allow this.

After all I would say, that the whole deployment for .NET based system 
concerning
OpenOffice simply does not work.

But perhaps you have some hints to make this work ...


Marten





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



Re: [dev] CALC: DAYS360: Questions and Bug

2007-11-26 Thread Andreas
Hi Eike,

Am Mittwoch, 21. November 2007 17:27 schrieb Eike Rathke:
 Hi Andreas,


[...]

 Ah, yes, the dark chapter of day count algorithms.. in the OASIS
 OpenDocument Format Formula specification subcommittee we struggle with
 that as well, namely for the YEARFRAC() function and all related
 financial functions that are based on it.


Google produces some links, the most recent of which seems to be

http://jackwaugh.com/it/openformula-20070125.html#6.9.23.YEARFRAC|outline

which is not even on oasis-open.org. Since I didn't find anything more recent, 
I am referring to this source.

Some day count conventions differ only slightly -- and only in some particular 
cases. So I think it will not be enough to literally describe the 
conventions. It will not be enough to use identifiers such as act/act, 30/360 
etc., either. At least some of them do not seem to be defined by a normative 
source and different sources associate different conventions with these 
identifiers -- or vice versa.

But even if there are normative sources -- not everybody will always have easy 
access to them.

So I strongly advise, to use mathematical formulas in the specification to 
define the conventions. They will then also have a chance to make it into the 
online documentation of applications implementing the spec.

The description in 

http://www.swx.com/download/trading/products/bonds/accrued_interest_en.pdf

could serve as an example.

I guess OO, in particular calc will implement the OpenFormula specification. 
Do you have any noncommittal indication about when the specification might be 
finalized -- and be implemented by OO?

The source given above indicates, that OO 2.0.3 already has a yearfrac 
function.  I have OO 2.0.4 but it doesn't know yearfrac...? Well, I have a 
german version, maybe the function has a different name which I cannot find 
out.

(It might be a good idea to not translate function names... at least to 
always support the English names in any language whatsoever.)

- Andreas

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



Re: [dev] read-only configuration data - unremoveable set nodes?

2007-11-26 Thread Peter Burow

Frank Schönheit schrieb:

Hi,

in the file backend of our configuration data (vulgo: the .xcu files in
the [user|share]/registry/data/* folder hierarchy), it is possible to
declare a configuration node, and all sub nodes, as read-only by adding
the attribute oor:finalized='true'. org/openoffice/Office/Paths.xcu
and org/openoffice/Office/Labels.xcu make exemplary use of this.

I wonder whether there is a possibility to declare an *element of a set
node* as non-removeable. oor:finalized doesn't work for this purpose, as
it only prevents the content of the node to be changed, but not the
complete node to be removed.

Any ideas anybody?

Thanks  Ciao
Frank




Hi Frank,

in addition to oor:finalized you can use oor:mandatory here so the 
content can't be changed and removed.


Kind regards,
Peter

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



Re: [dev] read-only configuration data - unremoveable set nodes?

2007-11-26 Thread Frank Schönheit - Sun Microsystems Germa ny
Hi Peter,

 in addition to oor:finalized you can use oor:mandatory here so the 
 content can't be changed and removed.

That did the trick! Thanks a lot, that's exactly what I need!

Ciao
Frank

-- 
- Frank Schönheit, Software Engineer [EMAIL PROTECTED] -
- Sun Microsystems  http://www.sun.com/staroffice -
- OpenOffice.org Base   http://dba.openoffice.org -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

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