Closed Bug 194678 Opened 22 years ago Closed 21 years ago

Move pageSetup out of comm.jar into the toolkit

Categories

(Core :: Printing: Output, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: p_ch, Assigned: p_ch)

Details

Attachments

(1 file)

Their current location does not make sense to me. All the print preview, progress and dialog are in xpfe/global. We need to move them into global so that we can have them in the Phoenix toolkit without #ifdef'ing all the seamonkey repository (thought, it would be much quicker). To be moved: xpfe/communicator/resources/content/printPreviewBindings.xml xpfe/communicator/resources/content/printPageSetup.xul xpfe/communicator/resources/content/printPageSetup.js xpfe/communicator/resources/locale/en-US/printPageSetup.dtd xpfe/communicator/resources/locale/en-US/printPageSetup.properties xpfe/communicator/resources/locale/en-US/printPreview.dtd themes/classic/communicator/printing.css themes/modern/communicator/printing.css themes/classic/communicator/icons/pg-portrait-small.gif themes/modern/communicator/icons/pg-portrait-small.gif themes/classic/communicator/icons/pg-landscape-small.gif themes/modern/communicator/icons/pg-landscape-small.gif themes/classic/communicator/icons/pg-portrait.gif themes/modern/communicator/icons/pg-portrait.gif themes/classic/communicator/icons/pg-landscape.gif themes/modern/communicator/icons/pg-landscape.gif files to be modified: xpfe/communicator/resources/content/printPreviewBindings.xml xpfe/communicator/resources/content/printPageSetup.xul themes/classic/communicator/printing.css themes/modern/communicator/printing.css embedding/components/printingui/src/os2/nsPrintingPromptService.cpp, line 63 embedding/components/printingui/src/win/nsPrintingPromptService.cpp, line 59 embedding/components/printingui/src/unixshared/nsPrintingPromptService.cpp, line 57 gfx/src/nsPrintOptionsImpl.cpp, line 303 remove communicator/content/communicator.css (only contains the PP binding) in favor of printPriviewBinding.css Samir, do you agree with this plan? If yes, I will submit a patch
I prefer to deal only with the page Setup since the print preview stuff is not in the GRE and can happily stay in comm.jar. The files that need to be moved from mozilla/.../communicator to mozilla/.../global are: xpfe/communicator/resources/content/printPageSetup.xul xpfe/communicator/resources/content/printPageSetup.js xpfe/communicator/resources/locale/en-US/printPageSetup.dtd xpfe/communicator/resources/locale/en-US/printPageSetup.properties themes/classic/communicator/printing.css themes/classic/communicator/icons/pg-*.gif themes/modern/communicator/printing.css themes/modern/communicator/icons/pg-*.gif
Summary: Move printPreviewBindings.xml and pageSetup out of communicator into global → Move pageSetup out of comm.jar into the toolkit
Attachment #134689 - Flags: superreview?(bryner)
Attachment #134689 - Flags: review?(bsmedberg)
Attachment #134689 - Flags: review?(bsmedberg) → review+
Attachment #134689 - Flags: superreview?(bryner) → superreview+
pch asked me to look into moving these from the back end to preserve cvs history. So to get this straight, the destinations would be: xpfe/global/resources/content/printPageSetup.xul xpfe/global/resources/content/printPageSetup.js xpfe/global/resources/locale/en-US/printPageSetup.dtd xpfe/global/resources/locale/en-US/printPageSetup.properties themes/classic/global/printing.css themes/classic/global/icons/pg-*.gif themes/modern/global/printing.css themes/modern/global/icons/pg-*.gif that correct?
Dave: that's correct
don't bother with CVS moving the images... they don't really have useful CVS logs and binary files don't have blame. --BDS
OK, the files have been copied to the new locations (except for the gif files). They'll need to be cvs deleted from the old location once you have any surrounding code modified to find them in the new location. I have a script running currently removing all the old tags and branches off the files at the new location so that it only exists on the trunch and won't get pulled by people pulling on old tags. However there's a LOT of tags on these files and it looks like the script may take a few hours. That shouldn't hold up anything here, you can feel free to modify the files, as long as no new tags are set between now and when the script finishes (because they'll get nuked again otherwise).
ok, the detagging scripts have completed. Please verify that "cvs stat -v <filename>" returns "No Tags Exist" on each of the destination files. You should be all set now.
fixed.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
In Firebird the 'global/skin/printing.css' is 'global/skin/printPreview.css'. Any chance of changing firebird so that it also uses printing.css?
When do you plan to cvs remove the old files? /xpfe/communicator/resources/content/printPageSetup.js is still in cvs ...
In the future it would be appreciated if you could notify theme authors by posting to netscape.public.dev.skins when you make a change like this. Thanks!
Neil: yep, my bad.
ok those files were STILL not removed, see bug 231871
(In reply to comment #13) > ok those files were STILL not removed, see bug 231871 done
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: