X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fbufferview_funcs.h;h=c2268f8a29bed3732f1c70c5ea309a1a4e12d1e3;hb=d2574b7d8e2716d3d3aea92df6576bd01c421a6c;hp=66931166c4e08ae4adbae63fcebe3892795d7dfe;hpb=562d55989ad93b2886ae437bf45eb0e7cf796891;p=lyx.git diff --git a/src/bufferview_funcs.h b/src/bufferview_funcs.h index 66931166c4..c2268f8a29 100644 --- a/src/bufferview_funcs.h +++ b/src/bufferview_funcs.h @@ -17,16 +17,14 @@ #include #include +namespace lyx { + +class Point; class BufferView; class DocIterator; class InsetBase_code; class LyXFont; -namespace lyx { -class Point; -} - - namespace bv_funcs { /// Set \param data using \param font and \param toggle. Return success. @@ -40,7 +38,7 @@ bool string2font(std::string const & data, LyXFont & font, bool & toggle); */ std::string const freefont2string(); -lyx::Point getPos(BufferView & bv, DocIterator const & dit, bool boundary); +Point getPos(BufferView const & bv, DocIterator const & dit, bool boundary); enum CurStatus { CUR_INSIDE, @@ -52,7 +50,7 @@ enum CurStatus { CurStatus status(BufferView const * bv, DocIterator const & dit); -lyx::Point coordOffset(DocIterator const & dit, bool boundary); +Point coordOffset(BufferView const & bv, DocIterator const & dit, bool boundary); /// Moves cursor to the next inset with one of the given codes. void gotoInset(BufferView * bv, std::vector const & codes, @@ -71,4 +69,7 @@ void findInset(DocIterator & dit, InsetBase_code code, bool same_content); } // namespace bv_funcs + +} // namespace lyx + #endif