Tommaso Cucinotta
b8af0d1cfd
Fixed crash on searching for empty list inside empty list with ignore-format off (bug #6500 ).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33318 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-02 20:36:12 +00:00
Vincent van Ravesteijn
b7ff36304d
Use Change::isSimilarTo to find a change when merging changes.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33284 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-31 00:21:52 +00:00
Tommaso Cucinotta
c0d42b97ee
Made replace behaviour more standard: when pressing replace (next or previous) button:
...
-) if a selection exists, and it matches, then it is replaced;
-) next match is searched for and, if found, it is selected.
After a replace, next match is searched for only beyond the replaced text
(and not inside the replaced text).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33267 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-30 10:11:24 +00:00
Tommaso Cucinotta
52c059e68a
Make the fake sequence for braces highly unlikely (addressing #6478 ).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33253 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-29 07:35:13 +00:00
Tommaso Cucinotta
c6784d708d
Open or closed braces ({ or }) are now translated to non-braces fake constructs while searching ( fixes #6478 , avoiding assert).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33248 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-28 17:26:18 +00:00
Tommaso Cucinotta
ddebdc4514
Now the local text language is kept while replacing text (addressing #6171 ).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32961 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-11 02:20:51 +00:00
Vincent van Ravesteijn
43c8de8138
Cosmetics mainly: Rename math.h to cmath, reorder some includes, remove some includes and remove some superfluous "lyx::".
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32934 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-10 12:37:50 +00:00
Tommaso Cucinotta
fb4dfdf189
Implemented "whose words" option of the Advanced F&R feature.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32905 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-09 12:39:29 +00:00
Vincent van Ravesteijn
5079badb65
Fix bug #6428 : Assertion when navigating to next change while in math mode.
...
We need to leave the math inset before trying to access cur.paragraph().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32791 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-06 17:29:39 +00:00
Vincent van Ravesteijn
b0910eb6d4
Why was there a 1 ? We only have to make sure that pos - 1 >= 0.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32772 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-05 16:34:52 +00:00
Tommaso Cucinotta
5cc2d6d73c
Advanced F&R rework:
...
- scopes now handled in FindAndReplaceWidget, while lyxfind.cpp only searches within single buffer
- cursor().result().dispatched() now encodes whether a match was found or not, after LFUN_WORD_FINDADV dispatch
- removed a few unneeded functions
- followed a few cosmetic advices
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32760 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-04 12:29:38 +00:00
Tommaso Cucinotta
9e5a12b905
No need for the new LyXView::selectDocumentBuffer() method, same thing may be done with LFUN_SWITCH_BUFFER (vfr advice).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32739 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-01 11:14:01 +00:00
Tommaso Cucinotta
82e07a4185
Code cleanup.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32682 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-30 22:21:23 +00:00
Tommaso Cucinotta
24e2c495fe
Implemented S_OPEN_BUFFERS scope in Advanced Find feature (keep searching and find all occurrences within all open buffers).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32680 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-30 21:50:55 +00:00
Tommaso Cucinotta
605ac8e46a
Cosmetics: removed unneeded std::
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32679 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-30 18:58:20 +00:00
Tommaso Cucinotta
5da4ccb931
Implemented the "Current Buffer" & "Current (Master) Document" scopes in the Advanced Find and Replace feature.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32678 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-30 18:40:18 +00:00
Tommaso Cucinotta
6675847986
Fixed bug: now, when searching backwards, after wrap-around question, if match is beyond the cursor position then it is correctly found.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32651 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-26 22:31:59 +00:00
Tommaso Cucinotta
569a0e4629
Fixed infinite loop on backwards search when matching in nested inset(s) at begin of document.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32650 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-26 22:10:14 +00:00
Tommaso Cucinotta
378d32bc06
indentation fix.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32559 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-17 07:57:50 +00:00
Tommaso Cucinotta
ad0060454d
Fix of bug ##6334 - now if you search for something not in the doc, it wraps around only once.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32558 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-17 07:53:20 +00:00
Richard Heck
c47c34b1c8
Fix typo.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31277 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-04 13:52:49 +00:00
Jürgen Spitzmüller
56fcb589ae
stylistics
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31274 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-04 13:08:09 +00:00
Jürgen Spitzmüller
2509ff8236
stylistics.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31273 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-04 13:06:43 +00:00
Tommaso Cucinotta
50c6ba17e5
Fix of issue when searching at paragraph boundaries when non-ignoring format.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31201 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-22 16:06:19 +00:00
Uwe Stöhr
91854df691
lyxfind.cpp: this was accidentally removed in r31163
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31164 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-20 00:36:52 +00:00
Uwe Stöhr
8a35204454
lyxfind.cpp/h: make LyX compilable
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31163 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-20 00:28:34 +00:00
Tommaso Cucinotta
edd8e78612
First implementation of feature in bug #3696 . Needs testing.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31156 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-19 22:55:38 +00:00
Tommaso Cucinotta
5b1e7027ba
Fixed Find LyX with replace, in common use cases.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31141 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-19 15:14:28 +00:00
Pavel Sanda
4304901faf
Add find debug level. Patch from Tommaso.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31092 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-17 14:39:00 +00:00
Pavel Sanda
3fa15cc0a0
Backward search. Next bits from Tommaso.
...
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg154007.html
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31085 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-17 08:08:21 +00:00
Pavel Sanda
e040bcebbf
Next bits from Tommaso, part of bug #6139 .
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31081 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-17 07:06:01 +00:00
Vincent van Ravesteijn
a492f5d553
Fix warnings.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31061 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-15 20:03:41 +00:00
Pavel Sanda
ab36804b6c
Fix searching bug #6139 .
...
Patch by Tommaso.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31053 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-15 15:35:14 +00:00
Vincent van Ravesteijn
27a0ac410f
Remove some unnecessary negated logic.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30864 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-04 22:44:23 +00:00
Abdelrazak Younes
b8e5440bef
LFUN_WORD_REPLACE: Invert replacement and searched strings in the FuncRequest argument. This is to allow replacement of current word even if it is not selected.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30360 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-04 23:02:27 +00:00
Abdelrazak Younes
73b48c22e5
Squash gcc warnings.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29560 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-07 12:40:35 +00:00
Vincent van Ravesteijn
6643fac7db
Fix a small bug in the finding of changes. If a change starts at pos==1 and one tries to find it backwards, the character at pos==0 was also selected as part of the change.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29251 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-15 22:09:27 +00:00
Vincent van Ravesteijn
67503f8fe1
Fix the bug that when pressing the merge button while in the middle of a change, only half of the change was found.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29250 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-15 22:07:59 +00:00
Vincent van Ravesteijn
326a035a5b
Fix bug #2213 (part 5): GuiChanges lacks "Previous Change" button.
...
Make sure we jump to the next or previous change when we switch search direction. Without this patch, the same Change will be found and only the cursor is moved from the end (or begin) to the begin (or end) of the selection.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29115 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-05 20:16:32 +00:00
Vincent van Ravesteijn
5a1dc72483
Fix bug #2213 (part 1): GuiChanges lacks "Previous Change" button.
...
*lyxfind: Add findPreviousChange().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29108 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-05 19:11:25 +00:00
Pavel Sanda
82883a05f4
FindAdvSearch. Next patch from Tommaso.
...
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg147338.html
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28163 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-14 15:34:56 +00:00
Pavel Sanda
fd6679bd34
AdvSearch - next patch from Tommaso.
...
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg146966.html
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27938 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-20 16:00:47 +00:00
Uwe Stöhr
74abd44fb1
lyxfind.cpp: fix spacing
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27800 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-07 17:18:30 +00:00
André Pönitz
6192345f60
add Buffer * member to DocIterator
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27603 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-17 11:46:07 +00:00
André Pönitz
f8f5a7b28d
move updateLables to buffer
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27562 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 16:43:49 +00:00
André Pönitz
9a9528e86f
cosmetics
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27543 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 13:48:30 +00:00
Abdelrazak Younes
4209cbc631
Tommaso patch, part 5, lots of thing to cleanup still but I'll do that afterwards.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27521 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 00:12:21 +00:00
Abdelrazak Younes
c5e56fea32
First part of Tommaso advanced search patch. Only the backend function.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27514 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-15 23:30:27 +00:00
André Pönitz
f1cba8ff64
more latin1..utf8 schanges. all of src/* should be utf8 now
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27425 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-14 15:58:50 +00:00
Abdelrazak Younes
db062da6cb
revert hazardous part of r26957 and add a comment, take 3.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27171 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-28 18:00:21 +00:00
Jean-Marc Lasgouttes
754ead5010
Fix bug 5310: http://bugzilla.lyx.org/show_bug.cgi?id=5310
...
* BufferView.cpp (dispatch): make sure to repaint the document after
jumping to a new change.
* lyxfind.cpp (findNextChange): do not ignore the last character when
a change extends to the end of an inset.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27083 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-24 15:46:44 +00:00
Abdelrazak Younes
6a8219c190
Paragraph:
...
- constify some parameters
- getFontSettings():
- getFirstFontSettings(): return a const ref instead of a copy. This brings a consistent 4% improvement in LateX generation. Might speedup rtl handling too.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26957 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-19 07:03:44 +00:00
Jean-Marc Lasgouttes
17dd645862
Bug 5173: Undo Grouping
...
http://bugzilla.lyx.org/show_bug.cgi?id=5173
* Undo.cpp (beginUndoGroup, endUndoGroup): new methods.
(UndoElement): add group_id member
(UndoElementStack): when removing old undo entries, make sure to
remove whole groups.
(Undo::Private): add group_id and group_level (for nesting) members.
(doTextUndoOrRedo): new method. Apply _one_ UndoElement.
(textUndoOrRedo): call doTextUndoOrRedo on each element of the current
group.
(recordUndoFullDocument): put inside an undo group
* Cursor.cpp (beginUndoGroup, endUndoGroup): new methods.
* LyXFunc.cpp (dispatch): add calls to (begin|end)UndoGroup.
* lyxfind.cpp (replaceAll): use several recordUndo instead
of one recordUndoFullDocument.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26178 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-15 19:24:56 +00:00
Abdelrazak Younes
2bf1c09376
header cleanup
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23049 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-18 07:14:42 +00:00
Abdelrazak Younes
149778a0a5
Ensure that the cursor is visible when searching text. Should fix the spellchecker and a few other bugs.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22926 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-10 19:05:09 +00:00
Abdelrazak Younes
02e8322c79
Fix LFUN_WORD_FIND
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22925 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-10 18:52:32 +00:00
Stefan Schimanski
36dbec4506
* Lazy MathData to avoid unneeded interpretation of macro definitions
...
* DocIterator as MacroPosition
* Iterative search for macro in scope until a visible one is found.
This include the ability to resolve macro inside nested text insets.
* Speed up macro lookups by factor 2: only getMacro(name) call, no
further hasMacro(name) call before
* Both way child/master support
* Correct macro scope for multi-paragraph environments
* Correct macro scope for multi-depth-paragraphs
* Buffer::updateMacros made const
* Update macros when loaded (of master and child)
* Do not remove too many braces when unfolding a macro. This could
lead to a data loss because the relationship between arguments of
macros can be mixed up if nested macros are unfold at once.
* Reduce dependencies to MetricsInfo in MathMacro
* Update macros when needed. Normally it's done just before doing
metrics. But in cases without a brace around some constructs (like
\left(bla\right)) there is some help needed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22241 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 20:42:46 +00:00
Abdelrazak Younes
9abb7db468
getting rid of superfluous std:: statements.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22104 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 19:28:07 +00:00
Abdelrazak Younes
b89cc942eb
'using namespace lyx::support' instead of 'using support::xxx'
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22103 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 18:57:56 +00:00
Abdelrazak Younes
9383f4c3c6
'using namespace std' instead of 'using std::xxx'
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22097 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 10:16:00 +00:00
André Pönitz
9d0ea8aeff
Move debug.{cpp,h}, Messages.{cpp,h} and gettext.{cpp,h} to support/.
...
Now support/* should have no dependencies on src/* anymore.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21851 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-29 07:04:28 +00:00
André Pönitz
f625dd7ea0
cosmetics
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21593 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 23:50:28 +00:00
Abdelrazak Younes
372e605c2f
Introducing Paragraph::find().
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21168 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-24 08:22:26 +00:00
André Pönitz
fbb3abfeac
cosmetics
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21085 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-20 17:35:27 +00:00
Abdelrazak Younes
6725b2db59
Reduce header dependencies in Paragraph.h
...
- Move Changes.h out of Paragraph.h
- pimpl the inset list.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21033 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-18 15:29:51 +00:00
Abdelrazak Younes
55beda376a
Refactor Undo/Redo framework into an Undo class owned by a Buffer. This reduces header dependencies from Undo.h which was including lots of stuff previously. This also solves the bug where undo/redo were reset upon buffer switching. Now, each buffer has a truly independant undo/redo architecture.
...
In the future, when Cursor has been fixed to work correctly with multiple views of the same Buffer, we could transfer the Undo owner from Buffer to Cursor.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21031 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-18 11:51:17 +00:00
Abdelrazak Younes
e3032e7d0e
* BufferView::update(): renamed to processUpdateFlags() to clarify the intent. Also get rid of the default argument which added to the confusion as to what was the purpose of update(). Now also emit Buffer::changed() signal internally instead of assuming that the caller will act upon the returned boolean.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20884 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-10 08:52:55 +00:00
Abdelrazak Younes
0fcae6cc10
* BufferView::buffer() returns a reference instead of a pointer.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19691 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-21 13:03:55 +00:00
Alfredo Braunstein
bc0a64efc3
* DocIterator.h (forwardPosNoDescend): remove method
...
* DocIterator.cpp (forwardPos, backwardPos): move the 'flat' part to...
* CursorSlice.{h,cpp} (forwardPos, backwardPos, at_end, at_begin): new methods, the first two are part of their DocIterator homonym
* Text2.cpp (setFont): receive CursorSlice arguments as the function is not recursive, adapt
* Text.cpp:
* lyxfind.cpp (findNextChange):
* insets/InsetCollapsable.cpp: adapt
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19500 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-13 13:36:19 +00:00
Michael Schmitt
7067c91137
* src/BufferView.cpp:
...
* src/lyxfind.cpp:
* src/lyxfind.h: do not allow to replace texts that are
marked as deleted (fix by Jürgen Spitzmüller)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18836 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-19 21:48:04 +00:00
Jürgen Spitzmüller
db1d5b38dc
Fix bug 3160 and 3812:
...
* src/lyxfind.cpp:
- MatchString(), operator():
- findForward:
- findBackwards:
- find: pass bool find_del
- replace:
- replaceAll: do not replace or find (after replace) deleted text
* src/BufferView.cpp:
- getStatus: disable LFUN_WORD_REPLACE for deleted text.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18732 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-10 15:07:21 +00:00
Lars Gullik Bjønnes
897436efbb
Whitespace cleanup
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18550 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-28 22:27:45 +00:00
André Pönitz
e0d54dd3b4
LyXText -> Text
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18103 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-29 23:33:02 +00:00
André Pönitz
fc6ce7cd08
rename LyXFont to Font except in tex2lyx
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18095 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-29 18:17:15 +00:00
Bo Peng
e36fba33ab
Last (?) batch of renames:
...
src/frontends/Alert.h src/frontends/alert.h
src/frontends/Alert.cpp src/frontends/alert.cpp
src/frontends/Alert_pimpl.cpp src/frontends/alert_pimpl.cpp
src/frontends/qt4/Alert_pimpl.cpp src/frontends/qt4/alert_pimpl.cpp
src/frontends/controllers/ButtonPolicies.cpp src/frontends/controllers/ButtonPolicy.cpp
src/frontends/controllers/ButtonPolicies.h src/frontends/controllers/ButtonPolicy.h
src/insets/InsetEnv.cpp src/insets/InsetEnvironment.cpp
src/insets/InsetEnv.h src/insets/InsetEnvironment.h
src/mathed/MathMacroTable.h src/mathed/MacroTable.h
src/mathed/MathMacroTable.cpp src/mathed/MacroTable.cpp
src/lyx_cb.h src/callback.h
src/lyx_cb.cpp src/callback.cpp
src/UpdateFlags.h src/update_flags.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18076 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-28 20:44:46 +00:00
André Pönitz
42123ab8a7
rename LCursor->Cursor
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18040 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-26 14:56:30 +00:00
Bo Peng
f630be8904
Rename .C ==> .cpp for files in src/
...
Oldname, newname, classes
src/pspell.C src/PSpell.cpp PSpell
src/ParagraphMetrics.h src/ParagraphMetrics.h ParagraphMetrics
src/author.C src/Author.cpp ['Author', 'AuthorList']
src/Floating.C src/Floating.cpp Floating
src/lyxvc.C src/LyXVC.cpp LyXVC
src/intl.C src/Intl.cpp Intl
src/paragraph.h src/Paragraph.h ['FontSpan', 'Paragraph']
src/LyXAction.C src/LyXAction.cpp LyXAction
src/SpellBase.C src/SpellBase.cpp SpellBase
src/TextMetrics.C src/TextMetrics.cpp TextMetrics
src/LaTeXFeatures.C src/LaTeXFeatures.cpp LaTeXFeatures
src/buffer_funcs.h src/buffer_funcs.h NOCLASSES
src/Variables.h src/Variables.h Variables
src/cursor.C src/LCursor.cpp LCursor
src/lyx_cb.C src/lyx_cb.cpp NOCLASSES
src/DepTable.C src/DepTable.cpp ['DepTable', 'dep_info']
src/vspace.C src/VSpace.cpp VSpace
src/Thesaurus.C src/Thesaurus.cpp Thesaurus
src/Color.h src/color.h NOCLASSES
src/Spacing.C src/Spacing.cpp Spacing
src/dociterator.h src/DocIterator.h ['DocIterator', 'StableDocIterator']
src/trans.C src/Trans.cpp Trans
src/metricsinfo.h src/MetricsInfo.h ['MetricsBase', 'MetricsInfo', 'PainterInfo', 'TextMetricsInfo', 'ViewMetricsInfo', 'Changer', 'FontChanger', 'FontSetChanger', 'StyleChanger', 'ScriptChanger', 'FracChanger', 'ArrayChanger', 'ShapeChanger', 'WidthChanger', 'ColorChanger']
src/box.C src/Box.cpp Box
src/language.h src/Language.h ['Language', 'Languages']
src/output_plaintext.C src/output_plaintext.cpp NOCLASSES
src/coordcache.C src/CoordCache.cpp ['Point', 'CoordCache']
src/lyxlex.h src/LyXLex.h ['LyXLex', 'pushpophelper']
src/encoding.h src/Encoding.h ['Encoding', 'Encodings', 'const_iterator']
src/debug.h src/debug.h lyx_debug_trait
src/Chktex.h src/Chktex.h Chktex
src/output.C src/output.cpp NOCLASSES
src/output_latex.h src/output_latex.h NOCLASSES
src/sgml.C src/sgml.cpp NOCLASSES
src/pspell.h src/PSpell.h PSpell
src/bufferlist.C src/BufferList.cpp BufferList
src/author.h src/Author.h ['Author', 'AuthorList']
src/Bidi.C src/Bidi.cpp Bidi
src/exporter.C src/Exporter.cpp ['Exporter', 'ExportedFile', 'ExportData']
src/Floating.h src/Floating.h Floating
src/lyxvc.h src/LyXVC.h LyXVC
src/intl.h src/Intl.h Intl
src/lyxlength.C src/LyXLength.cpp LyXLength
src/LyXAction.h src/LyXAction.h LyXAction
src/SpellBase.h src/SpellBase.h SpellBase
src/TextMetrics.h src/TextMetrics.h TextMetrics
src/LaTeXFeatures.h src/LaTeXFeatures.h LaTeXFeatures
src/cursor.h src/LCursor.h LCursor
src/layout.h src/layout.h NOCLASSES
src/DepTable.h src/DepTable.h ['DepTable', 'dep_info']
src/lyx_cb.h src/lyx_cb.h NOCLASSES
src/vspace.h src/VSpace.h VSpace
src/PrinterParams.C src/PrinterParams.cpp PrinterParams
src/tex-strings.C src/tex-strings.cpp NOCLASSES
src/Thesaurus.h src/Thesaurus.h Thesaurus
src/Spacing.h src/Spacing.h Spacing
src/BranchList.C src/BranchList.cpp ['Branch', 'BranchList', 'BranchNamesEqual']
src/trans.h src/Trans.h Trans
src/output_plaintext.h src/output_plaintext.h NOCLASSES
src/box.h src/Box.h Box
src/coordcache.h src/CoordCache.h ['Point', 'CoordCache']
src/graph.C src/Graph.cpp ['Graph', 'Vertex']
src/lyxserver.C src/LyXServer.cpp ['LyXComm', 'LyXServer']
src/undo.C src/Undo.cpp Undo
src/output.h src/output.h NOCLASSES
src/text2.C src/text2.cpp NOCLASSES
src/ParagraphList_fwd.h src/ParagraphList_fwd.h NOCLASSES
src/sgml.h src/sgml.h NOCLASSES
src/converter.C src/Converter.cpp ['Converter', 'Converters']
src/factory.C src/factory.cpp NOCLASSES
src/RowList_fwd.h src/RowList_fwd.h NOCLASSES
src/buffer.C src/Buffer.cpp Buffer
src/bufferlist.h src/BufferList.h BufferList
src/CutAndPaste.C src/CutAndPaste.cpp NOCLASSES
src/Bidi.h src/Bidi.h Bidi
src/exporter.h src/Exporter.h ['Exporter', 'ExportedFile', 'ExportData']
src/InsetList.C src/InsetList.cpp ['InsetList', 'InsetTable']
src/FontIterator.C src/FontIterator.cpp FontIterator
src/session.C src/Session.cpp ['SessionSection', 'LastFilesSection', 'LastOpenedSection', 'LastFilePosSection', 'BookmarksSection', 'Bookmark', 'ToolbarSection', 'ToolbarInfo', 'SessionInfoSection', 'Session']
src/lyxlength.h src/LyXLength.h LyXLength
src/main.C src/main.cpp LyXLength
src/lyxsocket.C src/LyXServerSocket.cpp ['LyXServerSocket', 'LyXDataSocket']
src/errorlist.C src/ErrorList.cpp ['ErrorItem', 'ErrorList']
src/lyxtext.h src/LyXText.h LyXText
src/lyxfunc.C src/LyXFunc.cpp LyXFunc
src/format.C src/Format.cpp ['Format', 'Formats']
src/lengthcommon.C src/lengthcommon.cpp NOCLASSES
src/tex-strings.h src/tex-strings.h NOCLASSES
src/PrinterParams.h src/PrinterParams.h PrinterParams
src/insetiterator.C src/InsetIterator.cpp InsetIterator
src/vc-backend.C src/VCBackend.cpp ['VCS', 'RCS', 'CVS']
src/TocBackend.C src/TocBackend.cpp ['TocItem', 'TocList', 'TocBackend']
src/BranchList.h src/BranchList.h ['Branch', 'BranchList', 'BranchNamesEqual']
src/FuncStatus.C src/FuncStatus.cpp FuncStatus
src/Sectioning.C src/Section.cpp ['Section', 'SectioningList']
src/counters.C src/Counters.cpp ['Counter', 'Counters']
src/graph.h src/Graph.h ['Graph', 'Vertex']
src/lyxserver.h src/LyXServer.h ['LyXComm', 'LyXServer']
src/undo.h src/Undo.h Undo
src/paper.h src/paper.h NOCLASSES
src/converter.h src/Converter.h ['Converter', 'Converters']
src/factory.h src/factory.h NOCLASSES
src/LaTeX.C src/LaTeX.cpp ['TeXErrors', 'Error', 'Aux_Info', 'LaTeX']
src/bufferparams.C src/BufferParams.cpp ['BufferParams', 'MemoryTraits']
src/buffer.h src/Buffer.h Buffer
src/CutAndPaste.h src/CutAndPaste.h NOCLASSES
src/InsetList.h src/InsetList.h ['InsetList', 'InsetTable']
src/kbsequence.C src/kb_sequence.cpp kb_sequence
src/FontIterator.h src/FontIterator.h FontIterator
src/dimension.C src/Dimension.cpp Dimension
src/Bullet.C src/Bullet.cpp Bullet
src/texrow.C src/TexRow.cpp ['TexRow', 'RowItem']
src/session.h src/Session.h ['SessionSection', 'LastFilesSection', 'LastOpenedSection', 'LastFilePosSection', 'BookmarksSection', 'Bookmark', 'ToolbarSection', 'ToolbarInfo', 'SessionInfoSection', 'Session']
src/ParagraphParameters.C src/ParagraphParameters.cpp ParagraphParameters
src/lyxsocket.h src/LyXServerSocket.h ['LyXServerSocket', 'LyXDataSocket']
src/errorlist.h src/ErrorList.h ['ErrorItem', 'ErrorList']
src/tabular.C src/LyXTabular.cpp ['LyXTabular', 'ltType', 'cellstruct', 'rowstruct', 'columnstruct']
src/pariterator.C src/ParIterator.cpp ['ParIterator', 'ParConstIterator']
src/lyxfunc.h src/LyXFunc.h LyXFunc
src/format.h src/Format.h ['Format', 'Formats']
src/aspell_local.h src/ASpell_local.h ASpell
src/lengthcommon.h src/lengthcommon.h NOCLASSES
src/insetiterator.h src/InsetIterator.h InsetIterator
src/lyxrc.C src/LyXRC.cpp ['LyXRC', 'LyXRC_PreviewStatus']
src/TocBackend.h src/TocBackend.h ['TocItem', 'TocList', 'TocBackend']
src/vc-backend.h src/VCBackend.h ['VCS', 'RCS', 'CVS']
src/dispatchresult.h src/DispatchResult.h DispatchResult
src/lyxtextclasslist.C src/LyXTextClassList.cpp LyXTextClassList
src/paragraph_funcs.C src/paragraph_funcs.cpp NOCLASSES
src/funcrequest.C src/FuncRequest.cpp FuncRequest
src/FuncStatus.h src/FuncStatus.h FuncStatus
src/UpdateFlags.h src/UpdateFlags.h NOCLASSES
src/lyxrow.C src/Row.cpp ['Row', 'RowMetrics']
src/outputparams.C src/OutputParams.cpp OutputParams
src/counters.h src/Counters.h ['Counter', 'Counters']
src/Sectioning.h src/Section.h ['Section', 'SectioningList']
src/text3.C src/text3.cpp ['Section', 'SectioningList']
src/lyxlayout.C src/LyXLayout.cpp LyXLayout
src/lyxfind.C src/lyxfind.cpp NOCLASSES
src/bufferparams.h src/BufferParams.h ['BufferParams', 'MemoryTraits']
src/LaTeX.h src/LaTeX.h ['TeXErrors', 'Error', 'Aux_Info', 'LaTeX']
src/trans_decl.h src/KmodInfo.h KmodInfo
src/gettext.C src/gettext.cpp NOCLASSES
src/dimension.h src/Dimension.h Dimension
src/kbmap.C src/kb_keymap.cpp kb_keymap
src/kbsequence.h src/kb_sequence.h kb_sequence
src/rowpainter.C src/rowpainter.cpp NOCLASSES
src/ConverterCache.C src/ConverterCache.cpp ConverterCache
src/lyxgluelength.C src/LyXGlueLength.cpp LyXGlueLength
src/tex-accent.C src/tex-accent.cpp NOCLASSES
src/Bullet.h src/Bullet.h Bullet
src/texrow.h src/TexRow.h ['TexRow', 'RowItem']
src/ParagraphParameters.h src/ParagraphParameters.h ParagraphParameters
src/tabular.h src/LyXTabular.h ['LyXTabular', 'ltType', 'cellstruct', 'rowstruct', 'columnstruct']
src/importer.C src/Importer.cpp Importer
src/pariterator.h src/ParIterator.h ['ParIterator', 'ParConstIterator']
src/lyxfont.C src/LyXFont.cpp ['LyXFont', 'LyXFont_size']
src/BufferView.C src/BufferView.cpp BufferView
src/ParagraphList.h src/ParagraphList.h NOCLASSES
src/lyxrc.h src/LyXRC.h ['LyXRC', 'LyXRC_PreviewStatus']
src/lyxtextclass.C src/LyXTextClass.cpp ['CharStyle', 'LyXTextClass']
src/changes.C src/Changes.cpp ['Change', 'Changes', 'Range', 'ChangeRange']
src/lyxtextclasslist.h src/LyXTextClassList.h LyXTextClassList
src/paragraph_funcs.h src/paragraph_funcs.h NOCLASSES
src/funcrequest.h src/FuncRequest.h FuncRequest
src/lyxrow.h src/Row.h ['Row', 'RowMetrics']
src/outputparams.h src/OutputParams.h OutputParams
src/MenuBackend.C src/MenuBackend.cpp ['MenuItem', 'Menu', 'MenuBackend']
src/lyxlayout.h src/LyXLayout.h LyXLayout
src/lyxfind.h src/lyxfind.h NOCLASSES
src/gettext.h src/gettext.h NOCLASSES
src/LColor.C src/LColor.cpp ['LColor', 'LColor_color']
src/version.h src/version.h NOCLASSES
src/cursor_slice.C src/CursorSlice.cpp CursorSlice
src/WordLangTuple.h src/WordLangTuple.h WordLangTuple
src/lfuns.h src/lfuns.h NOCLASSES
src/trans_mgr.C src/TransState.cpp ['TransState', 'TransFSMData', 'TransInitState', 'TransDeadkeyState', 'TransCombinedState', 'TransFSM', 'TransManager']
src/kbmap.h src/kb_keymap.h kb_keymap
src/rowpainter.h src/rowpainter.h NOCLASSES
src/ConverterCache.h src/ConverterCache.h ConverterCache
src/lyxgluelength.h src/LyXGlueLength.h LyXGlueLength
src/output_docbook.C src/output_docbook.cpp NOCLASSES
src/tex-accent.h src/tex-accent.h NOCLASSES
src/FloatList.C src/FloatList.cpp FloatList
src/bufferview_funcs.C src/bufferview_funcs.cpp NOCLASSES
src/importer.h src/Importer.h Importer
src/messages.C src/Messages.cpp Messages
src/lyxfont.h src/LyXFont.h ['LyXFont', 'LyXFont_size']
src/BufferView.h src/BufferView.h BufferView
src/ToolbarBackend.C src/ToolbarBackend.cpp ['ToolbarItem', 'ToolbarInfo', 'ToolbarBackend']
src/lyx_sty.C src/lyx_sty.cpp NOCLASSES
src/lyxtextclass.h src/LyXTextClass.h ['CharStyle', 'LyXTextClass']
src/changes.h src/Changes.h ['Change', 'Changes', 'Range', 'ChangeRange']
src/aspell.C src/ASpell.cpp
src/lyx_main.C src/LyX.cpp LyX
src/MenuBackend.h src/MenuBackend.h ['MenuItem', 'Menu', 'MenuBackend']
src/toc.C src/toc.cpp NOCLASSES
src/boost.C src/boost.cpp NOCLASSES
src/ispell.C src/ISpell.cpp ISpell
src/mover.C src/Mover.cpp ['Mover', 'SpecialisedMover', 'Movers']
src/ParagraphMetrics.C src/ParagraphMetrics.cpp ParagraphMetrics
src/LColor.h src/LColor.h ['LColor', 'LColor_color']
src/cursor_slice.h src/CursorSlice.h CursorSlice
src/trans_mgr.h src/TransState.h ['TransState', 'TransFSMData', 'TransInitState', 'TransDeadkeyState', 'TransCombinedState', 'TransFSM', 'TransManager']
src/lyxlayout_ptr_fwd.h src/lyxlayout_ptr_fwd.h NOCLASSES
src/output_docbook.h src/output_docbook.h NOCLASSES
src/paragraph.C src/Paragraph.cpp ['FontSpan', 'Paragraph']
src/FloatList.h src/FloatList.h FloatList
src/bufferview_funcs.h src/bufferview_funcs.h NOCLASSES
src/buffer_funcs.C src/buffer_funcs.cpp NOCLASSES
src/Variables.C src/Variables.cpp Variables
src/messages.h src/Messages.h Messages
src/Color.C src/color.cpp NOCLASSES
src/dociterator.C src/DocIterator.cpp ['DocIterator', 'StableDocIterator']
src/ToolbarBackend.h src/ToolbarBackend.h ['ToolbarItem', 'ToolbarInfo', 'ToolbarBackend']
src/lyx_sty.h src/lyx_sty.h NOCLASSES
src/metricsinfo.C src/MetricsInfo.cpp ['MetricsBase', 'MetricsInfo', 'PainterInfo', 'TextMetricsInfo', 'ViewMetricsInfo', 'Changer', 'FontChanger', 'FontSetChanger', 'StyleChanger', 'ScriptChanger', 'FracChanger', 'ArrayChanger', 'ShapeChanger', 'WidthChanger', 'ColorChanger']
src/language.C src/Language.cpp ['Language', 'Languages']
src/text.C src/text.cpp ['Language', 'Languages']
src/lyx_main.h src/LyX.h LyX
src/lyxlex.C src/LyXLex.cpp ['LyXLex', 'pushpophelper']
src/encoding.C src/Encoding.cpp ['Encoding', 'Encodings', 'const_iterator']
src/debug.C src/debug.cpp lyx_debug_trait
src/Chktex.C src/Chktex.cpp Chktex
src/toc.h src/toc.h NOCLASSES
src/ispell.h src/ISpell.h ISpell
src/mover.h src/Mover.h ['Mover', 'SpecialisedMover', 'Movers']
src/output_latex.C src/output_latex.cpp NOCLASSES
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18019 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-26 04:46:45 +00:00