Macromedia dreamweaver 8-extending dreamweaver User Manual
4
Contents
Chapter 4: User Interfaces for Extensions. . . . . . . . . . . . . . . . . . . 111
Designing an extension user interface . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Dreamweaver HTML rendering control . . . . . . . . . . . . . . . . . . . . . . . . . .112
Using custom UI controls in extensions . . . . . . . . . . . . . . . . . . . . . . . . . .113
Adding Flash content to Dreamweaver . . . . . . . . . . . . . . . . . . . . . . . . . 124
Designing an extension user interface . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Dreamweaver HTML rendering control . . . . . . . . . . . . . . . . . . . . . . . . . .112
Using custom UI controls in extensions . . . . . . . . . . . . . . . . . . . . . . . . . .113
Adding Flash content to Dreamweaver . . . . . . . . . . . . . . . . . . . . . . . . . 124
Chapter 5: The Dreamweaver Document Object Model . . . . . . 127
Which document DOM? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
The Dreamweaver DOM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
Which document DOM? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
The Dreamweaver DOM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
Chapter 6: Insert Bar Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
How object files work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
The Insert bar definition file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .141
Modifying the Insert bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
A simple insert object example. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
The Objects API. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .161
How object files work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
The Insert bar definition file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .141
Modifying the Insert bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
A simple insert object example. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
The Objects API. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .161
Chapter 7: Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
How commands work. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
Adding commands to the Commands menu . . . . . . . . . . . . . . . . . . . . . 168
A simple command example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
The Commands API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
How commands work. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
Adding commands to the Commands menu . . . . . . . . . . . . . . . . . . . . . 168
A simple command example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
The Commands API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
Chapter 8: Menus and Menu Commands . . . . . . . . . . . . . . . . . . 181
About the menus.xml file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182
Changing menus and menu commands . . . . . . . . . . . . . . . . . . . . . . . . . .191
Menu commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
A simple menu command example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
A dynamic menu example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201
The Menu Commands API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209
About the menus.xml file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182
Changing menus and menu commands . . . . . . . . . . . . . . . . . . . . . . . . . .191
Menu commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
A simple menu command example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
A dynamic menu example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201
The Menu Commands API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209
Chapter 9: Toolbars . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
How toolbars work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
A simple toolbar command file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
The toolbar definition file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220
Toolbar item tags. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .226
Item tag attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .232
The toolbar command API. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .238
How toolbars work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
A simple toolbar command file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
The toolbar definition file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220
Toolbar item tags. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .226
Item tag attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .232
The toolbar command API. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .238