]> git.lyx.org Git - lyx.git/commitdiff
* src/insets/insetbase.h
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Wed, 17 Jan 2007 21:22:19 +0000 (21:22 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Wed, 17 Jan 2007 21:22:19 +0000 (21:22 +0000)
(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

src/insets/insetbase.h
src/output_latex.C
src/paragraph.C

index 4f90fc1fa141da4e4da4c0439cb6ef260c3f2cbd..03aa357462e38ac31bee59e4b93aef361a752b7d 100644 (file)
@@ -343,7 +343,7 @@ public:
        /// returns true if the inset can hold an inset of given type
        virtual bool insetAllowed(Code) const { return false; }
        /// 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; }
 
        ///
index 1164fcc84b5d9261764ea066dc564d4a8794ce74..a848193dddea37412c58d942eff65337e28f5358 100644 (file)
@@ -514,7 +514,8 @@ void latexParagraphs(Buffer const & buf,
                // 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
                // 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()) {
                        LyXLayout_ptr const & layout = par->layout();
 
index f360d4b5d5c601888de048f6eafdea7791c21bbb..8c3631eca7389382f073be9be44c3c62b937c5ff 100644 (file)
@@ -945,7 +945,8 @@ bool Paragraph::simpleTeXOnePar(Buffer const & buf,
        // 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
        // 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();
 
        if (asdefault) {