Re: [api-dev] Tweaking the api for performance

2006-10-24 Thread Kent Gibson
to do much about it. Thanks again for all the help and for creating a very good tool. --- Mathias Bauer <[EMAIL PROTECTED]> wrote: > Kent Gibson wrote: > > > There is no loading, we render each document from > > scratch and always keep the result in memory. It > is

Re: [api-dev] Tweaking the api for performance

2006-10-16 Thread Kent Gibson
te to waste a lot of time trying to build OpenOffice and see no gain. --- Mathias Bauer <[EMAIL PROTECTED]> wrote: > Kent Gibson wrote: > > > We render documents using the api. For the most > part > > everything is great but performance. > > > &g

Re: [api-dev] Tweaking the api for performance

2006-10-13 Thread Kent Gibson
thanks. I have tried that. But 1) I noticed no difference (should there a big gain?) and 2) sometimes even though I render in a read only document the results are not the same. I can remember that x,y results from my view cursor sometimes looked odd. I should probably test this again, before I has

[api-dev] JVM 1.4.2_12 and AWT Frames Kills the JVM

2006-10-13 Thread Kent Gibson
This isn't an OpenOffice bug, but I thought people who develop with OpenOffice might like to know about this. There is a know issue with AWT frames in JVM 1.4.2_12 that kills the the Java Virtual Machine: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6450869 Everything works ok in 1.4.2_8 bu

[api-dev] Tweaking the api for performance

2006-10-13 Thread Kent Gibson
ating system is windows. thanks kent gibson __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [

[api-dev] Unanswered question: Is Zordering with text frames broken?

2006-10-13 Thread Kent Gibson
A while back ago I asked if someone else had any problem with zordering of frames. There was no reply. So I have gone and put together a macro test case. Could someone kindly confirm that this is a bug or that I am doing something wrong. I have not included images in this test case, for simplicity,

Re: [api-dev] How to force laying out of document

2006-10-12 Thread Kent Gibson
alrighty, thanks. --- Mathias Bauer <[EMAIL PROTECTED]> wrote: > Kent Gibson wrote: > > > Is there anyway I can force the laying out of the > > document. I have tried using the XRefreshable > > interface and xTextDocument.reformat() and but > that > > sti

Re: [api-dev] How to force laying out of document

2006-10-09 Thread Kent Gibson
thanks for the info. --- Fernand Vanrie <[EMAIL PROTECTED]> wrote: > Kent Gibson schreef: > > Our approach is basically model-controller-view. > We > > have one model which we wrote in java and we can > > create two different views, one in OpenOffice and > one

Re: [api-dev] Calling a script (XScript invoke)

2006-10-09 Thread Kent Gibson
With java I normally call basic and get objects back for example text frames. First of all you need to make sure in Basic you are using a Function not a sub. Only a function can return a value. Here is how I do it in java, I hope it helps. // get the script, dispatch it, and conver the res

Re: [api-dev] Calling a script (XScript invoke)

2006-10-09 Thread Kent Gibson
would it help if I sent you some code, how it works in java? --- Bernard Marcelly <[EMAIL PROTECTED]> wrote: > Bonjour Darragh, > Message du 2006-10-09 12:04: > > > Bernard, > > > > I had some trouble before with the invoke method > on XScript, I figured > > out I could get variables returned

Re: [api-dev] How to force laying out of document

2006-10-03 Thread Kent Gibson
gards --- Fernand Vanrie <[EMAIL PROTECTED]> wrote: > Kent Gibson schreef: > > We are using OpenOffice as a preview for Adobe In > > Design. We have a model and we first render it > using > > OpenOffice as a preview and then later we can > model it > > in In De

[api-dev] How to force laying out of document

2006-10-02 Thread Kent Gibson
We are using OpenOffice as a preview for Adobe In Design. We have a model and we first render it using OpenOffice as a preview and then later we can model it in In Design. The results are getting pretty good (which really shows off the ability of OO). But we are having some peformance problems. O

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

2006-09-29 Thread Kent Gibson
All of this I found in the Basic Programmer's Guide I've never actually done it but it should go something like this: Sub Test On Error Goto ErrorHandler ' ... undertake task during which an error may occur Exit Sub ErrorHandler: ' ... individual code for e

[api-dev] Problems with Zordering with Textframes

2006-09-14 Thread Kent Gibson
Does anyone else have problems with Zordering for textframes? The only way I can get zordering for textframes to work is if I render them in their respective zorders. However, in certain cirucumstances for me this is not possible. If I use the Zorder property it just seems to be ignored. I have t

Re: [api-dev] New PDF Options being Ignored - ie FirstPagOnLeft, PageLayout, IsSkipEmptyPages

2006-09-12 Thread Kent Gibson
thanks, that did the trick. --- Sven Jacobi <[EMAIL PROTECTED]> wrote: > Kent Gibson wrote: > > Has anyone had any success using the "New" pdf > > properties programmatically? > > > > I can't find much documenation, so I tried to use > > X

[api-dev] New PDF Options being Ignored - ie FirstPagOnLeft, PageLayout, IsSkipEmptyPages

2006-08-31 Thread Kent Gibson
Has anyone had any success using the "New" pdf properties programmatically? I can't find much documenation, so I tried to use XStore and pass in the properies, but they seem to be ignored. I am using 2.0.3+ (build OOD680_m1) Here is basically what I am doing: XStorable xStore = ( XStorable ) U

Re: [api-dev] ODT to PDF export incorrect, unless Thread.sleep() used

2006-08-25 Thread Kent Gibson
XTextFieldsSupplier.class, > document); > XEnumerationAccess fields = > supplier.getTextFields(); > XRefreshable refreshable = (XRefreshable) > UnoRuntime.queryInterface(XRefreshable.class, > fields); > refreshable.refresh(); > > Is there an explanation for why this

Re: [api-dev] ODT to PDF export incorrect, unless Thread.sleep() used

2006-08-16 Thread Kent Gibson
also, I believe that user fields themselves support the XRefreshable interface, so you might just try refreshing the user fields, instead of the whole document. --- Tim Anderson <[EMAIL PROTECTED]> wrote: > (Originally posted at > http://www.oooforum.org/forum/viewtopic.phtml?t=41056) > > I'm u

Re: [api-dev] ODT to PDF export incorrect, unless Thread.sleep() used

2006-08-16 Thread Kent Gibson
I have had similiar problems with pdfs, but with chained frames coming out wrong. By using the refresh, and/or the xTextDocument.reformat, at strategic locations (for exampel after an insertcontent) I often have better results. --- Tim Anderson <[EMAIL PROTECTED]> wrote: > (Originally posted at

Re: [api-dev] Apply Styles to Cell Range

2006-08-10 Thread Kent Gibson
ops = ( XPropertySet ) UnoRuntime.queryInterface( XPropertySet.class, xTextTableCursor ); xCursorProps.setPropertyValue( "ParaStyleName", styleName ); which seems possible, and logical, but it throws an UnknownPropertyException. Hmm. --- Andrew Douglas Pitonyak <[EMAIL PROTECTED]> wrote: > Kent Gibson

[api-dev] Chained Frames and PDFs

2006-08-09 Thread Kent Gibson
I've got a really annoying problem with chained frames and pdf's. I have a table larger than one page, inside a textframe anchored to a paragraph in a table. The textframe is chained to another textframe (which is inside a table and anchored to a paragraph, and has table inside it). In writer eve

Re: [api-dev] Problems with Paper Orientation

2006-08-09 Thread Kent Gibson
thanks, that worked perfectly. --- Stephan Wunderlich <[EMAIL PROTECTED]> wrote: > Hi Kent, > > > I can set the paper orientation of the printer no > > problem (using the XPrintable), which has the > effect > > that when the printer dialog pops up landscape is > > selected. > > > > But it still

[api-dev] Problems with Paper Orientation

2006-08-04 Thread Kent Gibson
I can set the paper orientation of the printer no problem (using the XPrintable), which has the effect that when the printer dialog pops up landscape is selected. But it still prints portrait unless the page is set to landscape (ie format - page - orientation). I have seen this behaviour in Word

[api-dev] Different Focus Behaviour in 2.0.3 Build 178 as in 2.0.1 Released Version

2006-08-04 Thread Kent Gibson
I have embedded the writer version 2.0.1 in a swt composite. Now I have updated to 2.0.3x and the composite with the writer always takes the focus. What could have changed? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection a

Re: [api-dev] Apply Styles to Cell Range

2006-08-04 Thread Kent Gibson
thanks, I had a look at that, the problem is that you still cal getText for every cell. The type of style is arbitrary, ie either paragraph or character. I just want do try and do it as efficiently as possible. --- Andrew Douglas Pitonyak <[EMAIL PROTECTED]> wrote: > Kent Gibson wrote:

Re: [api-dev] basic question to connect OpenOffice (OOoBean) , last (?) from PART 1

2006-07-27 Thread Kent Gibson
by the way this book might be interesting for you "Rich Client Entwicklung Mit Eclipse 3.1" by Berthold Daum, publisher dpunkt-velay Particularly the chapter "Elefanthochzeit - Office-Komponenten Unter Eclipse" --- Erik Z�hlke <[EMAIL PROTECTED]> wrote: > If we come to the next result, so s

Re: [api-dev] Searching Tables or Cell Ranges in the Writer

2006-07-19 Thread Kent Gibson
xt( oFound.End, > oDescriptor) > Loop > End Sub > > I will create a new section in my macro document and > demonstrate a > complete working example that searches ONLY the > first text table. > This will be titled " Search only the first text > table". I will fi

Re: [api-dev] Inserting RTF into OpenOffice-Writer Document

2006-07-18 Thread Kent Gibson
I would expect, but I haven't done it before, that you need an filter. You define these using the media descriptors. so look in the developers guide under import filters or try ooforum. if you don't have any luck just write back and I will try a bit harder to help. --- Lothar Braun <[EMAIL PROTECT

[api-dev] Apply Styles to Cell Range

2006-07-18 Thread Kent Gibson
Is there any way to apply a style to a range of cells in the writer? As far as I can see you have to extract the XText from every cell, create a cursor and then apply the style. no? thanks __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best s

Re: [api-dev] permanently remove the status bar, or catch selection changed

2006-07-17 Thread Kent Gibson
alrighty, thanks for this and the clarity on dialogs in headless mode. I will enter this is a bug as soon as possible. kind regards. kent --- Mathias Bauer <[EMAIL PROTECTED]> wrote: > Kent Gibson wrote: > > > I would like to permanently remove the status bar. > > &g

Re: [api-dev] Searching Tables or Cell Ranges in the Writer

2006-07-17 Thread Kent Gibson
solving the problem, rather than > answering your high-level > question. > > Kent Gibson wrote: > > >Thanks for the suggestion. Something like that > might > >work. Perhaps I should explain the problem a bit > more. > >I am having some quirky problems insert

Re: [api-dev] Gap analysis for OpenOffice.org awt toolkit API

2006-07-13 Thread Kent Gibson
s the sort of thing that might make by boss look for another solution, which really isn't something I want. regards kent gibson --- Carsten Driesner <[EMAIL PROTECTED]> wrote: > Hi all, > > I currently investigate where we could improve the > awt toolkit API (for

Re: [api-dev] Searching Tables or Cell Ranges in the Writer

2006-07-12 Thread Kent Gibson
r of these will work. --- Peter Eberlein <[EMAIL PROTECTED]> wrote: > Hi Kent, > > Kent Gibson schrieb: > > Is there any way to do a search using XSearchable > in > > writer and set the scope to something other than > the > > document, for example a table

[api-dev] Searching Tables or Cell Ranges in the Writer

2006-07-12 Thread Kent Gibson
Is there any way to do a search using XSearchable in writer and set the scope to something other than the document, for example a table or a cell range? I am pretty sure it works in calc with cell ranges, but I can't get it work in the writer for anything but a document. thanks _

[api-dev] OfficeConnection & OfficeWindow Replacements

2006-07-11 Thread Kent Gibson
OfficeConnection & OfficeWindow are both deprecated, are there any replacements? thanks. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -

[api-dev] permanently remove the status bar, or catch selection changed

2006-07-11 Thread Kent Gibson
I would like to permanently remove the status bar. I can remove it ad hoc without any problems, I send a StatusBarVisible, with Boolean.False. But as soon as the user selects anything, the selection bar come back. So I tried to add a XSelectionChangeListener to the controller of my document, but

Re: [api-dev] Problems inserting images into tables programmatically

2006-07-11 Thread Kent Gibson
771 > All image resizing can be done with wath you find in > this example. > > Fernand > > > Kent Gibson schreef: > > I am having a range of problems inserting images > into > > tables. > > > > I would like to insert an image into a table cell. >

[api-dev] Problems inserting images into tables programmatically

2006-07-10 Thread Kent Gibson
I am having a range of problems inserting images into tables. I would like to insert an image into a table cell. Furthermore I would like the image to scale itself to the proportions of the cell. This is exactly the default behaviour the User Interface provides when you insert pictures from file

Re: [api-dev] BorderDistance or Spacing to Contents in a Frame

2006-07-07 Thread Kent Gibson
Stephan hanks again. I implemented it with paragraph margins as per your suggestion. It seems to be ok, sometimes it comes out funny when I already have control characters at the end, but that is probably my fault. I still haven't decided whether to submit an ehancement. take care ---

[api-dev] Chaining Frames Snippet

2006-07-05 Thread Kent Gibson
Here is a basic macro which chains frames. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL

Re: [api-dev] BorderDistance or Spacing to Contents in a Frame

2006-06-29 Thread Kent Gibson
I guess it will have to do, that or the transparent lines. The problem is that I already paragraphs with styles inside the frames. So I will have to actually increment the margins and then add that extra carriage return. Not rocket science, but I don't reckon it is the cleanest solution. --- Step

Re: [api-dev] BorderDistance or Spacing to Contents in a Frame

2006-06-29 Thread Kent Gibson
hi-ya Stephan, thanks for that. I should of mentioned that I tried paragraph margins, ooops. Well it gave me the chance to try them again with your example. The problem with paragraph settings is the bottom margin. The spacing to contents is applied regardless of how many paragraphs are in the fra

[api-dev] BorderDistance or Spacing to Contents in a Frame

2006-06-22 Thread Kent Gibson
If you do not have a border in a frame you are not allowed to set what is referred to in the UI as Spacing to Contents. I observe that without a border LeftBorderDistance, RightBorderDistance, etc are ignored. Is there no way to get around this? The only success I have had is with transparent colo

[api-dev] Algorithmn to convert Table Definition into Table

2006-06-08 Thread Kent Gibson
Has anyone seen or written an algorithmn that converts an OpenOffice table definition into a XTextTable? For example, the OpenOffice table defintion in the last example in section 7.3.4 (pg 484) of the developers guide. I would like to transform it into a table. thanks. Table Defin

Re: [api-dev] Actual Size of com.sun.star.drawing.GraphicObjectShape

2006-06-08 Thread Kent Gibson
yup you are right, the problem was with the picture, for some pictures I am getting a correct value. thanks again. --- Fernand Vanrie <[EMAIL PROTECTED]> wrote: > Kent Gibson schreef: > > thanks for the tip about the graphic provider. > > > > urgh, I guess we hav

Re: [api-dev] Actual Size of com.sun.star.drawing.GraphicObjectShape

2006-06-07 Thread Kent Gibson
thanks for the tip about the graphic provider. urgh, I guess we have the same problem, lack of documentation. Alrighty well I don't think I actually need the graphicprovider, as I can get the XGraphic from the property (when I did try with the graphic provider I actually got a unsupported service

[api-dev] "Spacing to Contents" in Tables

2006-06-06 Thread Kent Gibson
Is there any way to use the api to set the "Spacing to Contents" parameter for a table? If I use the dispatcher (see below) I can get no spacing to contents with the mysterious flags=8, but I am having a problem uno:InsertTable. Later when I call getByName() it tells me the element does not exist.

[api-dev] Actual Size of com.sun.star.drawing.GraphicObjectShape

2006-06-06 Thread Kent Gibson
How does one get the ActualSize of a GraphicObjectShape? If I do this: drawingTextShape = factory.createInstance( "com.sun.star.drawing.GraphicObjectShape" ); XPropertySet xGraphicPropsGOS = ( XPropertySet ) UnoRuntime.queryInterface( XPropertySet.class, drawingTextShape ); // the property Grap

[api-dev] StatusBar - Incorrect Frame Height

2006-06-01 Thread Kent Gibson
In my long running battle to get the actual height of a frame with dynamic content, I figured out how to read the contents of the status bar (see below). But unfortunately this doesn't always work, because the information in the status bar is sometimes wrong. I am observing this strange effect. I

Re: [api-dev] Row Height of TextTable with Autoheight Always 0

2006-06-01 Thread Kent Gibson
oops, yup you are right, but unfortunately the result is the same. regarding your other comment, will do. --- Cor Nouws <[EMAIL PROTECTED]> wrote: > Hi Kent, > > Kent Gibson wrote: > > > oRow = > > > ThisComponent.getTextTables().getByIndex(0).getRows().ge

[api-dev] Timing Problem with Images

2006-06-01 Thread Kent Gibson
I render a document. Sometimes the first image on the page is missing. I do the same thing but in debug mode with a break point where the image is inserted. I pause long enough so I can click continue and the image is always successfully inserted. I am experiencing this behaviour in 2.0.1., does

[api-dev] Row Height of TextTable with Autoheight Always 0

2006-06-01 Thread Kent Gibson
I am trying to get the height of a row in a table with autoheight, but I always get 0. Is this a bug or am I doing something wrong? Regards kent ## Macro to Test ### Sub Main Dim s As String Dim oTable Dim oVC Dim oCell Dim nCol As Long Dim nRow As Long oVC = ThisComponent.

Re: [api-dev] Get Actual Height of Frame Problems

2006-05-29 Thread Kent Gibson
Good Morning Thomas, I am sorry to drag this issue on and on. But this is really a problem for us, in that this one property is required for us in many places in our code. And we are looking forward to release this baby and we are already publicising openoffice as part of our solution. I followed

[api-dev] Get Actual Height of Frame Problems

2006-05-26 Thread Kent Gibson
I am still having a running battle with getting the actual height of a frame. I thought I had a workaround, but it is buggy, or probably I am doing something wrong. If I never mess with the selection then it works. But as soon as I start setting the selection, it stops working. It fails on goto

Re: [api-dev] SOLVED: Problems with Dynamic User Installation under Windows

2006-05-23 Thread Kent Gibson
yea, I solved this one. I wrote ant script with preservelastmodified="true" and it works, which means that openoffice is doing something with the dates. I don't know if this is a bug or not, I guess I will find out. Any ideas? --- Kent Gibson <[EMAIL PROTECTED]> wrote: &

[api-dev] Problems with Dynamic User Installation under Windows

2006-05-23 Thread Kent Gibson
I am having a severe headache with the utilizing the user directory in an arbitrary location. any help would be very appreciated. Sorry this is going to be a long message. I believe most of these problems are windows related, due to the fact that windows does not support filenames greater than 2

Re: [api-dev] Remove borders from frame

2006-05-20 Thread Kent Gibson
if I remember correctly all you have to do is comment out oLine = oDoc.createInstance("com.sun.star.table.BorderLine") that way you pass a default borderline which should be invisible. otherwise you can also use a framestyle which defaults to invisible. --- Jo <[EMAIL PROTECTED]> wrote: > Hi,

[api-dev] Export PDF Options

2006-05-19 Thread Kent Gibson
Where can I find the PDFExport options for the PDF Filter? I found this document, ui.openoffice.org/proposals/PDFExport.sxw but other than this I cannot find any documentation for the export filter. I need to be able to fiddle with the options either with macros or with java. thanks kent __

Re: [api-dev] INSERT PICTURE behavior

2006-05-18 Thread Kent Gibson
you are probably aware of this but have you tried to use the property "ActualSize" and compare it with the results from the method getSize() from an xShape? --- Fernand Vanrie <[EMAIL PROTECTED]> wrote: > Ok i spitup my Ilmages questions > > Placing an embedded -grahpic into a WriterDoc > (wi

RE: [api-dev] Re: Get a word doc as a java String

2006-05-18 Thread Kent Gibson
ocuments? Cheers, > Thomas > > -Original Message- > From: Kent Gibson [mailto:[EMAIL PROTECTED] > Sent: 18 May 2006 10:22 > To: dev@api.openoffice.org > Subject: RE: [api-dev] Re: Get a word doc as a java > String > > I may be wrong, but no matter what you will need the >

RE: [api-dev] Re: Get a word doc as a java String

2006-05-18 Thread Kent Gibson
ning either locally or remotely? > Thanks, Thomas > > > > -Original Message- > From: Kent Gibson [mailto:[EMAIL PROTECTED] > Sent: 17 May 2006 18:36 > To: dev@api.openoffice.org > Subject: Re: [api-dev] Re: Get a word doc as a java > String > > i

Re: [api-dev] GRAPHIC questions

2006-05-18 Thread Kent Gibson
good idea, but as I remember I tried it before and the problem was they do not support styles. To try to simplify the problem I neglected to mention that I am also using styles. thanks though. --- Stephan Wunderlich <[EMAIL PROTECTED]> wrote: > Hi Kent, > > > The reason I am having this proble

Re: [api-dev] Unanswered Question: Chaining Frames : ChainedTextFrame

2006-05-18 Thread Kent Gibson
to properties are available at Writer's text > frames. > The documentation and also the implementation of the > interface > XServiceInfo at the text frames are incomplete in > this area. > > Regards, > Oliver > > Kent Gibson wrote: > > will do. > >

Re: [api-dev] GRAPHIC questions

2006-05-18 Thread Kent Gibson
have zOrders, no? The reason I am having this problem is becuase I am want my frame borders to have fancy lines like dotten lines, etc. Is there a way to tell a frame to use a line for a border? --- Fernand Vanrie <[EMAIL PROTECTED]> wrote: > Kent Gibson schreef: > > thanks f

Re: [api-dev] Re: Get a word doc as a java String

2006-05-17 Thread Kent Gibson
it really won't be too tricky. You will need to connect, and then convert your document. There are examples for connection and conversion (filters). Be sure to look in the java examples directory of the sdk. Be sure to also look on the openoffice snippets page, there are some bootstrapping class

Re: [api-dev] Programmatic To Foreground

2006-05-17 Thread Kent Gibson
thanks for your persistence in this. I tried dispatching with frames and shapes, but no dice. However, I am now pretty sure what is wrong. The wrap is influencing it. Wrap Through for graphic objects has an "in background" option and this is selected and I do not know how to de select it. I hav

Re: [api-dev] GRAPHIC questions

2006-05-17 Thread Kent Gibson
thanks for sharing your expereinces, related to images do you think you could answer two questions for me? I am having a problem with cropping. Cropping seems to work ok, but for some odd reason, "keep scale" is default during cropping, you can see this in the UI. Therefore when I crop it then get

Re: [api-dev] Programmatic To Foreground

2006-05-10 Thread Kent Gibson
Odd, it either hangs in the "was not selected loop" or throws an error (the macro window pops up). I changed your code slightly, but I don't see that my changes are the problem. You can see the method below. If you think it is worth investigating I can probably save the file and send it to you. W

[api-dev] Programmatic To Foreground

2006-05-09 Thread Kent Gibson
I render some objects - textframes, graphic frames and lines. For all of these I explicitly set the zOrder. Somehow though my lines get put onto a different layer (I presume). What looks like a solution is when I press the button "To Foreground" on the line then zOrdering looks ok, the problem i

[api-dev] Suppress Printing of Automatically Inserted Blank Pages

2006-05-08 Thread Kent Gibson
This feature is in 2.0.2 -http://specs.openoffice.org/writer/index.html but becuase of the hidden PDF I would like to momentarily stick with 2.0.1, is there any way to access this feature programmatically in 2.0.1.? In any case how do I access it programmatically ie what is the property called?

Re: [api-dev] Resolved: Urgent Unanswered Question - Issue id 63211

2006-05-07 Thread Kent Gibson
Dear Fernand, I am not sure what you mean, but regardless you saved the day! I went back to your post ages ago where you described your solution, and it worked like a charm. My solution was way too slow. Here is you solution in java, I will post it as a workaround in the bug entry. As you may rem

Re: [api-dev] Urgent Unanswered Question - Issue id 63211

2006-05-05 Thread Kent Gibson
or another way to solve the problem would be if I could tell how far the bottom border is, but BorderDistance or BottomBorderDistance don't work. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

[api-dev] Urgent Unanswered Question - Issue id 63211

2006-05-05 Thread Kent Gibson
Sorry to be dramatic, but I desperately need a workaround for this issue: http://www.openoffice.org/issues/show_bug.cgi?id=63211 I have asked before, but got no replies. Like the issues says it is impossible to ascertain the real height of a automatic height frame. But I know this info is known t

Re: [api-dev] [code snippet] How to create a frame at an arbitrary location and ZOrder within a table

2006-05-04 Thread Kent Gibson
te: > Well you could also post the relevant parts and I'll > copy them into the > snippet ;-). > > Tom > > Kent Gibson wrote: > > alrighty, I suppose you mean submit them again and > add > > more details. sorry if I neglected to do that. > will

Re: [api-dev] XScrollbar

2006-05-04 Thread Kent Gibson
I do a lot of add hoc rendering. At one point the user scrolls around and then renders the document again, and all I want to do is reset the scrollbars back to where the user was. I reuse the frame but the document is getting rerendered. --- Mathias Bauer <[EMAIL PROTECTED]> wrote:

Re: [api-dev] [code snippet] How to create a frame at an arbitrary location and ZOrder within a table

2006-05-04 Thread Kent Gibson
laborate a little bit what > the purpose of the > snippets is. > > http://codesnippets.services.openoffice.org/Office/Office.HowToCallJavaProgramUsingScriptingFramework.snip > http://codesnippets.services.openoffice.org/Writer/Writer.HowToCreateAFrameAtAnArbitraryLocationAndZOrderWi

[api-dev] Writer Hangs when Playing with Scrollbar While it is Still Being Rendered in Window

2006-05-04 Thread Kent Gibson
While playing with the scrollbar I have discovered this nasty bug (the whole application hangs) and I wonder if you have any suggestions for a workaround. I render a document with an invisible frame, and then I set the frame to visible (this behaviour I see in 2.0.1 and 2.0.2). There is always a f

Re: [api-dev] RESOLVED!.uno:PrintDefault Works but .uno:PrinterSetup does not

2006-05-04 Thread Kent Gibson
, I will detail it in my scrollbar thread. --- Kent Gibson <[EMAIL PROTECTED]> wrote: > I wish I could send a test case. But I really can't > see anyway to isolate this to a reasonable set of > classes. darn. I will try, but it may take me some > time. Also thanks for the

Re: [api-dev] .uno:PrintDefault Works but .uno:PrinterSetup does not

2006-05-03 Thread Kent Gibson
I wish I could send a test case. But I really can't see anyway to isolate this to a reasonable set of classes. darn. I will try, but it may take me some time. Also thanks for the other scrollbar code, i quickly tried it and it seemed to work, I will try it again and tell you how it went. take care

Re: [api-dev] .uno:PrintDefault Works but .uno:PrinterSetup does not

2006-05-03 Thread Kent Gibson
I get the same behaviour with 2.0.1 with 2.0.2. --- Stephan Wunderlich <[EMAIL PROTECTED]> wrote: > Hi Kent, > > > that is what I meant, your sample hangs my machine > > with .uno:PrintDefault and I see no difference > with > > .uno:PrinterSetup (result.State is 0) > > oh ok, I misunderstood yo

Re: [api-dev] .uno:PrintDefault Works but .uno:PrinterSetup does not

2006-05-03 Thread Kent Gibson
that is what I meant, your sample hangs my machine with .uno:PrintDefault and I see no difference with .uno:PrinterSetup (result.State is 0) --- Stephan Wunderlich <[EMAIL PROTECTED]> wrote: > Hi Kent, > > > any ideas? > > that is strange indeed ... does my sample work on > your machine ? > >

Re: [api-dev] .uno:PrintDefault Works but .uno:PrinterSetup does not

2006-05-03 Thread Kent Gibson
, com.sun.star.view.XPrintable --- Kent Gibson <[EMAIL PROTECTED]> wrote: > hi-ya Stephan, > > this is more curious. > > So I use a XDispatchHelper as per your example and > ok > it still does not work. Ok no change, and I get an > result: &

Re: [api-dev] .uno:PrintDefault Works but .uno:PrinterSetup does not

2006-05-03 Thread Kent Gibson
hi-ya Stephan, this is more curious. So I use a XDispatchHelper as per your example and ok it still does not work. Ok no change, and I get an result: DispatchResultEvent result = ( DispatchResultEvent ) xDH.executeDispatch( xDP, ".uno:PrinterSetup", "", 0, LoadArgs ); Any theResult = ( Any ) re

Re: [api-dev] .uno:PrintDefault Works but .uno:PrinterSetup does not

2006-05-02 Thread Kent Gibson
Hi-ya Stephan when we talk macros our code is practically 100% the same: sub PrinterSetup rem -- rem define variables dim document as object dim dispatcher as object rem -

[api-dev] .uno:PrintDefault Works but .uno:PrinterSetup does not

2006-05-02 Thread Kent Gibson
This one is really weird. PrintDefault works perfect, a little window pops up and it ticks down the pages and prints, but PrinterSetup, even though it is issued exactly the same was as PrintDefualt never works. I even tried to create a macro and called it, and it doesn't work. The only guess I have

[api-dev] Unanswered question: Is there ANY way to get the Current Values of the Scrollbar of A Doc?

2006-05-02 Thread Kent Gibson
Is there any way to get the current values of the scrollbar for a given document? thanks. kent __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --

[api-dev] XScrollbar

2006-04-28 Thread Kent Gibson
I would like to get the current scrollbar position. It looks like XScrollbar is the way to go, but how do I get my XScrollbar? thanks! __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ---

[api-dev] Strange Effect with Following Styles

2006-04-28 Thread Kent Gibson
I am using FollowStyle to define a left and right style. I render a one page document with complex information in the header. The page looks ok, but the page breaks about one centimeter too early at the bottom. I render the same document with the same exact content x 2, so that it comes out on t

[api-dev] [code snippet] How to call Java Program using Scripting Framework

2006-04-27 Thread Kent Gibson
hope someone finds this useful. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com Office.HowToCallJavaProgramUsingScriptingFramework.snip Description: 585484624-Office.HowToCallJavaProgramUsing

[api-dev] [code snippet] How to create a frame at an arbitrary location and ZOrder within a table

2006-04-27 Thread Kent Gibson
I hope this is useful. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com Writer.HowToCreateAFrameAtAnArbitraryLocationAndZOrderWithinATable.snip Description: 199290390-Writer.HowToCreateAFrameA

Re: [api-dev] Unanswered Question - Reloading Document - Convert Hidden Doc to NonHidden Doc

2006-04-27 Thread Kent Gibson
cool the work around worked a treat! thanks again for your help. --- Mathias Bauer <[EMAIL PROTECTED]> wrote: > Kent Gibson wrote: > > > thanks for the details. What you said about adding > a > > model to the media descriptor seems very > interesting. >

Re: [api-dev] Unanswered Question - Reloading Document - Convert Hidden Doc to NonHidden Doc

2006-04-26 Thread Kent Gibson
ported one. --- Mathias Bauer <[EMAIL PROTECTED]> wrote: > Kent Gibson wrote: > > > argh. please help. this is driving me batty. > > > > Ok i have an empty frame, > > > > XWindow xWindow = ( XWindow ) > > UnoRuntime.queryInterface( XWindow.class, >

Re: [api-dev] Unanswered Question - Reloading Document - Convert Hidden Doc to NonHidden Doc

2006-04-25 Thread Kent Gibson
n.star.frame.Desktop" but this is not clear to me. Any help would be great. --- Kent Gibson <[EMAIL PROTECTED]> wrote: > thanks that was pretty much the solution I needed. > > you see becuase the documentation said "do not mess > around with setVisible" i didn'

Re: [api-dev] Unanswered Question - Reloading Document - Convert Hidden Doc to NonHidden Doc

2006-04-25 Thread Kent Gibson
re but had some problems and assuemed it had to do with the fact that I was doing some that I shouldn't, alrighty I will give it any try thanks! --- Mathias Bauer <[EMAIL PROTECTED]> wrote: > Kent Gibson wrote: > > > Hi-ya > > > > Sorry to pester but does anyone

Re: [api-dev] Unanswered Question - Reloading Document - Convert Hidden Doc to NonHidden Doc

2006-04-24 Thread Kent Gibson
document and then about 10 minutes just to convert it into a non hidden document for viewing. thanks. --- Kent Gibson <[EMAIL PROTECTED]> wrote: > I set up a connection, get my XTextDocument and > render > with it. > > Then later I want to put my XTextDocument back into >

[api-dev] Private Streams - Reloading Document Performance Issue

2006-04-19 Thread Kent Gibson
I set up a connection, get my XTextDocument and render with it. Then later I want to put my XTextDocument back into a frame. This all works perfectly, but the performance is bad. It takes about half a second for a one page document to "refresh it". You can pretty much see the algorithmn below.

Re: [api-dev] imported basic library disappears after closing OOo

2006-04-17 Thread Kent Gibson
as far as I remember these librarys are stored in your "user" directory so make sure that your user directory is not being deleted somehow. --- Cor Nouws <[EMAIL PROTECTED]> wrote: > Hi all, > > I import a basic-library > (Tools|Macro's|Manag|Basic ... Manage, Library's ... > Add) > and close OO

Re: [api-dev] Unpacked - MediaDescriptor - Not Working?! - filed as Issue 64364

2006-04-13 Thread Kent Gibson
e to me. > > Thanks, > Mikhail. > > > Kent Gibson wrote: > > will do, I have tested with 2.0.1., I will try > with > > 2.0.2 and then I will file it. > > > > thanks > > > > --- Marc Santhoff <[EMAIL PROTECTED]> wrote: > > > > >

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

2006-04-11 Thread Kent Gibson
will do, I have tested with 2.0.1., I will try with 2.0.2 and then I will file it. thanks --- Marc Santhoff <[EMAIL PROTECTED]> wrote: > 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 f

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

2006-04-11 Thread Kent Gibson
alrighty, I wouldn't mind if you give it a try though just to confirm that I am not doing something dumb, and then I will gladly file an issue. --- Marc Santhoff <[EMAIL PROTECTED]> wrote: > Am Montag, den 10.04.2006, 19:10 -0700 schrieb Kent > Gibson: > > thanks for t

  1   2   >