mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-12 19:38:18 +00:00
* InsetInclude::addToToc(): show embedded status if any in Navigator.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23657 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
4f1d3f2162
commit
b1742b5736
@ -476,7 +476,6 @@ int InsetInclude::latex(odocstream & os, OutputParams const & runparams) const
|
||||
from_utf8(tmp->params().documentClass().name()),
|
||||
from_utf8(masterBuffer->params().documentClass().name()));
|
||||
Alert::warning(_("Different textclasses"), text);
|
||||
//return 0;
|
||||
}
|
||||
|
||||
// Make sure modules used in child are all included in master
|
||||
@ -885,7 +884,10 @@ void InsetInclude::addToToc(ParConstIterator const & cpit) const
|
||||
return;
|
||||
|
||||
Toc & toc = buffer().tocBackend().toc("child");
|
||||
toc.push_back(TocItem(cpit, 0, childbuffer->fileName().displayName()));
|
||||
docstring str = childbuffer->fileName().displayName();
|
||||
if (!params()["embed"].empty())
|
||||
str += _(" (embedded)");
|
||||
toc.push_back(TocItem(cpit, 0, str));
|
||||
|
||||
TocList & toclist = buffer().tocBackend().tocs();
|
||||
TocList const & childtoclist = childbuffer->tocBackend().tocs();
|
||||
|
Loading…
Reference in New Issue
Block a user