2001-03-06 10:20:33 +00:00
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
#include "lyxtext.h"
|
|
|
|
#include "lyxfind.h"
|
2002-08-08 21:08:02 +00:00
|
|
|
#include "paragraph.h"
|
2002-05-23 12:08:47 +00:00
|
|
|
#include "frontends/LyXView.h"
|
2001-11-26 10:19:58 +00:00
|
|
|
#include "frontends/Alert.h"
|
2001-03-06 10:20:33 +00:00
|
|
|
#include "support/textutils.h"
|
|
|
|
#include "support/lstrings.h"
|
|
|
|
#include "BufferView.h"
|
|
|
|
#include "buffer.h"
|
2001-12-10 12:50:09 +00:00
|
|
|
#include "debug.h"
|
2001-04-17 15:15:59 +00:00
|
|
|
#include "gettext.h"
|
2002-07-26 09:50:16 +00:00
|
|
|
#include "insets/insettext.h"
|
2003-02-08 19:18:01 +00:00
|
|
|
#include "changes.h"
|
2001-03-06 10:20:33 +00:00
|
|
|
|
2003-06-30 23:56:22 +00:00
|
|
|
using namespace lyx::support;
|
|
|
|
|
2001-11-27 10:34:16 +00:00
|
|
|
using lyx::pos_type;
|
2003-02-08 19:18:01 +00:00
|
|
|
using std::endl;
|
2001-11-27 10:34:16 +00:00
|
|
|
|
2003-07-27 12:02:58 +00:00
|
|
|
namespace lyx {
|
|
|
|
namespace find {
|
2001-07-20 14:18:48 +00:00
|
|
|
|
2003-07-27 12:02:58 +00:00
|
|
|
namespace {
|
2001-07-20 14:18:48 +00:00
|
|
|
|
2003-07-27 12:02:58 +00:00
|
|
|
// returns true if the specified string is at the specified position
|
|
|
|
bool isStringInText(Paragraph const & par, pos_type pos,
|
|
|
|
string const & str, bool const & cs,
|
|
|
|
bool const & mw)
|
|
|
|
{
|
|
|
|
string::size_type size = str.length();
|
|
|
|
pos_type i = 0;
|
|
|
|
pos_type parsize = par.size();
|
|
|
|
while (((pos + i) < parsize)
|
|
|
|
&& (string::size_type(i) < size)
|
|
|
|
&& (cs ? (str[i] == par.getChar(pos + i))
|
|
|
|
: (uppercase(str[i]) == uppercase(par.getChar(pos + i))))) {
|
|
|
|
++i;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (size == string::size_type(i)) {
|
|
|
|
// if necessary, check whether string matches word
|
|
|
|
if (!mw)
|
|
|
|
return true;
|
|
|
|
if ((pos <= 0 || !IsLetterCharOrDigit(par.getChar(pos - 1)))
|
|
|
|
&& (pos + pos_type(size) >= parsize
|
|
|
|
|| !IsLetterCharOrDigit(par.getChar(pos + size)))) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
// forward search:
|
|
|
|
// if the string can be found: return true and set the cursor to
|
|
|
|
// the new position, cs = casesensitive, mw = matchword
|
|
|
|
SearchResult searchForward(BufferView * bv, LyXText * text, string const & str,
|
|
|
|
bool const & cs, bool const & mw)
|
|
|
|
{
|
|
|
|
ParagraphList::iterator pit = text->cursor.par();
|
|
|
|
ParagraphList::iterator pend = text->ownerParagraphs().end();
|
|
|
|
pos_type pos = text->cursor.pos();
|
|
|
|
UpdatableInset * inset;
|
|
|
|
|
|
|
|
while (pit != pend && !isStringInText(*pit, pos, str, cs, mw)) {
|
|
|
|
if (pos < pit->size()
|
|
|
|
&& pit->isInset(pos)
|
|
|
|
&& (inset = (UpdatableInset *)pit->getInset(pos))
|
|
|
|
&& inset->isTextInset()
|
|
|
|
&& inset->searchForward(bv, str, cs, mw))
|
|
|
|
return SR_FOUND_NOUPDATE;
|
|
|
|
|
|
|
|
if (++pos >= pit->size()) {
|
|
|
|
++pit;
|
|
|
|
pos = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (pit != pend) {
|
|
|
|
text->setCursor(pit, pos);
|
|
|
|
return SR_FOUND;
|
|
|
|
} else
|
|
|
|
return SR_NOT_FOUND;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// backward search:
|
|
|
|
// if the string can be found: return true and set the cursor to
|
|
|
|
// the new position, cs = casesensitive, mw = matchword
|
|
|
|
SearchResult searchBackward(BufferView * bv, LyXText * text,
|
|
|
|
string const & str,
|
|
|
|
bool const & cs, bool const & mw)
|
|
|
|
{
|
|
|
|
ParagraphList::iterator pit = text->cursor.par();
|
|
|
|
ParagraphList::iterator pbegin = text->ownerParagraphs().begin();
|
|
|
|
pos_type pos = text->cursor.pos();
|
|
|
|
|
|
|
|
// skip past a match at the current cursor pos
|
|
|
|
if (pos > 0) {
|
|
|
|
--pos;
|
|
|
|
} else if (pit != pbegin) {
|
|
|
|
--pit;
|
|
|
|
pos = pit->size();
|
|
|
|
} else {
|
|
|
|
return SR_NOT_FOUND;
|
|
|
|
}
|
|
|
|
|
|
|
|
while (true) {
|
|
|
|
if (pos < pit->size()) {
|
|
|
|
if (pit->isInset(pos) && pit->getInset(pos)->isTextInset()) {
|
|
|
|
UpdatableInset * inset = (UpdatableInset *)pit->getInset(pos);
|
|
|
|
if (inset->searchBackward(bv, str, cs, mw))
|
|
|
|
return SR_FOUND_NOUPDATE;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (isStringInText(*pit, pos, str, cs, mw)) {
|
|
|
|
text->setCursor(pit, pos);
|
|
|
|
return SR_FOUND;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (pos == 0 && pit == pbegin)
|
|
|
|
break;
|
|
|
|
|
|
|
|
if (pos > 0) {
|
|
|
|
--pos;
|
|
|
|
} else if (pit != pbegin) {
|
|
|
|
--pit;
|
|
|
|
pos = pit->size();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return SR_NOT_FOUND;
|
|
|
|
}
|
|
|
|
|
|
|
|
} // anon namespace
|
2001-07-20 14:18:48 +00:00
|
|
|
|
2003-07-27 12:02:58 +00:00
|
|
|
|
|
|
|
int replace(BufferView * bv,
|
2002-03-21 17:27:08 +00:00
|
|
|
string const & searchstr, string const & replacestr,
|
|
|
|
bool forward, bool casesens, bool matchwrd, bool replaceall,
|
|
|
|
bool once)
|
2001-03-06 10:20:33 +00:00
|
|
|
{
|
2002-03-21 17:27:08 +00:00
|
|
|
if (!bv->available() || bv->buffer()->isReadonly())
|
2001-07-20 14:18:48 +00:00
|
|
|
return 0;
|
2002-03-21 17:27:08 +00:00
|
|
|
|
2001-07-20 14:18:48 +00:00
|
|
|
// CutSelection cannot cut a single space, so we have to stop
|
|
|
|
// in order to avoid endless loop :-(
|
|
|
|
if (searchstr.length() == 0
|
2003-03-29 10:29:38 +00:00
|
|
|
|| (searchstr.length() == 1 && searchstr[0] == ' ')) {
|
|
|
|
#ifdef WITH_WARNINGS
|
2003-04-16 00:39:24 +00:00
|
|
|
#warning BLECH. If we have an LFUN for replace, we can sort of fix this bogosity
|
2003-03-29 10:29:38 +00:00
|
|
|
#endif
|
|
|
|
Alert::error(_("Cannot replace"),
|
|
|
|
_("You cannot replace a single space or "
|
|
|
|
"an empty character."));
|
2001-07-20 14:18:48 +00:00
|
|
|
return 0;
|
|
|
|
}
|
2002-03-21 17:27:08 +00:00
|
|
|
|
|
|
|
// now we can start searching for the first
|
2001-07-20 14:18:48 +00:00
|
|
|
// start at top if replaceall
|
2002-06-18 15:44:30 +00:00
|
|
|
LyXText * text = bv->getLyXText();
|
2001-07-20 14:18:48 +00:00
|
|
|
bool fw = forward;
|
|
|
|
if (replaceall) {
|
2001-08-01 15:42:53 +00:00
|
|
|
text->clearSelection();
|
2002-06-18 15:44:30 +00:00
|
|
|
bv->unlockInset(bv->theLockingInset());
|
|
|
|
text = bv->text;
|
2003-03-17 16:25:00 +00:00
|
|
|
text->cursorTop();
|
2001-07-20 14:18:48 +00:00
|
|
|
// override search direction because we search top to bottom
|
|
|
|
fw = true;
|
|
|
|
}
|
2002-03-21 17:27:08 +00:00
|
|
|
|
2001-07-20 14:18:48 +00:00
|
|
|
// if nothing selected or selection does not equal search string
|
|
|
|
// search and select next occurance and return if no replaceall
|
2001-08-13 10:09:50 +00:00
|
|
|
string str1;
|
|
|
|
string str2;
|
|
|
|
if (casesens) {
|
|
|
|
str1 = searchstr;
|
2001-09-12 10:41:25 +00:00
|
|
|
str2 = text->selectionAsString(bv->buffer(), false);
|
2001-08-13 10:09:50 +00:00
|
|
|
} else {
|
|
|
|
str1 = lowercase(searchstr);
|
2001-09-12 10:41:25 +00:00
|
|
|
str2 = lowercase(text->selectionAsString(bv->buffer(), false));
|
2001-08-13 10:09:50 +00:00
|
|
|
}
|
|
|
|
if (str1 != str2) {
|
2003-07-27 12:02:58 +00:00
|
|
|
if (!find(bv, searchstr, fw, casesens, matchwrd) ||
|
2003-04-16 00:39:24 +00:00
|
|
|
!replaceall) {
|
2001-07-20 14:18:48 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
2001-08-13 10:09:50 +00:00
|
|
|
|
2001-08-01 15:42:53 +00:00
|
|
|
bool found = false;
|
2001-07-20 14:18:48 +00:00
|
|
|
int replace_count = 0;
|
|
|
|
do {
|
2002-06-18 15:44:30 +00:00
|
|
|
text = bv->getLyXText();
|
2002-07-26 09:50:16 +00:00
|
|
|
// We have to do this check only because mathed insets don't
|
|
|
|
// return their own LyXText but the LyXText of it's parent!
|
|
|
|
if (!bv->theLockingInset() ||
|
|
|
|
((text != bv->text) &&
|
2003-04-16 00:39:24 +00:00
|
|
|
(text->inset_owner == text->inset_owner->getLockingInset()))) {
|
2002-07-25 15:42:35 +00:00
|
|
|
bv->toggleSelection(false);
|
2003-03-17 16:25:00 +00:00
|
|
|
text->replaceSelectionWithString(replacestr);
|
|
|
|
text->setSelectionRange(replacestr.length());
|
2002-07-25 15:42:35 +00:00
|
|
|
++replace_count;
|
|
|
|
}
|
2001-07-29 10:42:11 +00:00
|
|
|
if (!once)
|
2003-07-27 12:02:58 +00:00
|
|
|
found = find(bv, searchstr, fw, casesens, matchwrd);
|
2001-07-29 10:42:11 +00:00
|
|
|
} while (!once && replaceall && found);
|
2002-03-21 17:27:08 +00:00
|
|
|
|
2003-03-19 14:45:22 +00:00
|
|
|
// FIXME: should be called via an LFUN
|
|
|
|
bv->buffer()->markDirty();
|
|
|
|
bv->fitCursor();
|
2003-08-04 09:06:35 +00:00
|
|
|
bv->update();
|
2003-03-19 14:45:22 +00:00
|
|
|
|
2001-07-20 14:18:48 +00:00
|
|
|
return replace_count;
|
2001-03-06 10:20:33 +00:00
|
|
|
}
|
2002-06-24 20:28:12 +00:00
|
|
|
|
2001-03-06 10:20:33 +00:00
|
|
|
|
2003-07-27 12:02:58 +00:00
|
|
|
bool find(BufferView * bv,
|
2002-03-21 17:27:08 +00:00
|
|
|
string const & searchstr, bool forward,
|
2002-06-18 15:44:30 +00:00
|
|
|
bool casesens, bool matchwrd)
|
2001-03-06 10:20:33 +00:00
|
|
|
{
|
2001-07-20 14:18:48 +00:00
|
|
|
if (!bv->available() || searchstr.empty())
|
|
|
|
return false;
|
2002-03-21 17:27:08 +00:00
|
|
|
|
2002-06-18 15:44:30 +00:00
|
|
|
if (bv->theLockingInset()) {
|
2001-07-20 14:18:48 +00:00
|
|
|
bool found = forward ?
|
|
|
|
bv->theLockingInset()->searchForward(bv, searchstr, casesens, matchwrd) :
|
|
|
|
bv->theLockingInset()->searchBackward(bv, searchstr, casesens, matchwrd);
|
2002-06-18 15:44:30 +00:00
|
|
|
// We found the stuff inside the inset so we don't have to
|
|
|
|
// do anything as the inset did all the update for us!
|
2001-07-20 14:18:48 +00:00
|
|
|
if (found)
|
2002-06-18 15:44:30 +00:00
|
|
|
return true;
|
|
|
|
// We now are in the main text but if we did a forward
|
|
|
|
// search we have to put the cursor behind the inset.
|
|
|
|
if (forward) {
|
2003-03-17 16:25:00 +00:00
|
|
|
bv->text->cursorRight(true);
|
2001-08-01 15:42:53 +00:00
|
|
|
}
|
2001-07-20 14:18:48 +00:00
|
|
|
}
|
2002-06-18 15:44:30 +00:00
|
|
|
// If we arrive here we are in the main text again so we
|
|
|
|
// just start searching from the root LyXText at the position
|
|
|
|
// we are!
|
|
|
|
LyXText * text = bv->text;
|
|
|
|
|
2003-04-08 00:02:32 +00:00
|
|
|
|
2002-06-18 15:44:30 +00:00
|
|
|
if (text->selection.set())
|
|
|
|
text->cursor = forward ?
|
|
|
|
text->selection.end : text->selection.start;
|
|
|
|
|
|
|
|
bv->toggleSelection();
|
|
|
|
text->clearSelection();
|
2002-06-24 20:28:12 +00:00
|
|
|
|
2002-06-18 15:44:30 +00:00
|
|
|
SearchResult result = forward ?
|
2003-07-27 12:02:58 +00:00
|
|
|
searchForward(bv, text, searchstr, casesens, matchwrd) :
|
|
|
|
searchBackward(bv, text, searchstr, casesens, matchwrd);
|
2001-07-20 14:18:48 +00:00
|
|
|
|
|
|
|
bool found = true;
|
2002-06-18 15:44:30 +00:00
|
|
|
// If we found the cursor inside an inset we will get back
|
|
|
|
// SR_FOUND_NOUPDATE and we don't have to do anything as the
|
|
|
|
// inset did it already.
|
2001-07-20 14:18:48 +00:00
|
|
|
if (result == SR_FOUND) {
|
2002-06-18 15:44:30 +00:00
|
|
|
bv->unlockInset(bv->theLockingInset());
|
2003-03-17 16:25:00 +00:00
|
|
|
text->setSelectionRange(searchstr.length());
|
2001-07-20 14:18:48 +00:00
|
|
|
bv->toggleSelection(false);
|
2002-04-12 09:02:21 +00:00
|
|
|
} else if (result == SR_NOT_FOUND) {
|
2002-06-18 15:44:30 +00:00
|
|
|
bv->unlockInset(bv->theLockingInset());
|
2001-07-20 14:18:48 +00:00
|
|
|
found = false;
|
2002-04-12 09:02:21 +00:00
|
|
|
}
|
2003-03-19 14:45:22 +00:00
|
|
|
bv->fitCursor();
|
2003-08-04 09:06:35 +00:00
|
|
|
bv->update();
|
2003-03-19 14:45:22 +00:00
|
|
|
|
2001-07-20 14:18:48 +00:00
|
|
|
return found;
|
2001-03-06 10:20:33 +00:00
|
|
|
}
|
2002-06-24 20:28:12 +00:00
|
|
|
|
2001-03-06 10:20:33 +00:00
|
|
|
|
2003-07-27 12:02:58 +00:00
|
|
|
SearchResult find(BufferView * bv, LyXText * text,
|
2002-06-18 15:44:30 +00:00
|
|
|
string const & searchstr, bool forward,
|
|
|
|
bool casesens, bool matchwrd)
|
|
|
|
{
|
|
|
|
if (text->selection.set())
|
|
|
|
text->cursor = forward ?
|
|
|
|
text->selection.end : text->selection.start;
|
|
|
|
|
|
|
|
bv->toggleSelection();
|
|
|
|
text->clearSelection();
|
|
|
|
|
|
|
|
SearchResult result = forward ?
|
2003-07-27 12:02:58 +00:00
|
|
|
searchForward(bv, text, searchstr, casesens, matchwrd) :
|
|
|
|
searchBackward(bv, text, searchstr, casesens, matchwrd);
|
2002-06-18 15:44:30 +00:00
|
|
|
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
2001-03-06 10:20:33 +00:00
|
|
|
|
2002-06-18 15:44:30 +00:00
|
|
|
|
2003-03-04 09:27:27 +00:00
|
|
|
|
2003-02-08 19:18:01 +00:00
|
|
|
SearchResult nextChange(BufferView * bv, LyXText * text, pos_type & length)
|
|
|
|
{
|
2003-04-16 00:39:24 +00:00
|
|
|
ParagraphList::iterator pit = text->cursor.par();
|
|
|
|
ParagraphList::iterator pend = text->ownerParagraphs().end();
|
2003-02-08 19:18:01 +00:00
|
|
|
pos_type pos = text->cursor.pos();
|
|
|
|
|
2003-04-16 00:39:24 +00:00
|
|
|
while (pit != pend) {
|
|
|
|
pos_type parsize = pit->size();
|
|
|
|
|
|
|
|
if (pos < parsize) {
|
|
|
|
if ((!parsize || pos != parsize)
|
|
|
|
&& pit->lookupChange(pos) != Change::UNCHANGED)
|
|
|
|
break;
|
2003-02-08 19:18:01 +00:00
|
|
|
|
2003-04-16 00:39:24 +00:00
|
|
|
if (pit->isInset(pos) && pit->getInset(pos)->isTextInset()) {
|
|
|
|
UpdatableInset * inset = (UpdatableInset *)pit->getInset(pos);
|
|
|
|
if (inset->nextChange(bv, length))
|
|
|
|
return SR_FOUND_NOUPDATE;
|
|
|
|
}
|
2003-02-08 19:18:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
++pos;
|
|
|
|
|
2003-04-16 00:39:24 +00:00
|
|
|
if (pos >= parsize) {
|
|
|
|
++pit;
|
2003-02-08 19:18:01 +00:00
|
|
|
pos = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2003-04-16 00:39:24 +00:00
|
|
|
if (pit == pend)
|
2003-02-08 19:18:01 +00:00
|
|
|
return SR_NOT_FOUND;
|
2003-04-16 00:39:24 +00:00
|
|
|
|
|
|
|
text->setCursor(pit, pos);
|
|
|
|
Change orig_change = pit->lookupChangeFull(pos);
|
|
|
|
pos_type parsize = pit->size();
|
|
|
|
pos_type end = pos;
|
|
|
|
|
|
|
|
for (; end != parsize; ++end) {
|
|
|
|
Change change = pit->lookupChangeFull(end);
|
|
|
|
if (change != orig_change) {
|
|
|
|
// slight UI optimisation: for replacements, we get
|
|
|
|
// text like : _old_new. Consider that as one change.
|
|
|
|
if (!(orig_change.type == Change::DELETED &&
|
|
|
|
change.type == Change::INSERTED))
|
|
|
|
break;
|
|
|
|
}
|
2003-02-08 19:18:01 +00:00
|
|
|
}
|
2003-04-16 00:39:24 +00:00
|
|
|
length = end - pos;
|
|
|
|
return SR_FOUND;
|
2003-02-08 19:18:01 +00:00
|
|
|
}
|
2003-03-04 09:27:27 +00:00
|
|
|
|
|
|
|
|
2003-02-08 19:18:01 +00:00
|
|
|
SearchResult findNextChange(BufferView * bv, LyXText * text, pos_type & length)
|
|
|
|
{
|
|
|
|
if (text->selection.set())
|
|
|
|
text->cursor = text->selection.end;
|
|
|
|
|
|
|
|
bv->toggleSelection();
|
|
|
|
text->clearSelection();
|
|
|
|
|
|
|
|
return nextChange(bv, text, length);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool findNextChange(BufferView * bv)
|
|
|
|
{
|
|
|
|
if (!bv->available())
|
|
|
|
return false;
|
|
|
|
|
|
|
|
pos_type length;
|
2003-03-04 09:27:27 +00:00
|
|
|
|
2003-02-08 19:18:01 +00:00
|
|
|
if (bv->theLockingInset()) {
|
|
|
|
bool found = bv->theLockingInset()->nextChange(bv, length);
|
2003-03-04 09:27:27 +00:00
|
|
|
|
2003-02-08 19:18:01 +00:00
|
|
|
// We found the stuff inside the inset so we don't have to
|
|
|
|
// do anything as the inset did all the update for us!
|
|
|
|
if (found)
|
|
|
|
return true;
|
2003-03-04 09:27:27 +00:00
|
|
|
|
2003-02-08 19:18:01 +00:00
|
|
|
// We now are in the main text but if we did a forward
|
|
|
|
// search we have to put the cursor behind the inset.
|
2003-03-17 16:25:00 +00:00
|
|
|
bv->text->cursorRight(true);
|
2003-02-08 19:18:01 +00:00
|
|
|
}
|
|
|
|
// If we arrive here we are in the main text again so we
|
|
|
|
// just start searching from the root LyXText at the position
|
|
|
|
// we are!
|
|
|
|
LyXText * text = bv->text;
|
|
|
|
|
|
|
|
if (text->selection.set())
|
|
|
|
text->cursor = text->selection.end;
|
|
|
|
|
|
|
|
bv->toggleSelection();
|
|
|
|
text->clearSelection();
|
2003-03-04 09:27:27 +00:00
|
|
|
|
2003-02-08 19:18:01 +00:00
|
|
|
SearchResult result = nextChange(bv, text, length);
|
|
|
|
|
|
|
|
bool found = true;
|
2003-03-04 09:27:27 +00:00
|
|
|
|
2003-02-08 19:18:01 +00:00
|
|
|
// If we found the cursor inside an inset we will get back
|
|
|
|
// SR_FOUND_NOUPDATE and we don't have to do anything as the
|
|
|
|
// inset did it already.
|
|
|
|
if (result == SR_FOUND) {
|
|
|
|
bv->unlockInset(bv->theLockingInset());
|
2003-03-17 16:25:00 +00:00
|
|
|
text->setSelectionRange(length);
|
2003-02-08 19:18:01 +00:00
|
|
|
bv->toggleSelection(false);
|
|
|
|
} else if (result == SR_NOT_FOUND) {
|
|
|
|
bv->unlockInset(bv->theLockingInset());
|
|
|
|
found = false;
|
|
|
|
}
|
|
|
|
|
2003-03-19 14:45:22 +00:00
|
|
|
bv->fitCursor();
|
2003-08-04 09:06:35 +00:00
|
|
|
bv->update();
|
2003-03-19 14:45:22 +00:00
|
|
|
|
2003-02-08 19:18:01 +00:00
|
|
|
return found;
|
|
|
|
}
|
2003-03-04 09:27:27 +00:00
|
|
|
|
2003-07-27 12:02:58 +00:00
|
|
|
} // find namespace
|
|
|
|
} // lyx namespace
|