//----------------------------------------------------------------------------------------
// pinEdit global settings
//----------------------------------------------------------------------------------------

//****************************************************************************************
// NEW in 5.x
//
// This file includes only those parameters that can NOT be set through interface
// Normally this file does NOT have to be changed
//****************************************************************************************


// design of the tabs
var globalTabDesign = "1";      // 1 = Windows XP like
                                // 2 = Office2000 like
                                // 3 = Office2003 like
                                // 4 = 3D
                                // 5 = Mac

//--------------------------------------------------------------------------------------------------------
// COMMON URL
//--------------------------------------------------------------------------------------------------------
// URL of root (context). Can be http://www.mydomain.com/
// Must end with /
var globalRootUrl  = "";

// physical path of root (context)
var globalRootPath = "";

// URL of editor folder: Must be in the same domain as the files that are opened per URL
// Must end with /
// If not specified the editor folder must be in web application root
var globalEditorUrl = ""; 


//--------------------------------------------------------------------------------------------------------
// AREAS
//--------------------------------------------------------------------------------------------------------
// hierarchy bar parameter
var globalHierarchyBarSelectionColor = "#FFFFA0";
var globalHierarchyBarHighlight = true;

// attribute area
var globalAttributeAreaUrl = "mode/html/dialogs/attribute.html";
var globalAttributeAreaWidth = "230px";

// document view
var globalDocumentMargin = "20";
var globalDocumentBackColor = "#9099ae";
var globalDocumentPageWidth = "794";

// ruler
// unit: 
//  0 = pixel 
//  1 = mm
//  2 = inch
var globalRulerUnit = "0";


//--------------------------------------------------------------------------------------------------------
// ADAPTERS
//--------------------------------------------------------------------------------------------------------
// set target file, where html content is posted
// enter here your file with absolute or relative path
// in relativ mode, the location must be relativ to 'editor' directory
// Java: if you want to use the servlet and the java adapter
//var target = "../servlet/Edit";
// if you want to use a jsp file

var target = "server/asp/save.asp";

// set target file, that is called to load or save text modules
// enter here your file with absolute or relative path
// in relativ mode, the location must be relativ to 'editor' directory
// implemented only for Java and .Net
var targetTextModule = "";


// set target file, that is called to get intellisense data
// enter here your file with absolute or relative path
// in relativ mode, the location must be relativ to 'editor' directory
// implemented only for Java and .Net
var targetIntellisense = "server/asp/intellisenseadapter.asp";


//--------------------------------------------------------------------------------------------------------
// SAVE
//--------------------------------------------------------------------------------------------------------
// defines the save mode
// 0 = Absolute All HTML
// 1 = Absolute Body HTML
// 2 = Relative All HTML
// 3 = Relative Body HTML
// 4 = XHTML
// 5 = XHtml Body
var globalSaveMode = 4;

// this content is passed in variable "custom" to the save adapter
var globalSaveValue = "";



//--------------------------------------------------------------------------------------------------------
// MISC
//--------------------------------------------------------------------------------------------------------
// Needed for XP SP2 to increase height of dialogs
// For SP2 set this parameter to 15
var globalDialogOffset = 15;

// if set to true, Control-V is disabled and an event occurs in config_event.js
var globalControlVDisabled = false;

// key code for intellisense ("" if disabled)
var globalISKey = "";

// these values are set dynamically during startup dependant of design
// global toolbar background color for all toolbars
var globalToolbarColor = "";
// global toolbar border
var globalToolbarBorder = true;
// if tb parameter is used (Toolbar auto config)
var globalToolbarHeight      = 27;

// defines the popup width
// please increase this value when the context menu strings are too large
var globalPopupWidth = 200;

// colors for syntax highlighting
var globalTagColor       = "#0000ff";
var globalTagNameColor   = "#800000";
var globalAttributeColor = "red";
var globalStyleColor     = "#0000ff";

// if true, the language is automatically detected
var globalLanguageDetect = false;

// the extended mode has syntax coloring
var globalHTMLModeExtended = false;

// the toolbar status is updated when a key is pressed
// for very slow systems set this value to false
var globalUpdateToolbarWithKey = true;

// highligh color for highlighting
var globalHighlightColor = "#d8d8d7";


// sets focus to editor after editWrite
var globalAutoFocus          = false;

// the doc type for XHTML
var globalXHtmlDocType = "<?xml version=\"1.0\"?><!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";

// filter (file extensions) for dialogs for mode OPEN, IMAGE, LINK
var globalDialogFilterDoc   = "html;htm;txt;";
var globalDialogFilterImage = "gif;jpeg;jpg;png;";
var globalDialogFilterLink  = "html;htm;txt;doc;pdf;"; 

// if color is set then an non editable region is colored
var globalEditableColor = "#c0c0c0";


// creates pretty format in HTML view
var globalPrettyFormat = true;

// the first row of the inserted table is a <hr>
var globalFirstTableRowIsHeader = false;
//
var globalUseSpaceInTableCell = false;
var globalStaticTables = true;

// anchor is displayed as symbol
var globalDisplaySymbolAnchor = true;

// TBODY tag is displayed
var globalShowTBodyTag = true;

// In HTML area the lines are not wrapped when longer than editor window
// IE only
var globalHTMLAreaWrapLine = false;

// converts all characters before read
var globalConvertChar        = true;
// shows url selection button on link/image dialog
var globalDialogUrlButton    = true;
// defines font size unit
var globalFontSizeType       = "pt";
// constrain image ratio
var globalImageRatioConstrain = true;
// remove cr/lf when switching from html to edit view
var globalRemoveCRLF         = false;

// debug flag
var globalDebug = false;


/*
//--------------------------------------------------------------------------------------------------------
// pinEditPDF
//--------------------------------------------------------------------------------------------------------
// this parameters defines the client interface only
// when specifying standard then some of client attributes are not available
// Options: "standard" or "professional" 
var globalPDFVersion = "professional";
// points to the pdf service page, by default: http://localhost/pinEditPDF/pdf.aspx
var globalPDFPage = "http://localhost/pinEditPDF/pdf.aspx";
// defines the output path where the pdf files are created
var globalPDFOutputPath = "c:/inetpub/wwwroot/pinEditPDF/pdf/";
// defines the output url where the pdf files are created
var globalPDFOutputUrl = "http://localhost/pinEditPDF/pdf/";
// define file name
// if not specified the file name will be created internally
var globalPDFFileName = "";
// defines paper size
//  1   Letter [8.5 x 11 in]
//  5   Legal [8.5 x 14 in]
//      Executive [7.25 x 10.5 in]
//      Ledger [355.6 x 215.9 mm]
//      Tabloid [11 x 17 in]
//      Screen [10 x 7.5 in]
//  8   A3 [297 x 420 mm]
//  9   A4 [210 x 297 mm]
//      A5 [148 x 210 mm]
//  256 Custom page size
var globalPDFPaperSize = "1";
// Orientation:
// 1  Portrait
// 2  Landscape
var globalPDFOrientation = "1";
// Resolution in dpi
// 75,150,300,600,1200,2400
var globalPDFResolution = "600";
// Document settings
var globalPDFTitle = "";
var globalPDFAuthor = "";
var globalPDFSubject = "";
var globalPDFCreator = "";
var globalPDFKeyWords = "";
// header/footer 
var globalPDFHeader = "";
var globalPDFFooter = "";
// 0 = false
// 1 = true
var globalPDFJPEGCompression = 1;
// unit for all margins and heights
// 1 = inches
// 2 = mm
// 3 = cm
var globalPDFUnit = 1;
// margin
var globalPDFMarginLeft  = 0;
var globalPDFMarginTop   = 0;
var globalPDFMarginRight = 0;
var globalPDFMarginBottom= 0;
var globalPDFHeaderHeight= 0;
var globalPDFFooterHeight= 0;
// misc
var globalPDFConvertForms = 0;
var globalPDFConvertLinks = 0;
var globalPDFOwnerPassword = "";
var globalPDFUserPassword = "";
*/
