}
-WorkArea * BufferView::workarea() const
-{
- return &pimpl_->workarea_;
-}
-
-
LyXView * BufferView::owner() const
{
return pimpl_->owner_;
}
+string const BufferView::getClipboard() const
+{
+ return pimpl_->workarea_.getClipboard();
+}
+
+
void BufferView::stuffClipboard(string const & stuff) const
{
pimpl_->stuffClipboard(stuff);
///
LyXScreen * screen() const;
///
- WorkArea * workarea() const;
- ///
void buffer(Buffer * b);
///
void resize(int, int, int, int);
///
bool ChangeCitationsIfUnique(string const & from, string const & to);
///
+ string const getClipboard() const;
+ ///
void pasteClipboard(bool asPara);
///
void stuffClipboard(string const &) const;
+2001-04-28 Kayvan A. Sylvan <kayvan@sylvan.com>
+
+ * LaTeX.C (run): Fix problem with --export code.
+
+2001-04-26 Angus Leeming <a.leeming@ic.ac.uk>
+
+ * BufferView.[Ch] (workarea): removed.
+ (getClipboard) new method; wrapper for workarea()->getClipboard()
+
+ * ToolbarDefaults.C (read): removed final lex.next() command; it's a
+ bug.
+
+ * WorkArea.h (width, height, xpos, ypos): These methods all
+ returned the dimensions of the work_area sub-area of WorkArea,
+ resulting in a position error if the WorkArea were resized. Now
+ return the dimensions of the entire WorkArea.
+
+ * lyx_main.C (ReadUIFile): don't print out spurious warnings.
+
2001-05-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* LaTeX.C (deplog): correct the syntax of regex reg1
++count;
lyxerr[Debug::LATEX] << "Run #" << count << endl;
- lfun->Dispatch(LFUN_MESSAGE, _("LaTeX run number") + ' ' + tostr(count));
+ if (lfun) lfun->Dispatch(LFUN_MESSAGE, _("LaTeX run number") + ' ' + tostr(count));
//WriteStatus(lfun, string(_("LaTeX run number ")) + tostr(count));
this->operator()();
if (head.haschanged(OnlyFilename(ChangeExtension(file, ".idx")))) {
// no checks for now
lyxerr[Debug::LATEX] << "Running MakeIndex." << endl;
- lfun->Dispatch(LFUN_MESSAGE, _("Running MakeIndex."));
+ if (lfun) lfun->Dispatch(LFUN_MESSAGE, _("Running MakeIndex."));
// WriteStatus(minib, _("Running MakeIndex."));
rerun = runMakeIndex(OnlyFilename(ChangeExtension(file, ".idx")));
}
// tags is found -> run bibtex and set rerun = true;
// no checks for now
lyxerr[Debug::LATEX] << "Running BibTeX." << endl;
- lfun->Dispatch(LFUN_MESSAGE, _("Running BibTeX."));
+ if (lfun) lfun->Dispatch(LFUN_MESSAGE, _("Running BibTeX."));
//WriteStatus(minib, _("Running BibTeX."));
updateBibtexDependencies(head, bibtex_info);
rerun |= runBibTeX(bibtex_info);
<< "Dep. file has changed or rerun requested" << endl;
lyxerr[Debug::LATEX]
<< "Run #" << count << endl;
- lfun->Dispatch(LFUN_MESSAGE, _("LaTeX run number") + ' ' + tostr(count));
+ if (lfun) lfun->Dispatch(LFUN_MESSAGE, _("LaTeX run number") + ' ' + tostr(count));
// WriteStatus(minib,
// string(_("LaTeX run number ")) + tostr(count));
this->operator()();
if (head.haschanged(OnlyFilename(ChangeExtension(file, ".idx")))) {
// no checks for now
lyxerr[Debug::LATEX] << "Running MakeIndex." << endl;
- lfun->Dispatch(LFUN_MESSAGE, _("Running MakeIndex."));
+ if (lfun) lfun->Dispatch(LFUN_MESSAGE, _("Running MakeIndex."));
//WriteStatus(minib, _("Running MakeIndex."));
rerun = runMakeIndex(OnlyFilename(ChangeExtension(file, ".idx")));
}
rerun = false;
++count;
lyxerr[Debug::LATEX] << "Run #" << count << endl;
- lfun->Dispatch(LFUN_MESSAGE, _("LaTeX run numger") + ' ' + tostr(count));
+ if (lfun) lfun->Dispatch(LFUN_MESSAGE, _("LaTeX run numger") + ' ' + tostr(count));
// WriteStatus(minib, string(_("LaTeX run number ")) + tostr(count));
this->operator()();
scanres = scanLogFile(terr);
if (lyxerr.debugging(Debug::PARSER))
lex.printTable(lyxerr);
-
- while (lex.IsOK() && !quit) {
+ while (lex.IsOK() && !quit) {
switch (lex.lex()) {
case TO_ADD:
if (lex.next()) {
func = lex.GetString();
- lyxerr[Debug::GUI]
+ lyxerr[Debug::PARSER]
<< "Toolbar::read TO_ADD func: `"
<< func << "'" << endl;
add(func);
}
}
lex.popTable();
- lex.next();
}
///
int workWidth() const { return work_area->w; }
///
- unsigned int width() const { return work_area->w + scrollbar->w; }
+ //unsigned int width() const { return work_area->w + scrollbar->w; }
+ unsigned int width() const { return backgroundbox->w + 15; }
///
- unsigned int height() const { return work_area->h; }
+ //unsigned int height() const { return work_area->h; }
+ unsigned int height() const { return backgroundbox->h; }
///
- int xpos() const { return work_area->x; }
+ //int xpos() const { return work_area->x; }
+ int xpos() const { return backgroundbox->x; }
///
- int ypos() const { return work_area->y; }
+ //int ypos() const { return work_area->y; }
+ int ypos() const { return backgroundbox->y; }
///
void resize(int xpos, int ypos, int width, int height);
///
+2001-04-27 Angus Leeming <a.leeming@ic.ac.uk>
+
+ * insettabular.C (LocalDispatch):
+ * insettext.C (LocalDispatch): getClipboard() is now a BufferView
+ method
+
2001-05-03 Lars Gullik Bjønnes <larsbj@birdstep.com>
* insettext.C: remvoe !NEW_INSETS cruft
break;
case LFUN_PASTESELECTION:
{
- string clip(bv->workarea()->getClipboard());
+ string clip(bv->getClipboard());
if (clip.empty())
break;
break;
case LFUN_PASTESELECTION:
{
- string clip(bv->workarea()->getClipboard());
+ string clip(bv->getClipboard());
if (clip.empty())
break;
break;
default:
- lex.printError("LyX::ReadUFile: "
- "Unknown menu tag: `$$Token'");
+ if(!strip(lex.GetString()).empty())
+ lex.printError("LyX::ReadUIFile: "
+ "Unknown menu tag: `$$Token'");
break;
}
}