Remove non-cairo PostScript support. b=385577 r=kherron sr=pavlov

This commit is contained in:
mats.palmgren%bredband.net 2007-07-05 11:29:53 +00:00
Родитель eba5f80578
Коммит 42661ee1ed
58 изменённых файлов: 3 добавлений и 1367 удалений

Просмотреть файл

@ -155,7 +155,6 @@ gfx/idl/Makefile
gfx/public/Makefile
gfx/src/Makefile
gfx/src/beos/Makefile
gfx/src/ps/Makefile
gfx/src/psshared/Makefile
gfx/src/photon/Makefile
gfx/src/mac/Makefile

Просмотреть файл

@ -48,7 +48,6 @@ components/xpconnect.xpt
libgkgfx.so
libgfxpsshar.so
components/libgfxps.so
components/gfx.xpt
components/widget.xpt

Просмотреть файл

@ -51,7 +51,6 @@ libgtksuperwin.so
libgtkembedmoz.so
libgfxpsshar.so
components/libgkgfxthebes.so
components/libgfxps.so
components/gfx.xpt
components/libwidget_gtk2.so
components/widget.xpt

Просмотреть файл

@ -40,7 +40,6 @@ components/xpconnect.xpt
libgkgfx.so
libgfxpsshar.so
components/libgfxps.so
components/gfx.xpt
components/widget.xpt

Просмотреть файл

@ -69,9 +69,6 @@ endif
ifdef MOZ_ENABLE_POSTSCRIPT
DIRS += psshared
ifndef MOZ_ENABLE_CAIRO_GFX
DIRS += ps
endif
endif
ifdef MOZ_ENABLE_CAIRO_GFX

Просмотреть файл

@ -49,11 +49,6 @@
#include "nsFontMetricsBeOS.h"
#include "nsGfxCIID.h"
#ifdef USE_POSTSCRIPT
#include "nsGfxPSCID.h"
#include "nsIDeviceContextPS.h"
#endif /* USE_POSTSCRIPT */
#include <ScrollBar.h>
#include <Screen.h>
@ -335,28 +330,7 @@ NS_IMETHODIMP nsDeviceContextBeOS::GetClientRect(nsRect &aRect)
NS_IMETHODIMP nsDeviceContextBeOS::GetDeviceContextFor(nsIDeviceContextSpec *aDevice,
nsIDeviceContext *&aContext)
{
#ifdef USE_POSTSCRIPT
static NS_DEFINE_CID(kCDeviceContextPS, NS_DEVICECONTEXTPS_CID);
// Create a Postscript device context
nsresult rv;
nsIDeviceContextPS *dcps;
rv = CallCreateInstance(kCDeviceContextPS, &dcps);
NS_ASSERTION(NS_SUCCEEDED(rv), "Couldn't create PS Device context");
dcps->SetSpec(aDevice);
dcps->InitDeviceContextPS((nsIDeviceContext*)aContext, (nsIDeviceContext*)this);
rv = dcps->QueryInterface(NS_GET_IID(nsIDeviceContext), (void **)&aContext);
NS_RELEASE(dcps);
return rv;
#else
return NS_ERROR_NOT_IMPLEMENTED;
#endif /* USE_POSTSCRIPT */
}
NS_IMETHODIMP nsDeviceContextBeOS::BeginDocument(PRUnichar * aTitle, PRUnichar* aPrintToFileName, PRInt32 aStartPage, PRInt32 aEndPage)

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

@ -1,490 +0,0 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Base Thunderbird Package File for Linux
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[thunderbird]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Mail Specific Files
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
components/libmail.so
components/libimport.so
components/addrbook.xpt
components/mime.xpt
components/mailnews.xpt
components/msgbase.xpt
components/msgcompose.xpt
components/msgdb.xpt
components/msgimap.xpt
components/msglocal.xpt
components/msgnews.xpt
components/msgsearch.xpt
components/import.xpt
components/impComm4xMail.xpt
components/mailview.xpt
chrome/mail.jar
chrome/icons/default/abcardWindow.xpm
chrome/icons/default/addressbookWindow.xpm
chrome/icons/default/messengerWindow.xpm
chrome/icons/default/msgcomposeWindow.xpm
bin/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/install.rdf
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Mail Extensions (smime, etc.)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
components/offlineStartup.js
components/mdn-service.js
components/libsmimestb.so
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Chrome Files
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
chrome/qute.jar
chrome/en-US-mail.jar
;;this maybe incorrect but we use win because of
;;a static installed-chrome.txt
chrome/en-unix.jar
;;chrome/en-unix.jar
dictionaries/*
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Default Profile Settings
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; default pref files
defaults/pref/*
greprefs/*
defaults/messenger/mailViews.dat
defaults/messenger/SpamAssassin.sfd
defaults/messenger/SpamPal.sfd
defaults/profile/localstore.rdf
defaults/profile/mimeTypes.rdf
defaults/profile/US/localstore.rdf
defaults/profile/US/mimeTypes.rdf
defaults/isp/US/movemail.rdf
defaults/isp/movemail.rdf
defaults/autoconfig/platform.js
defaults/autoconfig/prefcalls.js
updater.ini
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; App extensions to Mail
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; LDAP components
components/libmozldap.so
components/mozldap.xpt
components/nsLDAPPrefsService.js
components/nsAbLDAPAttributeMap.js
libldap50.so
libprldap50.so
; wallet
components/libwallet.so
components/wallet.xpt
components/signonviewer.xpt
components/libwalletviewers.so
; download progress
components/nsProgressDialog.js
components/nsHelperAppDlg.js
components/downloads.xpt
; spellchecker (may not be present)
components/libmyspell.so
components/spellchecker.xpt
components/libspellchecker.so
; xpinstall (needed to dynamically install themes
components/libxpinstall.so
components/xpinstall.xpt
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; base browser for unix (from basebrowser-unix)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; launch script
;
run-mozilla.sh
;
; NSPR:
;
libnspr4.so
libplc4.so
libplds4.so
;
; Javascript:
;
libmozjs.so
;
; XPCOM:
;
libxpcom.so
libxpcom_core.so
libxpistub.so
libxpcom_compat.so
components/xpcom_base.xpt
components/xpcom_components.xpt
components/xpcom_ds.xpt
components/xpcom_io.xpt
components/xpcom_threads.xpt
components/xpcom_xpti.xpt
components/libxpcom_compat_c.so
; xpconnect
components/libxpconnect.so
components/xpconnect.xpt
;
; XP widgets/graphics
;
libgkgfx.so
libgtksuperwin.so
libgtkxtbin.so
libgtkembedmoz.so
libxlibrgb.so
libgfxpsshar.so
components/libgfx_gtk.so
components/libgfxps.so
components/libgfxxprint.so
components/libwidget_gtk.so
components/libwidget_gtk2.so
components/widget.xpt
components/gfx.xpt
; layout
components/libgklayout.so
components/layout_base.xpt
components/layout_printing.xpt
components/layout_xul.xpt
components/layout_xul_tree.xpt
components/content_base.xpt
components/libhtmlpars.so
components/htmlparser.xpt
components/content_html.xpt
components/content_htmldoc.xpt
components/content_xmldoc.xpt
components/content_xslt.xpt
components/xultmpl.xpt
components/xuldoc.xpt
;;libmoz_art_lgpl.so
components/libgklayout.so
components/layout_base.xpt
components/layout_printing.xpt
components/layout_xul.xpt
components/layout_xul_tree.xpt
components/content_base.xpt
; Imaging:
libmozz.so
components/libimglib2.so
components/imglib2.xpt
; accessibility (out of process API support)
components/libaccessibility.so
components/accessibility.xpt
; caps
components/libcaps.so
components/caps.xpt
;
; Components: (need to trim fat)
;
components/libnsappshell.so
components/appshell.xpt
components/appstartup.xpt
; cookies
;;components/libcookie.so
components/libdocshell.so
components/docshell.xpt
components/uriloader.xpt
components/libchrome.so
components/libwebbrwsr.so
components/webBrowser_core.xpt
components/libembedcomponents.so
components/windowwatcher.xpt
components/webbrowserpersist.xpt
components/commandhandler.xpt
; we need mozbrwser.xpt for nsIXULWindow.xpt
components/mozbrwsr.xpt
; jar
components/libjar50.so
components/jar.xpt
; prefs
components/pref.xpt
components/libpref.so
; profile
components/profile.xpt
components/libprofileimport.so
components/libprofilemigration.so
components/toolkitprofile.xpt
; rdf
components/librdf.so
components/rdf.xpt
; required l10n libraries
components/intl.xpt
components/locale.xpt
components/libuconv.so
components/libi18n.so
components/libchardet.so
components/uconv.xpt
components/unicharutil.xpt
;
; DOM:
;
components/dom.xpt
components/dom_base.xpt
components/dom_core.xpt
components/dom_css.xpt
components/dom_events.xpt
components/dom_html.xpt
components/dom_offline.xpt
components/dom_range.xpt
components/dom_stylesheets.xpt
components/dom_traversal.xpt
components/dom_views.xpt
components/dom_xbl.xpt
components/dom_xul.xpt
components/dom_loadsave.xpt
; "javascript:" URLs
components/libjsd.so
; editor / composer for HTML compose
components/libeditor.so
components/editor.xpt
components/composer.xpt
components/libcomposer.so
components/txmgr.xpt
components/libtxmgr.so
; find functionality
; Optional - only if your code uses nsIWebBrowserFind
components/txtsvc.xpt
; netwerk
components/libnecko.so
components/necko.xpt
components/necko_about.xpt
components/necko_dns.xpt
components/necko_http.xpt
components/necko_res.xpt
components/necko_strconv.xpt
components/necko_viewsource.xpt
components/necko_file.xpt
components/necko_cache.xpt
components/necko_cookie.xpt
components/nsProxyAutoConfig.js
; psm2
; Optional - only if you need HTTPS support
components/libpipboot.so
components/pipboot.xpt
components/libpipnss.so
components/pipnss.xpt
components/libpippki.so
components/pippki.xpt
libnss3.so
libsmime3.so
libsoftokn3.chk
libsoftokn3.so
libfreebl3.chk
libfreebl3.so
libssl3.so
libnssckbi.so
components/libmsgsmime.so
components/msgsmime.xpt
components/smime-service.js
; core platform files
regxpcom
thunderbird-bin
mozilla-xremote-client
components/libappcomps.so
components/autocomplete.xpt
components/jsdservice.xpt
components/find.xpt
components/chardet.xpt
components/jsconsole-clhandler.js
components/layout_xul_tree.xpt
components/libmork.so
components/libmozfind.so
components/mozfind.xpt
components/mimetype.xpt
;components/proxyObject.xpt
components/exthandler.xpt
components/embed_base.xpt
components/webshell_idls.xpt
components/widget.xpt
components/windowds.xpt
;;components/libwalletviewers.so
components/helperAppDlg.xpt
components/progressDlg.xpt
components/dom_xpath.xpt
components/lwbrk.xpt
components/nsCloseAllWindows.js
components/libxremoteservice.so
components/libxremote_client.so
components/xremoteservice.xpt
components/xulapp.xpt
components/libfileview.so
; plugins
; Optional - only if you need plugin support
;components/libgkplugin.so
;components/plugin.xpt
;components/pluginGlue.js
; wallet
; Optional - only if you need password persistence
;;components/libwallet.so
;;components/wallet.xpt
; download progress
; Optional - you can implement your own download progress dialog
; then this is no longer required
;;components/nsProgressDialog.js
;;components/nsHelperAppDlg.js
;;components/nsDownloadProgressListener.js
; updater
updater
; crash reporter
crashreporter
crashreporter.ini
; xmlextras, for XPointer support
components/libxmlextras.so
res/ua.css
res/html.css
res/quirk.css
res/forms.css
res/charsetData.properties
res/charsetalias.properties
res/langGroups.properties
res/language.properties
;res/wincharset.properties
res/entityTables/*
res/dtd/xhtml11.dtd
; editor resource files
res/EditorOverride.css
res/grabber.gif
res/table-add-column-after-active.gif
res/table-add-column-after-hover.gif
res/table-add-column-after.gif
res/table-add-column-before-active.gif
res/table-add-column-before-hover.gif
res/table-add-column-before.gif
res/table-add-row-after-active.gif
res/table-add-row-after-hover.gif
res/table-add-row-after.gif
res/table-add-row-before-active.gif
res/table-add-row-before-hover.gif
res/table-add-row-before.gif
res/table-remove-column-active.gif
res/table-remove-column-hover.gif
res/table-remove-column.gif
res/table-remove-row-active.gif
res/table-remove-row-hover.gif
res/table-remove-row.gif
;;res/language.properties
;;res/langGroups.properties
;;res/charsetData.properties
;;res/charsetalias.properties
;;res/unixcharset.properties
;;; res/strres.properties
res/effective_tld_names.dat
; required prefs files
greprefs/*
;
; Widget-Toolkit and Res (consult hyatt@netscape.com before modifying):
;
;;chrome/embed.jar
components/nsFilePicker.js
components/filepicker.xpt
;
; res:
;
;;res/html.css
;;res/quirk.css
;;res/viewsource.css
;;res/ua.css
;;res/forms.css
;;res/arrow.gif
;;res/arrowd.gif
;;res/loading-image.gif
;;res/broken-image.gif
;;res/entityTables/html40Special.properties
;;res/entityTables/htmlEntityVersion.properties
;;res/entityTables/html40Latin1.properties
;;res/entityTables/html40Symbols.properties
;;res/entityTables/transliterate.properties
;
; Optional for MathML
;
;res/mathml.css
;res/dtd/mathml.dtd
;res/entityTables/mathml20.properties
;res/fonts/mathfont.properties
;res/fonts/mathfontCMEX10.properties
;res/fonts/mathfontCMSY10.properties
;res/fonts/mathfontMath1.properties
;res/fonts/mathfontMath2.properties
;res/fonts/mathfontMath4.properties
;res/fonts/mathfontMTExtra.properties
;res/fonts/mathfontPUA.properties
;res/fonts/mathfontSymbol.properties
;components/libucvmath.so
; p3p
;;components/libp3p.so
;;components/p3p.xpt
; extensions
components/nsExtensionManager.js
components/nsUpdateService.js
components/extensions.xpt
components/update.xpt
components/nsURLFormatter.js
components/urlformatter.xpt
; talkback
components/libqfaservices.so
components/qfaservices.xpt
components/talkback/*

Просмотреть файл

@ -2256,29 +2256,6 @@ pref("print.postscript.paper_size", "letter");
pref("print.postscript.orientation", "portrait");
pref("print.postscript.print_command", "lpr ${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME}");
/* PostScript print module font config
* this list is used by the postscript font
* to enumerate the list of langGroups
* there should be a call to get the
* langGroups; see bug 75054
*/
pref("print.postscript.nativefont.ar", "");
pref("print.postscript.nativefont.el", "");
pref("print.postscript.nativefont.he", "");
pref("print.postscript.nativefont.ja", "");
pref("print.postscript.nativefont.ko", "");
pref("print.postscript.nativefont.th", "");
pref("print.postscript.nativefont.tr", "");
pref("print.postscript.nativefont.x-baltic", "");
pref("print.postscript.nativefont.x-central-euro", "");
pref("print.postscript.nativefont.x-cyrillic", "");
pref("print.postscript.nativefont.x-unicode", "");
pref("print.postscript.nativefont.x-user-def", "");
pref("print.postscript.nativefont.x-western", "");
pref("print.postscript.nativefont.zh-CN", "");
pref("print.postscript.nativefont.zh-TW", "");
pref("print.postscript.nativefont.zh-HK", "");
# XP_UNIX
#endif
#endif

Просмотреть файл

@ -96,9 +96,6 @@ nsDeviceContextSpecBeOS :: ~nsDeviceContextSpecBeOS()
}
static NS_DEFINE_IID(kIDeviceContextSpecIID, NS_IDEVICE_CONTEXT_SPEC_IID);
#ifdef USE_POSTSCRIPT
static NS_DEFINE_IID(kIDeviceContextSpecPSIID, NS_IDEVICE_CONTEXT_SPEC_PS_IID);
#endif /* USE_POSTSCRIPT */
#if 0
NS_IMPL_ISUPPORTS1(nsDeviceContextSpecBeOS, nsIDeviceContextSpec)
@ -116,16 +113,6 @@ NS_IMETHODIMP nsDeviceContextSpecBeOS :: QueryInterface(REFNSIID aIID, void** aI
return NS_OK;
}
#ifdef USE_POSTSCRIPT
if (aIID.Equals(kIDeviceContextSpecPSIID))
{
nsIDeviceContextSpecPS* tmp = this;
*aInstancePtr = (void*) tmp;
NS_ADDREF_THIS();
return NS_OK;
}
#endif /* USE_POSTSCRIPT */
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
if (aIID.Equals(kISupportsIID))
@ -168,24 +155,6 @@ NS_IMETHODIMP nsDeviceContextSpecBeOS::Init(nsIWidget *aWidget,
}
}
char *path;
PRBool reversed = PR_FALSE;
PRBool color = PR_FALSE;
PRBool tofile = PR_FALSE;
PRInt16 printRange = nsIPrintSettings::kRangeAllPages;
PRInt32 paper_size = NS_LETTER_SIZE;
PRInt32 orientation = NS_PORTRAIT;
PRInt32 fromPage = 1;
PRInt32 toPage = 1;
PRUnichar *command = nsnull;
PRInt32 copies = 1;
PRUnichar *printer = nsnull;
PRUnichar *printfile = nsnull;
double dleft = 0.5;
double dright = 0.5;
double dtop = 0.5;
double dbottom = 0.5;
rv = GlobalPrinters::GetInstance()->InitializeGlobalPrinters();
if (NS_FAILED(rv)) {
return rv;
@ -194,205 +163,9 @@ NS_IMETHODIMP nsDeviceContextSpecBeOS::Init(nsIWidget *aWidget,
GlobalPrinters::GetInstance()->FreeGlobalPrinters();
if (aPS != nsnull) {
aPS->GetPrinterName(&printer);
aPS->GetPrintReversed(&reversed);
aPS->GetPrintInColor(&color);
aPS->GetPaperSize(&paper_size);
aPS->GetOrientation(&orientation);
aPS->GetPrintCommand(&command);
aPS->GetPrintRange(&printRange);
aPS->GetToFileName(&printfile);
aPS->GetPrintToFile(&tofile);
aPS->GetStartPageRange(&fromPage);
aPS->GetEndPageRange(&toPage);
aPS->GetNumCopies(&copies);
aPS->GetMarginTop(&dtop);
aPS->GetMarginLeft(&dleft);
aPS->GetMarginBottom(&dbottom);
aPS->GetMarginRight(&dright);
if (command != nsnull && printfile != nsnull) {
// ToDo: Use LocalEncoding instead of UTF-8 (see bug 73446)
strcpy(mPrData.command, NS_ConvertUTF16toUTF8(command).get());
strcpy(mPrData.path, NS_ConvertUTF16toUTF8(printfile).get());
}
if (printer != nsnull)
strcpy(mPrData.printer, NS_ConvertUTF16toUTF8(printer).get());
#ifdef DEBUG_rods
printf("margins: %5.2f,%5.2f,%5.2f,%5.2f\n", dtop, dleft, dbottom, dright);
printf("printRange %d\n", printRange);
printf("fromPage %d\n", fromPage);
printf("toPage %d\n", toPage);
#endif /* DEBUG_rods */
} else {
#ifdef VMS
// Note to whoever puts the "lpr" into the prefs file. Please contact me
// as I need to make the default be "print" instead of "lpr" for OpenVMS.
strcpy(mPrData.command, "print");
#else
strcpy(mPrData.command, "lpr ${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME}");
#endif /* VMS */
}
mPrData.top = dtop;
mPrData.bottom = dbottom;
mPrData.left = dleft;
mPrData.right = dright;
mPrData.fpf = !reversed;
mPrData.grayscale = !color;
mPrData.size = paper_size;
mPrData.orientation = orientation;
mPrData.toPrinter = !tofile;
mPrData.copies = copies;
// PWD, HOME, or fail
if (!printfile) {
if ( ( path = PR_GetEnv( "PWD" ) ) == (char *) nsnull )
if ( ( path = PR_GetEnv( "HOME" ) ) == (char *) nsnull )
strcpy(mPrData.path, "mozilla.ps");
if ( path != (char *) nsnull )
sprintf(mPrData.path, "%s/mozilla.ps", path);
else
return NS_ERROR_FAILURE;
}
#ifdef NOT_IMPLEMENTED_YET
if (mGlobalNumPrinters) {
for(int i = 0; (i < mGlobalNumPrinters) && !mQueue; i++) {
if (!(mGlobalPrinterList->StringAt(i)->EqualsIgnoreCase(mPrData.printer)))
mQueue = PrnDlg.SetPrinterQueue(i);
}
}
#endif /* NOT_IMPLEMENTED_YET */
if (command != nsnull) {
nsMemory::Free(command);
}
if (printfile != nsnull) {
nsMemory::Free(printfile);
}
return rv;
}
NS_IMETHODIMP nsDeviceContextSpecBeOS :: GetToPrinter( PRBool &aToPrinter )
{
aToPrinter = mPrData.toPrinter;
return NS_OK;
}
NS_IMETHODIMP nsDeviceContextSpecBeOS::GetPrinterName ( const char **aPrinter )
{
*aPrinter = &mPrData.printer[0];
return NS_OK;
}
NS_IMETHODIMP nsDeviceContextSpecBeOS::GetCopies ( int &aCopies )
{
aCopies = mPrData.copies;
return NS_OK;
}
NS_IMETHODIMP nsDeviceContextSpecBeOS :: GetFirstPageFirst ( PRBool &aFpf )
{
aFpf = mPrData.fpf;
return NS_OK;
}
NS_IMETHODIMP nsDeviceContextSpecBeOS :: GetGrayscale ( PRBool &aGrayscale )
{
aGrayscale = mPrData.grayscale;
return NS_OK;
}
NS_IMETHODIMP nsDeviceContextSpecBeOS :: GetSize ( int &aSize )
{
aSize = mPrData.size;
return NS_OK;
}
NS_IMETHODIMP nsDeviceContextSpecBeOS :: GetPageDimensions ( float &aWidth, float &aHeight )
{
if ( mPrData.size == NS_LETTER_SIZE ) {
aWidth = 8.5;
aHeight = 11.0;
} else if ( mPrData.size == NS_LEGAL_SIZE ) {
aWidth = 8.5;
aHeight = 14.0;
} else if ( mPrData.size == NS_EXECUTIVE_SIZE ) {
aWidth = 7.5;
aHeight = 10.0;
} else if ( mPrData.size == NS_A4_SIZE ) {
// 210mm X 297mm == 8.27in X 11.69in
aWidth = 8.27;
aHeight = 11.69;
} else if ( mPrData.size == NS_A3_SIZE ) {
// 297mm X 420mm == 11.69in X 16.53in
aWidth = 11.69;
aHeight = 16.53;
}
if (mPrData.orientation == NS_LANDSCAPE) {
float temp;
temp = aWidth;
aWidth = aHeight;
aHeight = temp;
}
return NS_OK;
}
NS_IMETHODIMP nsDeviceContextSpecBeOS :: GetLandscape ( PRBool &landscape )
{
landscape = (mPrData.orientation == NS_LANDSCAPE);
return NS_OK;
}
NS_IMETHODIMP nsDeviceContextSpecBeOS :: GetTopMargin ( float &value )
{
value = mPrData.top;
return NS_OK;
}
NS_IMETHODIMP nsDeviceContextSpecBeOS :: GetBottomMargin ( float &value )
{
value = mPrData.bottom;
return NS_OK;
}
NS_IMETHODIMP nsDeviceContextSpecBeOS :: GetRightMargin ( float &value )
{
value = mPrData.right;
return NS_OK;
}
NS_IMETHODIMP nsDeviceContextSpecBeOS :: GetLeftMargin ( float &value )
{
value = mPrData.left;
return NS_OK;
}
NS_IMETHODIMP nsDeviceContextSpecBeOS::GetCommand ( const char **aCommand )
{
*aCommand = &mPrData.command[0];
return NS_OK;
}
NS_IMETHODIMP nsDeviceContextSpecBeOS::GetPath ( const char **aPath )
{
*aPath = &mPrData.path[0];
return NS_OK;
}
NS_IMETHODIMP nsDeviceContextSpecBeOS :: GetUserCancelled( PRBool &aCancel )
{
aCancel = mPrData.cancel;
return NS_OK;
}
/** -------------------------------------------------------
* Closes the printmanager if it is open.
* @update dc 2/15/98
@ -402,11 +175,6 @@ NS_IMETHODIMP nsDeviceContextSpecBeOS :: ClosePrintManager()
return NS_OK;
}
NS_IMETHODIMP nsDeviceContextSpecBeOS::GetPageSizeInTwips(PRInt32 *aWidth, PRInt32 *aHeight)
{
return mPrintSettings->GetPageSizeInTwips(aWidth, aHeight);
}
// Printer Enumerator
nsPrinterEnumeratorBeOS::nsPrinterEnumeratorBeOS()
{

Просмотреть файл

@ -42,9 +42,6 @@
#include "nsCOMPtr.h"
#include "nsIDeviceContextSpec.h"
#include "nsVoidArray.h"
#ifdef USE_POSTSCRIPT
#include "nsIDeviceContextSpecPS.h"
#endif /* USE_POSTSCRIPT */
#include "nsIPrintSettings.h"
#include "nsIPrintOptions.h"
// For public interface?
@ -52,9 +49,6 @@
#include "nsPrintdBeOS.h"
class nsDeviceContextSpecBeOS : public nsIDeviceContextSpec
#ifdef USE_POSTSCRIPT
, public nsIDeviceContextSpecPS
#endif
{
public:
/**
@ -85,43 +79,9 @@ public:
*/
NS_IMETHOD ClosePrintManager();
NS_IMETHOD GetPageSizeInTwips(PRInt32 *aWidth, PRInt32 *aHeight);
NS_IMETHOD GetToPrinter( PRBool &aToPrinter );
NS_IMETHOD GetPrinterName ( const char **aPrinter );
NS_IMETHOD GetCopies ( int &aCopies );
NS_IMETHOD GetFirstPageFirst ( PRBool &aFpf );
NS_IMETHOD GetGrayscale( PRBool &aGrayscale );
NS_IMETHOD GetSize ( int &aSize );
NS_IMETHOD GetTopMargin ( float &value );
NS_IMETHOD GetBottomMargin ( float &value );
NS_IMETHOD GetLeftMargin ( float &value );
NS_IMETHOD GetRightMargin ( float &value );
NS_IMETHOD GetCommand ( const char **aCommand );
NS_IMETHOD GetPath ( const char **aPath );
NS_IMETHOD GetPageDimensions (float &aWidth, float &aHeight );
NS_IMETHOD GetLandscape (PRBool &aLandscape);
NS_IMETHOD GetUserCancelled( PRBool &aCancel );
#ifdef MOZ_CAIRO_GFX
NS_IMETHOD GetSurfaceForPrinter(gfxASurface **nativeSurface) {
return NS_ERROR_NOT_IMPLEMENTED;
}
#endif
NS_IMETHOD GetSurfaceForPrinter(gfxASurface **nativeSurface) {
return NS_ERROR_NOT_IMPLEMENTED;
}
/**
* Destructor for nsDeviceContextSpecBeOS, this will release the printrecord
@ -135,7 +95,6 @@ public:
void FreeGlobalPrinters();
protected:
BeOSPrData mPrData;
nsCOMPtr<nsIPrintSettings> mPrintSettings;
};

Просмотреть файл

@ -1,545 +0,0 @@
; Package file for Unix
;
; File format:
;
; [] designates a toplevel component. Example: [core]
; - in front of a file specifies it to be removed from the destination
; * wildcard support to recursively copy the entire directory
; ; file comment
;
bin/.autoreg
[langenus]
;
; en-US
bin/chrome/en-US.jar
bin/chrome/en-US.manifest
bin/defaults/profile/en-US/*
bin/defaults/messenger/en-US/*
bin/defaults/isp/en-US/movemail.rdf
bin/searchplugins/*
bin/dictionaries/*
[deflenus]
;
; default files for en-US
bin/defaults/profile/bookmarks.html
bin/defaults/profile/panels.rdf
bin/defaults/profile/localstore.rdf
bin/defaults/profile/search.rdf
bin/defaults/profile/mimeTypes.rdf
bin/defaults/messenger/mailViews.dat
bin/defaults/isp/movemail.rdf
bin/defaults/messenger/Habeas.sfd
bin/defaults/messenger/SpamAssassin.sfd
bin/defaults/messenger/SpamCatcher.sfd
bin/defaults/messenger/SpamPal.sfd
[xpcom]
bin/libmozjs.so
bin/libnspr4.so
bin/libplc4.so
bin/libplds4.so
bin/cpu/sparcv8plus/libnspr_flt4.so
bin/libxpcom.so
bin/libxpcom_core.so
bin/libxpistub.so
bin/libmozz.so
bin/components/libxpinstall.so
bin/components/libjar50.so
bin/libxpcom_compat.so
bin/components/libxpcom_compat_c.so
[browser]
; MOZ_XUL_APP=1 items
bin/libxul.so
bin/components/commandlines.xpt
bin/components/feeds.xpt
bin/components/nsUpdateService.js
bin/components/toolkitprofile.xpt
bin/components/update.xpt
bin/components/libcommandlines.so
bin/components/libsuite.so
bin/components/libtoolkitcomps.so
bin/components/nsBrowserContentHandler.js
bin/components/nsExtensionManager.js
bin/components/pluginGlue.js
bin/components/xulapp.xpt
bin/components/nsURLFormatter.js
bin/components/urlformatter.xpt
; Original items (pre MOZ_XUL_APP=1)
bin/seamonkey
bin/seamonkey-bin
bin/init.d/README
bin/init.d/S02solaris_patchchecker.sh
bin/moz_patch_checker.dtksh
bin/icons/*
bin/libgtksuperwin.so
bin/libgtkxtbin.so
bin/libjsj.so
bin/libprotocol.so
bin/libgkgfx.so
bin/libthebes.so
bin/libmoz_art_lgpl.so
bin/run-mozilla.sh
bin/regExport
bin/regxpcom
bin/regchrome
bin/mozilla-xremote-client
bin/xpicleanup
bin/res/cmessage.txt
; this is used by gtk embedding clients
bin/libgtkembedmoz.so
; This is used by libgfxps
bin/libgfxpsshar.so
bin/components/alerts.xpt
bin/components/libaccessibility.so
bin/components/accessibility.xpt
bin/components/libappcomps.so
bin/components/libbookmark.so
bin/components/libwindowds.so
bin/components/libintlapp.so
bin/components/libxpautocomplete.so
bin/components/libsearchservice.so
bin/components/libgkgfxthebes.so
bin/components/appstartup.xpt
bin/components/bookmarks.xpt
bin/components/directory.xpt
bin/components/downloadmanager.xpt
bin/components/history.xpt
bin/components/related.xpt
bin/components/search.xpt
bin/components/autocomplete.xpt
bin/components/appshell.xpt
bin/components/caps.xpt
bin/components/chrome.xpt
bin/components/nsComposerCmdLineHandler.js
bin/components/cookie.xpt
bin/components/libjsd.so
bin/components/jsdservice.xpt
bin/components/dom.xpt
bin/components/dom_base.xpt
bin/components/dom_canvas.xpt
bin/components/dom_core.xpt
bin/components/dom_css.xpt
bin/components/dom_events.xpt
bin/components/dom_html.xpt
bin/components/dom_loadsave.xpt
bin/components/dom_offline.xpt
bin/components/dom_range.xpt
bin/components/dom_sidebar.xpt
bin/components/dom_storage.xpt
bin/components/dom_stylesheets.xpt
bin/components/dom_traversal.xpt
bin/components/dom_views.xpt
bin/components/dom_xbl.xpt
bin/components/dom_xpath.xpt
bin/components/dom_xul.xpt
bin/components/storage.xpt
bin/components/libstoragecomps.so
bin/components/editor.xpt
bin/components/find.xpt
bin/components/gfx.xpt
bin/components/gksvgrenderer.xpt
bin/components/intl.xpt
bin/components/imglib2.xpt
bin/components/chardet.xpt
bin/components/jar.xpt
bin/components/jsconsole-clhandler.js
bin/components/libnsappshell.so
bin/components/libcaps.so
bin/components/libchrome.so
bin/components/libcookie.so
bin/components/libpermissions.so
bin/components/libcomposer.so
bin/components/composer.xpt
bin/components/libdocshell.so
bin/components/libeditor.so
bin/components/libembedcomponents.so
bin/components/libgfxps.so
bin/components/libgfxxprint.so
bin/components/libimglib2.so
bin/components/libi18n.so
bin/components/libchardet.so
bin/components/libmork.so
bin/components/libmozfind.so
bin/components/liboji.so
bin/components/libpref.so
bin/components/libautoconfig.so
bin/components/libprofile.so
bin/components/content_base.xpt
bin/components/content_html.xpt
bin/components/content_htmldoc.xpt
bin/components/content_xmldoc.xpt
bin/components/content_xslt.xpt
bin/components/content_xtf.xpt
bin/components/libgklayout.so
bin/components/libgkgfxthebes.so
bin/components/libgkplugin.so
bin/components/libhtmlpars.so
bin/components/librdf.so
bin/components/libtxmgr.so
bin/components/txmgr.xpt
bin/components/libuconv.so
bin/components/libucvmath.so
bin/components/libwebbrwsr.so
bin/components/webBrowser_core.xpt
bin/components/libwallet.so
bin/components/libwalletviewers.so
bin/components/libwidget_gtk.so
bin/components/libwidget_gtk2.so
bin/components/libxpconnect.so
bin/components/locale.xpt
bin/components/mozbrwsr.xpt
bin/components/mozcomps.xpt
bin/components/mozfind.xpt
bin/components/libnecko.so
bin/components/necko.xpt
bin/components/mimetype.xpt
bin/components/necko_cache.xpt
bin/components/necko_strconv.xpt
bin/components/necko_about.xpt
bin/components/necko_dns.xpt
bin/components/necko_ftp.xpt
bin/components/necko_http.xpt
bin/components/necko_res.xpt
bin/components/necko_socket.xpt
bin/components/necko_cookie.xpt
bin/components/necko_file.xpt
bin/components/necko_viewsource.xpt
bin/components/nsFilePicker.js
bin/components/nsSidebar.js
bin/components/xpcom_xpti.xpt
bin/components/xpinstall.xpt
bin/components/oji.xpt
bin/components/pref.xpt
bin/components/autoconfig.xpt
bin/components/proxyObjInst.xpt
bin/components/rdf.xpt
bin/components/shistory.xpt
bin/components/sidebar.xpt
bin/components/signonviewer.xpt
bin/components/txtsvc.xpt
bin/components/unicharutil.xpt
bin/components/uriloader.xpt
bin/components/exthandler.xpt
bin/components/wallet.xpt
bin/components/walleteditor.xpt
bin/components/walletpreview.xpt
bin/components/webshell_idls.xpt
bin/components/widget.xpt
bin/components/windowds.xpt
bin/components/xpcom_base.xpt
bin/components/xpcom_ds.xpt
bin/components/xpcom_io.xpt
bin/components/xpcom_obsolete.xpt
bin/components/xpconnect.xpt
bin/components/docshell.xpt
bin/components/layout_base.xpt
bin/components/layout_printing.xpt
bin/components/layout_xul.xpt
bin/components/layout_xul_tree.xpt
bin/components/inspector.xpt
bin/components/xuldoc.xpt
bin/components/xultmpl.xpt
bin/components/libnsprefm.so
bin/components/prefmigr.xpt
bin/components/profile.xpt
bin/components/uconv.xpt
bin/components/util.xpt
bin/components/xpautocomplete.xpt
bin/components/xpcom_components.xpt
bin/components/xpcom_threads.xpt
bin/components/xml-rpc.xpt
bin/components/nsDictionary.js
bin/components/nsProxyAutoConfig.js
bin/components/nsXmlRpcClient.js
bin/components/libxremote_client.so
bin/components/libxremoteservice.so
bin/components/xremoteservice.xpt
bin/components/libremoteservice.so
bin/components/toolkitremote.xpt
bin/components/xremoteservice.xpt
bin/components/embed_base.xpt
bin/components/commandhandler.xpt
bin/components/webbrowserpersist.xpt
bin/components/windowwatcher.xpt
bin/components/libxmlextras.so
bin/components/nsHelperAppDlg.js
bin/components/helperAppDlg.xpt
bin/components/nsProgressDialog.js
bin/components/progressDlg.xpt
bin/components/nsDownloadProgressListener.js
bin/components/libfileview.so
bin/components/filepicker.xpt
bin/components/libuniversalchardet.so
bin/components/suitetypeaheadfind.xpt
bin/components/libsuitetypeaheadfind.so
bin/components/nsCloseAllWindows.js
bin/components/extensions.xpt
bin/components/libsystem-pref.so
bin/components/htmlparser.xpt
bin/components/lwbrk.xpt
bin/components/nsInterfaceInfoToIDL.js
bin/components/nsResetPref.js
bin/components/nsUpdateNotifier.js
bin/components/plugin.xpt
bin/components/prefetch.xpt
bin/components/imgicon.xpt
bin/components/libimgicon.so
bin/components/txEXSLTRegExFunctions.js
bin/components/nsAboutAbout.js
bin/components/xulappinfo.js
bin/components/xulappinfo.xpt
; spellchecker (may not be present)
bin/components/libmyspell.so
bin/components/spellchecker.xpt
bin/components/libspellchecker.so
; NegotiateAuth
bin/components/libauth.so
; GnomeVFS support
bin/components/libnkgnomevfs.so
; webservices
bin/components/libwebsrvcs.so
bin/components/websrvcs.xpt
; LDAP components need to be in the browser for AutoConfig
bin/libldap60.so
bin/libprldap60.so
bin/libldif60.so
bin/components/libmozldap.so
bin/components/mozldap.xpt
; Roaming
bin/components/libsroaming.so
bin/chrome/sroaming.jar
; classic theme
bin/chrome/classic.jar
bin/chrome/classic.manifest
bin/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/icon.png
bin/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/install.rdf
bin/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/preview.png
; modern theme
bin/chrome/modern.jar
bin/extensions/modern@themes.mozilla.org/chrome/modern.jar
bin/extensions/modern@themes.mozilla.org/chrome.manifest
bin/extensions/modern@themes.mozilla.org/icon.png
bin/extensions/modern@themes.mozilla.org/install.rdf
bin/extensions/modern@themes.mozilla.org/preview.png
bin/chrome/help.jar
bin/chrome/toolkit.jar
bin/chrome/toolkit.manifest
bin/chrome/comm.jar
bin/chrome/comm.manifest
bin/chrome/installed-chrome.txt
bin/chrome/chromelist.txt
;-bin/chrome/comm/content/editor/EditorInitPage.html
;-bin/chrome/comm/content/editor/content/EditorInitPagePlain.html
;Include this for "debug" testing - remove for actual beta release:
;-bin/chrome/comm/content/editor/content/TextEditorAppShell.xul
; window icons
bin/chrome/icons/default/bmPropsWindow*.xpm
bin/chrome/icons/default/bookmark-window*.xpm
bin/chrome/icons/default/default*.xpm
bin/chrome/icons/default/downloadManager*.xpm
bin/chrome/icons/default/editorWindow*.xpm
bin/chrome/icons/default/findBookmarkWindow*.xpm
bin/chrome/icons/default/findHistoryWindow*.xpm
bin/chrome/icons/default/history-window*.xpm
bin/chrome/icons/default/jsconsoleWindow*.xpm
bin/chrome/icons/default/main-window*.xpm
bin/chrome/icons/default/seamonkey.png
; all the pref files must be part of base
; to prevent migration bugs
bin/greprefs/*
bin/defaults/pref/*
bin/defaults/autoconfig/*
; this is only here if you have plugins -blizzard
; bin/plugins/*
bin/plugins/libnullplugin.so
bin/res/entityTables/*
bin/defaults/wallet/FieldSchema.tbl
bin/defaults/wallet/VcardSchema.tbl
bin/defaults/wallet/SchemaConcat.tbl
bin/defaults/wallet/DistinguishedSchema.tbl
bin/defaults/wallet/SchemaStrings.tbl
bin/defaults/wallet/PositionalSchema.tbl
bin/defaults/wallet/StateSchema.tbl
bin/res/hiddenWindow.html
bin/res/arrow.gif
bin/res/arrowd.gif
bin/res/loading-image.gif
bin/res/broken-image.gif
bin/res/charsetalias.properties
bin/res/unixcharset.properties
bin/res/charsetData.properties
bin/res/langGroups.properties
bin/res/language.properties
bin/res/ua.css
bin/res/html.css
bin/res/quirk.css
bin/res/forms.css
bin/res/EditorOverride.css
bin/res/contenteditable.css
bin/res/designmode.css
bin/res/grabber.gif
bin/res/table-add-column-after-active.gif
bin/res/table-add-column-after-hover.gif
bin/res/table-add-column-after.gif
bin/res/table-add-column-before-active.gif
bin/res/table-add-column-before-hover.gif
bin/res/table-add-column-before.gif
bin/res/table-add-row-after-active.gif
bin/res/table-add-row-after-hover.gif
bin/res/table-add-row-after.gif
bin/res/table-add-row-before-active.gif
bin/res/table-add-row-before-hover.gif
bin/res/table-add-row-before.gif
bin/res/table-remove-column-active.gif
bin/res/table-remove-column-hover.gif
bin/res/table-remove-column.gif
bin/res/table-remove-row-active.gif
bin/res/table-remove-row-hover.gif
bin/res/table-remove-row.gif
bin/res/viewsource.css
bin/res/mathml.css
bin/res/rdf/folder-closed.gif
bin/res/rdf/folder-open.gif
bin/res/rdf/loading.gif
bin/res/html/*
bin/res/fonts/*
bin/res/dtd/*
bin/res/effective_tld_names.dat
; svg
bin/res/svg.css
bin/components/dom_svg.xpt
[mail]
; MOZ_XUL_APP=1 addition
bin/components/libmail.so
; Original items (pre MOZ_XUL_APP=1)
bin/libmsgbaseutil.so
bin/components/addrbook.xpt
bin/components/libaddrbook.so
bin/components/liblocalmail.so
bin/components/libmailnews.so
bin/components/libmime.so
bin/components/libmimeemitter.so
bin/components/libmsgcompose.so
bin/components/libmsgdb.so
bin/components/libmsgimap.so
bin/components/libmsgnews.so
bin/components/libvcard.so
bin/components/libsmimestb.so
bin/components/libimport.so
bin/components/mailnews.xpt
bin/components/mime.xpt
bin/components/msgbase.xpt
bin/components/msgcompose.xpt
bin/components/msgdb.xpt
bin/components/msgimap.xpt
bin/components/msglocal.xpt
bin/components/msgnews.xpt
bin/components/msgsearch.xpt
bin/components/nsAbLDAPAttributeMap.js
bin/components/nsLDAPPrefsService.js
bin/components/import.xpt
bin/components/impComm4xMail.xpt
bin/chrome/messenger.jar
bin/chrome/messenger.manifest
bin/components/libmsgsmime.so
bin/components/msgsmime.xpt
bin/components/smime-service.js
bin/components/libmsgmdn.so
bin/components/msgmdn.xpt
bin/components/mdn-service.js
bin/components/libbayesflt.so
bin/components/mailview.xpt
bin/components/libmailview.so
bin/components/offlineStartup.js
; window icons
bin/chrome/icons/default/abcardWindow*.xpm
bin/chrome/icons/default/addressbookWindow*.xpm
bin/chrome/icons/default/messengerWindow*.xpm
bin/chrome/icons/default/msgcomposeWindow*.xpm
[chatzilla]
bin/components/chatzilla-service.js
bin/chrome/chatzilla.jar
bin/chrome/icons/default/chatzilla-window*.xpm
[venkman]
bin/components/venkman-service.js
bin/chrome/venkman.jar
bin/chrome/icons/default/venkman-window*.xpm
[talkback]
; Dummy talkback.xpi must be generated so deliver.pl and
; the linux installer generated by deliver.pl don't break.
;
; NOTE: This doesn't actually make it to release builds, merely
; here so that deliver.pl works in test mode when used by
; developers to create an installer. Release builds contain
; a legitimate, working talkback.xpi.
bin/components/nsSample.js
bin/components/libqfaservices.so
bin/components/qfaservices.xpt
bin/components/talkback/*
[psm]
bin/libnssckbi.so
bin/components/libpipboot.so
bin/components/pipboot.xpt
bin/components/libpipnss.so
bin/components/pipnss.xpt
bin/components/libpippki.so
bin/components/pippki.xpt
bin/libnss3.so
bin/libsmime3.so
bin/libsoftokn3.chk
bin/libsoftokn3.so
bin/libfreebl3.chk
bin/libfreebl3.so
bin/libfreebl_32fpu_3.chk
bin/libfreebl_32fpu_3.so
bin/libfreebl_32int_3.chk
bin/libfreebl_32int_3.so
bin/libfreebl_32int64_3.chk
bin/libfreebl_32int64_3.so
bin/libfreebl_64fpu_3.chk
bin/libfreebl_64fpu_3.so
bin/libfreebl_64int_3.chk
bin/libfreebl_64int_3.so
bin/libssl3.so
bin/chrome/pipnss.jar
bin/chrome/pippki.jar
bin/chrome/pippki.manifest
[inspector]
bin/components/inspector-cmdline.js
bin/chrome/inspector.jar
bin/defaults/pref/inspector.js
bin/res/inspector/viewer-registry.rdf
bin/res/inspector/search-registry.rdf
bin/chrome/icons/default/winInspectorMain*.xpm
[reporter]
bin/chrome/reporter.jar
bin/chrome/reporter.manifest