#include <map>
+using namespace lyx::support;
+
using std::ostream;
using std::vector;
using std::map;
// buffer but doing some real work.
setLoadingBuffer(cmd.view()->buffer(), false);
InsetCommandMailer("citation", *this).showDialog(cmd.view());
- break;
+ return DISPATCHED;
default:
return InsetCommand::localDispatch(cmd);
int InsetCitation::ascii(Buffer const * buffer, ostream & os, int) const
{
- string label;
-
if (cache.params == params() && cache.style == getStyle(buffer))
- label = cache.generated_label;
+ os << cache.generated_label;
else
- label = generateLabel(buffer);
-
- os << label;
+ os << generateLabel(buffer);
return 0;
}