]> git.lyx.org Git - features.git/commit
Move BufferView cached pointer out of LyXText:
authorAbdelrazak Younes <younes@lyx.org>
Mon, 30 Oct 2006 12:45:33 +0000 (12:45 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 30 Oct 2006 12:45:33 +0000 (12:45 +0000)
commiteb651c3d6100eac2d3ec6d176234a0f9512671b9
treed024d76dc0989393f202d7af1bc283f001f22009
parent7a4c86b1848c5d1974d8593aba32bba8e260c872
Move BufferView cached pointer out of LyXText:

* LyXText
  - bv(), bv_owner, : deleted.
  - These methods now need a (Buffer const &) argument: getFont(), applyOuterFont(), getLayoutFont(), getLabelFont(), setCharFont(), setLayout(), singleWidth(), leftMargin(), rightMargin(), computeRowMetrics(), isMainText(), spacing(), isRTL(), cursorX(), rowBreakPoint(), setRowWidth(), labelFill(), labelEnd().
  - These methods now need a (BufferView const &) argument and are propably candidates for future removal when 1.6 is opened for development: redoParagraph(), x2pos(), getRowNearY(), getColumnNearX(), checkInsetHit(), setHeightOfRow().
  - recUndo(): now need a LCursor argument.

* CoordCache::get(LyXText const *, pit_type):
  - now const.
  - use const_iterator instead of iterator.

* FontIterator:
  - add (Buffer const &) argument to ctor
  - buffer_: new const reference to applicable BufferView.

* InsetBase
  - xo(), yo(), covers() and neverIndent() are now const.

* InsetText::setViewCache(): deleted

All other changes are due to the LyXText and InsetBase API changes.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15618 a592a061-630c-0410-9148-cb99ea01b6c8
29 files changed:
src/BufferView.C
src/FontIterator.C
src/FontIterator.h
src/buffer_funcs.C
src/bufferview_funcs.C
src/coordcache.C
src/coordcache.h
src/cursor.C
src/insets/insetbase.C
src/insets/insetbase.h
src/insets/insetbox.h
src/insets/insetcaption.h
src/insets/insetcharstyle.h
src/insets/insetert.h
src/insets/insetoptarg.h
src/insets/insettabular.C
src/insets/insettext.C
src/insets/insettext.h
src/lyxfunc.C
src/lyxtext.h
src/mathed/MathData.C
src/mathed/MathData.h
src/rowpainter.C
src/tabular.C
src/text.C
src/text2.C
src/text3.C
src/trans_mgr.C
src/trans_mgr.h