Example #1
0
nsPSPrinterList::nsPSPrinterList()
{
    // Should we try cups?
    if (Preferences::GetBool("print.postscript.cups.enabled", true) &&
        !gCupsShim.IsInitialized()) {
        gCupsShim.Init();
    }
}
Example #2
0
/* Initialize the printer manager object */
nsresult
nsPSPrinterList::Init()
{
    // Should we try cups?
    PRBool useCups =
        Preferences::GetBool("print.postscript.cups.enabled", PR_TRUE);
    if (useCups && !gCupsShim.IsInitialized()) {
        gCupsShim.Init();
    }
    return NS_OK;
}