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

2005-04-04 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 Pa

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 yourserv

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 (m

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 enter,

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 filte

Re: [dev] Any filter examples?

2006-01-18 Thread Andreas Schlüns
Hello Gautham, Hello all, Well, I was wondering if there are any example/sample codes around for import/export filters, which perhaps write the contents of a document (un-formatted, ascii, w/o xml markup) on to file system, before any document is loaded on the OOo desktop? ??? How an expor

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

2006-01-19 Thread Andreas Schlüns
Hello Don, 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. Every

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 that

Re: [dev] Filter development query.

2006-02-07 Thread Andreas Schlüns
Hello Gautham, Hello all, As a newbie, I have followed the documentation and other posts on the forum to develop an import filter. The filter code largely is borrowed from AsciiFilter in the sdk/examples/devguide section. However, I didn’t know how to deploy the same, though I remembered

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: "\share\config\registry\instance\org\openoffice\Office\TypeDetec tion.xml" However, there is no such tree on my

Re: [dev] Filter development query.

2006-02-08 Thread Andreas Schlüns
Gautham Kasinath wrote: Hey Andreas, Thanks a million for the detailed explanation. I have now jumped from an addon component to a filter and now to a dispatch interceptor. :) Only for clarification: an addon sint so different from a filter, a dispatch interceptor or any other uno componen

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'

Re: [dev] Filter development query.

2006-02-08 Thread Andreas Schlüns
Hello Gautham, Hey Andreas, On the other side ... a dispatch interceptor must not deal with a types/filter configuration at all ... " - So do I need a TypeDetection.xml for a dispatch interceptor or nor? You dont need such TypeDetection.xml. The idea behind addons is the following one:

Re: [dev] [Fwd: [users] start openoffice 2.0 as server under windows]

2006-03-27 Thread Andreas Schlüns
Andreas Höhmann wrote: Hello folks, perhaps at the devel-list i got more answers ;) ... what is the best "installation" of openoffice 2.0 in servermode (-accept=) under windows? the openoffice should only used as a convert-server without *any* user-interaction. is this possible and how? :-)

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, F

Re: [dev] documentation for filter flags?

2006-10-25 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 unabl

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

2006-10-25 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 s

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 O

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"; stor

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 ab

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 IDE

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 manag

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

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

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 t

Re: [dev] Re: [qa-dev] info about red tinderbox status in EIS now available in OOoWiki

2007-04-27 Thread Andreas Schlüns
Hello Thorsten, could this the starting point that QA have to set CWS back to the CWS owner, when a result of tinderbox is red? If you provide the build environment where we can fix those issues ... Would be nice to have a Mac on my working table .-)) Regards Andreas ---

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 #include #include namespace css = ::com::sun::star; void test() { css::uno::Reference< css::uno::XInterface > xFoo; ::rtl::OUString sFoo; ::rtl::Reference< ...

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

2007-07-10 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 preferre

Re: [dev] Terminate soffice process

2007-07-16 Thread Andreas Schlüns
Hello Robert, Hello I am using OOo for converting MS Word files to PDF in Java. My code is basically taken from the Code Snippet base. http://codesnippets.services.openoffice.org/Office/Office.ConvertDocumen ts.snip However after a conversion the soffice.bin and soffice.exe processes do no

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 Window

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 document

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 ev

Re: [dev] Context menu interception

2007-11-25 Thread Andreas Schlüns
Hello Gerhard, In my example I not only print a text out but also return an instance to the DispatchProvider. In OO-DevelopersGUice 4.7.1 Protocoll Handler, there is a tabe under the headding Overview. From this table, I understand, that it is enough to insert my DispatchInterceptor into the di

Re: [dev] Context menu interception

2007-11-26 Thread Andreas Schlüns
Hello Oliver, 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

Re: [dev] Is it possible to use openoffice inside a SWING application?

2007-12-06 Thread Andreas Schlüns
Hello legolas, Thank you for reading my post. Is there any way to use openOffice inside a swing application? for example have openoffice embedded inside a swing based application? Please read the Developers Guide chapter "6.1.7 Java Window Integration". Same mechanism is used by the OOo bean.

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 B

Re: [dev] path.xcu - needs entry in common.xcu ?

2008-01-06 Thread Andreas Schlüns
Hello Oliver, -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, i had a look at: http://wiki.services.openoffice.org/wiki/Configuration_schema_path_settings this should change the "temp" path to "d:\temp" true file:///D:/TEMP

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 type_reg