2002-07-22 02:40:07 +04:00
|
|
|
// ClipboardHandler.cpp
|
|
|
|
|
|
|
|
#include <Message.h>
|
|
|
|
|
|
|
|
#include "ClipboardHandler.h"
|
|
|
|
|
2002-07-28 17:37:26 +04:00
|
|
|
/*!
|
|
|
|
\class ClipboardHandler
|
|
|
|
\brief Handles all clipboard related requests.
|
|
|
|
*/
|
|
|
|
|
2002-07-22 02:40:07 +04:00
|
|
|
// constructor
|
2002-07-28 17:37:26 +04:00
|
|
|
/*! \brief Creates and initializes a ClipboardHandler.
|
|
|
|
*/
|
2002-07-22 02:40:07 +04:00
|
|
|
ClipboardHandler::ClipboardHandler()
|
|
|
|
: BHandler()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
// destructor
|
2002-07-28 17:37:26 +04:00
|
|
|
/*! \brief Frees all resources associate with this object.
|
|
|
|
*/
|
2002-07-22 02:40:07 +04:00
|
|
|
ClipboardHandler::~ClipboardHandler()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
// MessageReceived
|
2002-07-28 17:37:26 +04:00
|
|
|
/*! \brief Overrides the super class version to handle the clipboard specific
|
|
|
|
messages.
|
|
|
|
\param message The message to be handled
|
|
|
|
*/
|
2002-07-22 02:40:07 +04:00
|
|
|
void
|
|
|
|
ClipboardHandler::MessageReceived(BMessage *message)
|
|
|
|
{
|
|
|
|
switch (message->what) {
|
|
|
|
default:
|
|
|
|
BHandler::MessageReceived(message);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|