#include "support/docstream.h"
+using namespace std;
namespace lyx {
-using std::endl;
-using std::max;
-using std::ostream;
-using std::string;
-
InsetCollapsable::CollapseStatus InsetCollapsable::status() const
{
docstring label;
pos_type const max_length = 15;
pos_type const p_siz = paragraphs().begin()->size();
- pos_type const n = std::min(max_length, p_siz);
+ pos_type const n = min(max_length, p_siz);
pos_type i = 0;
pos_type j = 0;
for (; i < n && j < p_siz; ++j) {
}
+bool InsetCollapsable::isMacroScope(Buffer const & buf) const
+{
+ // layout_ == 0 leads to no latex output, so ignore
+ // the macros outside
+ if (!layout_)
+ return true;
+
+ // see InsetCollapsable::latex(...) below. In these case
+ // an environment is opened there
+ if (!layout_->latexname.empty())
+ return true;
+
+ return false;
+}
+
+
int InsetCollapsable::latex(Buffer const & buf, odocstream & os,
OutputParams const & runparams) const
{