]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCaption.h
Choose a delimiter for lstinline (braces can not be used for some listings version)
[lyx.git] / src / insets / InsetCaption.h
index 424417d9d9f5dd67071b39f3b507fe9268d02af4..9d1973fba67a65de18707ff25922fb1aba4af724 100644 (file)
@@ -32,7 +32,7 @@ public:
        ///
        void read(Buffer const & buf, Lexer & lex);
        ///
-       virtual bool display() const;
+       virtual DisplayType display() const;
        ///
        virtual bool neverIndent(Buffer const &) const { return true; }
        ///
@@ -69,6 +69,12 @@ public:
        ///
        int docbook(Buffer const & buf, odocstream & os,
                    OutputParams const & runparams) const;
+       /// return the mandatory argument (LaTeX format) only
+       int getArgument(Buffer const & buf, odocstream & os,
+                 OutputParams const &) const;
+       /// return the optional argument(s) only
+       int getOptArg(Buffer const & buf, odocstream & os,
+                 OutputParams const &) const;
        ///
        void setCount(int c) { counter_ = c; }
        ///
@@ -84,7 +90,7 @@ public:
 
 private:
        ///
-       void computeFullLabel() const;
+       void computeFullLabel(Buffer const & buf) const;
        ///
        virtual std::auto_ptr<Inset> doClone() const;
        ///
@@ -103,9 +109,9 @@ private:
 
 
 inline
-bool InsetCaption::display() const
+Inset::DisplayType InsetCaption::display() const
 {
-       return true;
+       return AlignCenter;
 }