Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - No more ugly blank window when last document is closed
No more ugly blank window when last document is closed
 
   NeoOffice Forum Index -> NeoOffice Testing
View previous topic :: View next topic  
Author Message
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Mon May 16, 2005 5:35 pm    Post subject: No more ugly blank window when last document is closed

I finally figured out how to implement OOo's "Quickstart" service. This service is what needed to be implemented in order to leave Neo/J running without any visible windows.

As many you already know, the ugly blank window was a hack to prevent Neo/J from shutting down when the last document is closed. By implementing the "Quickstart" service, closing the last document will cause the following to happen:

1. There will be no visible windows
2. Neo/J will stay running with an empty menubar

Since I couldn't put any of the Quickstart menus into the Neo/J menubar because it will conflict with Java's menu manager code, I have added the following Quickstart menu items in the "NeoOffice/J" menu:

- Text Document
- Spreadsheet
- Presentation
- Drawing
- Formula
- From Template
- Open Document

Note: these menu items are localized like the regular Neo/J menus.

Can you please test out this new code to make sure that this new code doesn't cause any crashing or hanging?

The new code is in the following test patch:

http://www.planamesa.com/test/NeoOfficeJ-1.1_Release_Candidate-TestPatch-4.1.dmg

Patrick
Back to top
Guest






PostPosted: Mon May 16, 2005 8:59 pm    Post subject:

From my minimal testing it seems very stable (even under 10.4.1). This is great for usability. I always found he 'New Document' submenu in Ooo to be very unforgiving (on all platforms). Bravo!
Back to top
rays
The Anomaly
(earlier version)


Joined: Sep 23, 2004
Posts: 475
Location: Geneva, Switzerland

PostPosted: Mon May 16, 2005 9:14 pm    Post subject:

Inspired!

Thanks. I'm going to miss that familiar old blank grey window.....

Laughing
Back to top
Guest






PostPosted: Mon May 16, 2005 10:49 pm    Post subject:

This is possibly the most important and visible piece of non-Mac behaviour left. Great stuff! I'm on Jaguar - 10.2.8 - for a bit longer; is there anything in the new patch that'll prevent me from getting this to work? I'm happy to test if you reckon this should work on Jaguar.

Cheers, Phil
Back to top
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Tue May 17, 2005 12:09 am    Post subject:

Anonymous wrote:
This is possibly the most important and visible piece of non-Mac behaviour left. Great stuff!


Agreed. And here I've been telling all the new poster the past few days that we were stuck with the hack Embarassed

Anonymous wrote:
I'm on Jaguar - 10.2.8 - for a bit longer; is there anything in the new patch that'll prevent me from getting this to work? I'm happy to test if you reckon this should work on Jaguar.

Cheers, Phil


Phil, Patrick builds on 10.2.x (and has to in order to continue to build a binary that supports 10.2.x), so you should have no problems.

Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Tue May 17, 2005 12:43 am    Post subject:

Seems to work well in quick initial testing here on 10.3.9 (both in English and Arabic).

I did notice that Cmd-W will still close the document but leave the grey window...if this Quickstart stuff turns out to be bug-free, you probably want to revert the behavior so that cmd-w closes the document and the grey window.

Two nit-picky AHIG-ish things:

All other Mac OS X apps put their additonal "AppName menu" options between "Preferences" and "Services", keeping "About" as the first item and Preferences as the second.

[NeoOffice/J]
==========
About Neo/J
-----------------
Preferences
-----------------
Text Document
...
------------------
Services >
------------------
Hide
...
------------------
Quit

Neo/J should do the same Smile

Also, I think when you have so many items like Neo/J now does, a submenu is the best way of displaying them/keeping them organized. So instead of 7 menu items, one "Quickstart" submenu with 7 items seems less crowded/overwhelming...if it's possible within the OOo and Java frameworks. Smile

Still, bravo!

Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
fabrizio venerandi
Guest





PostPosted: Tue May 17, 2005 1:11 am    Post subject:

I'm using it without problems. Good work pluby!


f.
Back to top
rays
The Anomaly
(earlier version)


Joined: Sep 23, 2004
Posts: 475
Location: Geneva, Switzerland

PostPosted: Tue May 17, 2005 2:16 am    Post subject:

After a couple of hours in use, I would second each of the remarks offered above by Smokey. In fact, I came to submit the same comments and found he'd beaten me to them!

I see that in Safari (for illustrative purposes), clicking on the dock icon when Safari is already launched but has no open windows, opens a new browser window (the only available document type).

On the other hand, NeoOfficeJ has four document types to choose from so a single default behaviour rule of opening a new text document may not suit all.

Being able to invoke a new text document from the default template via click on dock icon to activate NeoOfficeJ followed by cmnd-N would be a nice-to-have, as well, corresponding to behaviour when a blank grey window was previously present.

At one point in the past, I had the impression that the type of new document created using cmnd-N in NeoOfficeJ is dependent to some extent on whether I last used a spreadsheet or a text document, whereas invoking a new document via the new 'standalone' NeoOfficeJ menu (i.e. no windows open) would have to be associated with one particular type consistently, I guess? Would it break the rules to have cmnd-N for new text document and, say, shift-cmnd-N or opt-cmnd-N for new spreadsheet?

These are just thoughts and no deal-breakers. We users can adapt to the new behaviours just as easily as we learnt to adapt in the past.
Back to top
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Tue May 17, 2005 3:41 am    Post subject: Keyboard shortcuts for the Quickstart menu items

rays wrote:
At one point in the past, I had the impression that the type of new document created using cmnd-N in NeoOfficeJ is dependent to some extent on whether I last used a spreadsheet or a text document, whereas invoking a new document via the new 'standalone' NeoOfficeJ menu (i.e. no windows open) would have to be associated with one particular type consistently, I guess? Would it break the rules to have cmnd-N for new text document and, say, shift-cmnd-N or opt-cmnd-N for new spreadsheet?


Cmd-N is associated with "New ____ Document" for the particular module that is active, which is why it doesn't work at all when the grey window is open (er, at least it didn't at one point in time--it now seems to open a text document, perhaps because that's what Patrick has hardwired the "inital startup" document to be. In OOo cmd/ctrl-n in the grey window does nothing).

You can remap the Cmd-N shortcut to one of the "Quickstart" documents using the Keyboard Shortcuts option in the System Preferences (as I describe in the next-to-last paragraph of the NeoWiki article on customizing keyboard shortcuts).

However, I'm not sure how it would interact with OOo's mode-switching behavior, esp. given the fact these items have the same name as items in other menus (i.e., the File: New submenu). It might fail altogether unless you go through an un-assign Cmd-N in all of the modules (using the built-in OOo shortcut editor); I think existing shortcuts take precedence over user-defined ones established in the System Prefs. You could, of course, assign any valid, unused shortcut.

Some experimentation is in order, but I don't have time atm to do so myself. Smile

Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
rays
The Anomaly
(earlier version)


Joined: Sep 23, 2004
Posts: 475
Location: Geneva, Switzerland

PostPosted: Tue May 17, 2005 6:42 am    Post subject:

Thanks for the advice. I can see where you are going with it. I'll await Patrick's 'final' implementation of this particular feature before diving in with localised set-up of keyboard short-cuts, but useful to remember they are available should I choose to pursue that option thereafter.
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Tue May 17, 2005 7:09 am    Post subject:

sardisson wrote:
I did notice that Cmd-W will still close the document but leave the grey window...if this Quickstart stuff turns out to be bug-free, you probably want to revert the behavior so that cmd-w closes the document and the grey window.


This is standard OOo behavior and will remain as it is not controlled by the Quickstart service code.

sardisson wrote:
All other Mac OS X apps put their additonal "AppName menu" options between "Preferences" and "Services", keeping "About" as the first item and Preferences as the second.


This I can implement. I put them first because I didn't know if there was some standard place to put them.

Patrick
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Tue May 17, 2005 9:06 am    Post subject:

pluby wrote:
sardisson wrote:
All other Mac OS X apps put their additonal "AppName menu" options between "Preferences" and "Services", keeping "About" as the first item and Preferences as the second.


This I can implement. I put them first because I didn't know if there was some standard place to put them.


Bad news. Java does some wonky things with the Preferences menu item so no matter what I do, I cannot force the Quickstart menu items below the Preferences menu item.

So, I have moved the Quickstart menu items between the About and Preferences menu items.

Patrick
Back to top
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Tue May 17, 2005 11:51 am    Post subject:

pluby wrote:
Bad news. Java does some wonky things with the Preferences menu item so no matter what I do, I cannot force the Quickstart menu items below the Preferences menu item.

So, I have moved the Quickstart menu items between the About and Preferences menu items.


I expected Java would throw a curve ball sooner or later Smile That seems like a good solution, though; keeping "About Neo/J" at the top will be less disorienting.

Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
Guest






PostPosted: Tue May 17, 2005 7:29 pm    Post subject: Testing patch 4.1

OK, here's a list of what I've tried without the program complaining so far: (10.2.8, 867MHz Powerbook, 512Mb memory)

After installing the patch, I opened the program from the Dock, and got a blank text document after about 15 seconds. I closed the document window, and Neo stayed as the active menubar; I saw in the program menu that I could get a new blank document of any type. I then double-clicked a .doc in my Finder window and opened it, then closed that document and got the same result; Neo was the active app (and I still got the little black triangle thing in the Dock). I then opened a blank spreadsheet from the program menu and closed it with the same result. I then double-clicked a .sxc in my Finder window and opened it; then closed that window and got the same result.

The blank document windows opened in about half a second, while the .sxc spreadsheet window took about two seconds to open and the .doc window took about 8 seconds to import and display. These times are comparable to Openoffice 1.1.4 on my Windoze desktop machine at work. Thank you, Patrick.

Cheers, Phil


PS, just opened a 58 page .doc; it took 15 seconds to import and display. This is a basic problem with OOo 1.1 I think, and nothing to do with Neo, but it's surely something that the 2.0 developers need to overcome in their interoperability efforts.
Back to top
joshue
Agent


Joined: May 08, 2005
Posts: 11

PostPosted: Wed May 18, 2005 5:06 am    Post subject: Re: No more ugly blank window when last document is closed

THANK YOU. GREAT!javascript:emoticon('Very Happy')

Joe
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> NeoOffice Testing All times are GMT - 7 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.