Kjære Christian,
for meg følgende code virker:
oSFA = createUNOService (com.sun.star.ucb.SimpleFileAccess)
oInpStream = oSFA.openFileRead(sUrl)
oTextInpStream = createUnoService(com.sun.star.io.TextInputStream)
oTextInpStream.setInputStream(oInpStream)
One thing I forgot to mention:
Be aware that your code uses the com.sun.star.xml.dom.XDocumentBuilder
Interface
and that is signed 'unpublished' in the IDL reference.
Which means you can't rely on it in future versions.
It might be changed or replaced or something like that.
Christian Andersson
from oDB.parse...
what system do you test this on?
I am running this on windows 2003 server and openoffice 2.0
(I know that there is a way to get build number, but I keep forgetting it)
Christoph Jopp wrote:
Kjære Christian,
for meg følgende code virker:
oSFA = createUNOService
oDB.parse...
what system do you test this on?
I am running this on windows 2003 server and openoffice 2.0
(I know that there is a way to get build number, but I keep forgetting it)
Christoph Jopp wrote:
Kjære Christian,
for meg følgende code virker:
oSFA = createUNOService
Hi Christian,
tried your code and found out one possible error:
Don't know your exact implementation (especially how you named the macro
to call exactly), but if it is as it seems in your posted code, you're
using the standard names for library (in document), module and macro.
Hi Carsten,
you wrote:
You can use the layout manager from the frame to destroy and create
the menu bar again. The current implementation doesn't listen to
changes in the Addon.xcu file.
The current implementation does it not. Will there be an upcoming
implementation in which it does listen to
Hi Carsten,
thank you for the information.
Just thought that the 'package registry' is somehow merged into the
'office registry' and so extensions could profit of the same
updates/refreshing as the 'office'.
Although I'm not sure, if the 'office' has such a update/refresh for its
own menus?
Hi Jürgen,
thank you and the 'OpenOffice.org-NetBeans-PlugIn-Team' for the great work.
It took me just seconds to produce a working test-component package with it.
It seems to be quite stable already with the little task, if there
should turn out some bugs/instability in bigger tasks, I'll
Hi Paolo,
if the executing macro is in the same document as the dialog library
it's easy ( DialogLibraries.exportLibrary(...) ),
but I fear that's not what you've meant.
To access it from outside the document I also have no extempore solution :-(
Maybe later, maybe somebody else?
Ciao
Hi Bart,
I checked whether there is a general limit for arrays, but had no
problems assigning 24 (long) strings to an array on my system.
In your code your using LoadDataFromFile from the Tools library?
In this library 'Redim Preserve' is used to expand the array and in my
opinion this
Btw, did you click 12001 times on the MsgBox? ;-)
Christoph Jopp schrieb:
Hi Bart,
I checked whether there is a general limit for arrays, but had no
problems assigning 24 (long) strings to an array on my system.
In your code your using LoadDataFromFile from the Tools library
Hi Cor;
the only thing to check the visibility of a control I could figure out
was the AccessibleStateType which holds values for certain states.
One of them is the constant VISIBLE with the value 30.
After all this code works for me:
Dim bVisible As Boolean
a() =
Hi Cor,
How did you find out? Just digging in a various places or rather
experience?
No, it was just digging the IDL reference.
Ciao
Christoph
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
:
Christoph Jopp ha scritto:
Hi Bart,
Hi Christoph,
and thank for your answer
I checked whether there is a general limit for arrays, but had no
problems assigning 24 (long) strings to an array on my system.
In your code your using LoadDataFromFile from the Tools library?
In this library 'Redim
Maybe the overflow comes from the rest of your code.
Do you use Calc?
There is a limit of 65536 lines - if you perhaps split your 13+
lines into two columns you would be quite near at this limit.
Bart Aimar schrieb:
Christoph Jopp ha scritto:
Hi Bart,
Hi Christoph,
and thank
Hi Paolo,
I played a bit around with your code and found following:
You can hand an array of TextRanges to .select()
So the code
oCurrCon = ThisComponent.CurrentController
oSelect() = ThisComponent.getCurrentController().getSelection()
oSelect().getByIndex(1).setString(ciao)
P.S.:
I forgot to say:
The Selection-Array consists of two elements more than selections are in
the document.
The real selections are found through index 1 to n-1.
Paolo Mantovani wrote:
Hi all,
sorry for the dumb question, but I'm not able to figure this out..
I've a macro that modify the
Hi Wade,
somebody should correct me if I'm wrong, but as far as I know the
NetBeans_Plugin is just working with NB 5.x versions.
With NB 6 only the OOo_Plugin 1.2 should work, but is not ready until now.
I'm also waiting and maybe somebody more knowledgeable could answer your
questions?
Jonathan Kaye schrieb:
Jonathan Kaye wrote:
snip
Hi Fernand,
Thanks for the reference. I had a look but there's a huge amount of
material and I didn't really see anything relevant to the situation I
described. Can you give me a hint as to how to define a substring of an
object that is
macro)
Have a nice day
Christoph
Jonathan Kaye schrieb:
Christoph Jopp wrote:
Jonathan Kaye schrieb:
Jonathan Kaye wrote:
snip
Hi Fernand,
Thanks for the reference. I had a look but there's a huge amount of
material and I didn't really see anything relevant to the situation I
Sorry, Fernand was quicker
Christoph Jopp schrieb:
Jonathan Kaye schrieb:
Jonathan Kaye wrote:
snip
Hi Fernand,
Thanks for the reference. I had a look but there's a huge amount of
material and I didn't really see anything relevant to the situation I
described. Can you give
Hi Jonathan
Jonathan Kaye schrieb:
Hi Christoph,
I tried this:
Sub SetBold
Dim oDoc As Object, oSheet As Object, oCell As Object
Dim oTextCursor as Object
Dim Position as Integer
oDoc=ThisComponent
oSheet=oDoc.Sheets.getByName(Sheet1)
oCell=oSheet.getCellByposition(0,0) 'A1
(0,0) 'A1
Position = InStr(oCell.getString(), .)
oTextCursor = oCell.getText.createTextCursor() 'Changed
oTextCursor.gotoStart(false)
oTextCursor.goRight(Position - 1, true)
oTextCursor.setPropertyValue(CharWeight, 150)
End Sub
Jonathan Kaye schrieb:
Christoph Jopp wrote:
Hi Jonathan
Hi Hal,
don't know if this helps you much, but you can register an event handler
in the dialog editor.
Just right click on a control and look for the tab named 'events' (don't
know if its the exact name in an english version).
There you can choose an event for this control and either write the
Hal Vaughan schrieb:
(...)
3) The File Browser control doesn't open up any kind of browsing
function when I click on Browse. That would force me to type in
all file paths by hand.
This still does not work and is the one outstanding issue: When I click
on the Browse button, nothing
Hal Vaughan schrieb:
On Sunday 13 July 2008, Christoph Jopp wrote:
Hal Vaughan schrieb:
(...)
3) The File Browser control doesn't open up any kind of browsing
function when I click on Browse. That would force me to type in
all file paths by hand.
This still does not work
Hi Andrew,
tried to reproduce the behaviour of your code.
The results were:
With OOo 2.4 and 3.0 both on Linux. At first I could only change the
status of the checkbox if I turned the document to not editable and thus
could of course change nothing in cell A2.
But with the document set to
Hello Dan,
I'm not a specialist in this field, but I think the odftoolkit -
http://odftoolkit.org/ -
might be what you want.
Hope this helps,
Christoph
Hello,
Thank you to all for this very cool library! I am a bit new and need
some guidance.
Using the tutorials in the wiki, I now know
Hello Elvis,
I don't know if this is what you are looking for, but I think you could
implement an css.util.XModifyListener and catch the modified() event.
f.e. to set the modified-flag of the document to the desired value.
The setModified method is accessible via the css.util.XModifiable
Hi Andrew,
tried to reproduce this behaviour and found following:
When I started the macro from within the macro-editor it's just as you said.
When I started from within the writer document the view adjusts
Maybe that helps for further investigation
Christoph
I move the view cursor in a Write
Hi Oscar,
I think you can find on the mirrors site
http://distribution.openoffice.org/mirrors/#mirrors
some mirrors that provide still older versions like f.e.:
ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/ftp.openoffice.org/stable/3.0.1/
Hope that helps
Christoph
Sorry for my poor wording.
I don't know a way to download it simply as a whole.
But you can select single articles to collect a book you can download or
order in printed form.
More information how to do this could be found on
http://wiki.services.openoffice.org/wiki/Help:Books
Is the OpenOffice Developer's Guide
Hi Johnny,
Am 07.08.2011 16:55, schrieb Johnny Rosenberg:
Am I the only one who miss a Frac() function in OpenOffice.org Basic
and as a cell function?
I always have to use my own function, which is probably slower than a
built in function would be:
Function Frac(Value As Double) As
Am 08.08.2011 08:59, schrieb Christoph Jopp:
Hi Johnny,
Am 07.08.2011 16:55, schrieb Johnny Rosenberg:
Am I the only one who miss a Frac() function in OpenOffice.org Basic
and as a cell function?
I always have to use my own function, which is probably slower than a
built in function would
Am 08.08.2011 12:28, schrieb Johnny Rosenberg:
2011/8/8 Christoph Jopp j...@gmx.de:
Hi Johnny,
Am 07.08.2011 16:55, schrieb Johnny Rosenberg:
Am I the only one who miss a Frac() function in OpenOffice.org Basic
and as a cell function?
I always have to use my own function, which is probably
Am 08.08.2011 16:45, schrieb Johnny Rosenberg:
snip
...
/snip
I guess I'll stick with my own Frac function then, since it's more
straight forward and easier to understand. And shorter…
Function Frac(Value As Double) As Double
Frac=Value-Fix(Value)
End Function
Yes, of course. And
Hi Johnny
Am 18.08.2011 18:02, schrieb Johnny Rosenberg:
I just realised that I sent the last message privately, sorry for
that. Here's the same thing (with some additions) but to the list
instead:
2011/8/18 Thomas Krumbein thomaskrumb...@openoffice.org:
Hey Johnny,
honestly, a lot of
37 matches
Mail list logo