ODF currently provides 10 samples ranging from a very simple one (ODFNothing) to a fully functional part editor (ODFDraw). But don't forget, ODF examples are written to demonstrate ODF capabilities, they are not designed to be commercial part editors (ODFDraw is far from being another MacDraw). A lot of features you would expect from a commercial part editor are still missing.
In addition to the sample parts you will notice three other folders in ODFDev: ColorExtension, CyberStarter, and ViewTester. ColorExtension is an example of an OpenDoc extension; it is used by the ODF samples ODFBitmap and ODFContainer. CyberStarter is a very simple Cyberdog-savvy ODF part. ViewTester shows how to import PowerPlant or MacApp views into an ODF part.
• ODFNothing
ODFNothing is the simplest non-embedding part editor you can write with ODF. ODFNothing does nothing but fill its frame shape with blue.
• ODFClock
ODFClock is a simple non-embedding part editor that displays a clock in either digital or analog mode.
• ODFButton
ODFButton displays a pushbutton control. A sound file or compiled AppleScript script can be dropped on it and will be played or executed when the button is pressed.
• ODFHello
ODFHello is our version of "Hello World." This part displays a string that can be changed by pasting or dropping.
• ODFBitmap
ODFBitmap is a non-embedding part editor that displays a bitmap which can be selected and copied, dragged, dropped, and pasted. ODFBitmap supports multiple display frames with different scaling factors. It contains support for displaying Cyberdog picture data. Finally, if ColorExtension is installed, clicking in the bitmap calls the SetForegroundColor function of the extension, passing it the color of the pixel which was clicked on.
• ODFForm
ODFForm is a showcase for the view subsystem. It shows how to use controls, edit views, and list boxes, and how to respond to their notifications. It contains an example of a scrolling edit view with undo/redo support, and a password dialog.
• ODFEmbed
ODFEmbed is a minimal embedding part editor. You can embed a single frame by using the Insert menu command, by pasting, or by dropping. These actions can be undone. ODFEmbed also provides a menu command to split the frame into multiple facets.
• ODFContainer
ODFContainer is a full-featured container part with no intrinsic content. Embedded frames can be resized, moved around, and scaled. Parts can be copied, pasted, inserted, dragged, and dropped. All of these actions can be undone. ODFContainer also supports zooming, View As, and scrolling. Finally, it responds to ColorExtension calls to change the background color.
• ODFTable
ODFTable is a container part in which embedded frames are located in cells of the table. Grid lines of the table can be moved (using a tracker), which causes embedded frames to be resized. Embedded parts can be cut, copied, pasted, inserted, cleared, dragged, and dropped. ODFTable also supports linking.
• ODFDraw
ODFDraw is a full-featured draw editor. ODFDraw supports almost all OpenDoc features including scripting, linking, scrolling, embedding, etc., as well as undoable commands for cut, copy, paste, clear, insert, drag, and drop.