InsetCollapsable::write(os);
}
-
-void InsetArgument::latex(otexstream &, OutputParams const &) const
-{}
-
-
-int InsetArgument::plaintext(odocstream &, OutputParams const &) const
-{
- return 0; // do not output optional arguments
-}
-
-
-int InsetArgument::docbook(odocstream &, OutputParams const &) const
-{
- return 0;
-}
-
-
-docstring InsetArgument::xhtml(XHTMLStream &, OutputParams const &) const
-{
- return docstring();
-}
-
void InsetArgument::latexArgument(otexstream & os,
OutputParams const & runparams, bool optional) const
{
/// Outputting the parameter of a LaTeX command
void latexArgument(otexstream &, OutputParams const &,
bool optional) const;
+
+ /// \name Public functions inherited from Inset class
+ //@{
///
bool hasSettings() const { return false; }
-
-private:
- /// code of the inset
+ ///
InsetCode lyxCode() const { return ARG_CODE; }
///
docstring layoutName() const { return from_ascii("Argument"); }
- /// Standard LaTeX output -- short-circuited
- void latex(otexstream &, OutputParams const &) const;
- /// Standard plain text output -- short-circuited
- int plaintext(odocstream &, OutputParams const &) const;
- /// Standard DocBook output -- short-circuited
- int docbook(odocstream &, OutputParams const &) const;
- /// Standard XHTML output -- short-circuited
- docstring xhtml(XHTMLStream &, OutputParams const &) const;
- /// Write out to the .lyx file
+ ///
+ void latex(otexstream &, OutputParams const &) const { }
+ ///
+ int plaintext(odocstream &, OutputParams const &) const { return 0; }
+ ///
+ int docbook(odocstream &, OutputParams const &) const { return 0; }
+ ///
+ docstring xhtml(XHTMLStream &, OutputParams const &) const
+ { return docstring(); };
+ ///
void write(std::ostream & os) const;
- /// should paragraph indendation be ommitted in any case?
+ ///
bool neverIndent() const { return true; }
+ //@}
+
+protected:
+ /// \name Protected functions inherited from Inset class
+ //@{
///
Inset * clone() const { return new InsetArgument(*this); }
+ //@}
};
};
///
InsetBox(Buffer *, std::string const &);
+
///
static std::string params2string(InsetBoxParams const &);
///
static void string2params(std::string const &, InsetBoxParams &);
///
InsetBoxParams const & params() const { return params_; }
-private:
- ///
- friend class InsetBoxParams;
+
+ /// \name Public functions inherited from Inset class
+ //@{
///
InsetCode lyxCode() const { return BOX_CODE; }
///
///
void read(Lexer & lex);
///
- void setButtonLabel();
- ///
void metrics(MetricsInfo &, Dimension &) const;
///
DisplayType display() const { return Inline; }
bool forcePlainLayout(idx_type = 0) const;
///
bool neverIndent() const { return true; }
- /** returns false if, when outputing LaTeX, font changes should
- be closed before generating this inset. This is needed for
- insets that may contain several paragraphs */
+ ///
bool inheritFont() const { return false; }
///
void latex(otexstream &, OutputParams const &) const;
///
void validate(LaTeXFeatures &) const;
///
+ bool hasFixedWidth() const;
+ ///
+ std::string contextMenuName() const;
+ //@}
+
+ /// \name Public functions inherited from InsetCollapsable class
+ //@{
+ ///
+ void setButtonLabel();
+ //@}
+
+protected:
+ /// \name Protected functions inherited from Inset class
+ //@{
+ ///
bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
///
void doDispatch(Cursor & cur, FuncRequest & cmd);
- /// Is the width forced to some value?
- bool hasFixedWidth() const;
///
Inset * clone() const { return new InsetBox(*this); }
+ //@}
+
+private:
/// used by the constructors
void init();
- ///
- std::string contextMenuName() const;
///
+ friend class InsetBoxParams;
InsetBoxParams params_;
};