inset->dispatch(cur, cmd);
// Now dispatch to the temporary cursor. If the real cursor should
- // be modified, the inset's dispatch has to do so explicitly.
+ // be modified, the inset's dispatch has to do so explicitly.
if (!res.dispatched())
res = cur.dispatch(cmd);
* LaTeXFeatures.[Ch]: change buffer_ to a pointer and add accessor
setBuffer()
-
+
2004-04-07 Alfredo Braunstein <abraunst@lyx.org>
* BufferView.C (setCursor): call redoParagraph (some insets could
- have been opened)
+ have been opened)
(putSelectionAt): remove the 'double update' trick
* BufferView_pimpl.C (fitCursor): call refreshPar
(selHandle): set noUpdate when appropriate
* lyxfunc.C (dispatch): track if we need an update
-
+
* metricsinfo.[Ch]: PainterInfo receive a Painter & on construction
* rowpainter.[Ch] (RowPainter): remove superfluous xo_ parameter
(paintSelection): cheap optimization, do not call cursorX when not
- needed
+ needed
(paintPars): change signature
(refreshPar): add
(paintText): adjust
* cursor_slice.C: more agressive assert
* lyxfunc.C:
- * BufferView_pimpl.C: rework mouse event dispatch
+ * BufferView_pimpl.C: rework mouse event dispatch
* dociterator.C:
* paragraph.C:
* BufferView_pimpl.[Ch] (getStatus)
* BufferView.[Ch] (getStatus): add
* lyxfunc.C (getStatus): move lfuns handled in
- BufferView::dispatch to te function above
+ BufferView::dispatch to te function above
* Cursor.C (setSelection): set selection() = true
2004-04-01 Alfredo Braunstein <abraunst@lyx.org>
* lyxfunc.C (dispatch): the specialization Dialogs::showDocument
has died. Fall through to the generic Dialogs::show("document").
-
+
2004-03-30 Angus Leeming <leeming@lyx.org>
* lfuns.h:
2004-03-30 Alfredo Braunstein <abraunst@lyx.org>
- * dociterator.[Ch]: add an inset_ member
+ * dociterator.[Ch]: add an inset_ member
(backwardPos): implemented
(backwardPos, forwardPos): use inset_ when the stack is empty.
(doc_iterator_begin, doc_iterator_end): implemented
* pariterator.[Ch]: adjust, add begin, end
* insetiterator.[Ch]: adjust, add begin, end
- * cursor.C:
+ * cursor.C:
* document.C:
* BufferView.C:
* BufferView_pimpl.C:
* buffer.C: increment file format to 232.
* LaTeXFeatures.C: add bibtopic package.
* bufferparams.[Ch]: param \use_bibtopic.
-
+
* lyxrc.[Ch]: add lyxrc bibtex_command
* LaTeX.C: use rc.bibtex_command instead of hardcoded string.
-
+
* buffer.C: increment file format to 231.
2004-03-28 Alfredo Braunstein <abraunst@lyx.org>
* lyxfind.C
* lyxfunc.C
* paragraph_funcs.C
- * toc.C:
+ * toc.C:
* Makefile.am: adjust
2004-03-28 Alfredo Braunstein <abraunst@lyx.org>
2004-03-26 Alfredo Braunstein <abraunst@lyx.org>
- * buffer_funcs.C (readFile): add cancel button to two prompt dialogs
+ * buffer_funcs.C (readFile): add cancel button to two prompt dialogs
2004-03-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
2004-03-25 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
Martin Vermeer <martin.vermeer@hut.fi>
- * lyxfunc.C (dispatch):
- * bufferparams.C (readToken): use the new LColor::setColor
+ * lyxfunc.C (dispatch):
+ * bufferparams.C (readToken): use the new LColor::setColor
* LColor.[Ch] (setColor): new version that takes two strings as
argument and creates a new color entry if necessary
bp.textclass);
}
- boost::tie(endpit, endpos) =
+ boost::tie(endpit, endpos) =
eraseSelectionHelper(bp,
text->paragraphs(),
begpit, endpit,
// noUpdate();
return;
}
-
+
resetAnchor();
selection() = sel;
}
if (macro && macro->getInsetName() == name)
lyxerr << "can't enter recursive macro" << endl;
- niceInsert(createMathInset(name));
+ niceInsert(createMathInset(name));
}
}
inset->read(buf, lex);
-
-#warning hack..
+
+#warning hack..
if (inset->lyxCode() == InsetBase::MATHMACRO_CODE) {
MathMacroTemplate const * tmpl =
static_cast<MathMacroTemplate*>(inset.get());
* Painter.[Ch]: remove Painter & return value everywhere, make
virtual all remaining nonvirtual methods
-
+
* nullpainter.[Ch]: add no-op painter
2004-04-05 Angus Leeming <leeming@lyx.org>
* screen.[Ch] (fitCursor): use LCursor::getDim, simplify
(fitManualCursor): remove
(topCursorVisible): remove
-
+
2003-11-11 Alfredo Braunstein <abraunst@libero.it>
2003-11-10 André Pönitz <poenitz@gmx.net>
- * screen.C: adjust to removed inset locking
+ * screen.C: adjust to removed inset locking
2003-10-14 Angus Leeming <leeming@lyx.org>
namespace {
-string const printState(ButtonPolicy::State const & state)
+string const printState(ButtonPolicy::State const & state)
{
string output;
2004-04-07 Martin Vermeer <martin.vermeer@hut.fi>
* ControlDocument.C: 'assign' for opening/closing branch insets
- according to selection
+ according to selection
2004-04-05 Angus Leeming <leeming@lyx.org>
state machine on receipt of SMI_CANCEL/SMI_HIDE if the existing
state is APPLIED, then let this state persist. Next time that the
dialog is opened, the user will be able to press 'Save'.
-
+
2004-04-05 Angus Leeming <leeming@lyx.org>
* ControlPrefs.C (dispatchParams): ignore system_lyxrc when writing
2004-02-07 Huang Ying <hying_caritas@163.com>
- * GViewBase.C : add addCancel, addOK, addApply, add Restore to
+ * GViewBase.C : add addCancel, addOK, addApply, add Restore to
facilitate setup buttons signal.
* GAboutLyx.C : using addxxx series functions.
* GTableCreate.C : using addxxx series functions.
* GText.C : using addxxx series functions.
* GUrl.C : using addxxx series functions.
-
+
2004-02-02 Huang Ying <hying_caritas@163.com>
- * GAboutLyx.C : the "CREDITS" is in "ISO8859-1" charset not locale
+ * GAboutLyx.C : the "CREDITS" is in "ISO8859-1" charset not locale
charset, so change the convert function from Glib::locale_to_utf8
to Glib::convert(credit, "UTF-8", "ISO8859-1").
-
+
2003-12-20 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* Dialogs.C:
fronetends to prevent layouts widget from disable always.
2003-10-28 Huang Ying <hying_caritas@163.com>
-
+
* codeConvert.h (etc): Change FcChar to XftChar according to the libxft
interface changing.
* FileDialogPrivate.C : get rid of button support in FileDialog
public:
///
NullPainter() {}
-
+
virtual ~NullPainter() {}
/// begin painting
/// end painting
void end() {}
- ///
+ ///
int paperWidth() const { return 0; }
- ///
+ ///
int paperHeight() const;
-
+
///
void line(int, int, int, int, LColor_color,
line_style = line_solid, line_width = line_thin) {}
///
void rectangle(int, int, int, int, LColor_color,
line_style = line_solid, line_width = line_thin) {}
- ///
+ ///
void fillRectangle(int, int, int, int, LColor_color) {}
- ///
+ ///
void fillPolygon(int const *, int const *, int, LColor_color) {}
- ///
+ ///
void arc(int, int, unsigned int, unsigned int,
int, int, LColor_color) {}
- ///
+ ///
void point(int, int, LColor_color) {}
- ///
+ ///
void button(int, int, int, int) {}
- ///
+ ///
void image(int, int, int, int, lyx::graphics::Image const &) {}
- ///
+ ///
void text(int, int, std::string const &, LyXFont const &) {}
///
void text(int, int, char const *, size_t, LyXFont const &) {}
2004-04-01 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
- * floatplacement.[Ch]: correct fix for enabling of placement
+ * floatplacement.[Ch]: correct fix for enabling of placement
values (bug 1016)
2004-03-31 Angus Leeming <leeming@lyx.org>
* QDocument.C:
* QDocumentDialog.C:
* ui/BiblioModuleBase.ui: bibtopic support.
-
+
* QPrefs.C:
* QPrefsDialog.C:
* ui/QPrefsLaTeXModule.ui: customize bibtex call.
-
+
* QFloat.C:
* QFloatDialog.C:
* floatplacement.[Ch]: add support for sidewaysfloats
* QCitation.C:
* ui/QCitationDialogBase.ui: Support second \cite option.
-
+
* QDocumentDialog.C (branches): Don't deselect branch
after button press.
- * QBranch.C: fix off-by-one-error.
+ * QBranch.C: fix off-by-one-error.
2004-02-21 Georg Baum <Georg.Baum@post.rwth-aachen.de>
2004-02-20 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* QDocument.C:
- * QDocumentDialog.C:
- * ui/LanguageModuleBase.ui: get rid of the single/double
+ * QDocumentDialog.C:
+ * ui/LanguageModuleBase.ui: get rid of the single/double
quote toggle (accessible via lfuns now).
2004-02-19 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
2004-02-18 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* QCitation.[Ch]:
- * QCitationDialog.[Ch]: open the find dialog if an inset is
+ * QCitationDialog.[Ch]: open the find dialog if an inset is
new (new method openFind()). Fixes bug 1146.
-
+
* QCitation.C: restore the chosen natbib style.
-
+
* QRef.C: Disable goto button if there is no ref (bug 1037)
Restore setting of the buffer combo (bug 1511)
rc.preview = LyXRC::PREVIEW_ON;
break;
}
-
+
lyx::graphics::DisplayType dtype(lyx::graphics::ColorDisplay);
switch (displaymod->displayGraphicsCO->currentItem()) {
displaymod->instantPreviewCO->setCurrentItem(2);
break;
}
-
+
int item = 2;
switch (rc.display_graphics) {
* FormDocument.[Ch]:
* forms/form_bibtex.fd: bibtopic support.
* forms/form_document.fd: radio default/natbib/jurabib.
-
+
* FormPreferences.C:
* forms/form_preferences.fd: customize bibtex call.
-
+
* FormFloat.C:
* forms/form_float.fd:
add support for sidewaysfloats
2004-03-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* XLyXKeySym.C (print): new method; print a keysym using
- kb_keymap::printKeySym.
+ kb_keymap::printKeySym.
2004-03-17 Angus Leeming <leeming@lyx.org>
2004-02-20 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* FormDocument.C:
- * forms/form_document.fd: get rid of the single/double
+ * forms/form_document.fd: get rid of the single/double
quote toggle (accessible via lfuns now).
2004-02-01 Lars Gullik Bjonnes <larsbj@gullik.net>
rc.preview = LyXRC::PREVIEW_ON;
break;
}
-
+
rc.autosave = static_cast<unsigned int>
(fl_get_counter_value(dialog_->counter_autosave));
rc.wheel_jump = static_cast<unsigned int>
All .fd files go in this directory.
Each .fd file should have just one form in them
-NOTE: An exception to the above is any tabbed form which
+NOTE: An exception to the above is any tabbed form which
xforms requires multiple forms to create. In that case
the group of forms constitutes one gui form.
/fl_/ s/".[^|]*"/_(&).c_str()/
-# For all lines containing "_shortcut" and a string containing |,
+# For all lines containing "_shortcut" and a string containing |,
# replace the string with scex(_(string)).c_str()
/_shortcut/ s/".*[|].*"/scex(_(&)).c_str()/
# typedef struct { struct FD_xxx : public FD_base {
# FL_FORM *form_xxx; FL_OBJECT * some_obj;
# void *vdata; ...
-# char *cdata; };
+# char *cdata; };
# long ldata;
# FL_OBJECT *some_obj;
# ...
# } FD_xxx;
#
-# This is detailed more closely below
+# This is detailed more closely below
# We retain only those lines in the struct that start " FL_OBJECT *",
# placing them in the hold space until the end of the struct is reached
bool InsetBase::covers(int x, int y) const
{
- //lyxerr << "InsetBase::covers, x: " << x << " y: " << y
+ //lyxerr << "InsetBase::covers, x: " << x << " y: " << y
// << " xo: " << xo() << " yo: " << yo()
// << " x1: " << xo() << " x2: " << xo() + width()
// << " y1: " << yo() - ascent() << " y2: " << yo() + descent()
return params.display != graphics::NoDisplay &&
lyxrc.display_graphics != graphics::NoDisplay;
}
-
+
string const statusMessage(graphics::Params const & params,
graphics::ImageStatus status)
selection_possible = false;
bool update = true;
-
+
// We cannot use this function here
if (!getStatus(cmd).enabled()) {
lyxerr[Debug::ACTION] << "LyXFunc::dispatch: "
update |= res.update();
else
update |= view()->dispatch(cmd);
-
+
break;
}
}
switch (unit_) {
case PTW:
snprintf(buffer, 78, "%.2f\\textwidth", val_/100.0);
- break;
- case PCW:
+ break;
+ case PCW:
snprintf(buffer, 78, "%.2f\\columnwidth", val_/100.0);
- break;
- case PPW:
+ break;
+ case PPW:
snprintf(buffer, 78, "%.2f\\paperwidth", val_/100.0);
- break;
- case PLW:
+ break;
+ case PLW:
snprintf(buffer, 78, "%.2f\\linewidth", val_/100.0);
- break;
- case PPH:
+ break;
+ case PPH:
snprintf(buffer, 78, "%.2f\\paperheight", val_/100.0);
- break;
- case PTH:
+ break;
+ case PTH:
snprintf(buffer, 78, "%.2f\\textheight", val_/100.0);
break;
default:
break;
}
- LColor::color const col =
+ LColor::color const col =
lcolor.getFromLyXName(lyx_name);
- if (col == LColor::none ||
+ if (col == LColor::none ||
col == LColor::inherit ||
col == LColor::ignore)
break;
/ \
- Nest Dots, Func, ...
+ Nest Dots, Func, ...
(for thing with
nested content)
namespace {
-bool isInside(DocIterator const & it, MathArray const & ar,
+bool isInside(DocIterator const & it, MathArray const & ar,
lyx::pos_type p1, lyx::pos_type p2)
{
for (size_t i = 0; i != it.size(); ++i) {
// insert file functions
case LFUN_DELETE_LINE_FORWARD:
- recordUndo(cur);
+ recordUndo(cur);
//autocorrect_ = false;
//macroModeClose();
//if (selection_) {
break;
case LFUN_CELL_SPLIT:
- recordUndo(cur);
+ recordUndo(cur);
splitCell(cur);
break;
case LFUN_BREAKLINE: {
- recordUndo(cur);
+ recordUndo(cur);
row_type const r = cur.row();
addRow(r);
}
case LFUN_TABULAR_FEATURE: {
- recordUndo(cur);
+ recordUndo(cur);
//lyxerr << "handling tabular-feature " << cmd.argument << endl;
istringstream is(cmd.argument);
string s;
}
case LFUN_PASTE: {
- recordUndo(cur);
+ recordUndo(cur);
lyxerr << "MathGridInset: PASTE: " << cmd << std::endl;
istringstream is(cmd.argument);
int n = 0;
void updateExpansion() const;
///
void expand() const;
-
+
/// name of macro
std::string name_;
/// the unexpanded macro defintition
using std::vector;
-MacroData::MacroData()
+MacroData::MacroData()
: numargs_(0)
{}
private:
///
- std::string def_;
+ std::string def_;
///
int numargs_;
///
void refreshPar(BufferView const & bv, LyXText const & text, par_type pit)
{
-
+
static NullPainter nop;
paintPars(bv, nop, text, pit, pit + 1);
}
exception.
* forkedcontr.C: make it a little more robust.
-
+
2004-03-24 Angus Leeming <leeming@lyx.org>
* forkedcontr.[Ch]: get rid of the timer that we use to poll the list
// FIXME: replace all calls to RunCommand with ForkedCall
// (if the output is not needed) or the code in ispell.C
// (if the output is needed).
-
+
// One question is if we should use popen or
// create our own popen based on fork, exec, pipe
// of course the best would be to have a
// Block the SIGCHLD signal.
sigprocmask(SIG_BLOCK, &newMask, &oldMask);
-
+
FILE * inf = ::popen(cmd.c_str(), os::popen_read_mode());
// (Claus Hentschel) Check if popen was succesful ;-)
}
// Path of binary/../Resources/
- searchpath += NormalizePath(AddPath(binpath, "../Resources/") +
+ searchpath += NormalizePath(AddPath(binpath, "../Resources/") +
OnlyFilename(binname)) + ';';
string fullbinpath = binpath;
<< system_lyxdir_ << '\'' << endl;
//
- // Set PATH for LyX/Mac
+ // Set PATH for LyX/Mac
// LyX/Mac is a relocatable application bundle; here we add to
// the PATH so it can find binaries like reLyX inside its own
// application bundle, and also append PATH elements that it