mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-13 11:52:45 +00:00
fix compile
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6959 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
3e2abfdd78
commit
9a3ed31897
src/frontends/controllers
@ -1,3 +1,7 @@
|
||||
2003-05-14 Lars Gullik Bjønnes <larsbj@gullik.net>
|
||||
|
||||
* ControlErrorList.C (goTo): use lyxerr not cout.
|
||||
|
||||
2003-05-12 Alfredo Braunstein: <abraunst@libero.it>
|
||||
|
||||
* ControlErrorList.[Ch]: added
|
||||
|
@ -16,29 +16,33 @@
|
||||
#include "buffer.h"
|
||||
#include "BufferView.h"
|
||||
#include "lyxtext.h"
|
||||
#include "debug.h"
|
||||
|
||||
|
||||
using std::endl;
|
||||
|
||||
ControlErrorList::ErrorItem::ErrorItem(string const & error,
|
||||
string const & description,
|
||||
int par_id, int pos_start, int pos_end)
|
||||
: error(error), description(description), par_id(par_id),
|
||||
|
||||
ControlErrorList::ErrorItem::ErrorItem(string const & error,
|
||||
string const & description,
|
||||
int par_id, int pos_start, int pos_end)
|
||||
: error(error), description(description), par_id(par_id),
|
||||
pos_start(pos_start), pos_end(pos_end)
|
||||
{}
|
||||
|
||||
ControlErrorList::ControlErrorList(Dialog & d)
|
||||
|
||||
ControlErrorList::ControlErrorList(Dialog & d)
|
||||
: Dialog::Controller(d), current_(0)
|
||||
{}
|
||||
|
||||
|
||||
void ControlErrorList::clearParams()
|
||||
void ControlErrorList::clearParams()
|
||||
{
|
||||
logfilename_.clear();
|
||||
clearErrors();
|
||||
}
|
||||
|
||||
|
||||
std::vector<ControlErrorList::ErrorItem> const &
|
||||
std::vector<ControlErrorList::ErrorItem> const &
|
||||
ControlErrorList::ErrorList() const
|
||||
{
|
||||
return ErrorList_;
|
||||
@ -51,7 +55,7 @@ int ControlErrorList::currentItem() const
|
||||
}
|
||||
|
||||
|
||||
bool ControlErrorList::initialiseParams(string const &)
|
||||
bool ControlErrorList::initialiseParams(string const &)
|
||||
{
|
||||
logfilename_ = kernel().buffer()->getLogName().second;
|
||||
clearErrors();
|
||||
@ -115,7 +119,7 @@ void ControlErrorList::goTo(int item)
|
||||
ParagraphList::iterator pit = buf->getParFromID(err.par_id);
|
||||
|
||||
if (pit == bv->text->ownerParagraphs().end()) {
|
||||
cout << "par id not found" << endl;
|
||||
lyxerr << "par id not found" << endl;
|
||||
return;
|
||||
}
|
||||
|
||||
@ -124,7 +128,7 @@ void ControlErrorList::goTo(int item)
|
||||
if (err.pos_end > pit->size() || range <= 0)
|
||||
range = pit->size() - err.pos_start;
|
||||
|
||||
//now make the selection
|
||||
// Now make the selection.
|
||||
bv->insetUnlock();
|
||||
bv->toggleSelection();
|
||||
bv->text->clearSelection();
|
||||
|
@ -31,7 +31,7 @@ public:
|
||||
int par_id;
|
||||
int pos_start;
|
||||
int pos_end;
|
||||
ErrorItem(string const &, string const &, int, int, int);
|
||||
ErrorItem(string const &, string const &, int, int, int);
|
||||
};
|
||||
///
|
||||
ControlErrorList(Dialog & parent);
|
||||
|
Loading…
x
Reference in New Issue
Block a user