mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 21:49:51 +00:00
36ada6f267
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16576 a592a061-630c-0410-9148-cb99ea01b6c8
53 lines
1.0 KiB
C++
53 lines
1.0 KiB
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:
|
|
GuiSelection() : empty_(true) {}
|
|
virtual ~GuiSelection() {}
|
|
|
|
/** Selection overloaded methods
|
|
*/
|
|
//@{
|
|
void haveSelection(bool own);
|
|
docstring const get() const;
|
|
void put(docstring const & str);
|
|
bool empty() const;
|
|
//@}
|
|
private:
|
|
/**
|
|
* Is the selection empty?
|
|
* Only used on systems that don't support a real selection to
|
|
* reflect the status of the internal selection of LyX.
|
|
* This is needed to emulate the X selection as far as possible.
|
|
*/
|
|
bool empty_;
|
|
};
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|
|
|
|
#endif // SELECTION_H
|