#include "DispatchResult.h"
#include "FuncRequest.h"
#include "FuncStatus.h"
-#include "gettext.h"
+#include "support/gettext.h"
#include "InsetList.h"
#include "Language.h"
#include "MetricsInfo.h"
+#include "TextClass.h"
#include "support/docstream.h"
#include "support/lstrings.h"
#include <sstream>
-namespace lyx {
+using namespace std;
+using namespace lyx::support;
-using support::token;
-using support::contains;
-using support::subst;
+namespace lyx {
-using std::istringstream;
-using std::ostream;
-using std::ostringstream;
-using std::string;
char const lstinline_delimiters[] =
"!*()-=+|;:'\"`,<.>/?QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm";
-void InsetListings::init()
-{
- setButtonLabel();
- layout_.labelfont.setColor(Color_none);
-
- // FIXME: what to do with those?
- //text_.current_font.setLanguage(latex_language);
- //text_.real_current_font.setLanguage(latex_language);
-}
-
-
InsetListings::InsetListings(BufferParams const & bp, InsetListingsParams const & par)
: InsetCollapsable(bp, par.status())
-{
- init();
-}
+{}
InsetListings::InsetListings(InsetListings const & in)
: InsetCollapsable(in), params_(in.params_)
-{
- init();
-}
+{}
Inset * InsetListings::clone() const
void InsetListings::setButtonLabel()
{
// FIXME UNICODE
- if (decoration() == Classic)
+ if (decoration() == Deco_Classic)
setLabel(isOpen() ? _("Listing") : getNewLabel(_("Listing")));
else
setLabel(getNewLabel(_("Listing")));