mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-14 23:12:31 +00:00
d8ae51dbe1
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14152 a592a061-630c-0410-9148-cb99ea01b6c8
64 lines
1.0 KiB
C++
64 lines
1.0 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file qt3/GuiClipboard.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Abdelrazak Younes
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef CLIPBOARD_H
|
|
#define CLIPBOARD_H
|
|
|
|
#include "frontends/Clipboard.h"
|
|
|
|
#include "QWorkArea.h"
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
typedef QWorkArea FWorkArea;
|
|
|
|
/**
|
|
* The Qt3 version of the Clipboard.
|
|
*/
|
|
class GuiClipboard: public lyx::frontend::Clipboard
|
|
{
|
|
public:
|
|
GuiClipboard(FWorkArea * work_area)
|
|
: old_work_area_(work_area)
|
|
{
|
|
}
|
|
|
|
virtual ~GuiClipboard() {}
|
|
|
|
/** ClipBoard overloaded methods
|
|
*/
|
|
//@{
|
|
void haveSelection(bool own)
|
|
{
|
|
old_work_area_->haveSelection(own);
|
|
}
|
|
|
|
std::string const get() const
|
|
{
|
|
return old_work_area_->getClipboard();
|
|
}
|
|
|
|
void put(std::string const & str)
|
|
{
|
|
old_work_area_->putClipboard(str);
|
|
}
|
|
//@}
|
|
|
|
private:
|
|
FWorkArea * old_work_area_;
|
|
};
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|
|
|
|
#endif // CLIPBOARD_H
|