ADOBE MX 2004 User Manual [fr]

Guide des API de Dreamweaver
Marques commerciales
Add Life to the Web, Afterburner, Aftershock, Andromedia, Allaire, Animation PowerPack, Aria, Attain, Authorware, Authorware Star, Backstage, Bright Tiger, Clustercats, Cold Fusion, Contribute, Design in Motion, Director, Dream Templates, Dreamweaver, Drumbeat 2000, EDJE, EJIPT, Extreme 3D, Fireworks, Flash, Fontographer, FreeHand, Generator, HomeSite, JFusion, JRun, Kawa, Know Your Site, Knowledge Objects, Knowledge Stream, Knowledge Track, LikeMinds, Lingo, Live Effects, MacRecorder Logo and Design, Macromedia, Macromedia Action!, Macromedia Flash, Macromedia M Logo & Design, Macromedia Spectra, Macromedia xRes Logo and Design, MacroModel, Made with Macromedia, Made with Macromedia Logo and Design, MAGIC Logo and Design, Mediamaker, Movie Critic, Open Sesame!, Roundtrip HTML, Shockwave, Sitespring, SoundEdit, Titlemaker, UltraDev, Web Design 101, what the web can be et Xtra sont des marques commerciales ou des marques déposées de Macromedia, Inc. aux Etats-Unis ou dans d’autres juridictions ou pays. Les autres noms de produit, logos, concepts, titres, mots ou phrases mentionnés dans cette publication peuvent être des marques commerciales, des marques de service ou des noms commerciaux de Macromedia, Inc. ou d’autres entités et peuvent être déposés dans certaines juridictions ou certains pays.
Informations de tiers
Ce manuel contient des liens vers des sites Web tiers qui ne sont pas contrôlés par Macromedia et Macromedia ne peut en aucun cas être tenu responsable du contenu de ces sites. Si vous accédez à l’un de ces sites, vous le faites à vos propres risques. Macromedia propose ces liens dans un but pratique uniquement et ne peut en aucun cas endosser ou accepter la responsabilité du contenu de ces sites tiers.
Vous trouverez des informations sur les logiciels tiers et/ou d’autres conditions générales à l’adresse suivante : www.macromedia.com/go/thirdparty_fr/.
Navigateur Opera ® Copyright © 1995-2002 Opera Software ASA et ses fournisseurs. Tous droits réservés.
Dénégation de responsabilité d’Apple
APPLE COMPUTER, INC. N’ASSUME AUCUNE GARANTIE, IMPLICITE OU EXPLICITE, SUR LE LOGICIEL INFORMATIQUE CI-INCLUS, SA COMMERCIABILITE OU SON ADEQUATION A UN OBJECTIF PARTICULIER. L’EXCLUSION DES GARANTIES IMPLICITES N’ETANT PAS AUTORISEE DANS CERTAINS ETATS, L’EXCLUSION CI-DESSUS PEUT DONC NE PAS S’APPLIQUER A VOTRE CAS. CETTE GARANTIE VOUS OFFRE DES DROITS JURIDIQUES SPECIFIQUES. VOUS POUVEZ DISPOSER DE CERTAINS AUTRES DROITS, QUI VARIENT SELON LES ETATS.
Copyright © 1997-2003 Macromedia, Inc. Tous droits réservés. Ce manuel ne peut pas être copié, photocopié, reproduit, traduit ou converti sous forme électronique ou informatique, en partie ou en totalité, sans l’autorisation écrite préalable de Macromedia, Inc. Numéro de référence ZDW70M400F
Remerciements
Direction : Sheila McGinn Gestion de projet : Robert Berry Rédaction : Robert Berry et David Jacowitz Direction des éditions : Lisa Stanziano Mise en forme : Mary Kraemer Gestion de la production : Patrice O’Neill Conception et production : Adam Barnett, Aaron Begley, Chris Basmajian, John Francis, Jeff Harmon. Remerciements particuliers à Jay London, Jeff Schang, Lori Hylan-Cho, Hisami Scott, Sam Mathews, Jake Cockrell, Russ
Helfand, Randy Edmunds, George Comninos, Rosana Francescato, Charles Nadeau, Bonnie Loo, Gwenael Cossoul, Luciano Arruda, Masayo Noda, Richard Clairicia, Scott Richards, Seungmin Lee, Vincent Truong, Birnou Sébarte et les équipes d’ingénierie et de contrôle qualité de Dreamweaver.
Première édition : Novembre 2003 Macromedia, Inc.
600 Townsend St. San Francisco, CA 94103
TABLE DES MATIERES
CHAPITRE 1 : Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Arrière-plan. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Extension de Dreamweaver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Ressources supplémentaires pour les développeurs d’extensions. . . . . . . . . . . . . . . 26
Nouvelles fonctions de Dreamweaver MX 2004 . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Conception . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Fonctions supprimées . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Contenu de page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Conception . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Activateurs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Autre . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Changements dans la documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Errata . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Conventions utilisées dans ce manuel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
PARTIE I : API d’utilitaire
CHAPITRE 2 : API d’E/S des fichiers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Accès aux fichiers de configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
API d’E/S des fichiers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
DWfile.copy() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
DWfile.createFolder(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
DWfile.exists() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
DWfile.getAttributes() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
DWfile.getModificationDate() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
DWfile.getCreationDate() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
DWfile.getCreationDateObj() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
DWfile.getModificationDateObj(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
DWfile.getSize(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
DWfile.listFolder() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
DWfile.read() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
DWfile.remove() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
3
DWfile.setAttributes() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
DWfile.write() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
CHAPITRE 3 : API HTTP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Fonctionnement de l’API HTTP. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
API HTTP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
MMHttp.clearServerScriptsFolder() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
MMHttp.clearTemp() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
MMHttp.getFile() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
MMHttp.getFileCallback(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
MMHttp.getText(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
MMHttp.getTextCallback() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
MMHttp.postText() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
MMHttp.postTextCallback() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
CHAPITRE 4 : API de Design Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Fonctionnement de Design Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
API JavaScript de Design Notes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
MMNotes.close() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
MMNotes.filePathToLocalURL(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
MMNotes.get() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
MMNotes.getKeyCount() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
MMNotes.getKeys(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
MMNotes.getSiteRootForFile() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
MMNotes.getVersionName() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
MMNotes.getVersionNum(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
MMNotes.localURLToFilePath() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
MMNotes.open() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
MMNotes.remove() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
MMNotes.set(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
API C de Design Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
void CloseNotesFile() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
BOOL FilePathToLocalURL() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
BOOL GetNote(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
int GetNoteLength() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
int GetNotesKeyCount() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
BOOL GetNotesKeys() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
BOOL GetSiteRootForFile() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
BOOL GetVersionName() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
BOOL GetVersionNum(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
BOOL LocalURLToFilePath() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
FileHandle OpenNotesFile(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
FileHandle OpenNotesFilewithOpenFlags(). . . . . . . . . . . . . . . . . . . . . . . . . . . 62
BOOL RemoveNote() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
BOOL SetNote() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
CHAPITRE 5 : Intégration de Fireworks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
L’API FWLaunch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
4 Table des matières
FWLaunch.bringDWToFront() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
FWLaunch.bringFWToFront(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
FWLaunch.execJsInFireworks() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
FWLaunch.getJsResponse() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
FWLaunch.mayLaunchFireworks() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
FWLaunch.optimizeInFireworks() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
FWLaunch.validateFireworks(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
CHAPITRE 6 : Intégration de Flash. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Fonctionnement des éléments Flash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Insertion d’éléments Flash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Ajout d’un élément Flash à la barre Insérer . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Ajout d’un élément Flash à un menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
API des objets Flash. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
SWFFile.createFile(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
SWFFile.getNaturalSize() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
SWFFile.getObjectType() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
SWFFile.readFile() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
CHAPITRE 7 : API de base de données . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Fonctionnement de l’API de bases de données. . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Fonctions de connexion à une base de données . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
MMDB.deleteConnection(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
MMDB.getColdFusionDsnList() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
MMDB.getConnection() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
MMDB.getConnectionList() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
MMDB.getConnectionName() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
MMDB.getConnectionString() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
MMDB.getDriverName() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
MMDB.getDriverUrlTemplateList() (déconseillée). . . . . . . . . . . . . . . . . . . . . . 82
MMDB.getLocalDsnList() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
MMDB.getPassword() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
MMDB.getRDSPassword() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
MMDB.getRDSUserName() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
MMDB.getRemoteDsnList() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
MMDB.getRuntimeConnectionType() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
MMDB.getUserName() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
MMDB.hasConnectionWithName() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
MMDB.needToPromptForRdsInfo() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
MMDB.needToRefreshColdFusionDsnList(). . . . . . . . . . . . . . . . . . . . . . . . . . 87
MMDB.popupConnection() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
MMDB.setRDSPassword(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
MMDB.setRDSUserName() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
MMDB.showColdFusionAdmin() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
MMDB.showConnectionMgrDialog(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
MMDB.showOdbcDialog() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
MMDB.showRdsUserDialog(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
MMDB.showRestrictDialog() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
Table des matières 5
MMDB.testConnection(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
Fonctions d’accès à la base de données. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
MMDB.getColumnAndTypeList(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
MMDB.getColumnList() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
MMDB.getColumns() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
MMDB.getColumnsOfTable() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
MMDB.getPrimaryKeys() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
MMDB.getProcedures() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
MMDB.getSPColumnList() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
MMDB.getSPColumnListNamedParams(). . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
MMDB.getSPParameters(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
MMDB.getSPParamsAsString() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
MMDB.getTables() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
MMDB.getViews(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
MMDB.showResultset(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
MMDB.showSPResultset(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
MMDB.showSPResultsetNamedParams() . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
CHAPITRE 8 : API de connectivité à une base de données . . . . . . . . . . . . . . . . 103
Développement d’un nouveau type de connexion . . . . . . . . . . . . . . . . . . . . . . . . 103
API de connexion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
findConnection() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
applyConnection() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
Fichier inclus généré . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
Fichier de définition pour votre type de connexion . . . . . . . . . . . . . . . . . . . . . . . 109
CHAPITRE 9 : API JavaBeans . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
API JavaBeans . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
MMJB.getClasses(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
MMJB.getClassesFromPackage() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
MMJB.getErrorMessage(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
MMJB.getEvents() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
MMJB.getIndexedProperties() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
MMJB.getMethods() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
MMJB.getProperties() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
MMJB.getReadProperties() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
MMJB.getWriteProperties() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
CHAPITRE 10 : API d’intégration de commande source . . . . . . . . . . . . . . . . . . 119
Fonctionnement de l’intégration des commandes source avec Dreamweaver . . . . 119
Ajout d’une fonctionnalité de système de commande source . . . . . . . . . . . . . . . . 120
Fonctions obligatoires de l’API d’intégration de commande source . . . . . . . . . . . 120
bool SCS_GetAgentInfo() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
bool SCS_Connect() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
bool SCS_Disconnect() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
bool SCS_IsConnected() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
int SCS_GetRootFolderLength() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
bool SCS_GetRootFolder() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
6 Table des matières
int SCS_GetFolderListLength() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
bool SCS_GetFolderList() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
bool SCS_Get() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
bool SCS_Put() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
bool SCS_NewFolder(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
bool SCS_Delete() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
bool SCS_Rename() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
bool SCS_ItemExists() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Fonctions facultatives de l’API d’intégration de commande source . . . . . . . . . . . 126
bool SCS_GetConnectionInfo(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
bool SCS_SiteDeleted() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
bool SCS_SiteRenamed() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
int SCS_GetNumNewFeatures() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
bool SCS_GetNewFeatures() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
bool SCS_GetCheckoutName() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
bool SCS_Checkin(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
bool SCS_Checkout() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
bool SCS_UndoCheckout() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
int SCS_GetNumCheckedOut() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
bool SCS_GetFileCheckoutList() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
int SCS_GetErrorMessageLength(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
bool SCS_GetErrorMessage(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
int SCS_GetNoteCount(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
int SCS_GetMaxNoteLength(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
bool SCS_GetDesignNotes() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
bool SCS_SetDesignNotes(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
bool SCS_IsRemoteNewer(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
Activateurs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
bool SCS_canConnect() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
bool SCS_canGet(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
bool SCS_canCheckout() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
bool SCS_canPut(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
bool SCS_canCheckin() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
bool SCS_CanUndoCheckout(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
bool SCS_canNewFolder(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
bool SCS_canDelete() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
bool SCS_canRename() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
bool SCS_BeforeGet() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
bool SCS_BeforePut() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
bool SCS_AfterGet() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
bool SCS_AfterPut(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
PARTIE II : API JavaScript
CHAPITRE 11 : Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
Fonctions relatives aux applications externes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
dreamweaver.browseDocument() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
Table des matières 7
dreamweaver.getBrowserList(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
dreamweaver.getExtensionEditorList() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
dreamweaver.getExternalTextEditor() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
dreamweaver.getFlashPath() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
dreamweaver.getPrimaryBrowser() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
dreamweaver.getPrimaryExtensionEditor() . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
dreamweaver.getSecondaryBrowser() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
dreamweaver.openHelpURL() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
dreamweaver.openWithApp() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
dreamweaver.openWithBrowseDialog() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
dreamweaver.openWithExternalTextEditor() . . . . . . . . . . . . . . . . . . . . . . . . . 149
dreamweaver.openWithImageEditor() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
dreamweaver.validateFlash() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
Fonctions globales relatives aux applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
dreamweaver.beep() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
dreamweaver.getShowDialogsOnInsert() . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
dreamweaver.quitApplication(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
dreamweaver.showAboutBox() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
dreamweaver.showDynamicDataDialog(). . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
dreamweaver.showPreferencesDialog() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
dreamweaver.showTagChooser() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
CHAPITRE 12 : Espace de travail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
Fonctions relatives à l’historique . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
dom.redo() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
dom.undo() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
dreamweaver.getRedoText() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
dreamweaver.getUndoText() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
dreamweaver.playRecordedCommand() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
dreamweaver.redo(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
dreamweaver.startRecording(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
dreamweaver.stopRecording(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
dreamweaver.undo() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
dreamweaver.historyPalette.clearSteps() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
dreamweaver.historyPalette.copySteps() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
dreamweaver.historyPalette.getSelectedSteps() . . . . . . . . . . . . . . . . . . . . . . . . 159
dreamweaver.historyPalette.getStepCount() . . . . . . . . . . . . . . . . . . . . . . . . . . 160
dreamweaver.historyPalette.getStepsAsJavaScript() . . . . . . . . . . . . . . . . . . . . . 160
dreamweaver.historyPalette.getUndoState() . . . . . . . . . . . . . . . . . . . . . . . . . . 161
dreamweaver.historyPalette.replaySteps() . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
dreamweaver.historyPalette.saveAsCommand(). . . . . . . . . . . . . . . . . . . . . . . . 162
dreamweaver.historyPalette.setSelectedSteps(). . . . . . . . . . . . . . . . . . . . . . . . . 162
dreamweaver.historyPalette.getUndoState() . . . . . . . . . . . . . . . . . . . . . . . . . . 163
Fonctions d’insertion d’objets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
dom.insertFlashElement(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
dreamweaver.objectPalette.getMenuDefault() . . . . . . . . . . . . . . . . . . . . . . . . . 164
dreamweaver.objectPalette.setMenuDefault() . . . . . . . . . . . . . . . . . . . . . . . . . 164
dreamweaver.reloadObjects() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
Fonctions relatives au clavier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
8 Table des matières
dom.arrowDown() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
dom.arrowLeft() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
dom.arrowRight(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
dom.arrowUp() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
dom.backspaceKey(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
dom.deleteKey() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
dom.endOfDocument() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
dom.endOfLine() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
dom.nextParagraph() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
dom.nextWord(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
dom.pageDown() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
dom.pageUp() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
dom.previousParagraph() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
dom.previousWord() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
dom.startOfDocument() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171
dom.startOfLine() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171
dreamweaver.mapKeyCodeToChar() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171
Fonctions relatives aux menus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
dreamweaver.getMenuNeedsUpdating() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
dreamweaver.notifyMenuUpdated() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
dreamweaver.reloadMenus() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
Fonctions de la fenêtre de résultats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
Création d’une fenêtre de résultats indépendante . . . . . . . . . . . . . . . . . . . . . . 173
dreamweaver.createResultsWindow() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
dreamweaver.showResults(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
resWin.addItem() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174
resWin.addResultItem() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
resWin.setCallbackCommands() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
resWin.setColumnWidths() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
resWin.setFileList(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
resWin.setTitle(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
resWin.startProcessing() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
resWin.stopProcessing() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
Utilisation du groupe de panneaux Résultats intégré. . . . . . . . . . . . . . . . . . . . 178
dreamweaver.resultsPalette.clear() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
dreamweaver.resultsPalette.Copy() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
dreamweaver.resultsPalette.cut() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
dreamweaver.resultsPalette.Paste(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180
dreamweaver.resultsPalette.openInBrowser . . . . . . . . . . . . . . . . . . . . . . . . . . . 180
dreamweaver.resultsPalette.openInEditor() . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
dreamweaver.resultsPalette.save() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
dreamweaver.resultsPalette.selectAll() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
Débogage de serveur. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182
dreamweaver.resultsPalette.debugWindow.addDebugContextData() . . . . . . . 182
Fonctions de bascule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183
dom.getEditNoFramesContent() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184
dom.getHideAllVisualAids(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184
dom.getPreventLayerOverlaps() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184
dom.getShowAutoIndent(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
dom.getShowFrameBorders() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
Table des matières 9
dom.getShowGrid() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
dom.getShowHeadView(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
dom.getShowInvalidHTML(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
dom.getShowImageMaps(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
dom.getShowInvisibleElements() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
dom.getShowLayerBorders(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
dom.getShowLineNumbers() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
dom.getShowRulers() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
dom.getShowSyntaxColoring(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188
dom.getShowTableBorders(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188
dom.getShowToolbar() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188
dom.getShowTracingImage() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189
dom.getShowWordWrap() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189
dom.getSnapToGrid(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189
dom.setEditNoFramesContent(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
dom.setHideAllVisualAids() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
dom.setPreventLayerOverlaps() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
dom.setShowFrameBorders() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
dom.setShowGrid() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
dom.setShowHeadView() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
dom.setShowInvalidHTML(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
dom.setShowImageMaps() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
dom.setShowInvisibleElements() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
dom.setShowLayerBorders() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193
dom.setShowLineNumbers() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193
dom.setShowRulers() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193
dom.setShowSyntaxColoring() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
dom.setShowTableBorders() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
dom.setShowToolbar() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
dom.setShowTracingImage(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195
dom.setShowWordWrap() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195
dom.setSnapToGrid() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195
dreamweaver.getHideAllFloaters(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196
dreamweaver.getShowStatusBar() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196
dreamweaver.htmlInspector.getShowAutoIndent() . . . . . . . . . . . . . . . . . . . . . 196
dreamweaver.htmlInspector.getShowInvalidHTML() . . . . . . . . . . . . . . . . . . . 197
dreamweaver.htmlInspector.getShowLineNumbers() . . . . . . . . . . . . . . . . . . . 197
dreamweaver.htmlInspector.getShowSyntaxColoring() . . . . . . . . . . . . . . . . . . 197
dreamweaver.htmlInspector.getShowWordWrap() . . . . . . . . . . . . . . . . . . . . . 198
dreamweaver.htmlInspector.setShowAutoIndent() . . . . . . . . . . . . . . . . . . . . . 198
dreamweaver.htmlInspector.setShowInvalidHTML() . . . . . . . . . . . . . . . . . . . 198
dreamweaver.htmlInspector.setShowLineNumbers(). . . . . . . . . . . . . . . . . . . . 199
dreamweaver.htmlInspector.setShowSyntaxColoring() . . . . . . . . . . . . . . . . . . 199
dreamweaver.htmlInspector.setShowWordWrap(). . . . . . . . . . . . . . . . . . . . . . 199
dreamweaver.setHideAllFloaters(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200
dreamweaver.setShowStatusBar() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200
site.getShowDependents() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200
site.getShowHiddenFiles() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201
site.getShowPageTitles() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201
site.getShowToolTips() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201
10 Table des matières
site.setShowDependents(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202
site.setShowHiddenFiles(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202
site.setShowPageTitles() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202
site.setShowToolTips() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
Fonctions relatives aux barres d’outils . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
dom.forceToolbarUpdate() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
dom.getShowToolbarIconLabels() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
dom.getToolbarIdArray() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204
dom.getToolbarItemValue() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204
dom.getToolbarLabel() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
dom.getToolbarVisibility() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206
dom.setToolbarItemAttribute(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206
dom.setShowToolbarIconLabels(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
dom.setToolbarPosition() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
dom.setToolbarVisibility() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208
Fonctions relatives aux fenêtres . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209
dom.getFocus(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209
dom.getView() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209
dom.getWindowTitle(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
dom.setView() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
dreamweaver.bringAttentionToFloater() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
dreamweaver.cascade() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
dreamweaver.getActiveWindow() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
dreamweaver.getDocumentList() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
dreamweaver.getFloaterVisibility() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
dreamweaver.getFocus() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213
dreamweaver.getPrimaryView() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214
dreamweaver.getSnapDistance() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214
dreamweaver.minimizeRestoreAll(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214
dreamweaver.setActiveWindow() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
dreamweaver.setFloaterVisibility() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
dreamweaver.setPrimaryView(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
dreamweaver.setSnapDistance() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
dreamweaver.showProperties() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
dreamweaver.tileHorizontally(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
dreamweaver.tileVertically() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
dreamweaver.toggleFloater() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
dreamweaver.updateReference() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
CHAPITRE 13 : Site. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
Fonctions relatives aux rapports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
dreamweaver.isReporting() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
dreamweaver.showReportsDialog(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
Fonctions relatives aux sites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222
dreamweaver.loadSitesFromPrefs() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222
dreamweaver.saveSitesToPrefs(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222
site.addLinkToExistingFile(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
site.addLinkToNewFile() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
site.canEditColumns() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
Table des matières 11
site.changeLinkSitewide() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224
site.changeLink() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224
site.checkIn() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224
site.checkLinks(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
site.checkOut(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
site.checkTargetBrowsers() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226
site.cloak() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226
site.defineSites() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226
site.deleteSelection() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227
site.deployFilesToTestingServerBin(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227
site.editColumns() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228
site.exportSite(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228
site.findLinkSource() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230
site.get() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230
site.getAppServerAccessType() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231
site.getAppServerPathToFiles() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231
site.getAppURLPrefixForSite() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231
site.getCheckOutUser() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232
site.getCheckOutUserForFile() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232
site.getCloakingEnabled(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233
site.getConnectionState() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233
site.getCurrentSite() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233
site.getFocus(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234
site.getLinkVisibility() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234
site.getLocalPathToFiles() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234
site.getSelection() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
site.getSiteForURL(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
site.getSites(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
site.importSite() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
site.invertSelection() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
site.isCloaked() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237
site.locateInSite() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237
site.makeEditable() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238
site.makeNewDreamweaverFile() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238
site.makeNewFolder(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238
site.newHomePage(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
site.newSite() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
site.open(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
site.put(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240
site.recreateCache(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240
site.refresh() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
site.remoteIsValid(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
site.removeLink() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
site.renameSelection(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242
site.runValidation(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242
site.saveAsImage(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242
site.selectAll() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
site.selectHomePage(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
site.selectNewer() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
site.setAsHomePage() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244
12 Table des matières
site.setCloakingEnabled() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244
site.setConnectionState() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244
site.setCurrentSite() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245
site.setFocus(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245
site.setLayout() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246
site.setLinkVisibility(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246
site.setSelection() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246
site.synchronize() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
site.uncloak() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
site.uncloakAll() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
site.undoCheckOut() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
site.viewAsRoot() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
CHAPITRE 14 : Document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
Fonctions relatives aux conversions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
dom.convertLayersToTable() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
dom.convertTablesToLayers(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
Fonctions relatives aux commandes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
dreamweaver.editCommandList(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
dreamweaver.popupCommand() (déconseillée). . . . . . . . . . . . . . . . . . . . . . . . 252
dreamweaver.runCommand(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253
Fonctions relatives aux manipulations de fichiers. . . . . . . . . . . . . . . . . . . . . . . . . 253
dom.cleanupXHTML() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254
dom.convertToXHTML() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254
dom.getIsXHTMLDocument() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255
dreamweaver.browseForFileURL() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
dreamweaver.browseForFolderURL() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
dreamweaver.closeDocument(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
dreamweaver.createDocument() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
dreamweaver.createXHTMLDocument() . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258
dreamweaver.createXMLDocument(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259
dreamweaver.exportCSS(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259
dreamweaver.exportEditableRegionsAsXML() (déconseillée) . . . . . . . . . . . . . 260
dreamweaver.exportTemplateDataAsXML() . . . . . . . . . . . . . . . . . . . . . . . . . . 260
dreamweaver.getDocumentDOM() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
dreamweaver.getNewDocumentDOM(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262
dreamweaver.getRecentFileList(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262
dreamweaver.importXMLIntoTemplate() . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
dreamweaver.newDocument() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
dreamweaver.newFromTemplate() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
dreamweaver.openDocument(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
dreamweaver.openDocumentFromSite() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
dreamweaver.openInFrame(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265
dreamweaver.releaseDocument(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265
dreamweaver.revertDocument() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266
dreamweaver.saveAll(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266
dreamweaver.saveDocument() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267
dreamweaver.saveDocumentAs(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267
dreamweaver.saveDocumentAsTemplate() . . . . . . . . . . . . . . . . . . . . . . . . . . . 268
Table des matières 13
dreamweaver.saveFrameset() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268
dreamweaver.saveFramesetAs() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269
Fonctions globales relatives aux documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269
dom.checkSpelling(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269
dom.checkTargetBrowsers() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270
dom.getParseMode(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270
dom.hideInfoMessagePopup() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270
dom.runValidation(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271
dom.showInfoMessagePopup(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272
dom.showPagePropertiesDialog() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
dreamweaver.doURLDecoding(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
dreamweaver.getElementRef(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274
dreamweaver.getObjectRefs() (déconseillée) . . . . . . . . . . . . . . . . . . . . . . . . . . 274
dreamweaver.getObjectTags() (déconseillée) . . . . . . . . . . . . . . . . . . . . . . . . . . 275
dreamweaver.getPreferenceInt() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276
dreamweaver.getPreferenceString() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277
dreamweaver.setPreferenceInt(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277
dreamweaver.setPreferenceString() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278
dreamweaver.showTargetBrowsersDialog() . . . . . . . . . . . . . . . . . . . . . . . . . . . 279
Fonctions relatives aux chemins. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279
dreamweaver.getConfigurationPath() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279
dreamweaver.getDocumentPath() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280
dreamweaver.getSiteRoot() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280
dreamweaver.getTempFolderPath() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280
dreamweaver.relativeToAbsoluteURL(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281
Fonctions relatives à la sélection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282
dom.getSelectedNode() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282
dom.getSelection() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282
dom.nodeToOffsets() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283
dom.offsetsToNode() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283
dom.selectAll() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284
dom.setSelectedNode(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284
dom.setSelection() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285
dreamweaver.getSelection() (déconseillée). . . . . . . . . . . . . . . . . . . . . . . . . . . . 285
dreamweaver.nodeExists(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286
dreamweaver.nodeToOffsets() (déconseillée). . . . . . . . . . . . . . . . . . . . . . . . . . 286
dreamweaver.offsetsToNode() (déconseillée) . . . . . . . . . . . . . . . . . . . . . . . . . . 287
dreamweaver.selectAll(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287
dreamweaver.setSelection() (déconseillée) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288
Fonctions de manipulation de chaînes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288
dreamweaver.doURLEncoding(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288
dreamweaver.getTokens() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289
dreamweaver.latin1ToNative() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289
dreamweaver.nativeToLatin1() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290
dreamweaver.scanSourceString(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290
Fonctions relatives à la traduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292
dom.runTranslator() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292
dreamweaver.editLockedRegions() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292
dreamweaver.getTranslatorList() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293
dreamweaver.useTranslatedSource() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293
14 Table des matières
CHAPITRE 15 : Contenu de page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295
Fonctions du panneau Actifs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295
dreamweaver.assetPalette.addToFavoritesFromDocument(). . . . . . . . . . . . . . . 295
dreamweaver.assetPalette.addToFavoritesFromSiteAssets() . . . . . . . . . . . . . . . 295
dreamweaver.assetPalette.addToFavoritesFromSiteWindow() . . . . . . . . . . . . . 296
dreamweaver.assetPalette.copyToSite() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296
dreamweaver.assetPalette.edit() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296
dreamweaver.assetPalette.getSelectedCategory() . . . . . . . . . . . . . . . . . . . . . . . 297
dreamweaver.assetPalette.getSelectedItems() . . . . . . . . . . . . . . . . . . . . . . . . . . 297
dreamweaver.assetPalette.getSelectedView() . . . . . . . . . . . . . . . . . . . . . . . . . . 298
dreamweaver.assetPalette.insertOrApply(). . . . . . . . . . . . . . . . . . . . . . . . . . . . 298
dreamweaver.assetPalette.locateInSite(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299
dreamweaver.assetPalette.newAsset(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299
dreamweaver.assetPalette.newFolder(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299
dreamweaver.assetPalette.recreateLibraryFromDocument(). . . . . . . . . . . . . . . 300
dreamweaver.assetPalette.refreshSiteAssets() . . . . . . . . . . . . . . . . . . . . . . . . . . 300
dreamweaver.assetPalette.removeFromFavorites() . . . . . . . . . . . . . . . . . . . . . . 300
dreamweaver.assetPalette.renameNickname() . . . . . . . . . . . . . . . . . . . . . . . . . 301
dreamweaver.assetPalette.setSelectedCategory() . . . . . . . . . . . . . . . . . . . . . . . 301
dreamweaver.assetPalette.setSelectedView(). . . . . . . . . . . . . . . . . . . . . . . . . . . 301
dreamweaver.libraryPalette.deleteSelectedItem() (déconseillée) . . . . . . . . . . . . 302
dreamweaver.libraryPalette.getSelectedItem() (déconseillée) . . . . . . . . . . . . . . 302
dreamweaver.libraryPalette.newFromDocument() (déconseillée). . . . . . . . . . . 302
dreamweaver.libraryPalette.recreateFromDocument() (déconseillée). . . . . . . . 303
dreamweaver.libraryPalette.renameSelectedItem() (déconseillée) . . . . . . . . . . . 303
dreamweaver.referencePalette.getFontSize() . . . . . . . . . . . . . . . . . . . . . . . . . . 303
dreamweaver.referencePalette.setFontSize() . . . . . . . . . . . . . . . . . . . . . . . . . . . 304
dreamweaver.templatePalette.deleteSelectedTemplate() (déconseillée). . . . . . . 304
dreamweaver.templatePalette.getSelectedTemplate() (déconseillée) . . . . . . . . . 304
dreamweaver.templatePalette.renameSelectedTemplate() (déconseillée). . . . . . 305
Fonctions relatives aux comportements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305
dom.addBehavior(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305
dom.getBehavior() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306
dom.reapplyBehaviors() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306
dom.removeBehavior() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 307
dreamweaver.getBehaviorElement() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 307
dreamweaver.getBehaviorEvent() (déconseillée) . . . . . . . . . . . . . . . . . . . . . . . 308
dreamweaver.getBehaviorTag() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308
dreamweaver.popupAction(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309
dreamweaver.behaviorInspector.getBehaviorAt() . . . . . . . . . . . . . . . . . . . . . . . 310
dreamweaver.behaviorInspector.getBehaviorCount(). . . . . . . . . . . . . . . . . . . . 310
dreamweaver.behaviorInspector.getSelectedBehavior() . . . . . . . . . . . . . . . . . . 311
dreamweaver.behaviorInspector.moveBehaviorDown(). . . . . . . . . . . . . . . . . . 311
dreamweaver.behaviorInspector.moveBehaviorUp() . . . . . . . . . . . . . . . . . . . . 312
dreamweaver.behaviorInspector.setSelectedBehavior(). . . . . . . . . . . . . . . . . . . 313
Fonctions relatives au Presse-papiers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314
dom.clipCopy() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314
dom.clipCopyText() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314
dom.clipCut() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315
Table des matières 15
dom.clipPaste(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315
dom.clipPasteText() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316
dreamweaver.clipCopy() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317
dreamweaver.clipCut() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317
dreamweaver.clipPaste() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318
dreamweaver.getClipboardText() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318
Fonctions relatives aux éléments de bibliothèque et aux modèles . . . . . . . . . . . . . 319
dom.applyTemplate() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319
dom.detachFromLibrary() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319
dom.detachFromTemplate() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320
dom.getAttachedTemplate() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320
dom.getEditableRegionList() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320
dom.getIsLibraryDocument(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321
dom.getIsTemplateDocument() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321
dom.getSelectedEditableRegion() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321
dom.insertLibraryItem() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322
dom.markSelectionAsEditable() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322
dom.newEditableRegion() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322
dom.removeEditableRegion() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323
dom.updateCurrentPage() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323
dreamweaver.updatePages(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324
Fonctions du panneau Fragments de code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324
dreamweaver.snippetPalette.getCurrentSnippetPath(). . . . . . . . . . . . . . . . . . . 325
dreamweaver.snippetPalette.newFolder(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325
dreamweaver.snippetPalette.newSnippet(). . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
dreamweaver.snippetPalette.editSnippet() . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
dreamweaver.snippetPalette.insert()r. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
dreamweaver.snippetPalette.insertSnippet() . . . . . . . . . . . . . . . . . . . . . . . . . . 327
dreamweaver.snippetPalette.rename() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327
dreamweaver.snippetPalette.remove() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327
CHAPITRE 16 : Documents dynamiques . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329
Fonctions de composants de serveur . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329
dreamweaver.serverComponents.getSelectedNode() . . . . . . . . . . . . . . . . . . . . 329
dreamweaver.serverComponents.refresh(). . . . . . . . . . . . . . . . . . . . . . . . . . . . 329
Fonctions relatives aux sources de données . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 330
dreamweaver.dbi.getDataSources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 330
Fonctions de l’Extension Data Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331
dreamweaver.getExtDataValue() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331
dreamweaver.getExtDataArray() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331
dreamweaver.getExtParticipants() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332
dreamweaver.getExtGroups() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332
dreamweaver.refreshExtData() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333
Fonctions Live data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333
dreamweaver.getLiveDataInitTags() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333
dreamweaver.getLiveDataMode() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334
dreamweaver.getLiveDataParameters (). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334
dreamweaver.liveDataTranslate(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335
dreamweaver.setLiveDataError(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336
16 Table des matières
dreamweaver.setLiveDataMode() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336
dreamweaver.setLiveDataParameters() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337
dreamweaver.showLiveDataDialog(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337
Fonctions relatives aux comportements de serveur. . . . . . . . . . . . . . . . . . . . . . . . 338
dreamweaver.getParticipants(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 338
dreamweaver.serverBehaviorInspector.getServerBehaviors(). . . . . . . . . . . . . . . 339
dreamweaver.popupServerBehavior() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 339
Fonctions de modèle de serveur. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340
dom.serverModel.getAppURLPrefix() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340
dom.serverModel.getDelimiters() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340
dom.serverModel.getDisplayName() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 341
dom.serverModel.getFolderName() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 341
dom.serverModel.getServerExtension() (déconseillée). . . . . . . . . . . . . . . . . . . 342
dom.serverModel.getServerIncludeUrlPatterns(). . . . . . . . . . . . . . . . . . . . . . . 342
dom.serverModel.getServerInfo() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343
dom.serverModel.getServerLanguage() (déconseillée) . . . . . . . . . . . . . . . . . . . 344
dom.serverModel.getServerName(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 344
dom.serverModel.getServerSupportsCharset() . . . . . . . . . . . . . . . . . . . . . . . . 345
dom.serverModel.getServerVersion() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 345
dom.serverModel.testAppServer(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 346
dreamweaver.getServerModels() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 346
CHAPITRE 17 : Conception. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347
Fonctions CSS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347
dom.applyCSSStyle() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347
dom.removeCSSStyle(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 348
dreamweaver.cssRuleTracker.editSelectedRule() . . . . . . . . . . . . . . . . . . . . . . . 348
dreamweaver.cssRuleTracker.newRule() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 349
dreamweaver.cssStylePalette.applySelectedStyle() . . . . . . . . . . . . . . . . . . . . . . 349
dreamweaver.cssStylePalette.attachStyleSheet() . . . . . . . . . . . . . . . . . . . . . . . . 350
dreamweaver.cssStylePalette.deleteSelectedStyle() . . . . . . . . . . . . . . . . . . . . . . 350
dreamweaver.cssStylePalette.duplicateSelectedStyle() . . . . . . . . . . . . . . . . . . . 350
dreamweaver.cssStylePalette.editSelectedStyle(). . . . . . . . . . . . . . . . . . . . . . . . 351
dreamweaver.cssStylePalette.editStyleSheet() . . . . . . . . . . . . . . . . . . . . . . . . . . 351
dreamweaver.cssStylePalette.getMediaType(). . . . . . . . . . . . . . . . . . . . . . . . . . 351
dreamweaver.cssStylePalette.getSelectedStyle() . . . . . . . . . . . . . . . . . . . . . . . . 352
dreamweaver.cssStylePalette.getSelectedTarget() (déconseillée) . . . . . . . . . . . . 352
dreamweaver.cssStylePalette.getStyles() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 353
dreamweaver.cssStylePalette.newStyle(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 353
dreamweaver.cssStylePalette.setMediaType(). . . . . . . . . . . . . . . . . . . . . . . . . . 354
Fonctions relatives aux cadres et aux jeux de cadres . . . . . . . . . . . . . . . . . . . . . . . 354
dom.getFrameNames(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 354
dom.isDocumentInFrame() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 355
dom.saveAllFrames() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 355
dom.splitFrame() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 355
Fonctions relatives aux calques et aux cartes graphiques . . . . . . . . . . . . . . . . . . . . 356
dom.align(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 356
dom.arrange(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 356
dom.makeSizesEqual() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 357
Table des matières 17
dom.moveSelectionBy() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 357
dom.resizeSelectionBy() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 357
dom.setLayerTag() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 358
Fonctions d’environnement de mise en forme . . . . . . . . . . . . . . . . . . . . . . . . . . . 358
dom.getRulerOrigin(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 358
dom.getRulerUnits(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 359
dom.getTracingImageOpacity() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 359
dom.loadTracingImage(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 359
dom.playAllPlugins() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 360
dom.playPlugin() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 360
dom.setRulerOrigin() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 360
dom.setRulerUnits(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 361
dom.setTracingImagePosition(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 361
dom.setTracingImageOpacity(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 362
dom.snapTracingImageToSelection() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 362
dom.stopAllPlugins() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 362
dom.stopPlugin() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 363
dreamweaver.arrangeFloatingPalettes() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 363
dreamweaver.showGridSettingsDialog() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 363
Fonctions relatives au mode de Mise en forme. . . . . . . . . . . . . . . . . . . . . . . . . . . 364
dom.addSpacerToColumn() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 364
dom.createLayoutCell() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 364
dom.createLayoutTable() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 365
dom.doesColumnHaveSpacer() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 365
dom.doesGroupHaveSpacers() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 365
dom.getClickedHeaderColumn() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 366
dom.getShowLayoutTableTabs(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 366
dom.getShowLayoutView() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 366
dom.isColumnAutostretch(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 367
dom.makeCellWidthsConsistent() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 367
dom.removeAllSpacers() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 367
dom.removeSpacerFromColumn() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 368
dom.setColumnAutostretch() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 368
dom.setShowLayoutTableTabs() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 369
dom.setShowLayoutView(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 369
Fonctions de modification des tableaux . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 369
dom.convertWidthsToPercent() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 370
dom.convertWidthsToPixels() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 370
dom.decreaseColspan(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 370
dom.decreaseRowspan() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 371
dom.deleteTableColumn() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 371
dom.deleteTableRow() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 371
dom.doDeferredTableUpdate(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 372
dom.getShowTableWidths() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 372
dom.getTableExtent() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 372
dom.increaseColspan() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373
dom.increaseRowspan() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373
dom.insertTableColumns(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373
dom.insertTableRows(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 374
dom.mergeTableCells(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 374
18 Table des matières
dom.removeAllTableHeights() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375
dom.removeAllTableWidths(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375
dom.removeColumnWidth() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375
dom.selectTable() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376
dom.setShowTableWidths() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376
dom.setTableCellTag() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376
dom.setTableColumns() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 377
dom.setTableRows() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 377
dom.showInsertTableRowsOrColumnsDialog() . . . . . . . . . . . . . . . . . . . . . . . 377
dom.splitTableCell() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 378
CHAPITRE 18 : Code. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 379
Fonctions de code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 379
dreamweaver.codeHints.addMenu() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380
dreamweaver.codeHints.addFunction(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 381
dreamweaver.codeHints.resetMenu() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 382
dreamweaver.codeHints.showCodeHints() . . . . . . . . . . . . . . . . . . . . . . . . . . . 382
dreamweaver.reloadCodeColoring() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 383
Fonctions relatives à la recherche et au remplacement . . . . . . . . . . . . . . . . . . . . . 383
dreamweaver.findNext() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 383
dreamweaver.replace(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384
dreamweaver.replaceAll() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384
dreamweaver.setUpComplexFind(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384
dreamweaver.setUpComplexFindReplace() . . . . . . . . . . . . . . . . . . . . . . . . . . . 385
dreamweaver.setUpFind() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 386
dreamweaver.setUpFindReplace() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 387
dreamweaver.showFindDialog() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388
dreamweaver.showFindReplaceDialog() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388
Fonctions de modifications générales. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388
dom.applyCharacterMarkup() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388
dom.applyFontMarkup() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 389
dom.deleteSelection() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 389
dom.editAttribute() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 390
dom.exitBlock() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 390
dom.getCharSet(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 390
dom.getFontMarkup() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 391
dom.getLineFromOffset(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 391
dom.getLinkHref(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 391
dom.getLinkTarget(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 392
dom.getListTag() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 392
dom.getTextAlignment() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 392
dom.getTextFormat() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 393
dom.hasCharacterMarkup() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 393
dom.indent() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 393
dom.insertHTML() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 394
dom.insertObject(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 394
dom.insertText() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 395
dom.newBlock(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 395
dom.notifyFlashObjectChanged() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396
Table des matières 19
dom.outdent() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396
dom.removeCharacterMarkup() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 397
dom.removeFontMarkup(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 397
dom.removeLink() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 397
dom.resizeSelection() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 398
dom.setAttributeWithErrorChecking(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 398
dom.setLinkHref() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 398
dom.setLinkTarget() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 399
dom.setListBoxKind() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 399
dom.showListPropertiesDialog(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 399
dom.setListTag(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 400
dom.setTextAlignment() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 400
dom.setTextFieldKind() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 400
dom.setTextFormat() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 401
dom.showFontColorDialog() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 401
dreamweaver.deleteSelection() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 401
dreamweaver.editFontList(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 402
dreamweaver.getFontList() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 402
dreamweaver.getFontStyles() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 403
dreamweaver.getKeyState() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 403
dreamweaver.getNaturalSize(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 404
dreamweaver.getSystemFontList(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 404
Fonction relative à l’impression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 404
dreamweaver.PrintCode() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 404
Fonctions relatives à Quick Tag Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 405
dom.selectChild(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 405
dom.selectParent() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406
dom.stripTag() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406
dom.wrapTag() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406
dreamweaver.showQuickTagEditor() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 407
Fonctions du mode code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 407
dom.formatRange() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 407
dom.formatSelection() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 408
dom.getShowNoscript() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 408
dom.getAutoValidationCount() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 408
dom.isDesignviewUpdated(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 409
dom.isSelectionValid() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 409
dom.setShowNoscript. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 410
dom.source.arrowDown(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 410
dom.source.arrowLeft() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 411
dom.source.arrowRight() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 411
dom.source.arrowUp() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 411
dom.source.balanceBracesTextview() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 412
dom.source.endOfDocument(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 412
dom.source.endOfLine() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 413
dom.source.endPage(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 413
dom.source.getCurrentLines() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 413
dom.source.getSelection(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 414
dom.source.getLineFromOffset() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 414
dom.source.getText() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 414
20 Table des matières
dom.source.getValidationErrorsForOffset() . . . . . . . . . . . . . . . . . . . . . . . . . . 415
dom.source.indentTextview() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 415
dom.source.insert(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 416
dom.source.nextWord() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 416
dom.source.outdentTextview() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 417
dom.source.pageDown(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 417
dom.source.pageUp() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 417
dom.source.previousWord() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 418
dom.source.replaceRange(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 418
dom.source.scrollEndFile(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 419
dom.source.scrollLineDown(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 419
dom.source.scrollLineUp() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 419
dom.source.scrollPageDown(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 420
dom.source.scrollPageUp() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 420
dom.source.scrollTopFile() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 420
dom.source.selectParentTag() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 421
dom.source.setCurrentLine() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 421
dom.source.startOfDocument() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 421
dom.source.startOfLine() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 422
dom.source.topPage(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 422
dom.source.wrapSelection() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 422
dom.synchronizeDocument() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 423
Fonctions de l’éditeur de balises et de la bibliothèque de balises. . . . . . . . . . . . . . 423
dom.getTagSelectorTag() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 423
dreamweaver.popupInsertTagDialog() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 424
dreamweaver.popupEditTagDialog(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 424
dreamweaver.showTagChooser(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 424
dreamweaver.showTagLibraryEditor(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 425
dreamweaver.tagLibrary.getTagLibraryDOM() . . . . . . . . . . . . . . . . . . . . . . . . 425
dreamweaver.tagLibrary.getSelectedLibrary() . . . . . . . . . . . . . . . . . . . . . . . . . 425
dreamweaver.tagLibrary.getSelectedTag() . . . . . . . . . . . . . . . . . . . . . . . . . . . . 426
dreamweaver.tagLibrary.importDTDOrSchema(). . . . . . . . . . . . . . . . . . . . . . 426
dreamweaver.tagLibrary.getImportedTagList() . . . . . . . . . . . . . . . . . . . . . . . . 427
CHAPITRE 19 : Activateurs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 429
Activateurs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 429
dom.canAlign() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 429
dom.canApplyTemplate() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 429
dom.canArrange(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 430
dom.canClipCopyText(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 430
dom.canClipPaste() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 430
dom.canClipPasteText() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 431
dom.canConvertLayersToTable() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 431
dom.canConvertTablesToLayers(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 431
dom.canDecreaseColspan() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 432
dom.canDecreaseRowspan() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 432
dom.canDeleteTableColumn() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 432
dom.canDeleteTableRow() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 433
dom.canEditNoFramesContent() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 433
Table des matières 21
dom.canIncreaseColspan() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 433
dom.canIncreaseRowspan() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 434
dom.canInsertTableColumns() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 434
dom.canInsertTableRows() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 434
dom.canMakeNewEditableRegion(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 435
dom.canMarkSelectionAsEditable() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 435
dom.canMergeTableCells() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 435
dom.canPlayPlugin() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 435
dom.canRedo(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 436
dom.canRemoveEditableRegion(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 436
dom.canSelectTable() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 436
dom.canSetLinkHref() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 437
dom.canShowListPropertiesDialog(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 437
dom.canSplitFrame() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 437
dom.canSplitTableCell() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 438
dom.canStopPlugin() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 438
dom.canUndo() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 438
dom.hasTracingImage() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 439
dreamweaver.assetPalette.canEdit() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 439
dreamweaver.assetPalette.canInsertOrApply() . . . . . . . . . . . . . . . . . . . . . . . . . 439
dreamweaver.canClipCopy(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 440
dreamweaver.canClipCut(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 440
dreamweaver.canClipPaste() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 440
dreamweaver.canDeleteSelection() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 441
dreamweaver.canExportCSS(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 441
dreamweaver.canExportTemplateDataAsXML() . . . . . . . . . . . . . . . . . . . . . . . 441
dreamweaver.canFindNext() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 442
dreamweaver.canOpenInFrame() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 442
dreamweaver.canPlayRecordedCommand() . . . . . . . . . . . . . . . . . . . . . . . . . . 442
dreamweaver.canPopupEditTagDialog() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 443
dreamweaver.canRedo() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 443
dreamweaver.canRevertDocument() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 443
dreamweaver.canSaveAll(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 444
dreamweaver.canSaveDocument(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 444
dreamweaver.canSaveDocumentAsTemplate() . . . . . . . . . . . . . . . . . . . . . . . . 444
dreamweaver.canSaveFrameset() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 445
dreamweaver.canSaveFramesetAs() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 445
dreamweaver.canSelectAll(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 445
dreamweaver.canShowFindDialog() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446
dreamweaver.canUndo() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446
dreamweaver.cssRuleTracker.canEditSelectedRule() . . . . . . . . . . . . . . . . . . . . 446
dreamweaver.cssStylePalette.canApplySelectedStyle() . . . . . . . . . . . . . . . . . . . 447
dreamweaver.cssStylePalette.canDeleteSelectedStyle() . . . . . . . . . . . . . . . . . . . 447
dreamweaver.cssStylePalette.canDuplicateSelectedStyle() . . . . . . . . . . . . . . . . 447
dreamweaver.cssStyle.canEditSelectedStyle(). . . . . . . . . . . . . . . . . . . . . . . . . . 448
dreamweaver.cssStylePalette.canEditStyleSheet(). . . . . . . . . . . . . . . . . . . . . . . 448
dreamweaver.isRecording(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 448
dreamweaver.htmlStylePalette.canEditSelection() . . . . . . . . . . . . . . . . . . . . . . 449
dreamweaver.resultsPalette.canClear(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 449
dreamweaver.resultsPalette.canCopy(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 449
22 Table des matières
dreamweaver.resultsPalette.canCut(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 450
dreamweaver.resultsPalette.canPaste() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 450
dreamweaver.resultsPalette.canOpenInBrowser() . . . . . . . . . . . . . . . . . . . . . . 450
dreamweaver.resultsPalette.canOpenInEditor(). . . . . . . . . . . . . . . . . . . . . . . . 450
dreamweaver.resultsPalette.canSave() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 451
dreamweaver.resultsPalette.canSelectAll() . . . . . . . . . . . . . . . . . . . . . . . . . . . . 451
dreamweaver.snippetpalette.canEditSnippet(). . . . . . . . . . . . . . . . . . . . . . . . . 451
dreamweaver.snippetpalette.canInsert(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 452
site.browseDocument(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 452
site.canAddLink() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 453
site.canChangeLink() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 453
site.canCheckIn() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 453
site.canCheckOut() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 454
site.canCloak() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 454
site.canConnect() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 455
site.canFindLinkSource() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 455
site.canGet() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 455
site.canLocateInSite() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 456
site.canMakeEditable() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 456
site.canMakeNewFileOrFolder(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 456
site.canOpen() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 457
site.canPut() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 457
site.canRecreateCache() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 458
site.canRefresh() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 458
site.canRemoveLink() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 458
site.canSetLayout() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 459
site.canSelectAllCheckedOutFiles(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 459
site.canSelectNewer() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 459
site.canShowPageTitles(). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 460
site.canSynchronize() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 460
site.canUncloak() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 460
site.canUndoCheckOut() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 461
site.canViewAsRoot() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 461
INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 463
Table des matières 23
24 Table des matières
CHAPITRE 1

Introduction

Le Guide des API de Dreamweaver décrit deux interfaces de programmation d’applications (API)
qui vous permettent d’effectuer diverses tâches de prise en charge lorsque vous développez des
extensions Macromedia Dreamweaver MX 2004 et ajoutez des codes de programme à vos pages
Web Dreamweaver. Ces deux API sont l’API des utilitaires et l’API JavaScript. L’API des utilitaires
contient des sous-ensembles de fonctions liées qui permettent d’effectuer des types de tâches
spécifiques. Il comprend les sous-ensembles suivants :
l’API d’E/S des fichiers, qui permet un accès en lecture et en écriture aux fichiers du système
local ;
l’API HTTP, qui permet d’envoyer et de recevoir des informations à partir d’un serveur Web ;
l’API de Design Notes, qui permet de stocker et d’extraire les notes relatives aux documents ;
l’API d’intégration de Fireworks, qui permet de communiquer avec Macromedia Fireworks ;
l’intégration Flash, qui contient des informations concernant l’ajout d’éléments Flash à
l’interface utilisateur Dreamweaver et sur l’API des objets Flash (qui permet de créer des objets pour le contenu Macromedia Flash) ;
l’API de base de données, qui permet d’accéder aux informations stockées dans les bases de
données et de gérer les connexions à ces bases de données ;
l’API de connectivité à une base de données, qui permet de créer un nouveau type de
connexion et les boîtes de dialogue correspondantes pour les modèles de serveur nouveaux et existants ;
l’API JavaBeans, qui extrait les noms de classe, les méthodes, les propriétés et les évènements
définis pour JavaBeans ;
l’API d’intégration de contrôle source, qui permet d’écrire des bibliothèques partagées, pour
étendre la fonction Archiver/Extraire de Dreamweaver.
L’API Javascript permet d’effectuer plusieurs tâches mineures généralement effectuées par
l’utilisateur lors de la création ou de la modification de documents Dreamweaver. Ces fonctions
d’API sont regroupées selon les parties de l’interface utilisateur de Dreamweaver auxquelles elles se
rapportent. Ainsi, l’API JavaScript comprend les fonctions relatives à l’espace de travail, aux
documents, à la conception, etc. Ces fonctions vous permettent d’effectuer des tâches telles que :
ouvrir un nouveau document, obtenir ou définir une taille de police, trouver l’occurrence d’une
chaîne de recherche en code HTML, afficher une barre d’outils, etc.
25

Arrière-plan

Ce manuel suppose une bonne maîtrise de Dreamweaver, HTML, XML, de la programmation
JavaScript et, le cas échéant, de la programmation C. Si vous rédigez des extensions pour élaborer
des applications Web, vous devez également maîtriser la création de scripts côté serveur sur au
moins une plate-forme telle que Active Server Pages (ASP), ASP.net, PHP : Hypertext
Preprocessor (PHP), ColdFusion ou Java Server Pages (JSP).

Extension de Dreamweaver

Pour en savoir plus sur la plate-forme Dreamweaver et l’API permettant de développer des
extensions de Dreamweaver, voir Extension de Dreamweaver. Le manuel Extension de Dreamweaver
décrit les fonctions des API que Dreamweaver appelle pour implémenter les objets, menus,
panneaux flottants, comportements de serveur, etc., qui forment les diverses fonctionnalités de
Dreamweaver. Ces API permettent d’ajouter des objets, des menus, des panneaux flottants et
d’autres fonctions au produit. Extension de Dreamweaver explique également comment
personnaliser Dreamweaver en modifiant et en ajoutant des balises à divers fichiers HTML et
XML, de façon à ajouter des types d’éléments, des éléments de menus, etc.

Ressources supplémentaires pour les développeurs d’extensions

Pour entrer en contact avec d’autres développeurs d’extensions, vous pouvez rejoindre le forum de
discussion consacré à l’extensibilité de Dreamweaver. Pour ce faire, il vous suffit de vous rendre à
l’adresse suivante : www.macromedia.com/go/extending_newsgrp.

Nouvelles fonctions de Dreamweaver MX 2004

Les fonctions suivantes ont été ajoutées à l’API JavaScript de Dreamweaver MX 2004. Les en-têtes
désignent les chapitres et les sections qui contiennent les nouvelles fonctions :
Espace de travail
Les fonctions barre Insérer, fenêtre Résultats et barre d’outils ci-dessous ont été ajoutées au
chapitre Espace de travail.
Insertion d’objets
dom.insertFlashElement(), page 163
dreamweaver.objectPalette.getMenuDefault(), page 164
dreamweaver.objectPalette.setMenuDefault(), page 164
dreamweaver.reloadObjects(), page 165
Fenêtre Résultats
dreamweaver.showResults(), page 173
Barre d’outils
dom.getToolbarItemValue(), page 204
dom.setToolbarItemAttribute(), page 206
26 Chapitre 1 : Introduction
Document
Les nouvelles fonctions suivantes (fonctions globales relatives au document) ont été ajoutées au
chapitre Document.
Fonctions globales relatives au document
dom.hideInfoMessagePopup(), page 270
dreamweaver.showTargetBrowsersDialog(), page 279
dom.showInfoMessagePopup(), page 272
Conception
Les nouvelles fonctions suivantes (relatives à CSS, HTML et à la modification des tableaux) ont
été ajoutées au chapitre Conception.
CSS
dreamweaver.cssRuleTracker.newRule(), page 349
dreamweaver.cssRuleTracker.editSelectedRule(), page 348
dreamweaver.cssStylePalette.getMediaType(), page 351
dreamweaver.cssStylePalette.setMediaType(), page 354
Modification des tableaux
dom.getShowTableWidths(), page 372
dom.removeColumnWidth(), page 375
dom.setShowTableWidths(), page 376
Code
Les nouvelles fonctions suivantes (relatives au mode Code) ont été ajoutées au chapitre Code.
Mode Code
dom.getAutoValidationCount(), page 408
dom.source.getValidationErrorsForOffset(), page 415

Fonctions supprimées

Les fonctions suivantes ont été supprimées de l’API Dreamweaver MX 2004, car les fonctions
associées ont été supprimées du produit.
Document
Dans le chapitre Document, la fonction de conversion suivante a été supprimée :
Fonction de conversion
dom.convertTo30()
Fonctions supprimées 27
Contenu de page
Dans le chapitre Contenu de page, les fonctions suivantes (relatives aux scénarios) ont été
supprimées :
Fonctions relatives aux scénarios
dreamweaver.timelineInspector.addBehavior()
dreamweaver.timelineInspector.addFrame()
dreamweaver.timelineInspector.addKeyframe()
dreamweaver.timelineInspector.addObject()
dreamweaver.timelineInspector.addTimeline()
dreamweaver.timelineInspector.changeObject()
dreamweaver.timelineInspector.getAutoplay()
dreamweaver.timelineInspector.getCurrentFrame()
dreamweaver.timelineInspector.getLoop()
dreamweaver.timelineInspector.recordPathOfLayer()
dreamweaver.timelineInspector.removeBehavior()
dreamweaver.timelineInspector.removeFrame()
dreamweaver.timelineInspector.removeKeyframe()
dreamweaver.timelineInspector.removeObject()
dreamweaver.timelineInspector.removeTimeline()
dreamweaver.timelineInspector.renameTimeline()
dreamweaver.timelineInspector.setAutoplay()
dreamweaver.timelineInspector.setCurrentFrame()
dreamweaver.timelineInspector.setLoop()
Conception
Dans le chapitre Conception, les fonctions suivantes (relatives aux styles HTML) ont été supprimées :
Fonctions relatives aux styles HTML
dom.applyHTMLStyle()
dreamweaver.htmlStylePalette.deleteSelectedStyle()
dreamweaver.htmlStylePalette.duplicateSelectedStyle()
dreamweaver.htmlStylePalette.editSelectedStyle()
dreamweaver.htmlStylePalette.getSelectedStyle()
dreamweaver.htmlStylePalette.getStyles()
dreamweaver.htmlStylePalette.newStyle()
dreamweaver.htmlStylePalette.setSelectedStyle()
Code
Dans le chapitre Code, les fonctions suivantes (relatives au débogueur JavaScript et à l’inspecteur
de balises) ont été supprimées :
Fonctions relatives au débogueur JS
dreamweaver.debugDocument()
dreamweaver.startDebugger()
dreamweaver.getIsAnyBreakpoints()
dreamweaver.removeAllBreakpoints()
28 Chapitre 1 : Introduction
Fonctions relatives à l’inspecteur de balises
dreamweaver.tagInspector.deleteTags()
dreamweaver.tagInspector.deleteTagsEnabled()
dreamweaver.tagInspector.editTagName()
dreamweaver.tagInspector.editTagNameEnabled()
dreamweaver.tagInspector.tagAfter()
dreamweaver.tagInspector.tagAfterEnabled()
dreamweaver.tagInspector.tagBefore()
dreamweaver.tagInspector.tagBeforeEnabled()
dreamweaver.tagInspector.tagInside()
dreamweaver.tagInspector.tagInsideEnabled()
Activateurs
Dans le chapitre Activateurs, les fonctions suivantes (relatives aux activateurs) ont été supprimées :
dreamweaver.timelineInspector.canAddFrame()
dreamweaver.timelineInspector.canAddKeyFrame()
dreamweaver.timelineInspector.canChangeObject()
dreamweaver.timelineInspector.canRemoveBehavior()
dreamweaver.timelineInspector.canRemoveFrame()
dreamweaver.timelineInspector.canRemoveKeyFrame()
dreamweaver.timelineInspector.canRemoveObject()
Autre
Les arguments
dw.getFloaterVisibility() et dw.setFloaterVisibility().
Changements dans la documentation
Extension de Dreamweaver MX a été divisé en deux manuels : Extension de Dreamweaver et un
Guide des API de Dreamweaver. Extension de Dreamweaver décrit comment développer différents
types d’extensions Dreamweaver, en indiquant les fonctions que vous devez écrire pour créer
chaque type. Il décrit également comment personnaliser Dreamweaver en modifiant certains
fichiers HTML et XML configurables. Le Guide des API de Dreamweaver décrit les deux API qui
vous permettent d’effectuer diverses tâches dans vos extensions de Dreamweaver.
Le manuel Extension de Dreamweaver a été conçu pour aider les utilisateurs à développer une
extension Dreamweaver. Le Guide des API de Dreamweaver est conçu pour aider le programmeur
qui maîtrise déjà bien ces notions à retrouver rapidement la fonction lui permettant d’effectuer
une tâche précise. Cette division en deux manuels permet également de clarifier la distinction
entre les fonctions API d’extension que l’auteur de l’extension doit coder et que Dreamweaver
appelle, et les fonctions API JavaScript et d’utilitaires qu’un programmeur peut appeler pour
effectuer différentes tâches dans une extension.
Le Guide des API de Dreamweaver comprend les améliorations suivantes, à l’attention des
développeurs d’extensions :
"answers" et "sitespring" ont été supprimés des fonctions
Réorganisation des fonctions en chapitres.
Les fonctions API JavaScript sont maintenant regroupées d’abord par chapitre, selon le contexte Dreamweaver lié (Espace de travail, Document, Conception, etc.), puis par sujet selon la fonction spécifique (fonctions clavier, fonctions de menu, fonctions de fenêtre, etc.).
Fonctions supprimées 29
Fonctions déconseillées désormais indiquées dans le texte.
Les fonctions déconseillées faisaient auparavant l’objet d’une section séparée. Elles sont maintenant intégrées à leur sujet d’origine, afin de garder le contexte, et sont signalées par le suffixe « (déconseillée) » dans le nom de la fonction.
Chapitre relatif aux fonctions des activateurs.
Les fonctions des activateurs ont été intégrées dans un chapitre à part, avec des références croisées aux fonctions API concernées.

Errata

Vous trouverez une liste des problèmes connus dans la section Extensibility (Extension) du centre
de support de Dreamweaver (www.macromedia.com/go/extending_errata).

Conventions utilisées dans ce manuel

Ce manuel utilise les conventions typographiques suivantes :
La police de code indique des fragments de code et des constantes d’API, notamment des
noms de classe, des noms de méthodes, des noms de fonctions, des noms de type, des scripts, des instructions SQL et des noms de balises et d’attributs HTML et XML.
La police de code en italique identifie les éléments remplaçables dans le code.
Le symbole de continuation (¬) indique qu’une longue ligne de code a été fractionnée sur deux
lignes ou plus. En raison des limites de marge du format de ce manuel, une ligne de code continue doit ici être coupée. Lorsque vous copiez les lignes de code, supprimez le symbole de continuation et entrez-les comme une seule ligne.
Les accolades ({ }) autour d’un argument de fonction indiquent que l’argument est facultatif.
Le nom des fonctions ayant le préfixe dreamweaver.nomfonc peut être abrégé en dw.nomfonc
lorsque vous écrivez le code. Ce manuel utilise le préfixe la fonction, et également dans l’index. Toutefois, dans de nombreux exemples, le préfixe est utilisé.
Conventions de noms utilisées dans ce manuel :
dreamweaver. complet pour définir
Vous - le développeur responsable de la rédaction des extensions.
L’utilisateur - la personne utilisant Dreamweaver.
dw.
30 Chapitre 1 : Introduction
Loading...
+ 454 hidden pages