lyx_mirror/src/frontends/qt4/GuiSelection.h
Georg Baum a683072ea0 Fix enabling of LFUN_PRIMARY_SELECTION_PASTE: It was always disabled, because
we don't set the selection with qApp->clipboard()->put().
Therefore we get the status of the internal selection from the cursor, and
the empty flag for fake selections is not needed anymore.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16610 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-08 18:37:40 +00:00

44 lines
767 B
C++

// -*- C++ -*-
/**
* \file qt4/GuiSelection.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 SELECTION_H
#define SELECTION_H
#include "frontends/Selection.h"
namespace lyx {
namespace frontend {
/**
* The Qt4 version of the Selection.
*/
class GuiSelection: public Selection
{
public:
virtual ~GuiSelection() {}
/** Selection overloaded methods
*/
//@{
void haveSelection(bool own);
docstring const get() const;
void put(docstring const & str);
bool empty() const;
//@}
};
} // namespace frontend
} // namespace lyx
#endif // SELECTION_H