]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetLayout.h
Let the Foot inset have a different Layout when inside a title
[lyx.git] / src / insets / InsetLayout.h
index 74e1af9db6862a7fba2106cafae580493a41e05c..9398e915822fc35b09f98dfb766e9a58cb228e7a 100644 (file)
@@ -85,13 +85,18 @@ public:
        FontInfo labelfont() const { return labelfont_; }
        ///
        ColorCode bgcolor() const { return bgcolor_; }
-       ///
+       /// 
+       Layout::LaTeXArgMap const & latexargs() const { return latexargs_; }
+       ///
+       Layout::LaTeXArgMap const & postcommandargs() const { return postcommandargs_; }
+       /// Returns latexargs() + postcommandargs().
+       /// But note that it returns a *copy*, not a reference, so do not do 
+       /// anything like:
+       ///   Layout::LaTeXArgMap::iterator it = args().begin();
+       ///   Layout::LaTeXArgMap::iterator en = args().end();
+       /// Those are iterators for different containers.
        Layout::LaTeXArgMap args() const;
        ///
-       Layout::LaTeXArgMap latexargs() const { return latexargs_; }
-       ///
-       Layout::LaTeXArgMap postcommandargs() const { return postcommandargs_; }
-       ///
        unsigned int optArgs() const;
        ///
        unsigned int requiredArgs() const;