Re: [dev] selected text from the textdocument

2005-11-04 Thread S Sridhar

thanks Christoph and Andrew!!

  I am writing this in Java.. though i have little succcess after reading 
the documentation from andrew and samples ... But I am looking for some help 
on java.
Are there any help/open source tools to better understand the text 
documents.  Somehow UNO learning is taking longer time...  any help on this 
is greatly appreciated


thanks
Sridhar



From: Andrew Douglas Pitonyak <[EMAIL PROTECTED]>
Reply-To: dev@openoffice.org
To: dev@openoffice.org
Subject: Re: [dev] selected text from the textdocument
Date: Fri, 04 Nov 2005 09:02:28 -0500

S Sridhar wrote:


Hi,
How to get the selected text from the TextDocument.

Is there any way to get the selected text from all the components of the 
TextDocuments like TextTables Drawings and others?  also how to identify 
where the selected component is ? like is the selected text is in the 
texttable and drawing?


thanks
Sridhar


Download my free macro document and search for "selected text"

--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.sxw
My Book: http://www.hentzenwerke.com/catalog/oome.htm
Info:  http://www.pitonyak.org/oo.php
See Also: http://documentation.openoffice.org/HOW_TO/index.html


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





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



Re: [dev] selected text from the textdocument

2005-11-04 Thread Andrew Douglas Pitonyak

S Sridhar wrote:


Hi,
How to get the selected text from the TextDocument.

Is there any way to get the selected text from all the components of 
the TextDocuments like TextTables Drawings and others?  also how to 
identify where the selected component is ? like is the selected text 
is in the texttable and drawing?


thanks
Sridhar


Download my free macro document and search for "selected text"

--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.sxw
My Book: http://www.hentzenwerke.com/catalog/oome.htm
Info:  http://www.pitonyak.org/oo.php
See Also: http://documentation.openoffice.org/HOW_TO/index.html


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



Re: [dev] selected text from the textdocument

2005-11-04 Thread Christoph Lutz
Hi,

2005/11/4, S Sridhar <[EMAIL PROTECTED]>:
>  How to get the selected text from the TextDocument.
>
> Is there any way to get the selected text from all the components of the
> TextDocuments like TextTables Drawings and others?  also how to identify
> where the selected component is ? like is the selected text is in the
> texttable and drawing?

you need a view-cursor see an example at
http://codesnippets.services.openoffice.org/Writer/Writer.InsertUnicodeCharacter.snip

regards,
Christoph

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



[dev] selected text from the textdocument

2005-11-03 Thread S Sridhar

Hi,
How to get the selected text from the TextDocument.

Is there any way to get the selected text from all the components of the 
TextDocuments like TextTables Drawings and others?  also how to identify 
where the selected component is ? like is the selected text is in the 
texttable and drawing?


thanks
Sridhar



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