mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-14 12:25:11 +00:00
minor bibitem tweaks
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9998 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b1895c8349
commit
292dea2315
@ -1,3 +1,10 @@
|
|||||||
|
2005-06-06 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
||||||
|
|
||||||
|
* text.C (redoParagraph): move cursor right after a bibitem
|
||||||
|
has been inserted.
|
||||||
|
|
||||||
|
* text3.C: disable LFUN_BIBITEM_INSERT outside Bibliography.
|
||||||
|
|
||||||
2005-06-02 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
2005-06-02 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||||
|
|
||||||
* buffer_funcs.C (bufferErrors): fix computation of the end of an
|
* buffer_funcs.C (bufferErrors): fix computation of the end of an
|
||||||
|
@ -1657,7 +1657,7 @@ bool LyXText::redoParagraph(pit_type const pit)
|
|||||||
// Add bibitem insets if necessary
|
// Add bibitem insets if necessary
|
||||||
if (par.layout()->labeltype == LABEL_BIBLIO) {
|
if (par.layout()->labeltype == LABEL_BIBLIO) {
|
||||||
bool hasbibitem(false);
|
bool hasbibitem(false);
|
||||||
if (!par.insetlist.empty()
|
if (!par.insetlist.empty()
|
||||||
// Insist on it being in pos 0
|
// Insist on it being in pos 0
|
||||||
&& par.getChar(0) == Paragraph::META_INSET) {
|
&& par.getChar(0) == Paragraph::META_INSET) {
|
||||||
InsetBase * inset = par.insetlist.begin()->inset;
|
InsetBase * inset = par.insetlist.begin()->inset;
|
||||||
@ -1668,6 +1668,7 @@ bool LyXText::redoParagraph(pit_type const pit)
|
|||||||
InsetBibitem * inset(new
|
InsetBibitem * inset(new
|
||||||
InsetBibitem(InsetCommandParams("bibitem")));
|
InsetBibitem(InsetCommandParams("bibitem")));
|
||||||
par.insertInset(0, static_cast<InsetBase *>(inset));
|
par.insertInset(0, static_cast<InsetBase *>(inset));
|
||||||
|
bv()->cursor().posRight();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1567,6 +1567,10 @@ bool LyXText::getStatus(LCursor & cur, FuncRequest const & cmd,
|
|||||||
flag.setOnOff(cur.paragraph().params().startOfAppendix());
|
flag.setOnOff(cur.paragraph().params().startOfAppendix());
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
case LFUN_INSERT_BIBITEM:
|
||||||
|
enable = (cur.paragraph().layout()->labeltype == LABEL_BIBLIO);
|
||||||
|
break;
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
// the functions which insert insets
|
// the functions which insert insets
|
||||||
InsetBase::Code code = InsetBase::NO_CODE;
|
InsetBase::Code code = InsetBase::NO_CODE;
|
||||||
@ -1831,7 +1835,6 @@ bool LyXText::getStatus(LCursor & cur, FuncRequest const & cmd,
|
|||||||
case LFUN_INSERT_LABEL:
|
case LFUN_INSERT_LABEL:
|
||||||
case LFUN_INSERT_NOTE:
|
case LFUN_INSERT_NOTE:
|
||||||
case LFUN_INSERT_CHARSTYLE:
|
case LFUN_INSERT_CHARSTYLE:
|
||||||
case LFUN_INSERT_BIBITEM:
|
|
||||||
case LFUN_INSET_FLOAT:
|
case LFUN_INSET_FLOAT:
|
||||||
case LFUN_INSET_FOOTNOTE:
|
case LFUN_INSET_FOOTNOTE:
|
||||||
case LFUN_INSET_MARGINAL:
|
case LFUN_INSET_MARGINAL:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user