mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Improve the description of Inset::inheritFont()
The existing descriptions were obsolete (see e.g. ticket #10263).
This commit is contained in:
parent
441c6a9359
commit
0acf594df2
@ -586,13 +586,9 @@ public:
|
|||||||
/// returns whether paragraph breaks can occur inside this inset
|
/// returns whether paragraph breaks can occur inside this inset
|
||||||
virtual bool allowMultiPar() const { return false; }
|
virtual bool allowMultiPar() const { return false; }
|
||||||
/**
|
/**
|
||||||
* The font is inherited from the parent for LaTeX export if this
|
* The font inside the inset is inherited from the parent for
|
||||||
* method returns true. No open font changes are closed in front of
|
* LaTeX export if this method returns true, as well as on screen.
|
||||||
* the inset for LaTeX export, and the font is inherited for all other
|
* Otherwise the document default font is used.
|
||||||
* exports as well as on screen.
|
|
||||||
* If this method returns false all open font changes are closed in
|
|
||||||
* front of the inset for LaTeX export. The default font is used
|
|
||||||
* inside the inset for all exports and on screen.
|
|
||||||
*/
|
*/
|
||||||
virtual bool inheritFont() const { return true; }
|
virtual bool inheritFont() const { return true; }
|
||||||
/**
|
/**
|
||||||
|
@ -104,9 +104,7 @@ private:
|
|||||||
docstring xhtml(XMLStream &, OutputParams const &) const override;
|
docstring xhtml(XMLStream &, OutputParams const &) const override;
|
||||||
///
|
///
|
||||||
bool insetAllowed(InsetCode) const override;
|
bool insetAllowed(InsetCode) const override;
|
||||||
/** returns false if, when outputting LaTeX, font changes should
|
///
|
||||||
be closed before generating this inset. This is needed for
|
|
||||||
insets that may contain several paragraphs */
|
|
||||||
bool inheritFont() const override { return false; }
|
bool inheritFont() const override { return false; }
|
||||||
///
|
///
|
||||||
bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const override;
|
bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const override;
|
||||||
|
@ -61,9 +61,7 @@ private:
|
|||||||
InsetCode lyxCode() const override { return NOTE_CODE; }
|
InsetCode lyxCode() const override { return NOTE_CODE; }
|
||||||
///
|
///
|
||||||
docstring layoutName() const override;
|
docstring layoutName() const override;
|
||||||
/** returns false if, when outputting LaTeX, font changes should
|
///
|
||||||
be closed before generating this inset. This is needed for
|
|
||||||
insets that may contain several paragraphs */
|
|
||||||
bool inheritFont() const override { return params_.type == InsetNoteParams::Note; }
|
bool inheritFont() const override { return params_.type == InsetNoteParams::Note; }
|
||||||
/// Is the content of this inset part of the output document?
|
/// Is the content of this inset part of the output document?
|
||||||
bool producesOutput() const override
|
bool producesOutput() const override
|
||||||
|
@ -980,9 +980,7 @@ public:
|
|||||||
bool canTrackChanges() const override { return true; }
|
bool canTrackChanges() const override { return true; }
|
||||||
///
|
///
|
||||||
bool canPaintChange(BufferView const &) const override { return true; }
|
bool canPaintChange(BufferView const &) const override { return true; }
|
||||||
/** returns false if, when outputting LaTeX, font changes should
|
///
|
||||||
be closed before generating this inset. This is needed for
|
|
||||||
insets that may contain several paragraphs */
|
|
||||||
bool inheritFont() const override { return false; }
|
bool inheritFont() const override { return false; }
|
||||||
///
|
///
|
||||||
bool allowMultiPar() const override;
|
bool allowMultiPar() const override;
|
||||||
|
Loading…
Reference in New Issue
Block a user