home *** CD-ROM | disk | FTP | other *** search
- /* ==================
- * PedCommandPaste.cc
- * ==================
- */
-
- #include "PedestalDebugging.h"
-
- #include <Windows.h>
-
- #include "PedCommandPaste.hh"
- #include "PedWindow.hh"
- #include "PedPane.hh"
-
- void
- PedCommandPaste::Execute()
- {
- WindowPtr w = ::FrontWindow();
- if (w != NULL)
- if (((WindowPeek)w)->windowKind == kPedestalWindowKind) {
- PedWindow *window = (PedWindow *)((WindowPeek)w)->refCon;
- ThrowIfNULL_(window);
- PedPane *pane = window->Pane();
- if (pane != NULL) {
- pane->Paste();
- } else
- DebugBeep();
- } else
- DebugBeep();
- else
- DebugBeep();
- }
-