Hi,

Working on the Proxy Icon implementation** on Mac OS X, I need information, and I think framework project is the place.

I'm in AquaSalframe, and I need to know :

- the current window ( trivial)

- whether the current window is a document, and whether it has been saved already

- the complete filename, including the path


The current implementation uses a reference rStr->mpData->maStr but there is a problem : more precisely, if the current filename is "truc.odt " and tracing a bit, I got (my apologies for the eventual spaces in the URL, because my mailer add some randomly :-/ ) http:// eric.bachard.free.fr/mac/aquavcl/patches/aqua_September_2008/ proxy_icon/proxy_6th_sept/proxy_bad_name01.jpg

Means the current filename is seen as : /Users/ericb/Desktop/ test_python25/OpenOffice.org.app/Contents/MacOS/Sans nom 1 - OpenOffice.org Writer after translation, it is equivalent to : <OOo_install_dir> + filename_without_path + " - " + PRODUCTNAME + MODULE , what is basicaly wrong.

If I'm not wrong, I found the place where the concatenation is done : sfx2 ( SetTitle ) and Window::SetTitle in vcl, but I'd like to have experts opinions. Kohei suggested me on IRC to search an access to SfxObjectShell, and retrieve the name using SfxObjectShell::GetMedium- >Getname()

The problem is, sfx2 headers are not reachable from vcl, and I'm not sure this is possible at buildtime. Another way, could be to implement a new method in sfx2 , only used on Mac OS X. Not sure.

Can someone help me ?  Thanks in advance for any help or suggestion :-)


Eric Bachard


**See the draft for the implementation : http:// wiki.services.openoffice.org/wiki/Mac_OS_X_Porting_- _Proxy_Icon_implementation

--
qɔᴉɹə




Reply via email to