Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
EmbedPrivate.cpp File Reference
#include <nsIDocShell.h>
#include <nsIURI.h>
#include <nsIWebProgress.h>
#include <nsIDOMDocument.h>
#include <nsIDOMNodeList.h>
#include <nsISelection.h>
#include "nsReadableUtils.h"
#include "nsNetUtil.h"
#include "nsIWidget.h"
#include <nsIInterfaceRequestor.h>
#include <nsIInterfaceRequestorUtils.h>
#include <nsIComponentManager.h>
#include <nsIPrintSettings.h>
#include "nsPrintSettingsImpl.h"
#include <nsIWindowWatcher.h>
#include <nsILocalFile.h>
#include <nsEmbedAPI.h>
#include <nsString.h>
#include <nsIDOMWindow.h>
#include <nsPIDOMWindow.h>
#include <nsIDOMWindowInternal.h>
#include <nsIChromeEventHandler.h>
#include <nsIContentViewer.h>
#include <nsIContentViewerEdit.h>
#include <nsIWebBrowserSetup.h>
#include "nsIWebBrowserPrint.h"
#include "nsIClipboardCommands.h"
#include "nsClipboard.h"
#include "nsWidgetsCID.h"
#include <nsIFocusController.h>
#include "nsIPrintOptions.h"
#include "EmbedPrivate.h"
#include "EmbedWindow.h"
#include "EmbedProgress.h"
#include "EmbedContentListener.h"
#include "EmbedEventListener.h"
#include "EmbedWindowCreator.h"
#include "EmbedStream.h"
#include "EmbedPrintListener.h"
#include "PtMozilla.h"

Go to the source code of this file.

Defines

#define FORMAT_ESCAPE_CHARACTER   '&'

Functions

static NS_DEFINE_CID (kCClipboardCID, NS_CLIPBOARD_CID)
static void mozilla_set_default_pref (nsIPref *pref)

Variables

char * g_Print_Left_Header_String
char * g_Print_Right_Header_String
char * g_Print_Left_Footer_String
char * g_Print_Right_Footer_String
static const char sWatcherContractID [] = "@mozilla.org/embedcomp/window-watcher;1"

Define Documentation

Definition at line 1021 of file EmbedPrivate.cpp.


Function Documentation

static void mozilla_set_default_pref ( nsIPref pref) [static]

Definition at line 973 of file EmbedPrivate.cpp.

{
/*
       PtMozillaWidget_t *moz = ( PtMozillaWidget_t * ) widget;
       nsIPref *pref = moz->EmbedRef->GetPrefs();
*/

       /* translation set = Western European (ISO 8859-1) */
       pref->SetUnicharPref( "intl.charset.default", NS_ConvertASCIItoUCS2("iso8859-1").get());

       /* HTML Options */
       pref->SetUnicharPref( "browser.visited_color", NS_ConvertASCIItoUCS2("#008080").get() );
       pref->SetUnicharPref( "browser.anchor_color", NS_ConvertASCIItoUCS2("#0000ff").get() );
       pref->SetUnicharPref( "browser.display.foreground_color", NS_ConvertASCIItoUCS2("#000000").get() );
       pref->SetUnicharPref( "browser.display.background_color", NS_ConvertASCIItoUCS2("#ffffff").get() );

       pref->SetCharPref( "font.name.serif.x-western", "serif" );
       pref->SetCharPref( "font.name.sans-serif.x-western", "sans-serif" );
       pref->SetCharPref( "font.name.monospace.x-western", "monospace" );
       pref->SetCharPref( "font.name.cursive.x-western", "cursive" );
       pref->SetCharPref( "font.name.fantasy.x-western", "fantasy" );

       pref->SetBoolPref( "browser.display.use_document_colors", PR_TRUE );
       pref->SetBoolPref( "browser.underline_anchors", PR_TRUE );
       pref->SetIntPref( "font.size.variable.x-western", 14 );
       pref->SetIntPref( "font.size.fixed.x-western", 12 );
       pref->SetIntPref( "browser.history_expire_days", 4 );
       pref->SetIntPref( "browser.sessionhistory.max_entries", 50 );
//     pref->SetIntPref( "browser.cache.check_doc_frequency", 2 );
       pref->SetBoolPref( "browser.cache.disk.enable", PR_TRUE );
       pref->SetIntPref( "browser.cache.disk.capacity", 5000 );
       pref->SetIntPref( "network.http.max-connections", 4 );
       pref->SetIntPref( "network.proxy.http_port", 80 );
       pref->SetIntPref( "network.proxy.ftp_port", 80 );
       pref->SetIntPref( "network.proxy.gopher_port", 80 );

       pref->SetCharPref( "general.skins.selectedSkin", "classic/1.0" );
       pref->SetIntPref( "browser.cache.memory.capacity", 100 ); /* 100k ( no cache ) */
       pref->SetCharPref( "user.print.print_frame", "print_frame_selected" );

       pref->SetCharPref( "print.print_headercenter", "" );
       pref->SetCharPref( "print.print_footercenter", "" );

       pref->SavePrefFile( nsnull );
}

Here is the call graph for this function:

Here is the caller graph for this function:

static NS_DEFINE_CID ( kCClipboardCID  ,
NS_CLIPBOARD_CID   
) [static]

Variable Documentation

Definition at line 162 of file PtMozilla.cpp.

Definition at line 162 of file PtMozilla.cpp.

Definition at line 162 of file PtMozilla.cpp.

Definition at line 162 of file PtMozilla.cpp.

const char sWatcherContractID[] = "@mozilla.org/embedcomp/window-watcher;1" [static]

Definition at line 102 of file EmbedPrivate.cpp.