[api-dev] Re: Get list of printers

2011-04-07 Thread Marc Santhoff
Am Donnerstag, den 07.04.2011, 18:08 +0200 schrieb Niklas Nebel: On 07.04.2011 15:48, Andrew Douglas Pitonyak wrote: I had hoped it would be as easy as CreateUnoService(com.sun.star.awt.PrinterServer) Unfortunately, the returned object is not usable. Usable is a relative term. You

Re: [api-dev] Opening the file in MS Word, linked images wrong size

2011-02-08 Thread Marc Santhoff
Am Dienstag, den 08.02.2011, 03:04 -0800 schrieb cdfleischmann: Thanks Marc unfortunately, I have already gone down that route, thus far, have tried the following: Inserting the picture (not linked but embedded) as the backgroundURL for the TextFrame. Inside the textFrame, I insert an image

Re: [api-dev] Opening the file in MS Word, linked images wrong size

2011-02-07 Thread Marc Santhoff
Am Montag, den 07.02.2011, 04:18 -0800 schrieb cdfleischmann: Hrm, hrm not sure how to do that. Thus far I tried: IsSyncWidthToHeight set to false, and at the same time also tried IsSyncHeightToWidth setting to false. Lastly, trying IsSyncWidthToHeight to TRUE also fails? In OOo I

[api-dev] forcing dos line endings on unix

2010-08-04 Thread Marc Santhoff
Hi, is it possible to force the line endings of a text file written using BASICs simple file functions to be 0xOD 0xOA instead of 0x0A only? open sDateiname for output as #iNum s = CDate(oBereich.getCellByPosition(0, 0).getValue()) s = s + ; ... print

Re: [api-dev] forcing dos line endings on unix

2010-08-04 Thread Marc Santhoff
Am Mittwoch, den 04.08.2010, 12:59 +0200 schrieb Thomas Krumbein: Hey Marc, Marc Santhoff schrieb: [..] I would rather change the macro using another technique, ucb or the like, for writing files than tell the users to install something else (because my macro program is not able

[api-dev] snippet database needs attention

2010-03-26 Thread Marc Santhoff
Hi, can someone look at that snippet, please?: http://codesnippets.services.openoffice.org/Database/Database.EmptyDateField.snip Seems to be messed up, although the rest in the category is fine. Thanks, Marc -- Marc Santhoff m.santh...@web.de

Re: [api - dev] How to change Macro Security Level in program?

2010-01-29 Thread Marc Santhoff
Am Donnerstag, den 28.01.2010, 10:29 +0100 schrieb Fernand Vanrie: Lee , Security is part of the Document settings so i use in basic by openiong the document: Dim mFileProperties(0) As New com.sun.star.beans.PropertyValue mFileProperties(0).Name=MacroExecutionMode

Re: [api - dev] How to change Macro Security Level in program?

2010-01-29 Thread Marc Santhoff
Am Freitag, den 29.01.2010, 12:02 +0100 schrieb Cor Nouws: Marc Santhoff wrote (29-01-10 00:35) I would name this a dangerous security hole. Is it possible to switch it off using a configuration setting? Well, to turn it off with a macro, the user has to accept to run that macro. So I

Re: [api-dev] Using XDatabaseDocumentUI.loadComponent with BASIC

2009-01-09 Thread Marc Santhoff
Am Freitag, den 09.01.2009, 09:33 +0100 schrieb Fernand Vanrie: Marc Santhoff wrote: Am Donnerstag, den 08.01.2009, 16:18 +0100 schrieb Fernand Vanrie: Frank, Is it also a reasonable RTF to asks that every SubComponent tables, Querys etc been protected by a password or a other

Re: [api-dev] Using XDatabaseDocumentUI.loadComponent with BASIC

2009-01-08 Thread Marc Santhoff
Am Donnerstag, den 08.01.2009, 16:18 +0100 schrieb Fernand Vanrie: Frank, Is it also a reasonable RTF to asks that every SubComponent tables, Querys etc been protected by a password or a other protection sheme (from out the API) I think you can achieve user rights discrimination by doing

Re: [api-dev] Best way to know if SomeFileName is loadable ?

2008-10-20 Thread Marc Santhoff
Am Montag, den 20.10.2008, 08:09 +0200 schrieb Alain Rist: Hi, I need to know if a user selected file can be loaded by OOo. My current (working) implementation tests if OOo can load the file (in hidden mode). It is costly, specially when the answer is yes, as the file will actually be

Re: [api-dev] Unanswered API and OOo development related questions on the OOoForum

2008-10-19 Thread Marc Santhoff
Hi Clayton, Am Samstag, den 18.10.2008, 19:33 +0200 schrieb Clayton: Some of the unanswered topics with links to the forum postings are: (Note: This is NOT a complete list.. it is only some of the API and OOo Development related questions that have gone unanswered.) [... list ...] At least

Re: [api-dev] automatic chapter numbering

2008-09-19 Thread Marc Santhoff
Am Freitag, den 19.09.2008, 01:25 -0300 schrieb Ariel Constenla-Haile: [by the way, which is in German the shortcut for the Dummy Text - DT AutoText?] It is BT for Blindtext. Have fun, Marc - To unsubscribe, e-mail: [EMAIL

Re: [api-dev] add more textfields to one shape

2008-09-05 Thread Marc Santhoff
Am Freitag, den 05.09.2008, 10:14 +0200 schrieb Nicole Scholz: Hi! I would like to add some textfields to one shape. But always when I add them they are put directly on the right side next to the other textfield. I would like to have the textfield below the textfield before. Does

Re: [api-dev] add more textfields to one shape

2008-09-05 Thread Marc Santhoff
Hello Nicole, Am Freitag, den 05.09.2008, 22:19 +0200 schrieb Nicole Scholz: Hi Marc! Thanks for your answer. I tried to insert a paragraph break and a line break but the textfield is inserted right to the other one and not below. Perhaps there is another possibility to change the position

Re: [api-dev] change font of the table of content

2008-08-29 Thread Marc Santhoff
Am Donnerstag, den 28.08.2008, 22:15 +0200 schrieb Nicole Scholz: Hi! I created a table of content in Writer. But the font in the toc is different to the font I use in the rest of my document. Does someone know how to change the font that I have the same font for the whole document?

Re: [api-dev] embedding Java window in OO.o frame

2008-07-02 Thread Marc Santhoff
Am Dienstag, den 01.07.2008, 08:35 +0200 schrieb Mathias Bauer: Marc Santhoff wrote: Hi, the devguide has information about embedding an OO.o window into a Java window as a client. I'd like to know if the opposite is possible: a Java window embedded into a OO.o window/frame

[api-dev] embedding Java window in OO.o frame

2008-06-20 Thread Marc Santhoff
Hi, the devguide has information about embedding an OO.o window into a Java window as a client. I'd like to know if the opposite is possible: a Java window embedded into a OO.o window/frame. Can this be done? If yes, how to? (or where can I find information on the topic ;) TIA, Marc

Re: [api-dev] Java in Windows and OOo uses different Paper Tray names

2008-05-19 Thread Marc Santhoff
Am Montag, den 19.05.2008, 11:41 +0200 schrieb Tobias Krais: Hi Cor, I have a Basic extension for the same job, but provide admins with a unhandy tool to copy/paste papertray names to an ini-file. I thought about it. But it was mere a nightmare... What I do know: related issues are

Re: [api-dev] XRenderer.render

2008-04-26 Thread Marc Santhoff
Am Samstag, den 26.04.2008, 10:41 +0200 schrieb Tim Parth: Hi all! Is it possible to use the interface XRender with it's method render to render a complete TextDocument (swriter) into an image for further use? The documentation is very short an I don't know exactly if it suits my needs and

Re: [api-dev] Getting tables in Bookmark (OOBasic)

2008-01-25 Thread Marc Santhoff
Am Freitag, den 25.01.2008, 19:31 -0300 schrieb Ariel Constenla-Haile: Hi Marc, Marc Santhoff escribió: [...] Boris is trying to access a bookmark inserted inside a TextTable's cell (if I understood well) ' create a cursor at the bookmark csr = oDoc.Text.createTextCursor

Re: [api-dev] Getting tables in Bookmark (OOBasic)

2008-01-25 Thread Marc Santhoff
Am Freitag, den 25.01.2008, 10:25 +0100 schrieb Boris Ratak: Hi, I'm searching for a way to interact with a table located in a bookmark in a Writer document (using an OOBasic macro). I know how to get the bookmark, but I can't see a getTextTable (or something similar) method in the

Re: [api-dev] Re: [Spam] Re: [api-dev] How to unselect a current sleection

2008-01-08 Thread Marc Santhoff
Am Dienstag, den 08.01.2008, 13:44 +0100 schrieb Fernand Vanrie: its in a writer doc where a picture is selected and i want to protect this picture from user alternation by placing a simple macro on it who says do not move and exits . But after exiting the sub the picture is still

Re: [api-dev] MailMergeType.FILE vs MailMergeType.PRINT

2007-11-15 Thread Marc Santhoff
Am Donnerstag, den 15.11.2007, 09:00 +0100 schrieb Willem Voogd: Hey Marc, Hi Willem, Yeah, well, that's exactly what I do. And the code passes, and runs fine, except that the resulting file doesn't have the fields merged. And then when I change MailMergeType.FILE to MailMergeType.PRINT I

Re: [api-dev] MailMergeType.FILE vs MailMergeType.PRINT

2007-11-15 Thread Marc Santhoff
Am Donnerstag, den 15.11.2007, 15:46 +0100 schrieb Willem Voogd: I'll do and send to your private mail address. May take a little time, though. ;) My email agent is patient.. :) Thanks for your time and input! It's you I meant to be patient until I put my hands on it. ;) But it is on

Re: [api-dev] MailMergeType.FILE vs MailMergeType.PRINT

2007-11-13 Thread Marc Santhoff
Am Dienstag, den 13.11.2007, 17:37 +0100 schrieb Willem Voogd: Hi, Hi Willem, it's me again :) I'm still putting up a fight to get the mailmerge done programmatically. And again i find myself in the dark. When i set the OutputType property to MailMergeType.PRINT the file gets properly

Re: [api-dev] instantiating InstanceLocker from BASIC

2007-10-09 Thread Marc Santhoff
this works, too. :) Many thanks for helping out and waking me up, Marc Regards, Mikhail. Marc Santhoff wrote: Hello Mikhail, Am Montag, den 08.10.2007, 14:53 +0200 schrieb Mikhail Voitenko: Hi Marc, This is a bug, I have just submitted an issue to myself. It is going to be fixed

Re: [api-dev] instantiating InstanceLocker from BASIC

2007-10-08 Thread Marc Santhoff
Hi again, this time a crash report was generated. As last time there was only one writer doc open in parallel to the IDE. The code is: sub testLocker doc = ThisComponent args() = Array(CreateUnoValue(any, doc), CreateUnoValue(any, 1)) psm = GetProcessServiceManager()

Re: [api-dev] instantiating InstanceLocker from BASIC

2007-10-08 Thread Marc Santhoff
Hello Mikhail, Am Montag, den 08.10.2007, 14:53 +0200 schrieb Mikhail Voitenko: Hi Marc, This is a bug, I have just submitted an issue to myself. It is going to be fixed in OOo2.4 currently. Please use the following link to find the issue.

Re: [api-dev] instantiating InstanceLocker from BASIC

2007-10-07 Thread Marc Santhoff
Hi Paolo, you're right, stupid error since the argument is sequence of any. I tried here and had the office hang repeatedly on win98, so there in deed must be something wrong. Am Samstag, den 06.10.2007, 23:45 +0200 schrieb Paolo Mantovani: Hello Marc, It seems that the problem is in the way

[api-dev] base snippets

2007-09-23 Thread Marc Santhoff
/keywords authors author id=ms2 initial=true email=[EMAIL PROTECTED]Marc Santhoff/author /authors question heading=change listbox sourceHow can I change the SQL list source of a ListBox? pA query (SQL) based listbox has a fixed SQL statement for itapos;s source./p pSometimes it is useful to change

Re: [api-dev] Moving CoceSnippets into the Wiki?

2007-08-28 Thread Marc Santhoff
Am Dienstag, den 28.08.2007, 09:14 +0200 schrieb Juergen Schmidt: Marc Santhoff wrote: I do not like wikis. well it's your personal opinion. but can i ask you if you have already submitted a snippet until today? You're welcome. I haven't submitted snippets myself for technical reasons

Re: [api-dev] Moving CoceSnippets into the Wiki?

2007-08-27 Thread Marc Santhoff
Am Montag, den 27.08.2007, 17:56 +0200 schrieb Juergen Schmidt: Frank Schönheit - Sun Microsystems Germany wrote: Hi Juergen, with our codesnippets.services.openoffice.org we have useful resource to find some useful snippets. But the contribution is from my point of view not easy

Re: [api-dev] Problem with with NetBeans Plug-In

2007-07-30 Thread Marc Santhoff
Am Montag, den 30.07.2007, 16:18 +0200 schrieb Max Giesbert: CRITICAL # org.openoffice.extensions.util.ProjectCreator,line 486: /usr/lib/openoffice/sdk/linux/bin/uno-skeletonmaker: 4: basename: not found /usr/lib/openoffice/sdk/linux/bin/uno-skeletonmaker: 4:

Re: [api-dev] Some Calc Java Macro Issues:

2007-07-05 Thread Marc Santhoff
Am Donnerstag, den 05.07.2007, 09:49 -0300 schrieb Denis Camargo: 2) I am having a terrible delay in writing the data on the spreadsheet. My macro has to write around (20-30k rows * 9 cols) of information (shading some blocks of rows with related info), and takes around 2 hours to do so. I

Re: [api-dev] API Base Calc integration

2007-06-21 Thread Marc Santhoff
Hi Frank, Ray, Am Donnerstag, den 21.06.2007, 14:40 +0200 schrieb Frank Schönheit - Sun Microsystems Germany: You loose the all-in-one-file then, of course, not sure how much this is a limitation in your scenario. Also, it still means you have two separate connections to the DB, while in your

Re: [api-dev] API Base Calc integration

2007-06-21 Thread Marc Santhoff
Am Donnerstag, den 21.06.2007, 21:25 +0200 schrieb Frank Schönheit - Sun Microsystems Germany: Hi Marc, - Could the internal HSQL data be dumped out (maybe in SQL like making a complete dump of common sql server data) and pumped into a central server? SCRIPT 'path_to_file' will create

Re: [api-dev] API Base Calc integration

2007-06-21 Thread Marc Santhoff
Am Donnerstag, den 21.06.2007, 22:20 +0200 schrieb Marc Santhoff: See the HSQLDB documentation. I did and found another interesting topic: brosing to: http://hsqldb.org/web/hsqlDocsFrame.html and selecting Documentation index i read: (direct link: http://hsqldb.org/doc/guide/ch01.html#N101B4

Re: [api-dev] API Base Calc integration

2007-06-20 Thread Marc Santhoff
Am Mittwoch, den 20.06.2007, 23:59 +0200 schrieb Marc Santhoff: Many applications are designed and based solely on the OO Base *.odb files. The *.odb files are used either as the sole gateway to other JDBC data sources (MySQL, Oracle, etc.) or as a genuine data source (embedded HSQLDB

Re: [api-dev] Waiting for a document load and for a form load

2007-05-31 Thread Marc Santhoff
Am Donnerstag, den 31.05.2007, 18:48 +0200 schrieb Mathias Röllig: The problem is, that in my opinion i don't need a listener - if i have already understood the sense of it. A listener should execute anything if a special event is initiated. And this should be every time the event is applied.

Re: [api-dev] Veto dataset change

2007-05-02 Thread Marc Santhoff
Am Mittwoch, den 02.05.2007, 10:32 +0200 schrieb Frank Schönheit - Sun Microsystems Germany: Hi Marc, I found a script from Frank Schönheit which doesn't work but I don't know what is wrong with it: ... This is a logical error made by Java programmers. ;) Calling me a Java

Re: [api-dev] Veto dataset change

2007-05-02 Thread Marc Santhoff
Am Mittwoch, den 02.05.2007, 17:28 +0200 schrieb Bernd Eilers: Code like this would do behave just like that in java. Are you really sure? If so, please verify ... see below. The assumptions about java programming shown here are just plain wrong. In fact I pretty much doubt that there is

Re: [api-dev] Setting page size when exporting as a pdf

2007-04-20 Thread Marc Santhoff
Am Freitag, den 20.04.2007, 15:18 -0700 schrieb Ryan Grimm: I'm working on exporting spreadsheet documents to pdf using Java. I can get the documents exported as a pdf without any problem, but I'd like to change the paper size so the pagination is a bit nicer. Even when I set the

Re: [api-dev] Setting page size when exporting as a pdf

2007-04-20 Thread Marc Santhoff
Am Freitag, den 20.04.2007, 17:28 -0700 schrieb Ryan Grimm: If this last step doesn't work, the easiest way to get around would be to predefine a new page style having the size set as needed. In your program you would only apply this page style temporarily and reset after it is done - no

Re: [api-dev] embedding extension into GUI and hierarchy

2007-04-10 Thread Marc Santhoff
Am Dienstag, den 10.04.2007, 13:32 +0200 schrieb Juergen Schmidt: Marc Santhoff wrote: Am Sonntag, den 08.04.2007, 21:25 +0200 schrieb Mathias Bauer: Marc Santhoff schrieb: Hi, I ask myself if it is possible to do some special tasks with an extension. Imagine having written

Re: [api-dev] embedding extension into GUI and hierarchy

2007-04-09 Thread Marc Santhoff
Am Sonntag, den 08.04.2007, 21:25 +0200 schrieb Mathias Bauer: Marc Santhoff schrieb: Hi, I ask myself if it is possible to do some special tasks with an extension. Imagine having written the core service for a new type of writer field as an external service using some scripting

[api-dev] embedding extension into GUI and hierarchy

2007-04-08 Thread Marc Santhoff
Hi, I ask myself if it is possible to do some special tasks with an extension. Imagine having written the core service for a new type of writer field as an external service using some scripting engine like python. This new field should be presented:- - to the user in the field insertion dialog

Re: [api-dev] Registering an XMailMergeListener - possible at all?

2007-03-07 Thread Marc Santhoff
Am Mittwoch, den 07.03.2007, 14:59 +0100 schrieb Christian Lohmaier: http://api.openoffice.org/servlets/ReadMsg?listName=devmsgNo=11328 But at least it showshow this stuff is expected to work. Yes, the basic-macro already hinted to that... :-( I personally think this doesn't make too

Re: [api-dev] Registering an XMailMergeListener - possible at all?

2007-03-02 Thread Marc Santhoff
Moin Christian, Am Freitag, den 02.03.2007, 16:09 +0100 schrieb Christian Lohmaier: Hi Marc, *, On Mon, Feb 19, 2007 at 06:32:12PM +0100, Marc Santhoff wrote: Am Montag, den 19.02.2007, 15:43 +0100 schrieb Christian Lohmaier: [mailmerge-listener] If I cannot use the builtin wizard

Re: [api-dev] Registering an XMailMergeListener - possible at all?

2007-02-19 Thread Marc Santhoff
Am Montag, den 19.02.2007, 15:43 +0100 schrieb Christian Lohmaier: Hi Noëlson, Marc, *, N'Abend, On Fri, Feb 16, 2007 at 04:54:13PM -0300, Noelson Duarte wrote: Does anybody have the solution or even a working sample at hand? I'd really appreciate it. You'll find a sample

Re: [api-dev] Registering an XMailMergeListener - possible at all?

2007-02-16 Thread Marc Santhoff
the way it is. That message never reached the list, so I quote it here again: Von: Marc Santhoff [EMAIL PROTECTED] An: dev@api.openoffice.org Betreff: Re: [api-dev] Registering an XMailMergeListener

Re: [api-dev] Registering an XMailMergeListener - possible at all?

2007-02-14 Thread Marc Santhoff
Am Mittwoch, den 14.02.2007, 20:32 +0100 schrieb Christian Lohmaier: On Wed, Feb 14, 2007 at 07:14:37PM +0100, Steffen Grund wrote: thank you for having a look! perhaps I am getting this wrong, because you shortened your code to post it here, but: you add a listener to a MailMerge

Re: [api-dev] How to copy all Content of a document

2006-11-30 Thread Marc Santhoff
Am Donnerstag, den 30.11.2006, 10:58 +0100 schrieb Tobias Krais: Hi Matthias, [...] stardesktop.loadcomponentfromurl(private:factory/swriter,_blank,0,noargs()) doc.currentController.insertTransferable(obj) This API is kind of an internal clipboard. Currently it only works in

Re: [api-dev] [SOLVED] How to copy all Content of a document

2006-11-30 Thread Marc Santhoff
Am Donnerstag, den 30.11.2006, 17:31 +0100 schrieb Tobias Krais: Hi Marc, If you only want to insert the complete second doc at a given location (not mixing in), you can use ::com::sun::star::uno::XDocumentInsertable for this task. Get a text cursor at the target doc,

Re: [api-dev] XDispatchHelper / XModel in XEnumeration

2006-11-18 Thread Marc Santhoff
Am Freitag, den 17.11.2006, 11:47 +0100 schrieb Stephan Wunderlich: Hi Joan, Thanks Stephan, that was really helpful! you are very welcome. The problem is that I don't really get (maybe because of my English) what is every class... What's a model, a controller, a component, a

Re: [api-dev] printing current sheet

2006-11-14 Thread Marc Santhoff
Am Dienstag, den 14.11.2006, 18:35 +0100 schrieb Oliver Brinzing: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Marc, You can't, OO.o does not allow to do so. This should be worth an RFE (if not already written). would be nice if someone will vote for my rfe ... :-)

Re: [api-dev] printing current sheet

2006-11-13 Thread Marc Santhoff
Am Montag, den 13.11.2006, 17:48 +0100 schrieb Mathias Röllig: So the question is: how can i figure out, which print page number has the actual sheet? Or, how can i figure out, on which print page(s) will a special print area reside? You can't, OO.o does not allow to do so. This should be

Re: [api-dev] How to apply Paragraph Style to XTextDocument?

2006-11-08 Thread Marc Santhoff
Am Mittwoch, den 08.11.2006, 11:23 -0800 schrieb aloizio: I need to change via OO API the following parameters LineSpacing ParaFirstLineIndent ParaVertAlignment Maybe you like to use the available documentation ressources: http://codesnippets.services.openoffice.org/Writer/

Re: [api-dev] how to copy textsection from a writer document to another ?

2006-11-07 Thread Marc Santhoff
Am Dienstag, den 07.11.2006, 18:40 +0100 schrieb Oliver Brinzing: thanks for the code snippet, i can use it as a workaround: - - first copy paste the section - - second copy the properties of the paragraph styles but what i am really looking for is to store a textsection as url, or

Re: [api-dev] Re: installing ooSetupConnectionURL through UNO package

2006-11-01 Thread Marc Santhoff
Am Mittwoch, den 01.11.2006, 14:29 +0100 schrieb Knut Olav Bøhmer: On 11/1/06, Tabish F. Mufti [EMAIL PROTECTED] wrote: Just few days back Tobias on the mailing list referred me to the following link for package installation. You might wanna look at it as well. It helped me like anything.

Re: [api-dev] Re: Button on ooimpress slide

2006-11-01 Thread Marc Santhoff
Am Mittwoch, den 01.11.2006, 19:48 +0500 schrieb Tabish F. Mufti: Can anyone mention to me the Object/Class name which I should look into for placing a button on ooimpress slide ? On 10/29/06, Tabish F. Mufti [EMAIL PROTECTED] wrote: Hi, I've a code which create my own customized

Re: [api-dev] controlling the anchor of a commandbutton in writer using script

2006-10-18 Thread Marc Santhoff
Am Mittwoch, den 18.10.2006, 09:12 +0200 schrieb Christian Andersson: Marc Santhoff wrote: Am Freitag, den 13.10.2006, 15:58 +0200 schrieb Christian Andersson: Hi there, I'm dynamicly inserting commandbuttons into a writerdocument, this is all working fine, but I have a huge problem

Re: [api-dev] controlling the anchor of a commandbutton in writer using script

2006-10-18 Thread Marc Santhoff
Am Mittwoch, den 18.10.2006, 12:08 +0200 schrieb Christian Andersson: Marc Santhoff wrote: from what I have learned about adding buttons, etc I cannot add buttons to the document but need to add it to a drawpage and when I do that, I always get them at the top left corner, unless I move

Re: [api-dev] controlling the anchor of a commandbutton in writer using script

2006-10-13 Thread Marc Santhoff
Am Freitag, den 13.10.2006, 15:58 +0200 schrieb Christian Andersson: Hi there, I'm dynamicly inserting commandbuttons into a writerdocument, this is all working fine, but I have a huge problem controlling where they are located. from what I can see I can set the x and y position of the button,

Re: [api-dev] throw exception from OOo Basic

2006-09-29 Thread Marc Santhoff
Am Freitag, den 29.09.2006, 13:10 +0200 schrieb Knut Olav Bøhmer: Hi, How can I throw an exception from openoffice.org Basic? You can't. I'm trying to prevent a mailmerge document from closing with a CloseVetoException. So far I have this code. But this should be possible. Have a look at

Re: [api-dev] [EMAIL PROTECTED] TOPIC: Contributing

2006-09-27 Thread Marc Santhoff
Am Samstag, den 28.08.2004, 14:07 +1200 schrieb Ian Laurenson: On Fri, 2004-08-27 at 16:27, Michael Hoennig wrote: [snip] *** Reviewing the documentation and report issues if you find any [snip] And when you find anything to improve which you think should actually be improved, report an

Re: [api-dev] Error on closing eventlistner 'Cannot coerce argument type during corereflection'

2006-09-27 Thread Marc Santhoff
Am Mittwoch, den 27.09.2006, 23:56 +0200 schrieb Cor Nouws: Sub AddListners Dim oCell Const sCellName as String = A1 oCell = ThisComponent.Sheets.getByIndex(0).getCellRangeByName(sCellName) oListner0 = CreateUnoListener( A10_, com.sun.star.chart.XChartDataChangeEventListener

Re: [api-dev] Multiple cells in macros

2006-06-05 Thread Marc Santhoff
Am Montag, den 05.06.2006, 10:36 +0200 schrieb Moisés Márquez Gil: Gerrit Jasper wrote: That's funny. When I record a macro and save it, and then run it, it does everything it was told to do. But I would describe my actions differently. What I do is: Tools-Macro-RecordMacro |

Re: [api-dev] switching components in one frame

2006-05-26 Thread Marc Santhoff
Am Donnerstag, den 25.05.2006, 23:17 +0200 schrieb Mathias Bauer: Marc Santhoff wrote: Hi, I'm asking myself if it is possible to start implementing the following scenario: A doc is opened in a frame (and window). On a command of the user the component attached to the frame

Re: [api-dev] switching components in one frame

2006-05-26 Thread Marc Santhoff
Am Freitag, den 26.05.2006, 17:51 +0200 schrieb Mathias Bauer: Marc Santhoff wrote: The recreation of the view is a little bit tricky because the necessary API currently does not exist (it's in the making though). As far as it works, it's okay with me. :) Do you know an issue number

[api-dev] switching components in one frame

2006-05-25 Thread Marc Santhoff
Hi, I'm asking myself if it is possible to start implementing the following scenario: A doc is opened in a frame (and window). On a command of the user the component attached to the frame is stored elsewhere to keep the reference and a second document (component) is loaded into that frame. After

Re: [api-dev] Determining the version number of installed OOo

2006-04-23 Thread Marc Santhoff
Am Sonntag, den 23.04.2006, 11:52 -0400 schrieb Hal Vaughan: On Sunday 23 April 2006 06:34, Bernard Marcelly wrote: Bonjour Hal Vaughan I have recently filed an issue on this problem http://www.openoffice.org/issues/show_bug.cgi?id=64345 IMHO it is a defect that it is now impossible

Re: [api-dev] Re: [dev] Integrating external program with OOo on Windows - request for assistance!

2006-04-19 Thread Marc Santhoff
Hi Anders, since noone else does I'll try to help a little. Am Dienstag, den 18.04.2006, 09:36 +0200 schrieb Anders Johansen: I spent about two man-months trying to puzzle out how to interface with OOo from Delphi or BCB. Conclusion: If it works, the documentations is out of date, and

Re: [api-dev] Unpacked - MediaDescriptor - Not Working?!

2006-04-11 Thread Marc Santhoff
Am Montag, den 10.04.2006, 19:10 -0700 schrieb Kent Gibson: thanks for the pointers. I tried the basic code, and no unpacked directory was created. Maybe, I cannot test with 2.x atm. But on 1.1.3 this works perfectly well (copied from the basic-IDE): sub saveUnpacked fname =

Re: [api-dev] Unpacked - MediaDescriptor - Not Working?!

2006-04-11 Thread Marc Santhoff
Am Dienstag, den 11.04.2006, 15:21 +0200 schrieb Marc Santhoff: Maybe, I cannot test with 2.x atm. But on 1.1.3 this works perfectly well (copied from the basic-IDE): sub saveUnpacked fname = /home/marc/tmp/test doc = ThisComponent dim Args(2) as new

Re: [api-dev] Finding the complete OOo version with API ?

2006-04-10 Thread Marc Santhoff
Am Montag, den 10.04.2006, 13:31 +0200 schrieb Bernard Marcelly: Hi all, Successives minor versions of 2.0 are not only correcting bugs, they also introduce features. With API you can read ooSetupVersion from /share/registry/data/org/openoffice/Setup.xcu The problem is it returns 2.0 for

Re: [api-dev] Unpacked - MediaDescriptor - Not Working?!

2006-04-10 Thread Marc Santhoff
Am Montag, den 10.04.2006, 05:12 -0700 schrieb Kent Gibson: oops I sent the wrong code, but I reckon you mean that I should be using a reference to a directory not a file no? Check chapter 14 of the developers guide about the Universal Content Broker, the target UCP has to support folders. A

Re: [api-dev] Unpacked - MediaDescriptor - Not Working?!

2006-04-10 Thread Marc Santhoff
Am Montag, den 10.04.2006, 06:36 -0700 schrieb Kent Gibson: wow, so to write an unpacked format I will have to write an export and import filter, or use the UCP? Seems like overkill? You are already using UCB/P, storing a document makes use of a com.sun.star.ucb.FileContentProvider as I

Re: [api-dev] Document is loaded in a background window

2006-01-20 Thread Marc Santhoff
Am Donnerstag, den 19.01.2006, 13:05 +0100 schrieb Felix E. Klee: Try out the following code. It loads the file /tmp/bar.sxw and afterwards displays a message box. The problem is that the file is loaded in a background window, at least on my system. I.e. the current window obscures the

Re: [api-dev] Accessing global constant in other library?

2006-01-19 Thread Marc Santhoff
Am Donnerstag, den 19.01.2006, 19:21 +0100 schrieb Felix E. Klee: Am Donnerstag, 19. Januar 2006 16:23 schrieb Felix E. Klee: How can I access global constants in another library? If constants in another library are inaccessible, how do I access a function in another library? Have you

Re: [api-dev] registering script events

2006-01-04 Thread Marc Santhoff
Am Dienstag, den 03.01.2006, 09:27 +0100 schrieb Frank Schönheit - Sun Microsystems Germany: Hi Marc, Hello Frank, The IDL reference tells me about css.script.registerScriptEvent: ... registers one event for an object identified by its index. If any object is

Re: [api-dev] GlobalEventBroadcaster and StarBasic - continued ( ....catch a Base document being opened )

2006-01-04 Thread Marc Santhoff
Am Dienstag, den 03.01.2006, 17:53 -0500 schrieb Andrew Jensen: OK, This is getting closer, but a couple of issues remain. I have my sub procedure that is called by the OnDocumentOpen broadcast event. Using the suggested technique of reading the last frame's title from the ActiveDesktop

Re: [api-dev] loadComponentFromURL Worked in 1.1.x and Not in 2.x.x

2006-01-01 Thread Marc Santhoff
Am Samstag, den 31.12.2005, 18:12 -0500 schrieb Hal Vaughan: I have a section of code that worked fine in 1.1.x and does not work in 2.x.x. I keep getting the error: com.sun.star.lang.IllegalArgumentException: URL seems to be an unsupported one. (I'd paste in code here, but it seems

Re: [api-dev] Re: New Document from Template

2005-12-27 Thread Marc Santhoff
Am Montag, den 26.12.2005, 19:20 -0600 schrieb Tam: Marc Santhoff wrote: Am Dienstag, den 27.12.2005, 00:21 +0100 schrieb Mathias Bauer: Could some kind soul please tell me what's wrong? The message says it all: the URL is unsupported, mainly because it isn't a URL at all. Don't use

Re: [api-dev] New Document from Template

2005-12-26 Thread Marc Santhoff
Am Dienstag, den 27.12.2005, 00:21 +0100 schrieb Mathias Bauer: Could some kind soul please tell me what's wrong? The message says it all: the URL is unsupported, mainly because it isn't a URL at all. Don't use system file names, you have to provide a valid URL:

[api-dev] registering script events

2005-12-22 Thread Marc Santhoff
Hi, I'm trying to connect script routines to two buttons in a writer doc. I found http://codesnippets.services.openoffice.org/Office/Office.SettingEventMethods.snip The code looks like this: oView = oDocument.CurrentController oDrawPage = oView.getActiveSheet.DrawPage ' get the first

Re: [api-dev] encoding flaw in dictionary entries

2005-12-02 Thread Marc Santhoff
Am Mittwoch, den 30.11.2005, 09:57 +0100 schrieb Stephan Bergmann: Two things I noticed when trying to reproduce this: 1 You must be using a non-UTF-8 locale (probably 8859-1), check the environment variable LANG. Yes: $ echo $LANG de_DE.ISO8859-1 If you set LANG to something like

Re: [api-dev] encoding flaw in dictionary entries

2005-12-02 Thread Marc Santhoff
something like String Utf8ToCurrentLocale(String) and String CurrentLocaleToUtf8(String) to use wehn transferring. TIA, Marc Am Mittwoch, den 30.11.2005, 09:57 +0100 schrieb Stephan Bergmann: Marc Santhoff wrote: Am Dienstag, den 29.11.2005, 09:56 +0100 schrieb Stephan Bergmann: [...] Two

Re: [api-dev] encoding flaw in dictionary entries

2005-11-29 Thread Marc Santhoff
Am Dienstag, den 29.11.2005, 09:56 +0100 schrieb Stephan Bergmann: Marc Santhoff wrote: Am Montag, den 28.11.2005, 10:29 +0100 schrieb Stephan Bergmann: Marc Santhoff wrote: Hi, I'm using dictionaries from basic code and noticed a problem. When the search word from a dictionary entry

Re: [api-dev] encoding flaw in dictionary entries

2005-11-28 Thread Marc Santhoff
Am Montag, den 28.11.2005, 10:29 +0100 schrieb Stephan Bergmann: Marc Santhoff wrote: Hi, I'm using dictionaries from basic code and noticed a problem. When the search word from a dictionary entry is inserted into a writer doc the encoding is not shown correctly. Try

[api-dev] dictionary entries limit

2005-11-26 Thread Marc Santhoff
Hi, since the interface css.linguistic2.XDictionary(1) has a method IsFull() I'd like to know: When is a dictionary full? Is it a limit on number of items or on bytes total or what else? TIA, Marc - To unsubscribe, e-mail:

[api-dev] encoding flaw in dictionary entries

2005-11-25 Thread Marc Santhoff
Hi, I'm using dictionaries from basic code and noticed a problem. When the search word from a dictionary entry is inserted into a writer doc the encoding is not shown correctly. Try this in a german localized version: sub encError dls =

Re: [api-dev] Info about Mail modules

2005-11-12 Thread Marc Santhoff
Am Samstag, den 12.11.2005, 08:46 +0100 schrieb Mathias Bauer: Alexandro Colorado wrote: [...] XSmtpService(http://api.openoffice.org/docs/common/ref/com/sun/star/mail/XSmtpService.html) Represents a SMTP service abstraction. At least for the Send document as mail we don't use this

Re: [api-dev] window position of components container window

2005-10-24 Thread Marc Santhoff
Am Montag, den 24.10.2005, 12:34 +0200 schrieb Mathias Bauer: Marc Santhoff wrote: Hi, Hello Mathias, I'm trying to retrieve the current position of a component by querying it's container windows position: snip cw = frms(i).ContainerWindow msgbox cw.PosSize.X cw.PosSize.Y

Re: [api-dev] window position of components container window

2005-10-24 Thread Marc Santhoff
Me again, some other testers confirm: OOo 2.0 / Linuxgives correct position values OOo 1.1.5 / linux give 0,0 at any window position Marc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

[api-dev] window position of components container window

2005-10-22 Thread Marc Santhoff
Hi, I'm trying to retrieve the current position of a component by querying it's container windows position: snip cw = frms(i).ContainerWindow msgbox cw.PosSize.X cw.PosSize.Y /snip If this is done on Windows it returns the correct values. If the same runs on FreeBSD (should be the same for

Re: [api-dev] improving macro for merge mail

2005-10-07 Thread Marc Santhoff
Am Freitag, den 07.10.2005, 12:24 +0200 schrieb Ippoliti Giuliano: My question is: is there a method like AppendToUrl (the name is just an example), to append a loaded document into another one, called for instance Fusion.sxw ? I would save a lot of processing time in this way. You could

Re: [api-dev] OOo C++ FAQ ?

2005-09-20 Thread Marc Santhoff
Am Dienstag, den 20.09.2005, 14:07 +0200 schrieb Galmes Pierre-Andre: As a feedback from my experience, the documentation about OOo programming is quite difficult to find. Seems to be the case because ... For example, as a rookie in OOo Cpp programming, I would have enjoyed a page about

Re: [api-dev] UNO packages and events

2005-09-08 Thread Marc Santhoff
Am Donnerstag, den 08.09.2005, 16:52 +1200 schrieb Ian Laurenson: I have two macros that it would be useful to assign to the application events: Open Document and Create Document. While it is possible to do this via Customize Events a lot of end users have difficulty in setting this up so I

Re: [api-dev] UNO packages and events

2005-09-08 Thread Marc Santhoff
Am Freitag, den 09.09.2005, 10:35 +1200 schrieb Ian Laurenson: On Thu, 2005-09-08 at 15:27 +0200, Marc Santhoff wrote: Am Donnerstag, den 08.09.2005, 16:52 +1200 schrieb Ian Laurenson: [...] And is it possible by a BASIC macro? Again some pointers would be useful. If I can get

  1   2   >