lyx_mirror/src/insets/insetlabel.h
Lars Gullik Bjønnes 245007468d patch from dekel
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@744 a592a061-630c-0410-9148-cb99ea01b6c8
2000-05-19 16:46:01 +00:00

56 lines
1.2 KiB
C++

// -*- C++ -*-
/* This file is part of*
* ======================================================
*
* LyX, The Document Processor
*
* Copyright 1995 Matthias Ettrich
* Copyright 1995-2000 The LyX Team
*
* ====================================================== */
#ifndef INSET_LABEL_H
#define INSET_LABEL_H
#ifdef __GNUG__
#pragma interface
#endif
#include "insetcommand.h"
#include "LString.h"
///
class InsetLabel : public InsetCommand {
public:
///
explicit
InsetLabel(string const & cmd);
///
InsetLabel() : InsetCommand("label") {}
///
Inset * Clone() const;
///
Inset::Code LyxCode() const { return Inset::LABEL_CODE; }
///
std::vector<string> getLabelList() const;
///
string getScreenLabel() const { return getContents(); }
///
EDITABLE Editable() const { return IS_EDITABLE; }
///
void Edit(BufferView *, int, int, unsigned int);
///
int Latex(std::ostream &, bool fragile, bool free_spc) const;
///
int Ascii(std::ostream &) const;
///
int Linuxdoc(std::ostream &) const;
///
int DocBook(std::ostream &) const;
private:
/// This function escapes 8-bit characters
string escape(string const &) const;
};
#endif