beautypg.com

Other folders – Adobe Extending Dreamweaver CS4 User Manual

Page 377

background image

371

EXTENDING DREAMWEAVER CS4

The Shared folder

Other folders

The following list describes other folders of interest in the Shared folder:

Controls

The Controls folder contains the elements used to build a server behavior. These controls include interfaces

for text and recordset menus.

Note: These controls are used by the Dreamweaver Server Behavior Builder and by many of the Dreamweaver server
behaviors, but some are useful for managing a control in your extension.

Fireworks

The Fireworks folder has the supporting files for Fireworks integration.

UltraDev

Dreamweaver maintains this folder primarily for backward compatibility, and it should not be used for new

extensions. Use the Dreamweaver Configuration/Shared/Common folder, where most of this functionality also exists.
See “

The Common folder

” on page 367.

file.js

Contains functions pertaining to file operations. Functions let the user browse for local filename,
convert the relative path to the file URL path, return the filename for the current document, determine
if a specified document has been saved in current site and return the document-relative path, or
determine if a specified file is currently open.

form.js

Contains functions that add a form around a given text string if a form does not already exist in the
current document or AP element. Includes functions that determine if an object is a AP element and
determine if the insertion point is inside a form.

handler.js

Contains functions that get a function for an event handler, add a function to an event handler, and
delete a function from an event handler.

helper.js

Contains a handful of useful functions that replace encoding, unescape quotation marks ("), check
whether a node is inside a selection range, and checks for duplicate object names.

insertion.js

Contains the

insertIntoDocument()

function, which inserts a text string into a document at the

insertion point. Also contains the supporting functions

getHigherBlockTag()

and

arrContains()

. The

getHigherBlockTag()

function gets the next highest

blockTag

, as defined

in the

blockTags

array, and the

arrContains()

function finds a specified item in an array.

localText.js

Reserved variables, not for general use. Use Startup/mminit.htm instead or use the strings from the
Dreamweaver Configuration/Strings/*.xml files.

menuItem.js

Contains functions that add values to or remove values from a listed menu item.

niceName.js

Contains functions that convert an array of Object references to an array of simpler names.

quickString.js

Contains functions that aggregate smaller strings without doing a memory allocation each time.

string.js

Contains a generic set of functions for manipulating and parsing text strings. Functions include:

extractArgs()

,

escQuotes()

,

unescQuotes()

,

quoteMeta()

,

errMsg()

,

badChars()

,

getParam()

,

quote()

,

stripSpaces()

,

StripChars()

,

AllInRange()

,

reformat()

,

trim()

,

createDisplayString()

,

entityNameEncode()

,

entityNameDecode()

,

stripAccelerator()

, and

SprintF()

.

TemplateUtils.js

Contains utility functions for Dreamweaver templates. Functions insert an editable region into a
document, insert a repeating region into a document, scan a document for a specified editable region,
and so on.

UI.js

Contains generic functions that control the UI. These functions find a designated object in the current
document, load select list options with localized strings, return the attribute value for a selected
option, and word-wrap the text message for an alert.

File

Description

This manual is related to the following products: