Dinesh Chothe wrote:
Hello,
I am developing one Oo extension using Oo2.4
,java,NeBeans,Windows-Xp.
By this I have added some menus to my OO menubar. Now by
clicking on menu item I can able to access documents
contents.
How to access this text's font?Which method will give me
this?
How to replace some specific fonts text with other text?
Can I able to access each word's Font?
well that are normal API questions and i would suggest that you better
ask on the [EMAIL PROTECTED] mailing list.
Anyway, i assume that you have used our NB plugin to create the addon
skeleton. You will find a m_xFrame member variable that will give you
access to the document.
for example
XTextDocument xDoc = (XTextDocument)
UnoRuntime.queryInterface(XTextDocument.class,
m_xFrame.getController().getModel());
XText xText = xDoc.getText();
See all the available examples online or in the SDK for further hints
how to use the API.
Juergen
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]