1999-09-27 18:44:28 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of*
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright (C) 1995 Matthias Ettrich
|
|
|
|
* 1995-1998 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:
|
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
InsetLabel(string const & cmd);
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
|
|
|
InsetLabel() : InsetCommand("label") {;}
|
|
|
|
///
|
|
|
|
~InsetLabel();
|
|
|
|
///
|
|
|
|
Inset* Clone();
|
|
|
|
///
|
|
|
|
Inset::Code LyxCode() const { return Inset::LABEL_CODE; }
|
|
|
|
///
|
|
|
|
int GetNumberOfLabels() const;
|
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string getLabel(int) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string getScreenLabel() const { return getContents(); }
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
|
|
|
unsigned char Editable() const { return 0; }
|
|
|
|
///
|
|
|
|
int Latex(FILE *file, signed char fragile);
|
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
int Latex(string &file, signed char fragile);
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
int Linuxdoc(string &file);
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
int DocBook(string &file);
|
1999-09-27 18:44:28 +00:00
|
|
|
private:
|
|
|
|
/// This function escapes 8-bit characters
|
1999-10-02 16:21:10 +00:00
|
|
|
string escape(string const &) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|