Re: [dev] Packaging a filter in a *.jar file in OOo2.0

2005-04-05 Thread Andreas Schlüns
Hello Pierre-Andre! Hello, I wrote an xslt filter for OOo2.0, and have some problems to package it. Under the previous versions of OpenOffice.org, I packaged the filter as a jar file, so that I could import it in OpenOffice.org using the box Tools Xml Filter Settings..., and then the Open

Re: [dev] Write to stream and openoffice IOException.

2005-07-25 Thread Andreas Schlüns
Hello Dinesh ! Hi, I am using OOoBean storeToStream to store the document to a stream. I am creating 2 Openoffice beans with same Openoffice connection. When I try to toggle between two instances and save the document to stream its throwing IOException. If I work with only one instance it is

Re: [dev] re: protocol handler is not being called

2005-07-25 Thread Andreas Schlüns
Hello James ! I am developing for OO2.0, and my menu items show up, but they are grayed out. I think that is because the protocol handler is not called. I think that your ProtocolHandler cant be created. You should open the basic IDE and try to create your service manually: sub main

Re: [dev] Write to stream and openoffice IOException.

2005-07-25 Thread Andreas Schlüns
Hello Dinesh ! Hi Andreas, I forgot to say I am loading two different documents. (Both OOoBeans are using same Localofficeconnection). And I am always using calc document. And attached is the exception trace.. This stack shows how the exception is transported via UNO back to your client

Re: [dev] re: protocol handler appears to create a new instance each time menu item selected

2005-08-01 Thread Andreas Schlüns
James Black wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have a plugin where I have two menu items: getGradebook, saveGradebook. I pop up a dialog for login information, and put it into a bean, so that I only need to ask once per session. When I select getGradebook it asks, I

Re: [dev] Import filter and media detect services

2005-08-16 Thread Andreas Schlüns
Bernhard Haumacher wrote: Hi, I'm developing an import filter for OOdraw in Java (yes, for the SVG format...). I read the appropriate sections from the Developers Guide. I'm now able to register my component, as well as the filter and type descriptors in the OO package manager. The actual

Re: [dev] createSystemChild and createWindow hang on Windows trying to create a child window

2006-01-19 Thread Andreas Schlüns
Hello Don, snip I've used Spy++ to analyze the windows created by the working OO ActiveX control, and those created by my ActiveX control up to the moment that the call hangs. Spy++ shows that my control creates the same child window of window class SALTMPSUBFRAME that the OO control creates.

Re: [dev] createSystemChild and createWindow hang on Windows trying to create a child window

2006-01-19 Thread Andreas Schlüns
Hello Don, I'm trying to display Open Office in a child window on Windows. I've tried both the Hack and Legal approaches described in the 2.0 Developer's Guide, section 6.1.7 Java Window Integration, Using the Window Handle (pages 417-418 in my copy). In both cases my code hangs: It seams

Re: [dev] No TypeDetection.xml in Ooo 2.0?

2006-02-07 Thread Andreas Schlüns
Hi, Gautham Kasinath wrote: I was wondering if the TypeDetection.xml is still available for the Ooo2.0? In the documentation it is mentioned that TypeDetection.xml is present in: OfficePath\share\config\registry\instance\org\openoffice\Office\TypeDetec tion.xml However, there is no such

Re: [dev] No TypeDetection.xml in Ooo 2.0?

2006-02-08 Thread Andreas Schlüns
Joerg Barfurth wrote: Hi, Andreas Schlüns wrote: Right The old path was: org\openoffice\Office\TypeDetection.xml Not entirely correct. The very old path (OOo 1.0.x) was: registry/instance/org/openoffice/Office/TypeDetection.xml This used a file format that isn't understood by later

Re: [dev] documentation for filter flags?

2006-10-25 Thread Andreas Schlüns
Mathias Bauer schrieb: Allen Pulsifer wrote: Just to follow up on this question, what in particular does the NOTINCHOOSER flag do? In testing, and in examining the source code, it appears to do nothing. In contrast, the NOTINFILEDIALOG hides the format in all dialogs, including File | Open,

Re: [dev] documentation for filter flags?

2006-10-26 Thread Andreas Schlüns
Allen Pulsifer schrieb: NOTINCHOOSER excludes it from the filter dialog, the awful dialog you get when OOo can't find a filter. Hello Mathias, Thank you, that is helpful. Is there sample file somewhere that causes OOo to bring up the filter dialog? I wanted to test NOTINCHOOSER but I'm

Re: [dev] Re: documentation for filter flags?

2006-10-26 Thread Andreas Schlüns
Allen Pulsifer schrieb: NOTINCHOOSER excludes it from the filter dialog, the awful dialog you get when OOo can't find a filter. Hello Markus, Thank you for the hint on how to force the filter chooser dialog to appear. I was able to confirm that the NOTINCHOOSER flag does not work, and entered

Re: [dev] paths configuration in v2.0.4

2006-10-26 Thread Andreas Schlüns
Allen Pulsifer schrieb: Hello Joerg, Thank you for your response. Just to respond further: The Current/Default distinction in that place was misguided. That should really be achieved via layering. I agree with this. There are other places in OOo where dynamically created keys have such

Re: [dev] Calc, disable saving in Excel 5/95 format?

2006-11-13 Thread Andreas Schlüns
Mathias Bauer schrieb: Kirill S. Palagin wrote: Hello. How do I disallow saving in particular format (specifically Excel 5/95)? I need to do this because Calc produces damaged file (see http://www.openoffice.org/issues/show_bug.cgi?id=32785) and I can not rely on users avoiding this format.

Re: [dev] Calc, disable saving in Excel 5/95 format?

2006-11-15 Thread Andreas Schlüns
Hello Rich, it seems attachment was stripped, as usual - maybe you could put it up for download somewhere ? Sorry - my fault .-) Mathias solved it temporarly .-)) THX. I will put an article on our OOo wiki next time, whery I explain some generic steps, how filter deployment can work on

Re: [dev] Formats Supported by OpenOffice 2.1

2007-02-27 Thread Andreas Schlüns
Dyego Souza Dantas Leal schrieb: In the Code: XStorable xStorable = (XStorable)UnoRuntime.queryInterface( XStorable.class, xDoc); PropertyValue[] storeProps = new PropertyValue[1]; storeProps[0] = new PropertyValue(); storeProps[0].Name = FilterName;

Re: [dev] Print PDF using OpenOffice

2007-02-27 Thread Andreas Schlüns
Hello Dyego, Rui Lima escreveu: please check: http://codesnippets.services.openoffice.org/Writer/Writer.StoreWriterAsPDF.snip 2007/2/27, Dyego Souza Dantas Leal [EMAIL PROTECTED]: Exists way to print a PDF Document using OpenOffice ? No. Without an import filter for OOo you wont be

Re: [dev] Formats Supported by OpenOffice 2.1

2007-02-27 Thread Andreas Schlüns
Tom Schindl schrieb: A question I've always asked myself why the hell are those standard formats not provided by the UNO-API as constants? Something like IExportFormats#MS_WORD_97, if defined in some an IDL I could simply use them without thinking too much about spelling because my favorite

Re: [dev] terminating OOo

2007-03-12 Thread Andreas Schlüns
Hello ianmcr, I need a reliable means of terminating OOo (used as a server in our application). I'm using the c++ SDK. I use XComponent loader to load an XComponent and then process the document and attempt to terminate OOo. I call the following to terminate. //dispose the local service

Re: [dev] issue about special characters in file name

2007-03-23 Thread Andreas Schlüns
Hello zhaosheng, Hi; In OpenOffice.org windows version, because the special character( something like ф) in file name is not allowed, the file can't be opened by double clicking, An IllegalArgumentException is thrown while doing loadComponentFromURL(...) in desktop module. However, the

Re: [dev] issue about special characters in file name

2007-03-23 Thread Andreas Schlüns
Hello zhaosheng, Actually, OO encoded it for me , but the file name contains special characters E.g. file:///mypath/@¢£%�Q.odt, it becomes file:///mypath/%E%B%B.odt, something like this the file can't be opened. Which service do you use to encode those URL's ? On the other side ... you

Re: [dev] filter development

2007-03-26 Thread Andreas Schlüns
Hello nandan, Hi All, I would like to build stand alone a word filter that will parse word document data, using open office libraries in windows using VC 7.0. can anybody advice my how can i make it possible. It's not so easy as you thought ... First you need the word filters itself .. but

Re: [dev] rtl::Reference vs. [com::sun::star::]uno::References

2007-07-10 Thread Andreas Schlüns
Hello, why not preventing using namespace in general and using namespace alias instead ... E.g. #include rtl/ustring.hxx #include rtl/reference.hxx #include com/sun/star/uno/Reference.hxx namespace css = ::com::sun::star; void test() { css::uno::Reference css::uno::XInterface xFoo;

Re: [dev] rtl::Reference vs. [com::sun::star::]uno::References

2007-07-11 Thread Andreas Schlüns
Hi Frank, Hi Andreas, why not preventing using namespace in general As a general rule? No, I wouldn't like to impose this on everybody, this is an unnecessary restriction, IMO. As a personal habit? Well, why not. It was not realy thought as general rule .-) And yes ... it's my preferred

Re: [dev] OpenOffice crashes when run in the background on Windows

2007-09-07 Thread Andreas Schlüns
Hello We have a java application that is using OpenOffice.org to create PDFs and to print documents. When it is run in the foreground (interactively through a signed on user) it runs fine and can go for days processing hundreds of thousands of documents. When we run our application as a

Re: [dev] Is broadcasting global events possible?

2007-11-16 Thread Andreas Schlüns
Hello Christoph, Hi Andreas, I'm a colleague of Matthias and as he is not at office today, I will give you some details about the required global event: our component (let's call it A) processes TextDocuments. So it listens for OnNew-Events and starts the asynchron processing of the documents

Re: [dev] Is broadcasting global events possible?

2007-11-16 Thread Andreas Schlüns
Hello Matthias, Is it possible for our custom Java component to broadcast events via the GlobalEventBroadcaster, so that listeners listening on it will receive them? Yes it's possible ... but till now an undocumented feature. The problem behind: who will be responsible to make sure that all

Re: [dev] Why no CSV Data wizard?

2007-12-06 Thread Andreas Schlüns
Hello Allen, Hello, I need to build a desktop database app that must allow users to periodically import some data from CSV files. In an attempt to get rid of MS Access, I thought I'd give OO another try. Is there any sane reason that, after several years of further development, OpenOffice

Re: [dev] Java - LoadComponentFromUrl

2008-11-20 Thread Andreas Schlüns
Hi [EMAIL PROTECTED], see inline :-) Hello , Thanks in advance for listening to me.. I have created an application in which i try to open a new Writer Document with LoadComponentFromUrl. My next steps are to get the XComponent document = loader.loadComponentFromURL (

Re: [dev] Filter List for OOo 3?

2009-01-29 Thread Andreas Schlüns
Hi all, please have a look on http://wiki.services.openoffice.org/wiki/Framework/Article/Filter. There you can find now a new list for OOo 3.0 ... Further you will find a small Basic Script which you can use to generate your own list. Best Regards Andreas Note: The script generates a simple

Re: [dev] file-types ? (Re: [dev] Filter List for OOo 3?

2009-01-29 Thread Andreas Schlüns
Hi rony yes - it's possible. Inside the script you will find a function generateTypeView (). It's commented out. But it shows you how you can retrieve type properties as e.g. file extensions. If you do the following [e.g. at line 383] ... elseif fprops(p).Name = Type then