lyx_mirror/src/frontends/qt4/GuiClipboard.h
Jürgen Spitzmüller 636b655216 Fix multiple cell pasting on Windows and Mac (bug 4436):
* src/Clipboard.h:
* src/frontends/GuiClipboard.{cpp,h}:
	- new member hasInternal() which indicates whether the OS knows
	  the concept of clipboard ownership.

* src/insets/InsetTabular.cpp (doDispatch):
	- consider hasInternal() while pasting.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22325 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-28 15:56:05 +00:00

58 lines
1.0 KiB
C++

// -*- C++ -*-
/**
* \file GuiClipboard.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author unknown
* \author John Levon
* \author Abdelrazak Younes
*
* Full author contact details are available in file CREDITS.
*/
#ifndef GUICLIPBOARD_H
#define GUICLIPBOARD_H
#include "frontends/Clipboard.h"
#include <QObject>
namespace lyx {
namespace frontend {
/**
* The Qt4 version of the Clipboard.
*/
class GuiClipboard: public QObject, public Clipboard
{
Q_OBJECT
public:
GuiClipboard();
virtual ~GuiClipboard() {}
/** Clipboard overloaded methods
*/
//@{
std::string const getAsLyX() const;
docstring const getAsText() const;
void put(std::string const & lyx, docstring const & text);
bool hasLyXContents() const;
bool isInternal() const;
bool hasInternal() const;
bool empty() const;
//@}
private Q_SLOTS:
void on_dataChanged();
private:
bool text_clipboard_empty_;
bool has_lyx_contents_;
};
} // namespace frontend
} // namespace lyx
#endif // GUICLIPBOARD_H