Re: [dev] Saving Documents

2008-04-04 Thread Peter Eberlein
Hi yaungmin, yaungmin schrieb: Hi Mikhail, I did not get any exception when I tried to save the document. As you can see in the saveDocument method, I was basically able to load a document and save it as another document with a different name. All I am trying to do is like say, I have an

Re: [dev] Current Selection

2008-04-04 Thread ashok _
On Thu, Apr 3, 2008 at 9:54 PM, Caolan McNamara wrote: Am I right in that it is not possible to simply generically query any given xModel's getCurrentSelection() result to answer the question is something selected. C. No, you can ... - queryInterface the selection object for selection

Re: [dev] Current Selection

2008-04-04 Thread Caolan McNamara
On Fri, 2008-04-04 at 11:01 +0300, ashok _ wrote: On Thu, Apr 3, 2008 at 9:54 PM, Caolan McNamara wrote: Am I right in that it is not possible to simply generically query any given xModel's getCurrentSelection() result to answer the question is something selected. C. No, you can

Re: [dev] Current Selection

2008-04-04 Thread ashok _
On Fri, Apr 4, 2008 at 11:44 AM, Caolan McNamara [EMAIL PROTECTED] wrote: No, you can ... - queryInterface the selection object for selection ranges (com.sun.star.text.TextRanges) - get the first selected range - get a cursor over the range - if the cursor is collapsed

Re: [dev] Saving Documents

2008-04-04 Thread Mikhail Voitenko
Hi, Sorry, I was confused by the example. You have written that you can not save and have provided the source code. So I have assumed that you can not save using the source code. I am still not sure that I understand your problem completely. You have written and addon that integrates a

Re: [dev] Saving Documents

2008-04-04 Thread Mikhail Voitenko
Hi Peter, I would strongly advise not to use getCurrentFrame(), especially in this context. The AddOn instance must use the own frame that is actually known. Yes, in most cases the current frame will be the frame the addon is related to, but not always. Best regards, Mikhail. Peter

Re: [dev] Current Selection

2008-04-04 Thread Eike Rathke
Hi Caolan, On Friday, 2008-04-04 09:44:08 +0100, Caolan McNamara wrote: Hmm, I suspect that wouldn't give a correct answer to is something selected? in the case of a spreadsheet In a spreadsheet, all operations apply to the current cell if no cell is selected, the selection returned in this

[dev] packaging ogltrans as oxt?

2008-04-04 Thread Andrew Ziem
Hello, I heard it's easy to package ogltrans as oxt, so I wonder if I am closer to success or closer to exposing my ignorance. :) I have an oxt**, but it fails to load with error like (com.sun.start.lang.DisposedException) {{{Message = URP_Bridge : disposed\X000a(tid=22) Unexpected

Re: [dev] Re: Selecting Output Bin When Printing

2008-04-04 Thread Cor Nouws
Cor Nouws wrote (31-3-2008 19:46) I've no time yet to dive into details, but clear is that, as far as we know now, it is not possible to find the available printers (as they can be seen in File|PrintSetup) through API. Added issue #87883 -- The Year of 3 -2008- Het jaar van 3 Cor Nouws

[dev] OOBASIC Macro and VB .NET

2008-04-04 Thread openjack
Hi all, I'm try to explain my problem, just for check if I'm following the better way to solve it. My VB .NET procedure opens a document with Writer, but I need to hide some functions such as Print or SaveAs. I'm able to hide some toolbar buttons ceating a new ooBasic macro, but I can't do it

[dev] Re: Current Selection

2008-04-04 Thread Andreas Saeger
Eike Rathke wrote: In a spreadsheet, all operations apply to the current cell if no cell is selected, the selection returned in this case is the current cell, even if it isn't visibly marked. The difference is only in rendering or for user interaction such as starting dragdrop vs. extending