Hello! I just try to duplicate a section of a text identified by a
XTextCursor in Basic. The text may contain different formatting,
text-tables, perhaps some graphics and so on.
A restriction is that the contents of the clipboard should not been
destroyed, so I think I have to do a kind of
Hello!
I want to use SDK2.0 on Windows with VC++. I have installed OO Version
1.9.104 and SDK 1.9.91, which seems to me the latest versions.
I generated headers with:
cppumaker -BUCR -O [Targetpath to headers] [Path of types.rdb].
I get a lot of compiler-errors, I attached 2 of them. I defined
Hi Stephan,
In both cases, this is relatively new code, which might not yet have
been there in OOo 1.1.x. And, in both cases, your specific VC++ version
seems to be too old to accept the code.
thanks for your reply! I come up with some serious problems using C++ and OO
with Version
thanks for your reply! I come up with some serious problems using C++
and OO
with Version 1.1.3/1.1.4 (if I've found out more I will post a new
thread).
I thought changing to the 2.0Beta perhaps would solve the problems. So
what
exactly do you suggest? Waiting till 2.0 is stable?
I'm
Did you experience this in a Version 1.1.x as well?
I got similar problems with the C++ API using 1.1.3/1.1.4: After executing a
lot of API calls OO crashes (tries to send an error-report). The code-line
where the crashe is happening is always different. I could improve the
behaviour a little
Hi Andreas,
then I think the profis have to start ;-)
Could you provide a simple code which crashes after a lot of executions? I
weren't able to do so, but I could not spend much time on it in the past.
Perhaps, if we find a peace of code that crashes in Java and C++ after
executing a lot of
@Andreas:
we have made a simple test programm that uses the XCellRange interface of
an XTextTable in order to return a cell range in a loop. That is enough in
order to crash OpenOffice.org.
Could you send me the code? I'll try it in C++.
@Jrgen
Maybe the explicit disposal of objects as
-Original Message-
From: Martin Thoma [mailto:[EMAIL PROTECTED]
Sent: Friday, June 17, 2005 4:22 PM
To: dev@api.openoffice.org
Subject: RE: [api-dev] How stable is the Java API ?
@Andreas:
we have made a simple test programm that uses the
XCellRange interface of
an XTextTable
-Original Message-
From: Martin Thoma [mailto:[EMAIL PROTECTED]
Sent: Friday, June 17, 2005 4:22 PM
To: dev@api.openoffice.org
Subject: RE: [api-dev] How stable is the Java API ?
@Andreas:
we have made a simple test programm that uses the
XCellRange interface of
an XTextTable
Where can I find the UNO-objects that need explicit disposal?
To my understanding anything that implements com.sun.star.uno.XInterface
for example.
For me using C++: I thought that ReferenceXInterface would take care of
all memory-things and release objects that aren't used anymore?!
I
Hi Andreas,
my workaround is to use the ViewCursor directly instead. It's not very nice,
but it seems to work better, perhaps it might help you as well.
Martin
-Original Message-
From: Andreas Bröker [mailto:[EMAIL PROTECTED]
Sent: Monday, June 20, 2005 12:24 PM
To:
Andreas Bröker wrote:
Hello,
have anybody an idea for a workaround.
Sorry, but why do you need a workaround for an artificial problem that
doesn't exist in real life code? I doubt that you ever will have the
loop you posted as a part of a real program.
Of course this artificial problem
That wasn't clear from your example. I doubt that there is any real life
use case where you would retrieve *the same* interface of *the same*
object several times in a loop.
Sorry, from the posts earlier in this thread I thought that was clear.
But without knowing where this bug hits you
Hello! I have a XTextTable. How can I get the interface of the document in
which the table is embedded?
I need this in 2 situations:
I want to change a cell-format, but XNumberFormatsSupplier can not be
obtained from a XTextTable.
I want to get a view-cursor, which cannot be obtained from a
Hello!
I want to write a small application which uses OpenOffice and which I want
to share with others as freeware. The problems are:
- I don't know which port the OpenOffice is listing to (or if it listens at
all). What is the recommended way? I don't want the user to change the
Setup.xcu
Hi Jürgen,
first of all i like the question on your subject, it was really fun in
the morning ;-)
I do my very best ;-)
You shouldn't use a socket connection. Take a look into the new SDK for
OO2.0 and into the examples using the new simple bootstrap mechanism.
With this new bootstrap
Hello!
I want to find a word in a Writers document and add text-sentences there
until a new page is created.
I use XPageCursor to determinate how many pages there are in the document.
My problem is: After insertion of a text-sentence, it seems that the layout
is not updated immediately
It worked without any problems before, but now it isn't working.
I changed
the 3rd line so it would put // at the start of the line
instead of / so
it would change from file:/ to file:// just in case, but no difference.
Hi Hal,
use file:///myfolfer/myfile.odt as a filename.
Greetings
Hi Felix,
I didn't try it, but perhaps this might help:
Document.getCurrentController().getFrame().getContainerWindow().toFront()
Martin
-Original Message-
From: Felix E. Klee [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 19, 2006 1:06 PM
To: dev@api.openoffice.org
Subject:
Hello!
I use OpenOffice 2.0 on a windows xp. When you save a document, the whole
printer-settings you set under File-Printer-Settings are saved as a
printer-dependend byte-code. Some (long...) time ago, I think I found the
possibility to get this byte-code via the api, but I was searching now and
I use OpenOffice 2.0 on a windows xp. When you save a document, the whole
printer-settings you set under File-Printer-Settings are saved as a
printer-dependend byte-code. Some (long...) time ago, I think I found the
possibility to get this byte-code via the api, but I was searching now and
Hello!
We have a lot of documents managed by a self-written C++-Application and OO.
We manage also the printer-settings by storing them in the document (saying
for example: This document should always be print on \\Client1\Printer1).
This works fine. But sometimes, when a printer is not
Hi Daniel, thanks for your reply.
Strange, this code throws an exception itself:
catch(com::sun::star::uno::Exception e)
{ Any a = cppu::getCaughtException(); // Another Exception thrown here
Don't wonder about that, it's an implementation trick that the exception
is internally
The problem is that for me it's not caught by the C++-UNO bridge but by
another catch-block:
try {
try {
...
}
catch(com::sun::star::uno::Exception e)
{ Any a = cppu::getCaughtException(); // Another Exception
thrown
}
}
Hi Frank,
So could somebody confirm this behaviour before I raise the issue?
Actually, I used getCaughtException in quite some places, and it worked
fine for me. So, in the generic form as you describe it, I cannot
reproduce the problem. Probably really something about your
Hi Tobias,
When I start OpenOffice and open the print dialog is shown. Default
printer is KyoFS3800. Another printer is displayed, called FS1800.
But: using the code above prints always on the default printer. Why?
2 suggestions:
1.) Could it be that FS1800 is not the right printer name?
Hello!
I managed to use my external C++-application to control OpenOffice under
Windows. What I now need is a button in OpenOffice to start something inside
my C++-application (or a dll of it) which should work on the actual document
the button was pressed in.
I was wondering what would be the
Hello!
I just want to set the width of a cell in a writers texttable (OO 2.0.2,
Windows). I found this message
http://api.openoffice.org/servlets/ReadMsg?list=devmsgNo=3446 and adapted
it to basic:
oDesktop = createUnoService( com.sun.star.frame.Desktop )
Dim mArgs(0) As New
28 matches
Mail list logo