#include <sstream>
+using namespace std;
namespace lyx {
-using std::string;
-using std::istringstream;
-using std::ostream;
-using std::ostringstream;
-using std::endl;
-
-
namespace {
-typedef Translator<std::string, InsetBox::BoxType> BoxTranslator;
+typedef Translator<string, InsetBox::BoxType> BoxTranslator;
typedef Translator<docstring, InsetBox::BoxType> BoxTranslatorLoc;
BoxTranslator const init_boxtranslator()
}
+bool InsetBox::isMacroScope(Buffer const &) const
+{
+ BoxType btype = boxtranslator().find(params_.type);
+ return btype != Frameless || params_.inner_box;
+}
+
+
int InsetBox::latex(Buffer const & buf, odocstream & os,
OutputParams const & runparams) const
{