Abdelrazak Younes wrote:
Abdelrazak Younes wrote:
Richard Heck wrote:
(iii) remember layout base class _and_ module in BufferParams.
Maybe the solution is to have a global TextClassModule along the
global TextClassList instead of having local copies of TextClass?
Or integrate the module access to the TextClassList itself?
Changes to BufferParams don't help. The problem is in CutAndPaste,
where we keep a copy of the TextClass in use with a given selection.
Yes, the copy is in fact in the temporary Buffer created in
put/pasteClipbaord. I understand that passing the TextClass is not
nice but maybe the solution is to store the temporary Buffer instead
of discarding it?
In effect, this would mean that this:
typedef limited_stack<pair<ParagraphList, textclass_type> > CutStack;
is replaced by this:
typedef limited_stack<Buffer> CutStack;
IIUC, the TextClass problem would vanish by itself, won't it? Maybe it
is worth it?
Maybe. But I'm loathe to mess with CutAndPaste at this point. I don't
understand that code (yet), as I haven't studied it.
Richard
--
==================================================================
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==================================================================
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto