}
-docstring Inset::editMessage() const
-{
- return _("Opened inset");
-}
-
-
void Inset::cursorPos(BufferView const & /*bv*/, CursorSlice const &,
bool, int & x, int & y) const
{
/// the string that is passed to the TOC
virtual void tocString(odocstream &) const {}
- /// what appears in the minibuffer when opening
- virtual docstring editMessage() const;
/// can the contents of the inset be edited on screen ?
// true for InsetCollapsables (not ButtonOnly) (not InsetInfo), InsetText
virtual bool editable() const;
}
-docstring InsetBox::editMessage() const
-{
- return _("Opened Box Inset");
-}
-
-
docstring InsetBox::name() const
{
// FIXME: UNICODE
///
friend class InsetBoxParams;
///
- docstring editMessage() const;
- ///
InsetCode lyxCode() const { return BOX_CODE; }
///
docstring name() const;
}
-docstring InsetBranch::editMessage() const
-{
- return _("Opened Branch Inset");
-}
-
-
void InsetBranch::write(ostream & os) const
{
params_.write(os);
void rename(docstring const & newname) { params_.branch = newname; }
private:
- ///
- docstring editMessage() const;
///
InsetCode lyxCode() const { return BRANCH_CODE; }
///
}
-docstring InsetCaption::editMessage() const
-{
- return _("Opened Caption Inset");
-}
-
-
void InsetCaption::cursorPos(BufferView const & bv,
CursorSlice const & sl, bool boundary, int & x, int & y) const
{
///
InsetCode lyxCode() const { return CAPTION_CODE; }
///
- docstring editMessage() const;
- ///
void cursorPos(BufferView const & bv,
CursorSlice const & sl, bool boundary, int & x, int & y) const;
///
namespace lyx {
+InsetCollapsable::InsetCollapsable(Buffer const & buf, InsetText::UsePlain ltype)
+ : InsetText(buf, ltype), status_(Inset::Open),
+ openinlined_(false), mouse_hover_(false)
+{
+ setAutoBreakRows(true);
+ setDrawFrame(true);
+ setFrameColor(Color_collapsableframe);
+}
+
+
+InsetCollapsable::InsetCollapsable(InsetCollapsable const & rhs)
+ : InsetText(rhs),
+ status_(rhs.status_),
+ labelstring_(rhs.labelstring_),
+ button_dim(rhs.button_dim),
+ openinlined_(rhs.openinlined_),
+ auto_open_(rhs.auto_open_),
+ // the sole purpose of this copy constructor
+ mouse_hover_(false)
+{
+}
+
+
InsetCollapsable::CollapseStatus InsetCollapsable::status(BufferView const & bv) const
{
if (decoration() == InsetLayout::CONGLOMERATE)
}
-InsetCollapsable::InsetCollapsable(Buffer const & buf, InsetText::UsePlain ltype)
- : InsetText(buf, ltype), status_(Inset::Open),
- openinlined_(false), mouse_hover_(false)
-{
- setAutoBreakRows(true);
- setDrawFrame(true);
- setFrameColor(Color_collapsableframe);
-}
-
-
-InsetCollapsable::InsetCollapsable(InsetCollapsable const & rhs)
- : InsetText(rhs),
- status_(rhs.status_),
- labelstring_(rhs.labelstring_),
- button_dim(rhs.button_dim),
- openinlined_(rhs.openinlined_),
- auto_open_(rhs.auto_open_),
- // the sole purpose of this copy constructor
- mouse_hover_(false)
-{
-}
-
-
docstring InsetCollapsable::toolTip(BufferView const & bv, int x, int y) const
{
Dimension dim = dimensionCollapsed(bv);
}
-docstring InsetERT::editMessage() const
-{
- return _("Opened ERT Inset");
-}
-
-
int InsetERT::plaintext(odocstream &, OutputParams const &) const
{
return 0; // do not output TeX code
///
void write(std::ostream & os) const;
///
- docstring editMessage() const;
- ///
bool insetAllowed(InsetCode code) const;
///
int plaintext(odocstream &, OutputParams const &) const;
}
-docstring InsetFlex::editMessage() const
-{
- return _("Opened Flex Inset");
-}
-
-
void InsetFlex::write(ostream & os) const
{
os << "Flex " <<
///
docstring name() const { return from_utf8(name_); }
///
- docstring editMessage() const;
- ///
InsetCode lyxCode() const { return FLEX_CODE; }
/// Default looks
InsetLayout::InsetDecoration decoration() const;
}
-docstring InsetFloat::editMessage() const
-{
- return _("Opened Float Inset");
-}
-
-
docstring InsetFloat::xhtml(odocstream & os, OutputParams const & rp) const
{
FloatList const & floats = buffer().params().documentClass().floats();
///
docstring xhtml(odocstream &, OutputParams const &) const;
///
- docstring editMessage() const;
- ///
bool insetAllowed(InsetCode) const;
/** returns true if, when outputing LaTeX, font changes should
be closed before generating this inset. This is needed for
{}
-docstring InsetFoot::editMessage() const
-{
- return _("Opened Footnote Inset");
-}
-
-
void InsetFoot::updateLabels(ParIterator const & it)
{
BufferParams const & bp = buffer().masterBuffer()->params();
int plaintext(odocstream &, OutputParams const &) const;
///
int docbook(odocstream &, OutputParams const &) const;
- ///
- docstring editMessage() const;
/// Update the counters of this inset and of its contents
void updateLabels(ParIterator const &);
///
}
-docstring InsetListings::editMessage() const
-{
- return _("Opened Listing Inset");
-}
-
-
int InsetListings::latex(odocstream & os, OutputParams const & runparams) const
{
string param_string = params().params();
///
void read(Lexer & lex);
///
- docstring editMessage() const;
- ///
int latex(odocstream &, OutputParams const &) const;
///
docstring xhtml(odocstream &, OutputParams const &) const;
{}
-docstring InsetMarginal::editMessage() const
-{
- return _("Opened Marginal Note Inset");
-}
-
-
int InsetMarginal::plaintext(odocstream & os,
OutputParams const & runparams) const
{
///
int docbook(odocstream &, OutputParams const & runparams) const;
///
- docstring editMessage() const;
- ///
void addToToc(DocIterator const &);
private:
///
}
-docstring InsetNote::editMessage() const
-{
- return _("Opened Note Inset");
-}
-
-
docstring InsetNote::name() const
{
return from_ascii("Note:" + notetranslator().find(params_.type));
///
InsetNoteParams const & params() const { return params_; }
private:
- ///
- docstring editMessage() const;
///
InsetCode lyxCode() const { return NOTE_CODE; }
///
{}
-docstring InsetOptArg::editMessage() const
-{
- return _("Opened Optional Argument Inset");
-}
-
-
void InsetOptArg::write(ostream & os) const
{
os << "OptArg" << "\n";
InsetCode lyxCode() const { return OPTARG_CODE; }
///
docstring name() const { return from_ascii("OptArg"); }
- /// return an message upon editing
- docstring editMessage() const;
/// Standard LaTeX output -- short-circuited
int latex(odocstream &, OutputParams const &) const;
/// Standard plain text output -- short-circuited
}
-docstring InsetPhantom::editMessage() const
-{
- return _("Opened Phantom Inset");
-}
-
-
docstring InsetPhantom::name() const
{
return from_ascii("Phantom:" + phantomtranslator().find(params_.type));
///
InsetPhantomParams const & params() const { return params_; }
private:
- ///
- docstring editMessage() const;
///
InsetCode lyxCode() const { return PHANTOM_CODE; }
///
}
-docstring InsetTabular::editMessage() const
-{
- return _("Opened table");
-}
-
-
void InsetTabular::edit(Cursor & cur, bool front, EntryDirection)
{
//lyxerr << "InsetTabular::edit: " << this << endl;
///
void drawSelection(PainterInfo & pi, int x, int y) const;
///
- docstring editMessage() const;
- ///
bool editable() const { return true; }
///
bool hasSettings() const { return true; }
}
-docstring InsetText::editMessage() const
-{
- return _("Opened Text Inset");
-}
-
-
void InsetText::edit(Cursor & cur, bool front, EntryDirection entry_from)
{
pit_type const pit = front ? 0 : paragraphs().size() - 1;
///
void draw(PainterInfo & pi, int x, int y) const;
///
- docstring editMessage() const;
- ///
bool editable() const { return true; }
///
bool canTrackChanges() const { return true; }
}
-docstring InsetWrap::editMessage() const
-{
- return _("Opened Wrap Inset");
-}
-
-
int InsetWrap::latex(odocstream & os, OutputParams const & runparams_in) const
{
OutputParams runparams(runparams_in);
///
docstring xhtml(odocstream &, OutputParams const &) const;
///
- docstring editMessage() const;
- ///
bool insetAllowed(InsetCode) const;
///
bool showInsetDialog(BufferView *) const;
}
-docstring InsetMathHull::editMessage() const
-{
- return _("Math editor mode");
-}
-
-
void InsetMathHull::revealCodes(Cursor & cur) const
{
if (!cur.inMathed())
// Incorporate me
//
public:
- /// what appears in the minibuffer when opening
- docstring editMessage() const;
///
virtual void mutateToText();
///