/// FIXME: merge with editable()
// true for InsetTabular & InsetText
virtual bool isActive() const { return nargs() > 0; }
+ /// can we click at the specified position ?
+ virtual bool clickable(int x, int y) const { return false; }
/// does this contain text that can be change track marked in DVI?
virtual bool canTrackChanges() const { return false; }
}
+bool InsetCollapsable::clickable(int x, int y) const
+{
+ FuncRequest cmd(LFUN_NOACTION, x, y, mouse_button::none);
+ return hitButton(cmd);
+}
+
+
docstring const InsetCollapsable::getNewLabel(docstring const & l) const
{
docstring label;
bool editable() const;
///
bool hasSettings() const { return true; }
+ ///
+ bool clickable(int x, int y) const;
/// can we go further down on mouse click?
bool descendable(BufferView const & bv) const;
///
///
InsetCode lyxCode() const { return NO_CODE; }
///
+ bool clickable(int x, int y) const { return hasSettings(); }
+ ///
RenderButton & button() const { return button_; }
///
bool setMouseHover(BufferView const * bv, bool mouse_hover) const;
docstring contextMenu(BufferView const & bv, int x, int y) const;
///
bool setMouseHover(BufferView const * bv, bool mouse_hover);
-
+ ///
+ bool clickable(int x, int y) const { return true; }
private:
///
InsetExternal(InsetExternal const &);
bool setParams(InsetGraphicsParams const & params);
InsetGraphicsParams getParams() const { return params_;}
+ ///
+ bool clickable(int x, int y) const { return true; }
private:
///
bool isSpace() const { return true; }
///
docstring contextMenu(BufferView const & bv, int x, int y) const;
+ ///
+ bool clickable(int x, int y) const { return true; }
protected:
///
Inset * clone() const { return new InsetSpace(*this); }
static void string2params(std::string const &, VSpace &);
///
static std::string params2string(VSpace const &);
+ ///
+ bool clickable(int x, int y) const { return true; }
private:
///
void metrics(MetricsInfo & mi, Dimension & dim) const;