mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
Revert r39007 and r38983, since these broke the string freeze. I'll recommit for 2.0.2.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@39020 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ac64f8f698
commit
93577c5a5b
@ -353,15 +353,15 @@ ToolbarSet
|
|||||||
Toolbar "frac-square" "Fractions"
|
Toolbar "frac-square" "Fractions"
|
||||||
Item "Standard \\frac" "math-insert \frac"
|
Item "Standard \\frac" "math-insert \frac"
|
||||||
Item "Nice fraction (3/4) \\nicefrac" "math-insert \nicefrac"
|
Item "Nice fraction (3/4) \\nicefrac" "math-insert \nicefrac"
|
||||||
Item "Unit (km) \\unitone" "math-insert \unitone"
|
Item "Unit (km) \\unit" "math-insert \unitone"
|
||||||
Item "Unit (864 m) \\unittwo" "math-insert \unittwo"
|
Item "Unit (864 m) \\unit" "math-insert \unittwo"
|
||||||
Item "Unit fraction (km/h) \\unitfrac" "math-insert \unitfrac"
|
Item "Unit fraction (km/h) \\unitfrac" "math-insert \unitfrac"
|
||||||
Item "Unit fraction (20 km/h) \\unitfracthree" "math-insert \unitfracthree"
|
Item "Unit fraction (20 km/h) \\unitfrac" "math-insert \unitfracthree"
|
||||||
Item "Text fraction \\tfrac" "math-insert \tfrac"
|
Item "Text fraction \\tfrac" "math-insert \tfrac"
|
||||||
Item "Display fraction \\dfrac" "math-insert \dfrac"
|
Item "Display fraction \\dfrac" "math-insert \dfrac"
|
||||||
Item "Continued fraction \\cfrac" "math-insert \cfrac"
|
Item "Continued fraction \\cfrac" "math-insert \cfrac"
|
||||||
Item "Continued fraction (left) \\cfracleft" "math-insert \cfracleft"
|
Item "Continued fraction (left) \\cfrac" "math-insert \cfracleft"
|
||||||
Item "Continued fraction (right) \\cfracright" "math-insert \cfracright"
|
Item "Continued fraction (right) \\cfrac" "math-insert \cfracright"
|
||||||
Item "Binomial \\binom" "math-insert \binom"
|
Item "Binomial \\binom" "math-insert \binom"
|
||||||
Item "Text binomial \\tbinom" "math-insert \tbinom"
|
Item "Text binomial \\tbinom" "math-insert \tbinom"
|
||||||
Item "Display binomial \\dbinom" "math-insert \dbinom"
|
Item "Display binomial \\dbinom" "math-insert \dbinom"
|
||||||
|
@ -647,25 +647,13 @@ void switchBetweenClasses(DocumentClass const * const oldone,
|
|||||||
DocumentClass const & newtc = *newone;
|
DocumentClass const & newtc = *newone;
|
||||||
|
|
||||||
// layouts
|
// layouts
|
||||||
ParIterator it = par_iterator_begin(in);
|
|
||||||
ParIterator end = par_iterator_end(in);
|
ParIterator end = par_iterator_end(in);
|
||||||
// for remembering which layouts we've had to add
|
for (ParIterator it = par_iterator_begin(in); it != end; ++it) {
|
||||||
set<docstring> newlayouts;
|
|
||||||
for (; it != end; ++it) {
|
|
||||||
docstring const name = it->layout().name();
|
docstring const name = it->layout().name();
|
||||||
|
|
||||||
// the pasted text will keep their own layout name. If this layout does
|
// the pasted text will keep their own layout name. If this layout does
|
||||||
// not exist in the new document, it will behave like a standard layout.
|
// not exist in the new document, it will behave like a standard layout.
|
||||||
bool const added_one = newtc.addLayoutIfNeeded(name);
|
newtc.addLayoutIfNeeded(name);
|
||||||
if (added_one)
|
|
||||||
newlayouts.insert(name);
|
|
||||||
|
|
||||||
if (added_one || newlayouts.find(name) != newlayouts.end()) {
|
|
||||||
// Warn the user.
|
|
||||||
docstring const s = bformat(_("Layout `%1$s' was not found."), name);
|
|
||||||
errorlist.push_back(
|
|
||||||
ErrorItem(_("Layout Not Found"), s, it->id(), 0, it->size()));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (in.usePlainLayout())
|
if (in.usePlainLayout())
|
||||||
it->setLayout(newtc.plainLayout());
|
it->setLayout(newtc.plainLayout());
|
||||||
|
@ -356,13 +356,6 @@ void Text::readParToken(Paragraph & par, Lexer & lex,
|
|||||||
// of this document. For example, when you apply class article to a beamer document,
|
// of this document. For example, when you apply class article to a beamer document,
|
||||||
// all unknown layouts such as frame will be added to document class article so that
|
// all unknown layouts such as frame will be added to document class article so that
|
||||||
// these layouts can keep their original names.
|
// these layouts can keep their original names.
|
||||||
bool const added_one = tclass.addLayoutIfNeeded(layoutname);
|
|
||||||
if (added_one) {
|
|
||||||
// Warn the user.
|
|
||||||
docstring const s = bformat(_("Layout `%1$s' was not found."), layoutname);
|
|
||||||
errorList.push_back(
|
|
||||||
ErrorItem(_("Layout Not Found"), s, par.id(), 0, par.size()));
|
|
||||||
}
|
|
||||||
|
|
||||||
par.setLayout(bp.documentClass()[layoutname]);
|
par.setLayout(bp.documentClass()[layoutname]);
|
||||||
|
|
||||||
|
@ -1199,13 +1199,10 @@ bool TextClass::load(string const & path) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool DocumentClass::addLayoutIfNeeded(docstring const & n) const
|
void DocumentClass::addLayoutIfNeeded(docstring const & n) const
|
||||||
{
|
{
|
||||||
if (hasLayout(n))
|
if (!hasLayout(n))
|
||||||
return false;
|
layoutlist_.push_back(createBasicLayout(n, true));
|
||||||
|
|
||||||
layoutlist_.push_back(createBasicLayout(n, true));
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -373,8 +373,7 @@ public:
|
|||||||
/// a plain inset layout for use as a default
|
/// a plain inset layout for use as a default
|
||||||
static InsetLayout const & plainInsetLayout() { return plain_insetlayout_; }
|
static InsetLayout const & plainInsetLayout() { return plain_insetlayout_; }
|
||||||
/// add a new layout \c name if it does not exist in layoutlist_
|
/// add a new layout \c name if it does not exist in layoutlist_
|
||||||
/// \return whether we had to add one.
|
void addLayoutIfNeeded(docstring const & name) const;
|
||||||
bool addLayoutIfNeeded(docstring const & name) const;
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////
|
||||||
// accessors
|
// accessors
|
||||||
|
@ -71,8 +71,6 @@ What's new
|
|||||||
|
|
||||||
- Fix output of decimally aligned columns in unviewed (on screen) tables.
|
- Fix output of decimally aligned columns in unviewed (on screen) tables.
|
||||||
|
|
||||||
- Inform user of unknown layouts caused by class change (bug 7571).
|
|
||||||
|
|
||||||
- Avoid LaTeX errors if font changing commands are used in the wrong mode
|
- Avoid LaTeX errors if font changing commands are used in the wrong mode
|
||||||
by assuring to switch to the right mode on export.
|
by assuring to switch to the right mode on export.
|
||||||
|
|
||||||
@ -148,8 +146,6 @@ What's new
|
|||||||
|
|
||||||
- Enable OK/Apply in Document>Settings dialog when bullet size is changed.
|
- Enable OK/Apply in Document>Settings dialog when bullet size is changed.
|
||||||
|
|
||||||
- Display LyX's internal \unit equivalents in the math toolbar menu (bug 7620).
|
|
||||||
|
|
||||||
|
|
||||||
* ADVANCED FIND AND REPLACE
|
* ADVANCED FIND AND REPLACE
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user