* src/insets/insetbase.h

(forceDefaultParagraphs): Fix comment: Not all text classes have a
	"Standard" layout. What was meant here is the default layout of the
	text class.

	* src/paragraph.C
	(Paragraph::simpleTeXOnePar): ditto

	* src/output_latex.C
	(latexParagraphs): ditto


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16738 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2007-01-17 21:22:19 +00:00
parent 08ef9c544e
commit c727c6db7f
3 changed files with 5 additions and 3 deletions

View File

@ -343,7 +343,7 @@ public:
/// returns true if the inset can hold an inset of given type /// returns true if the inset can hold an inset of given type
virtual bool insetAllowed(Code) const { return false; } virtual bool insetAllowed(Code) const { return false; }
/// if this inset has paragraphs should they be output all as default /// if this inset has paragraphs should they be output all as default
/// paragraphs with "Standard" layout? /// paragraphs with the default layout of the text class?
virtual bool forceDefaultParagraphs(idx_type) const { return false; } virtual bool forceDefaultParagraphs(idx_type) const { return false; }
/// ///

View File

@ -514,7 +514,8 @@ void latexParagraphs(Buffer const & buf,
// well we have to check if we are in an inset with unlimited // well we have to check if we are in an inset with unlimited
// length (all in one row) if that is true then we don't allow // length (all in one row) if that is true then we don't allow
// any special options in the paragraph and also we don't allow // any special options in the paragraph and also we don't allow
// any environment other then "Standard" to be valid! // any environment other than the default layout of the
// text class to be valid!
if (!par->forceDefaultParagraphs()) { if (!par->forceDefaultParagraphs()) {
LyXLayout_ptr const & layout = par->layout(); LyXLayout_ptr const & layout = par->layout();

View File

@ -945,7 +945,8 @@ bool Paragraph::simpleTeXOnePar(Buffer const & buf,
// well we have to check if we are in an inset with unlimited // well we have to check if we are in an inset with unlimited
// length (all in one row) if that is true then we don't allow // length (all in one row) if that is true then we don't allow
// any special options in the paragraph and also we don't allow // any special options in the paragraph and also we don't allow
// any environment other than "Standard" to be valid! // any environment other than the default layout of the text class
// to be valid!
bool asdefault = forceDefaultParagraphs(); bool asdefault = forceDefaultParagraphs();
if (asdefault) { if (asdefault) {