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 - Printing now works!
Printing now works!
 
   NeoOffice Forum Index -> NeoOffice Development
View previous topic :: View next topic  
Author Message
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Mon Aug 11, 2003 8:09 pm    Post subject: Printing now works!

After several days of effort, I got basic printing working in NeoJ.

You can try it out be doing a "cvs update -d" in the "neojava" directory, deleting the "build.neo_vcl_patch" file, execute "make", and run the installer that is built. Make sure that you use the "-d" option when you execute "cvs update" as there is a new "svtools" subdirectory in the "neojava" directory.

What is cool is that printing now uses native print dialogs and features such as landscape printing work. I was also able to suppress the OOo dialog that appears when you select the File -> Printer Setup menu item and I replaced it with the native Mac OS X page format dialog window.

I still need to implement some of the more advanced printing features, but at least the most common used printing features now work! Here's the list of items that I still need to implement:

- Multiple copies
- Collation
- Page ranges (all pages get printed no matter what you select in the
dialog windows)
- Suppression of the OOo printing options dialog when you select the
File -> Print menu item
- Scaling (everything prints at 100%)

Let me know if you find any problems with the new printing code.

Patrick
Back to top
Max_Barel
Oracle


Joined: May 31, 2003
Posts: 219
Location: French Alps

PostPosted: Tue Aug 12, 2003 3:46 am    Post subject:

I'm really impatient to get my satellite link up (i'm out of range for DSL), to be able to use CVS, and test printing.
Quote:
You can try it out be doing a "cvs update -d" in the "neojava" directory, deleting the "build.neo_vcl_patch" file, execute "make", and run the installer that is built. Make sure that you use the "-d" option when you execute "cvs update" as there is a new "svtools" subdirectory in the "neojava" directory.

BTW, I know that it's a pain, but is it possible to update only changed files? Only a few or too numerous?
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Tue Aug 12, 2003 7:20 am    Post subject:

The number of files that change is only 3:

libvcl641mxp.dylib
libsvt641mxp.dylib
classes/vcl.jar

They are about 2.5 MB in size when compressed. Is that too large to download?

Patrick
Back to top
Guest






PostPosted: Tue Aug 12, 2003 7:55 am    Post subject: CVS-Update doesn't work

Hi Patrick,

that doesn't work on my machine:

[SchlesisPowerbook:~/SW-Entwicklung/NeoJ/neojava] thomas% cvs update -d
...

cvs server: Updating etc/user/config/registry/template/org/openoffice/Office
cvs server: Updating forms
cvs update: in directory forms/util:
cvs update: cannot open CVS/Entries for reading: No such file or directory
cvs [update aborted]: cannot open CVS/Tag: No such file or directory

Thomas
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Tue Aug 12, 2003 8:25 am    Post subject:

Thomas,

It appears that the softlinks created by the build are confusing CVS. Try "rm -Rf" of the forms/util directory and rerunning "cvs update -d".

Patrick
Back to top
Max_Barel
Oracle


Joined: May 31, 2003
Posts: 219
Location: French Alps

PostPosted: Tue Aug 12, 2003 8:28 am    Post subject:

pluby wrote:
The number of files that change is only 3:

libvcl641mxp.dylib
libsvt641mxp.dylib
classes/vcl.jar

They are about 2.5 MB in size when compressed. Is that too large to download?

Not at all!
Where can I download these 3 files?
Are they in the CVS tree? (I didn't try to connect to CVS)
I'm anger to test printing.
Max
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Tue Aug 12, 2003 8:51 am    Post subject:

I have posted a *.tar.gz file at http://www.planamesa.com/neojava/downloads/temp/printtest1.tar.gz.

To unzip it in an existing NeoJ installation, do the following:

- "su" so that you are running as the root user (NeoJ is installed as the root
user so this step must be done for the next steps to work)
- "cd" to <NeoJ installation directory>/NeoOfficeJ.app
- Execute the following command to unzip the file:
Code:
tar zxf <path to downloaded *.tar.gz file>

- Restart NeoJ

When I get more printing functionality working, I will update the *.tar.gz file so that others can help test my code.

Patrick
Back to top
OPENSTEP
The One
The One


Joined: May 25, 2003
Posts: 4752
Location: Santa Barbara, CA

PostPosted: Tue Aug 12, 2003 9:45 am    Post subject:

Awesome work Patrick Smile This is really cool news. I'll grab a copy of the source and start testing it out.

Extrapolating from our experience with the ghostscript printing in X11, we should try to test both as wide a variety of printers as we can (though I don't expect it to be as much of an issue with the Java printing, but you never know) and also test as wide a variety of page sizes, etc. as we can.

Awesome job!

ed
Back to top
Max_Barel
Oracle


Joined: May 31, 2003
Posts: 219
Location: French Alps

PostPosted: Tue Aug 12, 2003 10:16 am    Post subject:

pluby wrote:
I have posted a *.tar.gz file at http://www.planamesa.com/neojava/downloads/temp/printtest1.tar.gz.

I got it and installed…

Once again, impressive!

I only made a few test, but … impressive!

I wonder what you'll announce next time?
Back to top
schlesi
Oracle


Joined: Jun 07, 2003
Posts: 234
Location: near Cologne, Germany

PostPosted: Tue Aug 12, 2003 10:36 am    Post subject: CVS-update

Hi Patrick,

here's a second problem with the CVS:

cvs server: Updating vcl/source/app
cvs update: in directory vcl/source/gdi:
cvs update: cannot open CVS/Entries for reading: No such file or directory
cvs [update aborted]: cannot open CVS/Tag: No such file or directory

Thomas
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Tue Aug 12, 2003 11:07 am    Post subject:

This is the same type of problem as the forms/util problem. I "cvs added" a new file in vcl/source/gdi. However, the build created softlinks to the OOo files since that file did not exist in the NeoJ CVS tree when you last built NeoJ.

To correct this problem, just "rm -Rf" the vcl/source/gdi and rerun "cvs update -d". I don't think there are any other directories that will have this problem, but if there are, the same trick should work.

Patrick
Back to top
schlesi
Oracle


Joined: Jun 07, 2003
Posts: 234
Location: near Cologne, Germany

PostPosted: Wed Aug 13, 2003 11:03 am    Post subject: CVS-update

Hi Patrick,

I've done the cvs -d now and built it, but printing doesn't work in the new built NeoOffice/J-Package. I've then downloaded the tar-file an printing works now in the NeoJ.app. Great!

Now, the "missing link" for a productive usage of NeoOffice/J is closed. May be you should announce it at versiontracker.com or freshmeat? Wink

Thomas
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Wed Aug 13, 2003 2:06 pm    Post subject:

Hmmm. I wonder if one or more of the libraries or vcl.jar did not get copied into the installer. If any of the files in the *.tar.gz file don't get copied into the installer, printing won't work.

As for announcing printing, I am waiting until I get the page ranges and OOo dialog suppression done which should be very soon.

Patrick
Back to top
OPENSTEP
The One
The One


Joined: May 25, 2003
Posts: 4752
Location: Santa Barbara, CA

PostPosted: Wed Aug 13, 2003 10:51 pm    Post subject:

pluby wrote:
and OOo dialog suppression done which should be very soon


I've started trying to trace down the OOo print dialog. While I haven't found the actual print configuration dialog just yet, I did find the one that does the "page x of x printing" style messages apparently as it seems to live in:

svtools/source/dialogs/prnsetup.*

Still looking for the raw printer configuration dialog (printer setup, as opposed to printing progress). IIRC the Java printing code's callthrough to the native print dialogs will result in native print progress dialogs in addition to setup. I'm still waiting on a fresh neoj build to verify whether we need to hide both the progress as well as the config dialogs.

ed
Back to top
OPENSTEP
The One
The One


Joined: May 25, 2003
Posts: 4752
Location: Santa Barbara, CA

PostPosted: Wed Aug 13, 2003 11:25 pm    Post subject:

Nevermind the previous post, I am garbage.

After investigating stack traces from OOo instead of simply viewing things that look promising in an editor, the acutal print dialog code is not far off of that status one:

svtools/source/dialogs/printdlg.cxx

I suspect "suppressing" the print dialog may be as simple as invoking the OK link handler if it's invoked in the dialog's Execute() method (printdlg.cxx:599) in lieu of allowing the dialog to enter its modal loop.

Will check tomorrow...I feel sleep coming on. Hopefully I won't dream of trying to hack around NSApplicationMain like last night...

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

 
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.