X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fbufferview_funcs.h;h=c2268f8a29bed3732f1c70c5ea309a1a4e12d1e3;hb=35204f8f33d7400a5fefeffea533fb4cb4097211;hp=291119a1ea340ba59ca3cb3068f50e25ae75b03f;hpb=361de37399c7709bf4c19f33186a28e8c5da22da;p=lyx.git diff --git a/src/bufferview_funcs.h b/src/bufferview_funcs.h index 291119a1ea..c2268f8a29 100644 --- a/src/bufferview_funcs.h +++ b/src/bufferview_funcs.h @@ -17,12 +17,13 @@ #include #include -class LyXFont; +namespace lyx { + class Point; -class DocIterator; class BufferView; +class DocIterator; class InsetBase_code; - +class LyXFont; namespace bv_funcs { @@ -37,7 +38,7 @@ bool string2font(std::string const & data, LyXFont & font, bool & toggle); */ std::string const freefont2string(); -Point getPos(DocIterator const & dit); +Point getPos(BufferView const & bv, DocIterator const & dit, bool boundary); enum CurStatus { CUR_INSIDE, @@ -49,7 +50,7 @@ enum CurStatus { CurStatus status(BufferView const * bv, DocIterator const & dit); -Point coordOffset(DocIterator const & dit); +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, @@ -68,4 +69,7 @@ void findInset(DocIterator & dit, InsetBase_code code, bool same_content); } // namespace bv_funcs + +} // namespace lyx + #endif