mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 17:20:55 +00:00
Backport r28340.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28820 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f6ad811535
commit
a84580306e
@ -206,8 +206,8 @@ InsetLayout Index
|
||||
Size Small
|
||||
EndFont
|
||||
MultiPar false
|
||||
# CustomPars false
|
||||
# ForcePlain true
|
||||
CustomPars false
|
||||
ForcePlain true
|
||||
NeedProtect true
|
||||
End
|
||||
|
||||
@ -270,7 +270,7 @@ InsetLayout OptArg
|
||||
Color collapsable
|
||||
Size Small
|
||||
EndFont
|
||||
# MultiPar false
|
||||
MultiPar false
|
||||
End
|
||||
|
||||
InsetLayout Info
|
||||
|
@ -180,6 +180,12 @@ private:
|
||||
///
|
||||
Dimension dimensionCollapsed(BufferView const & bv) const;
|
||||
///
|
||||
/// should paragraphs be forced to use the empty layout?
|
||||
virtual bool forcePlainLayout(idx_type = 0) const
|
||||
{ return getLayout().forcePlainLayout(); }
|
||||
/// should the user be allowed to customize alignment, etc.?
|
||||
virtual bool allowParagraphCustomization(idx_type = 0) const
|
||||
{ return getLayout().allowParagraphCustomization(); }
|
||||
docstring labelstring_;
|
||||
///
|
||||
mutable Box button_dim;
|
||||
|
@ -60,10 +60,6 @@ private:
|
||||
void validate(LaTeXFeatures &) const {}
|
||||
///
|
||||
bool showInsetDialog(BufferView *) const;
|
||||
///
|
||||
virtual bool forcePlainLayout(idx_type = 0) const { return true; }
|
||||
///
|
||||
virtual bool allowParagraphCustomization(idx_type = 0) const { return false; }
|
||||
/// should paragraph indendation be omitted in any case?
|
||||
bool neverIndent() const { return true; }
|
||||
///
|
||||
|
@ -47,18 +47,6 @@ protected:
|
||||
|
||||
private:
|
||||
Inset * clone() const { return new InsetFlex(*this); }
|
||||
// FIXME The following two routines should be moved to InsetCollapsable.
|
||||
// That will allow the redeclarations of these routines to be removed
|
||||
// from its subclasses, such as InsetERT. But it will also require us
|
||||
// to rework stdinsets.inc, to make sure we get the right behavior from
|
||||
// the subclasses.
|
||||
/// should paragraphs be forced to use the empty layout?
|
||||
virtual bool forcePlainLayout(idx_type = 0) const
|
||||
{ return getLayout().forcePlainLayout(); }
|
||||
/// should the user be allowed to customize alignment, etc.?
|
||||
virtual bool allowParagraphCustomization(idx_type = 0) const
|
||||
{ return getLayout().allowParagraphCustomization(); }
|
||||
|
||||
///
|
||||
std::string name_;
|
||||
};
|
||||
|
@ -40,10 +40,6 @@ private:
|
||||
int latex(odocstream &, OutputParams const &) const;
|
||||
/// should paragraph indendation be omitted in any case?
|
||||
bool neverIndent() const { return true; }
|
||||
/// should paragraphs be forced to use the empty layout?
|
||||
virtual bool forcePlainLayout(idx_type = 0) const { return true; }
|
||||
/// should the user be allowed to customize alignment, etc.?
|
||||
virtual bool allowParagraphCustomization(idx_type = 0) const { return false; }
|
||||
///
|
||||
void addToToc(DocIterator const &);
|
||||
///
|
||||
|
@ -39,19 +39,14 @@ private:
|
||||
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
|
||||
int plaintext(odocstream &, OutputParams const &) const;
|
||||
/// Standard DocBook output -- short-circuited
|
||||
int docbook(odocstream &, OutputParams const &) const;
|
||||
///
|
||||
virtual bool forcePlainLayout(idx_type = 0) const { return true; }
|
||||
|
||||
/// Write out to the .lyx file
|
||||
void write(std::ostream & os) const;
|
||||
|
||||
/// should paragraph indendation be ommitted in any case?
|
||||
bool neverIndent() const { return true; }
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user