OK, this is a second attempt at fixing the toggle case, this time
without changes to the fmt mark mechanism.
Some changes to the PT nevertheless:
_insertFmtMarkFragWithNotify(PTChangeFmt , PT_DocPosition,
PP_AttrProp *): a speed up; instead of inserting props and attrs one
by one, we do so in a single go. This is entirely equivalent to the
older code, but I left it inside of #if 1, just in case.
mergeAP(): fixed up the case when PTC_SetFmt is specified -- that
branch of the function was entirely identical to PTC_AddFmt;
presumably PTC_SetFmt was never used before.
added PP_AttrProp::isEquivalent(attrs, props) needed to fix up
mergeAP().
I also made changes to the tooglePlain() function (ctrl+space); it
now makes a call to a dedicated FV_View::resetCharFormat(). This
function allows us to control things more precisely.
files: pt_PT_fmtMark.cpp, pp_AttrProp.h/cpp, pt_Varset.cpp,
fv_View.cpp, ap_EditMethods.cpp
Tomas
Received on Fri Sep 24 22:39:13 2004
This archive was generated by hypermail 2.1.8 : Fri Sep 24 2004 - 22:39:13 CEST