#include <vector>
+using lyx::CoordCache;
using lyx::docstring;
using lyx::pos_type;
+using lyx::Point;
using lyx::support::addPath;
using lyx::support::bformat;
void updateMetrics(bool singlepar = false);
///
- CoordCache & coordCache() {
+ lyx::CoordCache & coordCache() {
return coord_cache_;
}
///
- CoordCache const & coordCache() const {
+ lyx::CoordCache const & coordCache() const {
return coord_cache_;
}
/// get this view's keyboard map handler
///
ViewMetricsInfo metrics_info_;
- CoordCache coord_cache_;
+ lyx::CoordCache coord_cache_;
///
Buffer * buffer_;
#include <sstream>
+using lyx::Point;
+using lyx::CoordCache;
+
using lyx::support::bformat;
using std::istringstream;
class DocIterator;
class InsetBase_code;
class LyXFont;
+
+namespace lyx {
class Point;
+}
namespace bv_funcs {
*/
std::string const freefont2string();
-Point getPos(BufferView & bv, DocIterator const & dit, bool boundary);
+lyx::Point getPos(BufferView & bv, DocIterator const & dit, bool boundary);
enum CurStatus {
CUR_INSIDE,
CurStatus status(BufferView const * bv, DocIterator const & dit);
-Point coordOffset(DocIterator const & dit, bool boundary);
+lyx::Point coordOffset(DocIterator const & dit, bool boundary);
/// Moves cursor to the next inset with one of the given codes.
void gotoInset(BufferView * bv, std::vector<InsetBase_code> const & codes,
#include <boost/assert.hpp>
+namespace lyx {
+
// just a helper to be able to set a breakpoint
void lyxbreaker(void const * data, const char * hint, int size)
{
BOOST_ASSERT(posit != it->second.end());
return posit->second;
}
+
+} // namespace lyx
#include <map>
+namespace lyx {
+
void lyxbreaker(void const * data, const char * hint, int size);
class Point {
SliceCache slices1_;
};
+} // namespace lyx
+
#endif
#include <limits>
using lyx::char_type;
+using lyx::CoordCache;
using lyx::docstring;
using lyx::pit_type;
+using lyx::Point;
using std::string;
using std::vector;
class BufferView;
class FuncStatus;
class FuncRequest;
-class Point;
class LyXFont;
// these should go
#include <limits>
using lyx::docstring;
+using lyx::Point;
using lyx::cap::dirtyTabularStack;
using lyx::cap::tabularStackDirty;
#include <sstream>
+using lyx::CoordCache;
using lyx::docstring;
+using lyx::Point;
+
using lyx::cap::copySelection;
using lyx::cap::grabAndEraseSelection;
using lyx::cap::cutSelection;
using lyx::frontend::FontMetrics;
using lyx::char_type;
-using lyx::pos_type;
using lyx::pit_type;
+using lyx::pos_type;
+using lyx::Point;
using std::endl;
using std::max;
#include <sstream>
+using lyx::CoordCache;
using lyx::docstring;
using lyx::pit_type;
using lyx::pos_type;