Hi Gorden, Gorden Lin wrote: > Hi, all: > > we currently need to customize OOo into an Office Suite that can > automatically start in Full screen mode, without any eindow decoration. > it is not like the View|FullScreen menu item, it will show all the item > of the Office but have no Window head, no buttons like > minimize|maximize|Close, it can be like right click the window head and > select Advanced Option|Fullscreen, the objective of this is to prevent > user from moving and resizing the window, the destination platform will > be Linux. > > I tried soffice -invisible or -headless, but it completeley run OOo in > background process. manybe a new option is needed like -withoutframe, I > met some same requrement on the web discussion forum.
Such an option does not yet exist, but could be added later. Until then you can hack it in the source code by yourself (see below). > I also browsed the desktop/source/app/appl.cxx source code and find that > start point of OOo. I think there should be a method that can set Window > property like HIDE_WINDOW before the OOo is launched. > but maybe I went a wrong way, may be it can be achieved by only revice > an xml file. This code is not related to windows. You can hack just one place in the code to make sure that all windows are opened without decoration. It's framework/source/classes/taskcreator.cxx There is a method impl_createSystemTask where a window with certain attributes is created. You can change this code (in my version it's line 269) to: aDescriptor.WindowAttributes = css::awt::WindowAttribute::BORDER | css::awt::VclWindowPeerAttribute::CLIPCHILDREN; Maybe that's already enough, if not, try to remove the BORDER attribute. Then please report back. Best regards, Mathias -- Mathias Bauer - OpenOffice.org Application Framework Project Lead "For every complex problem there is an answer that is clear, simple, and wrong." -- H.L. Mencken --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]