#ifndef BUFFER_VIEW_H
#define BUFFER_VIEW_H
-#include "Dimension.h"
#include "update_flags.h"
#include "support/strfwd.h"
#include "support/types.h"
-#include <boost/noncopyable.hpp>
-
-#include <utility>
-#include <string>
-
-
namespace lyx {
namespace support { class FileName; }
class Inset;
class ParIterator;
class ParagraphMetrics;
+class Point;
class Text;
class TextMetrics;
-class ViewMetricsInfo;
enum CursorStatus {
CUR_INSIDE,
* \sa Buffer
* \sa CoordCache
*/
-class BufferView : boost::noncopyable {
+class BufferView {
public:
///
BufferView(Buffer & buffer);
void putSelectionAt(DocIterator const & cur,
int length, bool backwards);
- /// return the internal \c ViewMetricsInfo.
- /// This is used specifically by the \c Workrea.
- /// \sa WorkArea
- /// \sa ViewMetricsInfo
- ViewMetricsInfo const & viewMetricsInfo();
/// update the internal \c ViewMetricsInfo.
- /// \param singlepar indicates wether
- void updateMetrics(bool singlepar = false);
+ void updateMetrics();
///
TextMetrics const & textMetrics(Text const * t) const;
void insertPlaintextFile(std::string const & fileName, bool asParagraph);
private:
+ /// noncopyable
+ BufferView(BufferView const &);
+ void operator=(BufferView const &);
+
// the position relative to (0, baseline) of outermost paragraph
Point coordOffset(DocIterator const & dit, bool boundary) const;
/// Update current paragraph metrics.
/// \return true if no further update is needed.
bool singleParUpdate();
- ///
- bool multiParSel();
/// Search recursively for the the innermost inset that covers (x, y) position.
/// \retval 0 if no inset is found.