Yves Bastide <[EMAIL PROTECTED]> writes:
Did you have a look at LyXText::ChangeWordCase?
l. 3700, text.C
Lgb
| Hi LyX developers,
|
| Instead of trying to help you improving LyX, I decided to add
| `chars-transpose' to lyxfunc.C (of course, the improvement would be
| implementing the macro capabilities :-).
|
| [I won't propose a patch for this, as I added
| void LyXText::TransposeChars()
| and
| void LyXParagraph::TransposeChars(LyXParagraph::size_type pos)
| *Not* pretty.]
|
| Anyway, I couldn't manage to update the view after a chars-transpose.
| Characters are transposed, but the display is not refreshed until an
| expose event.
| The code I added in lyxfunc.C is:
| case LFUN_CHARS_TRANSPOSE:
| owner->view()->text->TransposeChars();
| owner->view()->smallUpdate(1);
| SetUpdateTimer();
| moveCursorUpdate(false);
| break;
|
| (I confess: The .*Update.* parts were cut&pasted and I barely
| understand what they do)
|
| I also tried a variation:
| owner->view()->update(-2);
| FreeUpdateTimer();
| owner->view()->text->TransposeChars();
| owner->view()->update(1);
| SetUpdateTimer();
| break;
|
| To no avail.
|
| What's obvious I'm missing?
|
|
| Thanks!
|
| --
| Yves Bastide | Limos
| | +33 (0)4 73 40 77 73