Re: [api-dev] copy Paragraph content with markup (java api)

2007-03-12 Thread Peter Eberlein

Hi Dominique,
Dominique De Munck schrieb:

Hi list,

I 'm looping through a document, and I want to merge some
paragraphs, ie past the contents of a paragraph in anothor. I want to
keep the markup (italic, bold etc).


maybe the com.sun.star.datatransfer.XTransferableSupplier is the best 
fitting interface for those purposes.


Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[api-dev] Open office locks

2007-03-12 Thread Rui Lima

hi! Have done a simple program to open template and fill the bookmarks. the
problem is that when i start several instances of the program the Open
Office locks after some instances
enad i heve to kill the process.
Any ideia?
version : Ooo2.1
--
__
O único lugar onde o sucesso vem antes que o trabalho é no dicionário


Re: [api-dev] mouseMotionListener

2007-03-12 Thread gerard

Andre Fischer a écrit :


Hi Gerard,

I have good and bad news.

The bad news is that

a) the DrawingDocumentDrawView has indeed changed its XWindow 
interface to optional in version 1.7 of the DrawingDocumentView.idl on 
2002/12/03,


b) the DrawController that implements this service dropped the support 
for the XWindow interface in version 1.17 of 
sd/source/ui/view/DrawController.cxx on 2006/03/21,


c) there is currently no good way to obtain a reference to the Draw or 
Impress document window.



The reason for b) was the introduction of the slide sorter pane and 
task pane and the necessary reorganization of the underlying 
framework.  One result was that the document window is exchanged 
(almost) every time the  user switches to another view and a large 
part of the DrawController implementation is exchanged as well.  All 
in all it was difficult to provide at all times the correct XWindow 
reference and deal with the problem that references to XWindows can be 
kept after the underlying window has already been destroyed.




The good news is that that change was just the first step.  I am 
currently finishing a child work space that will provide a Draw and 
Impress specific framework that will provide easy access to the 
windows of all panes.  With this it will be very easy for you to 
obtain a reference to the document window of the center pane and 
register as MouseMotionListener.  It will be hopefully just a matter 
of a few weeks until the child work space will be integrated.




I hope this helps and am sorry for the inconvenience,

Andre



Hi Andre,

I tried again to use MouseMotionListener with OO.o 2.1 but it still 
doesn't work. Is there any news about solving this problem.


--
gerard

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[api-dev] New snippets for Base ...

2007-03-12 Thread Rony G. Flatscher
Hi there,

since today there are a few new snippets for Base available on:
http://codesnippets.services.openoffice.org/Database/ooRexx.xml.
They are written in ooRexx (http://www.ooRexx.org) which means that the
code looks like pseudo-code, allowing to see/learn what logic one needs
to apply (service/interface objects, setting which properties/attributes
to which value).

This way anyone with a need/preference for another language should be
able to transfer the knowledge embedded in those nutshell examples.
Please be aware that the ooRexx code contains the links to the
respective UNO IDL documentation which also will reveal the fully
qualified name of the UNO classes (which one usually can forgo in ooRexx).
[The only thing one may need to know to understand the examples in full
is the ~ operator, which is the ooRexx message operator: the name
right of it denotes a message that gets send to the object left of it;
in the case of an interface name the appropriate interface object will
be queried.]

These nutshell examples stem from the following work of a student,
Stefan Schmid, (PDF-book, archive with all samples), which also may
serve as a nice introduction into OOo Base and interfacing with it:

http://wi.wu-wien.ac.at/rgf/diplomarbeiten/BakkStuff/2007/200702_Schmid/

HTH,

---rony




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

2007-03-12 Thread Christian Lohmaier
Hi Noelson, *,

On Thu, Mar 08, 2007 at 09:35:26AM -0300, Noelson Duarte wrote:
 
 The service OfficeDocument has an interface XEventBroadcast to register
 listeners of event documents. There are two events of interest here:
 OnMailMerge e OnMailMergeFinished. Maybe this is the way to do your work
 (only a guess).

I assume these are the same as you can reach wia Tools|Macros → Organize
→ Assign (although OnMailMergeFinished isn't listed there)

Unfortunately, this doesn't work for the following reasons:
* Event is only triggered using the old (IMHO better) dialog, not with
  the new one
* Only one event is triggered, so I have no way to edit the individual
  documents

And looking at 
http://api.openoffice.org/docs/common/ref/com/sun/star/document/Events.html

What is the difference between OnSaveDone and OnSaveFinished?

Thanks for your suggestion though

ciao
Christian
-- 
NP: Kashmir 9:41 - For Srila Prabhupada

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]