is more trouble than it is worth.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27131
a592a061-630c-0410-9148-
cb99ea01b6c8
-InsetCollapsable::InsetCollapsable(Buffer const & buf,
- CollapseStatus status)
- : InsetText(buf), status_(status),
+InsetCollapsable::InsetCollapsable(Buffer const & buf)
+ : InsetText(buf), status_(Inset::Open),
openinlined_(false), autoOpen_(false), mouse_hover_(false)
{
DocumentClass const & dc = buf.params().documentClass();
openinlined_(false), autoOpen_(false), mouse_hover_(false)
{
DocumentClass const & dc = buf.params().documentClass();
class InsetCollapsable : public InsetText {
public:
///
class InsetCollapsable : public InsetText {
public:
///
- InsetCollapsable(Buffer const &, CollapseStatus status = Inset::Open);
+ InsetCollapsable(Buffer const &);
///
InsetCollapsable(InsetCollapsable const & rhs);
///
///
InsetCollapsable(InsetCollapsable const & rhs);
///
docstring floatName(std::string const & type, BufferParams const &) const;
///
virtual void resetParagraphsFont();
docstring floatName(std::string const & type, BufferParams const &) const;
///
virtual void resetParagraphsFont();
+ ///
+ mutable CollapseStatus status_;
private:
/// cache for the layout_. Make sure it is in sync with the document class!
InsetLayout const * layout_;
private:
/// cache for the layout_. Make sure it is in sync with the document class!
InsetLayout const * layout_;
docstring labelstring_;
///
mutable Box button_dim;
docstring labelstring_;
///
mutable Box button_dim;
- ///
- mutable CollapseStatus status_;
/// a substatus of the Open status, determined automatically in metrics
mutable bool openinlined_;
/// the inset will automatically open when the cursor is inside
/// a substatus of the Open status, determined automatically in metrics
mutable bool openinlined_;
/// the inset will automatically open when the cursor is inside
namespace lyx {
InsetERT::InsetERT(Buffer const & buf, CollapseStatus status)
namespace lyx {
InsetERT::InsetERT(Buffer const & buf, CollapseStatus status)
- : InsetCollapsable(buf, status)
-{}
+ : InsetCollapsable(buf)
+{
+ status_ = status;
+}
InsetFlex::InsetFlex(Buffer const & buf, string const & layoutName)
InsetFlex::InsetFlex(Buffer const & buf, string const & layoutName)
- : InsetCollapsable(buf, Collapsed), name_(layoutName)
+ : InsetCollapsable(buf), name_(layoutName)
{
// again, because now the name is initialized
setLayout(buf.params().documentClassPtr());
{
// again, because now the name is initialized
setLayout(buf.params().documentClassPtr());
InsetInfo::InsetInfo(Buffer const & buf, string const & name)
InsetInfo::InsetInfo(Buffer const & buf, string const & name)
- : InsetCollapsable(buf, Collapsed), type_(UNKNOWN_INFO), name_()
+ : InsetCollapsable(buf), type_(UNKNOWN_INFO), name_()
{
setAutoBreakRows(true);
setInfo(name);
{
setAutoBreakRows(true);
setInfo(name);
"!*()-=+|;:'\"`,<.>/?QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm";
InsetListings::InsetListings(Buffer const & buf, InsetListingsParams const & par)
"!*()-=+|;:'\"`,<.>/?QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm";
InsetListings::InsetListings(Buffer const & buf, InsetListingsParams const & par)
- : InsetCollapsable(buf, par.status())
-{}
+ : InsetCollapsable(buf)
+{
+ status_ = par.status();
+}
InsetListings::~InsetListings()
InsetListings::~InsetListings()