mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-28 14:58:36 +00:00
MacOSX compile fix: The class Point conflicted with a struct defined in MacTypes.h.
* coordcache.[Ch]: put everything in the LyX namespace. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15340 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c7e365365e
commit
562d55989a
@ -78,8 +78,10 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
|
||||||
|
using lyx::CoordCache;
|
||||||
using lyx::docstring;
|
using lyx::docstring;
|
||||||
using lyx::pos_type;
|
using lyx::pos_type;
|
||||||
|
using lyx::Point;
|
||||||
|
|
||||||
using lyx::support::addPath;
|
using lyx::support::addPath;
|
||||||
using lyx::support::bformat;
|
using lyx::support::bformat;
|
||||||
|
@ -201,11 +201,11 @@ public:
|
|||||||
void updateMetrics(bool singlepar = false);
|
void updateMetrics(bool singlepar = false);
|
||||||
|
|
||||||
///
|
///
|
||||||
CoordCache & coordCache() {
|
lyx::CoordCache & coordCache() {
|
||||||
return coord_cache_;
|
return coord_cache_;
|
||||||
}
|
}
|
||||||
///
|
///
|
||||||
CoordCache const & coordCache() const {
|
lyx::CoordCache const & coordCache() const {
|
||||||
return coord_cache_;
|
return coord_cache_;
|
||||||
}
|
}
|
||||||
/// get this view's keyboard map handler
|
/// get this view's keyboard map handler
|
||||||
@ -247,7 +247,7 @@ private:
|
|||||||
|
|
||||||
///
|
///
|
||||||
ViewMetricsInfo metrics_info_;
|
ViewMetricsInfo metrics_info_;
|
||||||
CoordCache coord_cache_;
|
lyx::CoordCache coord_cache_;
|
||||||
///
|
///
|
||||||
Buffer * buffer_;
|
Buffer * buffer_;
|
||||||
|
|
||||||
|
@ -40,6 +40,9 @@
|
|||||||
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
|
using lyx::Point;
|
||||||
|
using lyx::CoordCache;
|
||||||
|
|
||||||
using lyx::support::bformat;
|
using lyx::support::bformat;
|
||||||
|
|
||||||
using std::istringstream;
|
using std::istringstream;
|
||||||
|
@ -21,7 +21,10 @@ class BufferView;
|
|||||||
class DocIterator;
|
class DocIterator;
|
||||||
class InsetBase_code;
|
class InsetBase_code;
|
||||||
class LyXFont;
|
class LyXFont;
|
||||||
|
|
||||||
|
namespace lyx {
|
||||||
class Point;
|
class Point;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
namespace bv_funcs {
|
namespace bv_funcs {
|
||||||
@ -37,7 +40,7 @@ bool string2font(std::string const & data, LyXFont & font, bool & toggle);
|
|||||||
*/
|
*/
|
||||||
std::string const freefont2string();
|
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 {
|
enum CurStatus {
|
||||||
CUR_INSIDE,
|
CUR_INSIDE,
|
||||||
@ -49,7 +52,7 @@ enum CurStatus {
|
|||||||
CurStatus status(BufferView const * bv, DocIterator const & dit);
|
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.
|
/// Moves cursor to the next inset with one of the given codes.
|
||||||
void gotoInset(BufferView * bv, std::vector<InsetBase_code> const & codes,
|
void gotoInset(BufferView * bv, std::vector<InsetBase_code> const & codes,
|
||||||
|
@ -19,6 +19,8 @@
|
|||||||
#include <boost/assert.hpp>
|
#include <boost/assert.hpp>
|
||||||
|
|
||||||
|
|
||||||
|
namespace lyx {
|
||||||
|
|
||||||
// just a helper to be able to set a breakpoint
|
// just a helper to be able to set a breakpoint
|
||||||
void lyxbreaker(void const * data, const char * hint, int size)
|
void lyxbreaker(void const * data, const char * hint, int size)
|
||||||
{
|
{
|
||||||
@ -46,3 +48,5 @@ Point CoordCache::get(LyXText const * text, lyx::pit_type pit)
|
|||||||
BOOST_ASSERT(posit != it->second.end());
|
BOOST_ASSERT(posit != it->second.end());
|
||||||
return posit->second;
|
return posit->second;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // namespace lyx
|
||||||
|
@ -25,6 +25,8 @@ class Paragraph;
|
|||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
|
namespace lyx {
|
||||||
|
|
||||||
void lyxbreaker(void const * data, const char * hint, int size);
|
void lyxbreaker(void const * data, const char * hint, int size);
|
||||||
|
|
||||||
class Point {
|
class Point {
|
||||||
@ -153,4 +155,6 @@ private:
|
|||||||
SliceCache slices1_;
|
SliceCache slices1_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} // namespace lyx
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -51,8 +51,10 @@
|
|||||||
#include <limits>
|
#include <limits>
|
||||||
|
|
||||||
using lyx::char_type;
|
using lyx::char_type;
|
||||||
|
using lyx::CoordCache;
|
||||||
using lyx::docstring;
|
using lyx::docstring;
|
||||||
using lyx::pit_type;
|
using lyx::pit_type;
|
||||||
|
using lyx::Point;
|
||||||
|
|
||||||
using std::string;
|
using std::string;
|
||||||
using std::vector;
|
using std::vector;
|
||||||
|
@ -22,7 +22,6 @@ class Buffer;
|
|||||||
class BufferView;
|
class BufferView;
|
||||||
class FuncStatus;
|
class FuncStatus;
|
||||||
class FuncRequest;
|
class FuncRequest;
|
||||||
class Point;
|
|
||||||
class LyXFont;
|
class LyXFont;
|
||||||
|
|
||||||
// these should go
|
// these should go
|
||||||
|
@ -47,6 +47,7 @@
|
|||||||
#include <limits>
|
#include <limits>
|
||||||
|
|
||||||
using lyx::docstring;
|
using lyx::docstring;
|
||||||
|
using lyx::Point;
|
||||||
|
|
||||||
using lyx::cap::dirtyTabularStack;
|
using lyx::cap::dirtyTabularStack;
|
||||||
using lyx::cap::tabularStackDirty;
|
using lyx::cap::tabularStackDirty;
|
||||||
|
@ -60,7 +60,10 @@
|
|||||||
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
|
using lyx::CoordCache;
|
||||||
using lyx::docstring;
|
using lyx::docstring;
|
||||||
|
using lyx::Point;
|
||||||
|
|
||||||
using lyx::cap::copySelection;
|
using lyx::cap::copySelection;
|
||||||
using lyx::cap::grabAndEraseSelection;
|
using lyx::cap::grabAndEraseSelection;
|
||||||
using lyx::cap::cutSelection;
|
using lyx::cap::cutSelection;
|
||||||
|
@ -48,8 +48,9 @@ using lyx::frontend::NullPainter;
|
|||||||
using lyx::frontend::FontMetrics;
|
using lyx::frontend::FontMetrics;
|
||||||
|
|
||||||
using lyx::char_type;
|
using lyx::char_type;
|
||||||
using lyx::pos_type;
|
|
||||||
using lyx::pit_type;
|
using lyx::pit_type;
|
||||||
|
using lyx::pos_type;
|
||||||
|
using lyx::Point;
|
||||||
|
|
||||||
using std::endl;
|
using std::endl;
|
||||||
using std::max;
|
using std::max;
|
||||||
|
@ -62,6 +62,7 @@
|
|||||||
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
|
using lyx::CoordCache;
|
||||||
using lyx::docstring;
|
using lyx::docstring;
|
||||||
using lyx::pit_type;
|
using lyx::pit_type;
|
||||||
using lyx::pos_type;
|
using lyx::pos_type;
|
||||||
|
Loading…
Reference in New Issue
Block a user