hi
i'm writing an openoffice addon
I have now integrated the addon menu into OOo and i want to do the following:
suppose user opens a OOo text
doc (.odt) or OOo spreadsheet or any other possible OOo application.
1)when user clicks my addon button i want to be able to detect current opened OOo application i.e if it is a Text doc , spreadsheet ,presentation etc..can we do that if we have a reference to com.sun.star.uno.XComponentContext ?
will this com.sun.star.uno.XComponentContext Object reference be sufficient to extract all infos of current opened OOo application ? & how to do that ?
thanks.