I need help in getting information about current opened document.
Sample code looks like:
Code: Select all
Reference< XInterface > Desktop = xServiceManager->createInstanceWithContext(
OUString::createFromAscii("com.sun.star.frame.Desktop"), xContext);
Reference< XDesktop > xDesktop(Desktop, UNO_QUERY);
Reference< XComponent > xcomponent = xDesktop->getCurrentComponent();
I've tried with this: https://wiki.openoffice.org/wiki/Docume ... _Documents
However i have problem to get any property value (to be honest I'm not sure how to do this).
Thanks for help.